Skip to content

Commit 868b8f8

Browse files
author
Matt Berther
committed
moving patient and encounter into hook-specific context
1 parent c7a23d9 commit 868b8f8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/specification/1.0.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ Field | Priority | Description
111111
`fhirServer` | OPTIONAL | *URL*. The base URL EHR's [FHIR](https://www.hl7.org/fhir/) server. If fhirAuthorization is provided, this field is REQUIRED. The scheme should be `https`
112112
`fhirAuthorization` | OPTIONAL | *object*. A structure holding an OAuth 2.0 bearer access token granting the CDS Service access to FHIR resources, along with supplemental information relating to the token. See the [FHIR Resource Access](#fhir-resource-access) section for more information.
113113
`user` | REQUIRED | *string*. The FHIR resource type + id representing the current user.<br />The type is one of: [Practitioner](https://www.hl7.org/fhir/practitioner.html), [Patient](https://www.hl7.org/fhir/patient.html), or [RelatedPerson](https://www.hl7.org/fhir/relatedperson.html).<br />For example, `Practitioner/123`
114-
`patient` | REQUIRED | *string*. The FHIR `Patient.id` of the current patient in context
115-
`encounter` | OPTIONAL | *string*. The FHIR `Encounter.id` of the current encounter in context
116114
`context` | REQUIRED | *object*. Hook-specific contextual data that the CDS service will need.<br />For example, with the `medication-prescribe` hook this will include [MedicationOrder](https://www.hl7.org/fhir/medicationorder.html) being prescribed.
117115
`prefetch` | OPTIONAL | *object*. The FHIR data that was prefetched by the EHR (see more information below)
118116

@@ -145,9 +143,10 @@ curl
145143
"subject" : "cds-service4"
146144
},
147145
"user" : "Practitioner/example",
148-
"context" : [],
149-
"patient" : "1288992",
150-
"encounter" : "89284",
146+
"context" : {
147+
"patient" : "1288992",
148+
"encounter" : "89284"
149+
},
151150
"prefetch" : {
152151
"patientToGreet" : {
153152
"response" : {

0 commit comments

Comments
 (0)