Closed KevinMayfield closed 1 year ago
Describe the bug
The example in the OAS spec for MedicationStatement has several errors which fails schema validation. A corrected version is below.
Note NHSDigital version (from IOPS) of UKCore-MedicationStatement does not support the use of MedicationRequest as a contained resource. Please see (APIM) https://nhsd-confluence.digital.nhs.uk/display/APM/Designing+your+FHIR+API#DesigningyourFHIRAPI-using_containedUsingcontainedresources
{ "resourceType": "MedicationStatement", "id": "44f85d15-8744-47c2-a790-4f5e38aacdb0", "identifier": [ { "system": "https://tools.ietf.org/html/rfc4122", "value": "123jkwndf-1234-dgdg-134dd-4f5e38aacdb0" } ], "contained": [ { "resourceType": "MedicationRequest", "id": "7e68abae-a50a-4dd2-8445-7a2aa9936bee", "status": "completed", "intent": "plan", "medicationReference": { "reference": "#8b67891-df9n-3nfu-jnvc8-18s08fvhs0" }, "subject": { "reference": "Patient/9000000009" }, "authoredOn": "2018-01-06T00:00:00.000Z", "requester": { "reference": "Patient/9000000009" }, "substitution": { "allowedBoolean": false }, "courseOfTherapyType": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", "code": "continuous" } ] } ] }, { "resourceType": "Medication", "id": "8b67891-df9n-3nfu-jnvc8-18s08fvhs0", "code": { "coding": [ { "system": "http://snomed.info/ct", "code": 3113111000001106, "display": "Pulmicort 100 Turbohaler (AstraZeneca UK Ltd)" } ] } }, { "resourceType": "MedicationRequest", "id": "7e68abae-a50a-4dd2-8445-7a2aa9936bee", "basedOn": [ { "reference": "7e68abae-a50a-4dd2-8445-7a2aa9936bee" } ], "status": "completed", "intent": "order", "medicationReference": { "reference": "#8b67891-df9n-3nfu-jnvc8-18s08fvhs0" }, "subject": { "reference": "Patient/04603d77-1a4e-4d63-b246-d7504f8bd833" }, "authoredOn": "2018-01-06T00:00:00.000Z", "requester": { "reference": "Patient/04603d77-1a4e-4d63-b246-d7504f8bd833" }, "substitution": { "allowedBoolean": false }, "courseOfTherapyType": [ { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy", "code": "continuous" } ] } ] } ], "status": "active", "medicationReference": { "reference": "8b67891-df9n-3nfu-jnvc8-18s08fvhs0" }, "subject": { "reference": "Patient/9000000009" }, "effectivePeriod": { "start": "2022-10-23T00:00:00.000Z", "end": "2023-01-10T00:00:00.000Z" }, "dateAsserted": "2020-01-12T00:00:00.000Z", "basedOn": [{ "reference": "#7e68abae-a50a-4dd2-8445-7a2aa9936bee" }] }
Example now been updated. Will be changed to bundle under #38
Describe the bug
The example in the OAS spec for MedicationStatement has several errors which fails schema validation. A corrected version is below.
Note NHSDigital version (from IOPS) of UKCore-MedicationStatement does not support the use of MedicationRequest as a contained resource. Please see (APIM) https://nhsd-confluence.digital.nhs.uk/display/APM/Designing+your+FHIR+API#DesigningyourFHIRAPI-using_containedUsingcontainedresources