Skip to content

Commit c7041c9

Browse files
authored
link to MedRequest, not MedOrder
Fixes #308. The issue is that the link to FHIR's MedicationOrder resource no longer resolved. This is because from DSTU2->STU3, FHIR changed the name of this resource from MedicationOrder to MedicationRequest. Instead of pointing to the DSTU2 MedicationOrder resource, I updated the example and link to point to MedicationRequest.
1 parent 4b46762 commit c7041c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/specification/1.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ curl "https://example.com/cds-services"
8989
"id": "medication-echo",
9090
"prefetch": {
9191
"patient": "Patient/{{context.patientId}}",
92-
"medications": "MedicationOrder?patient={{context.patientId}}"
92+
"medications": "MedicationRequest?patient={{context.patientId}}"
9393
}
9494
}
9595
]
@@ -113,7 +113,7 @@ Field | Optionality | Type | Description
113113
`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`
114114
`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.
115115
`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`
116-
`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](http://cds-hooks.org/hooks/).
116+
`context` | REQUIRED | *object* | Hook-specific contextual data that the CDS service will need.<br />For example, with the `medication-prescribe` hook this will include [MedicationRequest](https://www.hl7.org/fhir/medicationrequest.html) being prescribed. For details, see the [Hooks specification](http://cds-hooks.org/hooks/).
117117
`prefetch` | OPTIONAL | *object* | The FHIR data that was prefetched by the EHR (see more information below)
118118

119119
#### hookInstance
@@ -592,4 +592,4 @@ As another example, an extension defined on the discovery response could look li
592592
]
593593
}
594594
```
595-
[OAuth 2.0]: https://oauth.net/2/
595+
[OAuth 2.0]: https://oauth.net/2/

0 commit comments

Comments
 (0)