Skip to content

Commit d0b2005

Browse files
lmckenzikpshek
authored andcommitted
Proposal for new "discharge" hook, initiated by Davinci coverage requirements discovery (#466)
1 parent 1c40b8c commit d0b2005

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

docs/hooks/encounter-discharge.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# `encounter-discharge`
2+
3+
| Metadata | Value
4+
| ---- | ----
5+
| specificationVersion | 1.0
6+
| hookVersion | 1.0
7+
| hookMaturity | 0 - Draft
8+
9+
## Workflow
10+
11+
This hook is invoked when the user is performing the discharge process for an encounter where the notion of 'discharge' is relevant - typically an inpatient encounter. It may be invoked at the start and end of the discharge process or any time between those two points. It allows hook services to intervene in the decision of whether discharge is appropriate, to verify discharge medications, to check for continuity of care planning, to ensure necessary documentation is present for discharge processing, etc.
12+
13+
## Context
14+
15+
The patient who is being discharged and the encounter being ended.
16+
17+
Field | Optionality | Prefetch Token | Type | Description
18+
----- | -------- | ---- | ---- | ----
19+
`userId` | REQUIRED | Yes | *string* | The id of the current user.<br />For this hook, the user is expected to be of type [Practitioner](https://www.hl7.org/fhir/practitioner.html) or [PractitionerRole](https://www.hl7.org/fhir/practitionerrole.html).<br />For example, `Practitioner/123`
20+
`patientId` | REQUIRED | Yes | *string* | The FHIR `Patient.id` of the being discharged
21+
`encounterId` | REQUIRED | Yes | *string* | The FHIR `Encounter.id` of the Encounter being ended
22+
23+
### Examples
24+
25+
```json
26+
"context":{
27+
"userId" : "PractitionerRole/A2340113",
28+
"patientId" : "1288992",
29+
"encounterId" : "456"
30+
}
31+
```
32+
33+
## Change Log
34+
35+
Version | Description
36+
---- | ----
37+
1.0 | Initial Release
38+

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ nav:
2323
- 'order-sign 1' : 'hooks/order-sign.md'
2424
- 'appointment-book 0' : 'hooks/appointment-book.md'
2525
- 'encounter-start 0' : 'hooks/encounter-start.md'
26+
- 'encounter-discharge 0' : 'hooks/encounter-discharge.md'
2627
- Quick Start: 'quickstart.md'
2728
- Best Practices: 'best-practices.md'
2829
- Examples: 'examples.md'

0 commit comments

Comments
 (0)