Skip to content

Commit 80bd112

Browse files
authored
permit PractitionerRole for userId
also update examples. FHIR split PractitionerRole out from FHIR in STU3. Fixes #514
1 parent d24d8c2 commit 80bd112

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/hooks/order-sign.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This hook is intended to replace (deprecate) the `medication-prescribe` and `ord
2020

2121
Field | Optionality | Prefetch Token | Type | Description
2222
----- | -------- | ---- | ---- | ----
23-
`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).<br />For example, `Practitioner/123`
23+
`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`
2424
`patientId` | REQUIRED | Yes | *string* | The FHIR `Patient.id` of the current patient in context
2525
`encounterId` | OPTIONAL | Yes | *string* | The FHIR `Encounter.id` of the current encounter in context
2626
`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 MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with _draft_ status
@@ -34,7 +34,7 @@ Field | Optionality | Prefetch Token | Type | Description
3434
```json
3535
{
3636
"context":{
37-
"userId":"Practitioner/123",
37+
"userId":"PractitionerRole/123",
3838
"patientId":"1288992",
3939
"encounterId":"89284",
4040
"draftOrders":{
@@ -214,7 +214,7 @@ Field | Optionality | Prefetch Token | Type | Description
214214
```json
215215
{
216216
"context":{
217-
"userId":"Practitioner/123",
217+
"userId":"PractitionerRole/123",
218218
"patientId":"1288992",
219219
"encounterId":"89284",
220220
"draftOrders":{
@@ -395,7 +395,7 @@ Field | Optionality | Prefetch Token | Type | Description
395395

396396
```json
397397
"context":{
398-
"userId":"Practitioner/123",
398+
"userId":"Practitioner/abc",
399399
"patientId":"1288992",
400400
"encounterId":"89284",
401401
"draftOrders":{

0 commit comments

Comments
 (0)