-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from fhir-fi/encounter_managing_organization
Describe how to query ward encounters
- Loading branch information
Showing
4 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Instance: EncounterAmbulatory | ||
InstanceOf: FiBaseEncounter | ||
Title: "Encounter - patient primary care visit" | ||
Description: "An example of a FI Base encounter where a patient has completed a visit in primary care." | ||
Usage: #example | ||
* id = "id-for-visit" | ||
* identifier.use = #usual | ||
* identifier.value = "id-for-visit" | ||
* status = #finished | ||
* class.system = "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode" | ||
* class.code = #AMB | ||
* class.display = "ambulatory" | ||
* subject.reference = "Patient/id-for-patient" | ||
* period.start = "2022-02-28T15:03:00+02:00" | ||
* period.end = "2022-02-28T15:33:00+02:00" | ||
* serviceProvider.reference = "Organization/1.2.246.10.2085212.10.1314" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Instance: EncounterAtWardInProgress | ||
InstanceOf: FiBaseEncounter | ||
Title: "Encounter - patient is currently receiving care at a ward treating surgical patients" | ||
Description: "An example of a FI Base encounter where a patient is currently receiving care at a ward." | ||
Usage: #example | ||
* id = "id-for-ward-encounter" | ||
* identifier.use = #usual | ||
* identifier.value = "id-for-ward-encounter" | ||
* status = #in-progress | ||
* class.system = "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode" | ||
* class.code = #IMP | ||
* class.display = "inpatient encounter" | ||
* subject.reference = "Patient/id-for-patient" | ||
* period.start = "2022-02-27T01:03:00+02:00" | ||
* serviceProvider.reference = "Organization/1.2.246.10.8286189.10.100012" | ||
* location[0].status = #active | ||
* location[0].period.start = "2022-02-27T01:03:00+02:00" | ||
* location[0].location.reference = "Location/id-for-bed-3" |
48 changes: 48 additions & 0 deletions
48
input/pagecontent/Encounter-id-for-ward-encounter-intro.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#### How to find a patient in a ward? | ||
|
||
Many systems have a need to answer the question: "How to find patients/encounters that are at ward X | ||
at moment T?". | ||
|
||
There are key points to consider when forming the search criteria: | ||
|
||
* We are most likely interested only in `IMP` (inpatient encounter) encounters, so we should filter by `class`. | ||
* We are interested only in `in-progress` encounters, so we need to filter by `status`. | ||
* We are most likely interested in querying by organizational hierarchy, the organizational unit (ward) responsible for the patient (not physical location). | ||
|
||
Organizational ward should be communicated using the `serviceProvider` property. | ||
|
||
FHIR request parameters: | ||
`GET /Encounter` | ||
|
||
* class = `IMP` | ||
* status = `in-progress` | ||
* period `gt` and `le` -filters as per target moment | ||
* serviceProvider = id of the ward organization resource | ||
|
||
Historically some systems keep the ward encounter active when the patient is sent to ICU. Leaving | ||
the encounter in an `in-progress` state would cause a gotcha: encounter says that it's active but | ||
patient is not really there. Using encounter´s `location` elements could be used to express that | ||
the patient has no active location in the ward, but this might be difficult to process for client | ||
systems and depend heavily on the organizational and location structures of a facility. Because of | ||
these problems, the encounter SHOULD not be kept `in-progress` when the patient is in an ICU period | ||
(if there is a need for "recycling" the ward period encounter, it should be set to `finished` and | ||
then back to `in-progress` upon return from the ICU). | ||
|
||
##### Why not use Location.managingOrganization? | ||
|
||
`Encounter`s `location` -field is a reference to `Location` that has a field | ||
`managingOrganization`. Use of this to find the organization responsible for the patient is | ||
problematic. `Location.managingOrganization` might change for different reasons (a room is | ||
assigned to another organization) and this would have an unexpected effect on the | ||
responsibility-concern. `Location.managingOrganization` is "too far" from the encounter to be | ||
useful in this context. | ||
|
||
##### Querying by physical location | ||
|
||
Querying by location is also an option. Here the focus is on the physical location and not the | ||
organizational responsibility towards the patient. | ||
[This blog post](https://fhirblog.com/2013/10/24/adventures-in-searching-getting-a-list-of-patients-in-a-ward/) | ||
will describe the process. | ||
|
||
See [the guide](StructureDefinition-fi-base-encounter-patients-in-ward.html) for how to fetch | ||
patients in a ward. |
14 changes: 14 additions & 0 deletions
14
input/pagecontent/StructureDefinition-fi-base-encounter-intro.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
### Scope and Usage | ||
|
||
### Relation to Finnish Palvelutapahtuma | ||
|
||
TODO describe relation | ||
|
||
See the national spec https://www.kanta.fi/jarjestelmakehittajat/liite-2-palvelutapahtumien-esimerkkeja | ||
|
||
### Organizational responsibility | ||
|
||
The unit responsible for the encounter should be communicated using the `serviceProvider` property. | ||
|
||
For instance, there's a [detailed example with explanations](Encounter-id-for-ward-encounter.html) | ||
how to fetch patients in a ward. |