Stream: implementers
Topic: extending encounter status
eyal wolanowski (Jun 21 2020 at 06:49):
Hi all I have the following problem : The values of FHIR Encounter are not sufficient to our use .
Encounter.Status is a primitive type and marked as required .
- is it possible for FHIR Encounter.Status to contain an extension ?
- is it possible to replace FHIR status codes ?
Jose Costa Teixeira (Jun 21 2020 at 07:54):
can you give details or an example of what you need to extend?
eyal wolanowski (Jun 21 2020 at 08:12):
Yes of course , we are implementing an x-ray clinic and we need statuses like waiting for doctor, waiting for release and so on ...
I thought maybe add extension of secondary statuses and then I saw this
https://fhirblog.com/2017/01/10/extending-a-required-valueset-binding/
so I can add to encounter "_status" put my own statuses and put "unknown" in Encounter.Status but this feels a bit like a hack
the main problem is that "in progress" status is too general and does not really reflects the encounter status
Jose Costa Teixeira (Jun 21 2020 at 08:28):
Nice. I've done that in a BI system :)
Jose Costa Teixeira (Jun 21 2020 at 08:28):
these are not encounter statuses, these are workflow statuses.
Jose Costa Teixeira (Jun 21 2020 at 08:29):
for that, you would use Task resource.
Jose Costa Teixeira (Jun 21 2020 at 08:30):
the easiest, I guess, would be to have a contained Task inside your Encounter, and Task can contain the business statuses and sub-statuses that you need
eyal wolanowski (Jun 21 2020 at 09:17):
Nice !! this is a great idea . Thank you it helped a lot .
René Spronk (Jun 22 2020 at 08:01):
An easier alternative would be to add an extension to identify your own business-sub-status of 'in-progress'. Encounter.status would be 'in-progress', and the extension will identify 9for those that support the extension) what the more detailed status is.
Jay Lyle (Aug 07 2020 at 22:41):
@Jose Costa Teixeira "these are not encounter statuses, these are workflow statuses"
Those seem to be different dimensions of one thing. I like Rene's suggestion, but don't know how to evaluate against yours. You suggest a contained Task: what would be the logical relationship between the Encounter and the Task?
Jose Costa Teixeira (Aug 08 2020 at 09:20):
@Jay Lyle good point, and that is something which will also apply to other task'y resources - careplan, etc.
Jose Costa Teixeira (Aug 08 2020 at 09:21):
so, If there is a workflow around this, I'd say these statuses would be captured in tasks.
Jose Costa Teixeira (Aug 08 2020 at 09:22):
but if the only FHIR resource you expose is an encounter, you can probably do with an extension
Jose Costa Teixeira (Aug 08 2020 at 09:23):
My experience (with a different system, many years ago) was that the variable "encounter status" is not persisted because it has to be calculated in different perspectives, so we needed the individual status.
Jose Costa Teixeira (Aug 08 2020 at 09:25):
questions we encountered: encounter is scheduled to start at 8, patient arrives at 7h45, and doctor arrives at 8h05. How long is the status "waiting for doctor" ? 5 minutes? 20 minutes? The room is clear at 8h10 - what is the status between 8h05 and 8h10?
Jay Lyle (Aug 09 2020 at 14:44):
Some more specific thoughts:
I don't know what 'waiting for doctor' means, but if it means "appointment time reached, patient present in exam room, doctor not yet arrived," then it sounds like "Encounter.status = arrived."
I don't know what 'waiting for release' means either, but it sounds like a status on an image, not the encounter.
To Jose's examples,
Whether the encounter can be "arrived" before the appointment start time seems like a question that either needs to be nailed down in the spec or left to organizational policy. Are there clinical or legal implications to recognizing (or failing to recognize) the presence of the patient?
If the encounter is over at 8:10, I'd assume the Encounter.status would become finished, irrespective of the appointment period. Are there reasons to think otherwise?
Jose Costa Teixeira (Aug 09 2020 at 16:37):
I mean - the room is only available for the patient at 8:10, so both patient and doctor are there.
Jose Costa Teixeira (Aug 09 2020 at 16:43):
If the patient is there and the doctor is there and the room is free, then perhaps the exam starts. Also we wanted to monitor the waiting times of the patient to see if we should change policies (e.g "please don't show up more than 30 mins in advance).
Another implication I recall well it made me appreciate the health system. One hospital wanted to make sure that if the patients were in the waiting room for more than 45 minutes, they wanted to know because that is what mattered to them - patient comfort - and they suggested if people were waiting for more than x minutes, someone should bring tea or coffee.
René Spronk (Aug 10 2020 at 06:04):
One of the key decisions made by the PA committee (for Hl7 v3, presumably this still holds in FHIR) was that encounters (and their details, statuses) should always be viewed from the perspective of the patient, not from the perspective of the healthcare provider. As such an encounter starts when the patient perceives that it starts, which could be the moment they step into the hospital, or the moment they step into the clinician's office.
Last updated: Apr 12 2022 at 19:14 UTC