Skip to content

Looking for guidance on how to navigate/combine Encounters and Vitals #1972

Answered by mbaltus
johnkwaters asked this question in Q&A
Discussion options

You must be logged in to vote

Why not change your search to ask only for vital signs Observations? The category code that you try to filter on is also available as search parameter:

var sp = new SearchParams("subject", patientId);
sp.Add("category", "vital-signs");

So after your two searches you will have Encounters for a Patient and you will have a list of vital signs for that Patient. Am I correct in understanding that the next steps are to determine during which Encounter a vital sign was observed/recorded, so you can set the Observation.encounter to reference the Encounter?
If so, you should be able to use the Encounter's identity to set the reference, like this:

obs.Encounter = new ResourceReference (enc.Resource…

Replies: 1 comment 26 replies

Comment options

You must be logged in to vote
26 replies
@johnkwaters
Comment options

@mbaltus
Comment options

@johnkwaters
Comment options

@johnkwaters
Comment options

@mbaltus
Comment options

Answer selected by mbaltus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants