FHIR Chat · Patient with Encounters and Claims · implementers

Stream: implementers

Topic: Patient with Encounters and Claims


view this post on Zulip Mark Sternig (Mar 08 2019 at 04:20):

Our team is working to create a custom API (operation?) that returns a single FHIR Patient resource, along with some additional data. We would like to also include the Encounters and associated Claims for each encounter as "contained" resources, as opposed to simply adding references to them. A couple of general questions: 1) Is creating an extension to link an array of Encounters to a Patient possible/appropriate? 2) Is there a better way to do this instead of extensions, since the relationship appears to be from Claim to Encounter[] instead of the other direction? 3) Is using a custom StructureDefinition appropriate in this case (we would prefer to use FHIR resources/relationships as-is when possible. Thanks for any guidance you can provide!

view this post on Zulip Elkhan Yusubov (Mar 08 2019 at 13:22):

@Mark Sternig were you able to get response on your question?
One question on a side: is there a fhir query that is able to bring all resources (contained in bundle) that are referencing a patient?

view this post on Zulip Michele Mottini (Mar 08 2019 at 14:21):

I would not use a custom API - you can use a Claim search that includes the referenced Patient and Encounters

view this post on Zulip Michele Mottini (Mar 08 2019 at 14:22):

Something like .../Claim?patient=xxxx&_include=Claim:patient&_include=Claim:encounter

view this post on Zulip Michele Mottini (Mar 08 2019 at 15:01):

@Yusubov : yes, the $everything operation: http://hl7.org/fhir/patient-operation-everything.html

view this post on Zulip Mark Sternig (Mar 08 2019 at 17:40):

@Michele Mottini the _include is exactly what I was looking for, thanks! Am I correct to also assume that with a large dataset and paged bundles, if passing in a _count of 5 for example, I would get 5 Claims per page, and then all associated Encounters and Patients? This is what I believe is happening here (using _count=2): http://hapi.fhir.org/baseDstu3/Claim?_pretty=true&_include=Claim%3Aencounter&_include=Claim%3Apatient&_count=2&patient=1355147&_format=json

view this post on Zulip Michele Mottini (Mar 08 2019 at 17:44):

Yes, you will get 5 claims and the patients and encounters referenced by those claims

view this post on Zulip Mark A Johnson (Mar 15 2019 at 21:55):

Is this still the case even though there's no Encounter on a Claim but rather on a Claim item in the FHIR model?


Last updated: Apr 12 2022 at 19:14 UTC