How do I get Immunizations for a patient? #1967
-
Looking at the network tab in a Fire product, I see https://fhir-st-mpi-clinical.staging.healthconcourse.com/Immunization?patient=HC-000-1569 How do I issue a search for Immunizations through Firely? This is not allowed: var immunizations = await client.SearchAsync(new SearchParams("patient", patientId)); |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hi @johnkwaters, Thanks for question. You have to tell the client which type of resource you are searching. So it would be: var immunizations = await client.SearchAsync<Immunization>(new SearchParams("patient", patientId)); |
Beta Was this translation helpful? Give feedback.
-
But I am not allowed to: |
Beta Was this translation helpful? Give feedback.
-
Ah - good catch, and thanks for the ByResourceType<> tip |
Beta Was this translation helpful? Give feedback.
-
Another question - not related, sorry! - when I get observations (vital signs) I see encounter is null for all of them. Yet some of them do seem to be related to one Encounter I get when fetching Encounters. How do I query so I get the Observations with an Encounter, or the Encounter with Observations? |
Beta Was this translation helpful? Give feedback.
Ah - good catch, and thanks for the ByResourceType<> tip