Skip to content

Commit 59abe8a

Browse files
authored
Merge pull request #385 from cds-hooks/iss308-fix-link-to-MedRequest
link to MedRequest, not MedOrder in med-prescribe example Use patient id to explain context, not medorder/medrequest
2 parents 981fa5f + 1a1e2a4 commit 59abe8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/specification/1.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ curl "https://example.com/cds-services"
9191
"id": "medication-echo",
9292
"prefetch": {
9393
"patient": "Patient/{{context.patientId}}",
94-
"medications": "MedicationOrder?patient={{context.patientId}}"
94+
"medications": "MedicationRequest?patient={{context.patientId}}"
9595
}
9696
}
9797
]
@@ -112,7 +112,7 @@ Field | Optionality | Type | Description
112112
`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`
113113
`fhirAuthorization` | OPTIONAL | *object* | A structure holding an [OAuth 2.0][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.
114114
`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`
115-
`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. For details, see the Hooks specification page.
115+
`context` | REQUIRED | *object* | Hook-specific contextual data that the CDS service will need.<br />For example, with the `patient-view` hook this will include the FHIR identifier of the [Patient](https://www.hl7.org/fhir/patient.html) being viewed. For details, see the Hooks specification page.
116116
`prefetch` | OPTIONAL | *object* | The FHIR data that was prefetched by the EHR (see more information below)
117117

118118
#### hookInstance

0 commit comments

Comments
 (0)