$1 LIMIT 1 [["id", 1]] Doctor Load (0.3ms) SELECT "doctors".* FROM "doctors" WHERE "doctors"."id" = $1 LIMIT 1 [["id", 1]] Credential Load (0.2ms) SELECT "credentials".* FROM "credentials" WHERE "credentials"."id" = $1 ORDER BY "credentials"."id" ASC LIMIT 1 [["id", 1]] ProviderGroup Load (0.2ms) SELECT "provider_groups".* FROM "provider_groups" WHERE "provider_groups"."id" = $1 LIMIT 1 [["id", 50000]] Stream Load (0.7ms) SELECT "streams".* FROM "streams" INNER JOIN "patients" ON "patients"."id" = "streams"."patient_id" INNER JOIN "plans" ON "streams"."plan_id" = "plans"."id" WHERE "plans"."provider_group_id" = $1 ORDER BY patients.last_name ASC, patients.first_name ASC LIMIT 25 OFFSET 0 [["provider_group_id", 50000]] Encounter Load (0.2ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."stream_id" = $1 AND "encounters"."state" = 'active' ORDER BY "encounters"."id" ASC LIMIT 1 [["stream_id", 23]] Encounter Load (0.2ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."id" = $1 LIMIT 1 [["id", "74808465-e9d8-4977-b6e5-fc366ba4446d"]] Stream Load (0.3ms) SELECT "streams".* FROM "streams" WHERE "streams"."id" = $1 LIMIT 1 [["id", 23]] Plan Load (0.2ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 1]] PlanConfig Load (0.1ms) SELECT "plan_configs".* FROM "plan_configs" WHERE "plan_configs"."plan_id" = $1 LIMIT 1 [["plan_id", 1]] Plan Load (0.3ms) SELECT "plans".* FROM "plans" INNER JOIN "streams" ON "plans"."id" = "streams"."plan_id" WHERE "streams"."id" = $1 LIMIT 1 [["id", 23]] CACHE (0.0ms) SELECT "plan_configs".* FROM "plan_configs" WHERE "plan_configs"."plan_id" = $1 LIMIT 1 [["plan_id", 1]] Patient Load (0.2ms) SELECT "patients".* FROM "patients" WHERE "patients"."id" = $1 LIMIT 1 [["id", 13]] Credential Load (0.2ms) SELECT "credentials".* FROM "credentials" WHERE "credentials"."owner_id" = $1 AND "credentials"."owner_type" = $2 LIMIT 1 [["owner_id", 13], ["owner_type", "Patient"]] CACHE (0.0ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 1]] Encounter Load (0.2ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."stream_id" = $1 AND "encounters"."state" = 'active' ORDER BY "encounters"."id" ASC LIMIT 1 [["stream_id", 20]] Patient Load (0.2ms) SELECT "patients".* FROM "patients" WHERE "patients"."id" = $1 LIMIT 1 [["id", 10]] Credential Load (0.1ms) SELECT "credentials".* FROM "credentials" WHERE "credentials"."owner_id" = $1 AND "credentials"."owner_type" = $2 LIMIT 1 [["owner_id", 10], ["owner_type", "Patient"]] Plan Load (0.1ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 2]] Encounter Load (0.2ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."stream_id" = $1 AND "encounters"."state" = 'active' ORDER BY "encounters"."id" ASC LIMIT 1 [["stream_id", 19]] Encounter Load (0.2ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."id" = $1 LIMIT 1 [["id", "11873eca-18f2-45b0-868b-4b0c8f4403f5"]] Stream Load (0.2ms) SELECT "streams".* FROM "streams" WHERE "streams"."id" = $1 LIMIT 1 [["id", 19]] Plan Load (0.2ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 1]] PlanConfig Load (0.2ms) SELECT "plan_configs".* FROM "plan_configs" WHERE "plan_configs"."plan_id" = $1 LIMIT 1 [["plan_id", 1]] Plan Load (0.3ms) SELECT "plans".* FROM "plans" INNER JOIN "streams" ON "plans"."id" = "streams"."plan_id" WHERE "streams"."id" = $1 LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "plan_configs".* FROM "plan_configs" WHERE "plan_configs"."plan_id" = $1 LIMIT 1 [["plan_id", 1]] Patient Load (0.1ms) SELECT "patients".* FROM "patients" WHERE "patients"."id" = $1 LIMIT 1 [["id", 10]] Credential Load (0.2ms) SELECT "credentials".* FROM "credentials" WHERE "credentials"."owner_id" = $1 AND "credentials"."owner_type" = $2 LIMIT 1 [["owner_id", 10], ["owner_type", "Patient"]] CACHE (0.0ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 1]] Encounter Load (0.2ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."stream_id" = $1 AND "encounters"."state" = 'active' ORDER BY "encounters"."id" ASC LIMIT 1 [["stream_id", 9]] Encounter Load (0.1ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."id" = $1 LIMIT 1 [["id", "cd6847a1-b490-442d-909f-c2235ece720c"]] Stream Load (0.1ms) SELECT "streams".* FROM "streams" WHERE "streams"."id" = $1 LIMIT 1 [["id", 9]] Plan Load (0.1ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 1]] PlanConfig Load (0.1ms) SELECT "plan_configs".* FROM "plan_configs" WHERE "plan_configs"."plan_id" = $1 LIMIT 1 [["plan_id", 1]] Plan Load (0.3ms) SELECT "plans".* FROM "plans" INNER JOIN "streams" ON "plans"."id" = "streams"."plan_id" WHERE "streams"."id" = $1 LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "plan_configs".* FROM "plan_configs" WHERE "plan_configs"."plan_id" = $1 LIMIT 1 [["plan_id", 1]] Patient Load (0.1ms) SELECT "patients".* FROM "patients" WHERE "patients"."id" = $1 LIMIT 1 [["id", 5]] Credential Load (0.2ms) SELECT "credentials".* FROM "credentials" WHERE "credentials"."owner_id" = $1 AND "credentials"."owner_type" = $2 LIMIT 1 [["owner_id", 5], ["owner_type", "Patient"]] CACHE (0.0ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 1]] Encounter Load (0.2ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."stream_id" = $1 AND "encounters"."state" = 'active' ORDER BY "encounters"."id" ASC LIMIT 1 [["stream_id", 10]] CACHE (0.0ms) SELECT "patients".* FROM "patients" WHERE "patients"."id" = $1 LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "credentials".* FROM "credentials" WHERE "credentials"."owner_id" = $1 AND "credentials"."owner_type" = $2 LIMIT 1 [["owner_id", 5], ["owner_type", "Patient"]] Plan Load (0.2ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 2]] Encounter Load (0.1ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."stream_id" = $1 AND "encounters"."state" = 'active' ORDER BY "encounters"."id" ASC LIMIT 1 [["stream_id", 4]] Patient Load (0.1ms) SELECT "patients".* FROM "patients" WHERE "patients"."id" = $1 LIMIT 1 [["id", 2]] Credential Load (0.2ms) SELECT "credentials".* FROM "credentials" WHERE "credentials"."owner_id" = $1 AND "credentials"."owner_type" = $2 LIMIT 1 [["owner_id", 2], ["owner_type", "Patient"]] CACHE (0.0ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 2]] Encounter Load (0.1ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."stream_id" = $1 AND "encounters"."state" = 'active' ORDER BY "encounters"."id" ASC LIMIT 1 [["stream_id", 3]] Encounter Load (0.1ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."id" = $1 LIMIT 1 [["id", "19095b47-592d-4687-9cc2-396def04a971"]] Stream Load (0.2ms) SELECT "streams".* FROM "streams" WHERE "streams"."id" = $1 LIMIT 1 [["id", 3]] Plan Load (0.1ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 1]] PlanConfig Load (0.1ms) SELECT "plan_configs".* FROM "plan_configs" WHERE "plan_configs"."plan_id" = $1 LIMIT 1 [["plan_id", 1]] Plan Load (0.3ms) SELECT "plans".* FROM "plans" INNER JOIN "streams" ON "plans"."id" = "streams"."plan_id" WHERE "streams"."id" = $1 LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "plan_configs".* FROM "plan_configs" WHERE "plan_configs"."plan_id" = $1 LIMIT 1 [["plan_id", 1]] Patient Load (0.3ms) SELECT "patients".* FROM "patients" WHERE "patients"."id" = $1 LIMIT 1 [["id", 2]] Credential Load (0.2ms) SELECT "credentials".* FROM "credentials" WHERE "credentials"."owner_id" = $1 AND "credentials"."owner_type" = $2 LIMIT 1 [["owner_id", 2], ["owner_type", "Patient"]] CACHE (0.0ms) SELECT "plans".* FROM "plans" WHERE "plans"."id" = $1 LIMIT 1 [["id", 1]] Encounter Load (0.2ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."stream_id" = $1 AND "encounters"."state" = 'active' ORDER BY "encounters"."id" ASC LIMIT 1 [["stream_id", 1]] Encounter Load (0.2ms) SELECT "encounters".* FROM "encounters" WHERE "encounters"."id" = $1 LIMIT 1 [["id", "a9526e2b-b9ed-47b4-91b6-3da3c2e3f586"]] Stream Load (0.2ms) SELECT "streams".* FROM "streams" WHERE "streams"."id" = $1 LIMIT 1 [["id", 1]]** @_ejallday_