You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: old-docs/hooks/order-sign.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,11 @@ The context contains all order details, such as dose, quantity, route, etc,
14
14
although the order has not yet been signed and therefore still exists in a draft status.
15
15
Use this hook when your service requires all order details, and the clinician will accept recommended changes.
16
16
17
+
This hook can also be used when an order or set of orders is being 're-signed' after revision (e.g. change
18
+
to status, extending dates, or other changes allowed to signed orders within the system's workflow). In this
19
+
case, the orders would typically have a status other than 'draft'. In some cases, the hook might fire with a
20
+
mixture of new and revised orderes.
21
+
17
22
This hook is intended to replace (deprecate) the `medication-prescribe` and `order-review` hooks.
18
23
19
24
## Context
@@ -23,7 +28,7 @@ Field | Optionality | Prefetch Token | Type | Description
23
28
`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, `PractitionerRole/123` or `Practitioner/abc`.
24
29
`patientId` | REQUIRED | Yes | *string* | The FHIR `Patient.id` of the current patient in context
25
30
`encounterId` | OPTIONAL | Yes | *string* | The FHIR `Encounter.id` of the current encounter in context
26
-
`draftOrders` | REQUIRED | No | *object* | DSTU2 - FHIR Bundle of MedicationOrder, DiagnosticOrder, DeviceUseRequest, ReferralRequest, ProcedureRequest, NutritionOrder, VisionPrescription with _draft_ status <br/> STU3 - FHIR Bundle of MedicationRequest, ReferralRequest, ProcedureRequest, NutritionOrder, VisionPrescription with _draft_ status <br/> R4 - FHIR Bundle of DeviceRequest, MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with _draft_ status
31
+
`draftOrders` | REQUIRED | No | *object* | DSTU2 - FHIR Bundle of MedicationOrder, DiagnosticOrder, DeviceUseRequest, ReferralRequest, ProcedureRequest, NutritionOrder, VisionPrescription with _draft_ status <br/> STU3 - FHIR Bundle of MedicationRequest, ReferralRequest, ProcedureRequest, NutritionOrder, VisionPrescription with _draft_ status <br/> R4 - FHIR Bundle of DeviceRequest, MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription (typically with _draft_ status)
27
32
28
33
29
34
@@ -543,3 +548,4 @@ Version | Description
543
548
---- | ----
544
549
1.0 | Initial Release
545
550
1.0.1 | Add DeviceRequest to list of order resources for R4.
551
+
1.1.0 | Updated hook to all for use in order-revision situations
0 commit comments