FHIR Chat · Encounter Hierarchy · implementers

Stream: implementers

Topic: Encounter Hierarchy


view this post on Zulip Kevin O'Donnell (Feb 22 2019 at 22:01):

I'm assuming that Encounters are a hierarchy such that one might have an encounter with a health system that represents an Episode of Care, which might have a child encounter with a facility that represents an Admission, which might have a child encounter with a department, which might have a child encounter with a particular care provider.

Is that correct and if so,
- how do you know which level an encounter you are inspecting is at?
- how do you query for encounters at a particular level? e.g. departmental encounters, or admission encounters

view this post on Zulip Lloyd McKenzie (Feb 22 2019 at 22:20):

Tyipically you use EpisodeOfCare for an episode. Encounter is limited to when there's direct engagement between the participants (though it can be remote). In terms of differentiating, you could query by chaining through the location type. Not sure if there's another mechanism. @Brian Postlethwaite ?

view this post on Zulip Brian Postlethwaite (Feb 22 2019 at 22:40):

Encounter class of virtual for remote sessions.

view this post on Zulip Brian Postlethwaite (Feb 22 2019 at 22:48):

The usual use of the nesting of encounter is for an admission encounter, then child ones for encounters within (and depends on your tracking needs)
Not really about the level within a location hierarchy.
The episode of care is used for tracking across related encounters for a specific purpose, often related to a diagnosis. Eg. A maternity episode, or a diabetes episode.

view this post on Zulip Kevin O'Donnell (Feb 22 2019 at 23:13):

So if I want to find an encounters with Dermatology today that are part of an admission encounter with Admission ID 4321, what would that look like?

view this post on Zulip Lloyd McKenzie (Feb 22 2019 at 23:38):

Encounter?part-of=Enounter/4321&location.code=dermatology&date=ge2019-02-22

view this post on Zulip Elliot Silver (Feb 22 2019 at 23:44):

@Lloyd McKenzie , that only works if the derm Encounter is directly part of the admission Encounter, or do we expect that child encounters include their full ancestry in part-of? Also, I think @Kevin O'Donnell meant Encounter.identifier, not Encounter.id.

view this post on Zulip Kevin O'Donnell (Feb 22 2019 at 23:44):

OK, so the instance number of an Encounter resource is required to be the Admission ID if the encounter is an encounter with a facility?

view this post on Zulip Lloyd McKenzie (Feb 22 2019 at 23:53):

Not the key - I assumed that's what 4321 was, but should probably have done part-of.identifier=4321. "admission id" is a term I'm not terribly familiar with. Typically I've just heard people refer to "encounter id"

view this post on Zulip Grahame Grieve (Feb 22 2019 at 23:54):

that only works if the derm Encounter is directly part of the admission Encounter

if people don't track the relatedness, you won't be able to depend on the relatedness

view this post on Zulip Kevin O'Donnell (Feb 23 2019 at 00:51):

To make it concrete, one of our use cases starts by scanning the wristband attached to the patient when they were admitted which often conveys a PV1-19-Visit Number value. We'd like to send that number and perhaps the fact that we're in the dermatology clinic and get back the patient name/id/DOB, hospital name, admission date/time, reason for admission, and (because the server is clever) a list of dermatology imaging procedures appropriate to the reason for admission.
And I think @Elliot Silver was maybe considering the case where the dermatology encounter was not a directly child of the admission, but a grandchild with a parent that is, say, an ICU encounter or something. I'm not sure if part-of is direct parent only or if it searches upwards til if finds a hit?

view this post on Zulip Elliot Silver (Feb 23 2019 at 00:52):

@Grahame Grieve , consider the case where Encounter A is part of Encounter B, and B is part of Encounter C. So Encounter B has partOf(C). But there are two options for A. It either has partOf(B) or it has partOf(B,C).

(Kevin, exactly my thought.)

view this post on Zulip Elliot Silver (Feb 23 2019 at 00:58):

Similarly, for location -- a bed is in a ward in a hospital. How do I find all beds in a particular hospital? Do we expect partOf to be filled in with both the ward and the hospital?

view this post on Zulip Lloyd McKenzie (Feb 23 2019 at 02:10):

In theory, we could revise "part-of" to be recursive up the tree - but that would require implementers to agree that was reasonable. Alternatively we could have a modifier that recurses

view this post on Zulip Elliot Silver (Feb 23 2019 at 06:54):

A modifier seems reasonable, and we could use :below and :above as a starting point. This is probably useful for any "recursive" relationship -- locations part of other locations, observations that have member other observations, organizational hierarchies, etc.

I wonder if it makes sense to be able to switch to other resources? (all observations derived from, directly or indirectly a particular DocumentReference).

view this post on Zulip Elliot Silver (Feb 23 2019 at 07:10):

Hmm, how does Encounter.partOf differ from the http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter extension?

view this post on Zulip Grahame Grieve (Feb 23 2019 at 12:27):

the modifier is already defined

view this post on Zulip Lloyd McKenzie (Feb 23 2019 at 15:35):

What is it?

view this post on Zulip Lloyd McKenzie (Feb 23 2019 at 15:35):

I thought it existed to, but I couldn't see it when I looked

view this post on Zulip René Spronk (Feb 24 2019 at 09:22):

@Kevin O'Donnell I'd use Encounter.class to distinguish the level (in the hierarchical encounter structure). http://wiki.hl7.org/index.php?title=Requirements_for_an_Universal_Encounter_model describes the requirements for such a hierarchy from an international perspective. Location is not a reliable indicator of the encounter being at a particular hierarchical level IMHO.

view this post on Zulip Grahame Grieve (Feb 25 2019 at 01:21):

see http://hl7.org/fhir/references.html#circular

view this post on Zulip Kevin O'Donnell (Feb 27 2019 at 20:55):

@René Spronk I like your wiki link for teasing apart the fact that a term like "department" is often used loosely (as I did) without properly recognizing that we might be referring to a physical Location, or a part of an Organization, or a Service, which are distinct modeled concepts and it behooves us to think carefully about what we mean (and encourage our customers to avoid ambiguity too).

view this post on Zulip Kevin O'Donnell (Feb 27 2019 at 20:56):

@Grahame Grieve Thanks for the link! It seems like :above and :below are likely partOf the solution (sorry, couldn't resist :slight_smile: )

view this post on Zulip Martin Morrey (May 21 2019 at 08:27):

Thanks for this. We are planning to use EpisodeOfCare in a maternity context.

Do you know if there has been any discussion of defining an "$everything" operation for EpisodeOfCare, as I gather there now is on Encounter https://www.hl7.org/fhir/operation-encounter-everything.html ?

Thanks :)

view this post on Zulip Lloyd McKenzie (May 21 2019 at 08:37):

Not yet, but it's a reasonable thing to submit a change request for


Last updated: Apr 12 2022 at 19:14 UTC