{"openapi":"3.0.0","info":{"contact":{"email":"api.management@nhs.net","name":"FHIR Converter","url":"https://digital.nhs.uk/developer/help-and-support"},"description":"\n<div class=\"nhsd-m-emphasis-box nhsd-m-emphasis-box--emphasis nhsd-!t-margin-bottom-6\" aria-label=\"Highlighted Information\">\n    <div class=\"nhsd-a-box nhsd-a-box--border-blue\">\n        <div class=\"nhsd-m-emphasis-box__image-box\">\n            <figure class=\"nhsd-a-image\">\n                <picture class=\"nhsd-a-image__picture\">\n                    <img src=\"http://digital.nhs.uk/binaries/content/gallery/icons/info.svg?colour=231f20\" alt=\"\" style=\"object-fit:fill\">\n                </picture>\n            </figure>\n        </div>\n        <div class=\"nhsd-m-emphasis-box__content-box\">\n            <div data-uipath=\"website.contentblock.emphasis.content\" class=\"nhsd-t-word-break\"><p class=\"nhsd-t-body\">This API is <a href=\"https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#statuses\">retired</a> and not available for use.</p></div>\n        </div>\n    </div>\n</div>\n\n## Overview\nUse this API to convert resource types `MedicationRequest` and `MedicationStatements` from STU3 to FHIR R4 and vice versa.\n\nYou can:\n  - post either a `MedicationRequest` or `MedicationStatement`\n\nYou cannot:\n  - convert between any other resource types\n\nTo use this API:\n1. Send your source payload to this API.\n2. This API converts your source payload to the target version.\n3. You receive the converted payload in the response.\n\n## Who can use this API\nThis API can only be used where there is a legal basis to do so. Make sure you have a valid use case before you go too far with your development. You must do this before you can go live (see ‘Onboarding’ below).\n\n## API status and roadmap\nThis API is [retired](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#statuses) and not available for use.\n\nIf you have any other queries, please [contact us](https://digital.nhs.uk/developer/help-and-support).\n\n### Roadmap\n\nTo see our roadmap, or to suggest, comment or vote on features for this API, see our [interactive product backlog](https://nhs-digital-api-management.featureupvote.com/?order=popular&filter=allexceptdone&tag=fhir-converter&deleted=0#controls).\n\nIf you have any other queries, [contact us](https://digital.nhs.uk/developer/help-and-support).\n\n## Technology\nThis API is [RESTful](https://digital.nhs.uk/developer/guides-and-documentation/our-api-technologies#basic-rest) and uses HTTP POST to submit data. It is synchronous - you receive your converted resource in the response body.\n\nIt conforms to the [FHIR](https://digital.nhs.uk/developer/guides-and-documentation/our-api-technologies#fhir) global standard for health care data exchange, specifically to [FHIR R4 (v4.0.1)](https://hl7.org/fhir/r4/), except that it does not support the [capabilities](http://hl7.org/fhir/R4/http.html#capabilities) interaction.\n\n## Network access\nThis API is available on the internet.\n\nFor more details, see [Network access for APIs](https://digital.nhs.uk/developer/guides-and-documentation/network-access-for-apis).\n\n## Security and authorisation\n### Application-restricted access\nThis access mode is [application-restricted](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#application-restricted-apis),\nmeaning we authenticate the calling application but not the end user.\n\nThis access mode uses the following security pattern:\n* [Application-restricted RESTful API - signed JWT authentication](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/application-restricted-restful-apis-signed-jwt-authentication)\n\n## Supported FHIR resources and extensions\nThis service supports conversion from STU3 to R4 and vice versa for following FHIR resources:\n- Bundle\n- MedicationRequest\n- MedicationStatement\n\nFor STU3 to R4 conversion, this service can convert various extensions as listed in the version \n[v0.1.0](https://github.com/NHSDigital/fhir-transforms/tree/a60eac0ea4e0ce62075378b36fac00eff7f0ce82) of the [fhir-transform](https://github.com/NHSDigital/fhir-transforms) repository. This \nrepository contains the mapping definitions for various [UK Core](https://digital.nhs.uk/developer/api-catalogue/fhir-uk-core-standards) and [Care Connect](https://digital.nhs.uk/developer/api-catalogue/care-connect-fhir-standards) extensions.\n\n\n## Environments and testing\n\n| Environment       | Base URL                                                               |\n| ----------------- | ---------------------------------------------------------------------- |\n| Integration test  | `https://int.api.service.nhs.uk/fhir-converter`                        |\n| Production        | Not yet available                                                      |\n\nOur [integration test environment](https://digital.nhs.uk/developer/guides-and-documentation/testing#integration-testing):\n- is for formal integration testing\n- is for receiving data quality reports of test data\n\nFor more details see [integration testing with our RESTful APIs](https://digital.nhs.uk/developer/guides-and-documentation/testing#integration-testing-with-our-restful-apis).\n\n## Errors\nWe use standard HTTP status codes to show whether an API request succeeded or not. They are usually in the range:\n\n* 200 to 299 if it succeeded, including code 202 if it was accepted by an API that needs to wait for further action\n* 400 to 499 if it failed because of a client error by your application\n* 500 to 599 if it failed because of an error on our server\n\nErrors specific to each API are shown in the Endpoints section, under Response. See our [reference guide](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#http-status-codes) for more on errors.    \n","title":"FHIR Converter","version":"v1.0.288-alpha"},"servers":[{"description":"Sandbox environment.","url":"https://sandbox.api.service.nhs.uk/fhir-converter"},{"description":"Integration test environment.","url":"https://int.api.service.nhs.uk/fhir-converter"},{"description":"Production environment.","url":"https://api.service.nhs.uk/fhir-converter"}],"tags":[{"name":"FHIR Converter"}],"paths":{"/$convert":{"post":{"description":"## Overview\nUse this endpoint to convert resource types `MedicationRequest` and `MedicationStatements` from FHIR STU3 to FHIR R4 and vice versa.\n","operationId":"convert","requestBody":{"content":{"application/fhir+json; fhirVersion=3.0":{"examples":{"MedicationRequest":{"value":"{\n  \"resourceType\": \"MedicationRequest\",\n  \"text\": {\n      \"status\": \"generated\",\n      \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: medrx002 </p> <p> <b>identifier</b>: 12345 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>intent</b>: order </p> <p> <b>medication</b>: <a>prescribed medication</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>context</b>: <a>encounter that leads to this prescription</a> </p> <p> <b>authoredOn</b>: 01/03/2015 </p> <h3>Requesters</h3> <table> <tr> <td>-</td> <td> <b>Agent</b> </td> <td> <b>OnBehalfOf</b> </td> </tr> <tr> <td>*</td> <td> <a>Patrick Pump</a> </td> <td> <a>Organization/f002</a> </td> </tr> </table> <p> <b>reasonCode</b>: Essential hypertension (disorder) <span>(Details : {SNOMED CT code '59621000' = 'Essential hypertension', given as 'Essential hypertension (disorder)'})</span> </p> <p> <b>dosageInstruction</b>: </p> </div>\"\n  },\n  \"identifier\": [\n      {\n          \"use\": \"official\",\n          \"system\": \"http://www.bmc.nl/portal/prescriptions\",\n          \"value\": \"12345\"\n      }\n  ],\n  \"status\": \"active\",\n  \"intent\": \"order\",\n  \"medicationReference\": {\n      \"reference\": \"Medication/med0316\",\n      \"display\": \"prescribed medication\"\n  },\n  \"subject\": {\n      \"reference\": \"Patient/pat1\",\n      \"display\": \"Donald Duck\"\n  },\n  \"context\": {\n      \"reference\": \"Encounter/f001\",\n      \"display\": \"encounter that leads to this prescription\"\n  },\n  \"authoredOn\": \"2015-03-01\",\n  \"requester\": {\n      \"agent\": {\n          \"reference\": \"Practitioner/f007\",\n          \"display\": \"Patrick Pump\"\n      }\n  },\n  \"reasonCode\": [\n      {\n          \"coding\": [\n              {\n                  \"system\": \"http://snomed.info/sct\",\n                  \"code\": \"59621000\",\n                  \"display\": \"Essential hypertension (disorder)\"\n              }\n          ]\n      }\n  ],\n  \"dosageInstruction\": [\n      {\n          \"sequence\": 1,\n          \"text\": \"Take one tablet daily as directed\"\n      }\n  ]\n}"},"MedicationStatement":{"value":"{\n    \"resourceType\": \"MedicationStatement\",\n    \"id\": \"example001\",\n    \"text\": {\n        \"status\": \"generated\",\n        \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: example001 </p> <p> <b>contained</b>: </p> <p> <b>identifier</b>: 12345689 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>category</b>: Inpatient <span>(Details : {http://hl7.org/fhir/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span> </p> <p> <b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; isBrand; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span> </p> <p> <b>effective</b>: 23/01/2015 </p> <p> <b>dateAsserted</b>: 22/02/2015 </p> <p> <b>informationSource</b>: <a>Donald Duck</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>derivedFrom</b>: <a>MedicationRequest/medrx002</a> </p> <p> <b>taken</b>: n </p> <p> <b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span> </p> <p> <b>note</b>: Patient indicates they miss the occasional dose </p> <p> <b>dosage</b>: </p> </div>\"\n    },\n    \"contained\": [\n        {\n            \"resourceType\": \"Medication\",\n            \"id\": \"med0309\",\n            \"code\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n                        \"code\": \"50580-506-02\",\n                        \"display\": \"Tylenol PM\"\n                    }\n                ]\n            },\n            \"form\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"385057009\",\n                        \"display\": \"Film-coated tablet (qualifier value)\"\n                    }\n                ]\n            },\n            \"ingredient\": [\n                {\n                    \"itemCodeableConcept\": {\n                        \"coding\": [\n                            {\n                                \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n                                \"code\": \"315266\",\n                                \"display\": \"Acetaminophen 500 MG\"\n                            }\n                        ]\n                    },\n                    \"amount\": {\n                        \"numerator\": {\n                            \"value\": 500,\n                            \"system\": \"http://unitsofmeasure.org\",\n                            \"code\": \"mg\"\n                        },\n                        \"denominator\": {\n                            \"value\": 1,\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"Tab\"\n                        }\n                    }\n                },\n                {\n                    \"itemCodeableConcept\": {\n                        \"coding\": [\n                            {\n                                \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n                                \"code\": \"901813\",\n                                \"display\": \"Diphenhydramine Hydrochloride 25 mg\"\n                            }\n                        ]\n                    },\n                    \"amount\": {\n                        \"numerator\": {\n                            \"value\": 25,\n                            \"system\": \"http://unitsofmeasure.org\",\n                            \"code\": \"mg\"\n                        },\n                        \"denominator\": {\n                            \"value\": 1,\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"Tab\"\n                        }\n                    }\n                }\n            ],\n            \"package\": {\n                \"batch\": [\n                    {\n                        \"lotNumber\": \"9494788\",\n                        \"expirationDate\": \"2017-05-22\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"identifier\": [\n        {\n            \"use\": \"official\",\n            \"system\": \"http://www.bmc.nl/portal/medstatements\",\n            \"value\": \"12345689\"\n        }\n    ],\n    \"status\": \"active\",\n    \"category\": {\n        \"coding\": [\n            {\n                \"system\": \"http://hl7.org/fhir/medication-statement-category\",\n                \"code\": \"inpatient\",\n                \"display\": \"Inpatient\"\n            }\n        ]\n    },\n    \"medicationReference\": {\n        \"reference\": \"#med0309\"\n    },\n    \"effectiveDateTime\": \"2015-01-23\",\n    \"dateAsserted\": \"2015-02-22\",\n    \"informationSource\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"subject\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"derivedFrom\": [\n        {\n            \"reference\": \"MedicationRequest/medrx002\"\n        }\n    ],\n    \"reasonCode\": [\n        {\n            \"coding\": [\n                {\n                    \"system\": \"http://snomed.info/sct\",\n                    \"code\": \"32914008\",\n                    \"display\": \"Restless Legs\"\n                }\n            ]\n        }\n    ],\n    \"note\": [\n        {\n            \"text\": \"Patient indicates they miss the occasional dose\"\n        }\n    ],\n    \"dosage\": [\n        {\n            \"sequence\": 1,\n            \"text\": \"1-2 tablets once daily at bedtime as needed for restless legs\",\n            \"additionalInstruction\": [\n                {\n                    \"text\": \"Taking at bedtime\"\n                }\n            ],\n            \"timing\": {\n                \"repeat\": {\n                    \"frequency\": 1,\n                    \"period\": 1,\n                    \"periodUnit\": \"d\"\n                }\n            },\n            \"asNeededCodeableConcept\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"32914008\",\n                        \"display\": \"Restless Legs\"\n                    }\n                ]\n            },\n            \"route\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"26643006\",\n                        \"display\": \"Oral Route\"\n                    }\n                ]\n            },\n            \"doseRange\": {\n                \"low\": {\n                    \"value\": 1,\n                    \"unit\": \"TAB\",\n                    \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                    \"code\": \"TAB\"\n                },\n                \"high\": {\n                    \"value\": 2,\n                    \"unit\": \"TAB\",\n                    \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                    \"code\": \"TAB\"\n                }\n            }\n        }\n    ]\n}"}},"schema":{}},"application/fhir+xml; fhirVersion=3.0":{"examples":{"MedicationRequest":{"value":"<MedicationRequest xmlns=\"http://hl7.org/fhir\">\n  <text>\n    <status value=\"generated\"/>\n    <div xmlns=\"http://www.w3.org/1999/xhtml\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: medrx002 </p> <p> <b>identifier</b>: 12345 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>intent</b>: order </p> <p> <b>medication</b>: <a>prescribed medication</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>context</b>: <a>encounter that leads to this prescription</a> </p> <p> <b>authoredOn</b>: 01/03/2015 </p> <h3>Requesters</h3> <table> <tr> <td>-</td> <td> <b>Agent</b> </td> <td> <b>OnBehalfOf</b> </td> </tr> <tr> <td>*</td> <td> <a>Patrick Pump</a> </td> <td> <a>Organization/f002</a> </td> </tr> </table> <p> <b>reasonCode</b>: Essential hypertension (disorder) <span>(Details : {SNOMED CT code '59621000' = 'Essential hypertension', given as 'Essential hypertension (disorder)'})</span> </p> <p> <b>dosageInstruction</b>: </p> </div>\n  </text>\n  <identifier>\n    <use value=\"official\"/>\n    <system value=\"http://www.bmc.nl/portal/prescriptions\"/>\n    <value value=\"12345\"/>\n  </identifier>\n  <status value=\"active\"/>\n  <intent value=\"order\"/>\n  <medicationReference>\n    <reference value=\"Medication/med0316\"/>\n    <display value=\"prescribed medication\"/>\n  </medicationReference>\n  <subject>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </subject>\n  <context>\n    <reference value=\"Encounter/f001\"/>\n    <display value=\"encounter that leads to this prescription\"/>\n  </context>\n  <authoredOn value=\"2015-03-01\"/>\n  <requester>\n    <agent>\n      <reference value=\"Practitioner/f007\"/>\n      <display value=\"Patrick Pump\"/>\n    </agent>\n  </requester>\n  <reasonCode>\n    <coding>\n      <system value=\"http://snomed.info/sct\"/>\n      <code value=\"59621000\"/>\n      <display value=\"Essential hypertension (disorder)\"/>\n    </coding>\n  </reasonCode>\n  <dosageInstruction>\n    <sequence value=\"1\"/>\n    <text value=\"Take one tablet daily as directed\"/>\n  </dosageInstruction>\n</MedicationRequest>\n"},"MedicationStatement":{"value":"<MedicationStatement xmlns=\"http://hl7.org/fhir\">\n  <id value=\"example001\"/>\n  <text>\n    <status value=\"generated\"/>\n    <div xmlns=\"http://www.w3.org/1999/xhtml\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: example001 </p> <p> <b>contained</b>: </p> <p> <b>identifier</b>: 12345689 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>category</b>: Inpatient <span>(Details : {http://hl7.org/fhir/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span> </p> <p> <b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; isBrand; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span> </p> <p> <b>effective</b>: 23/01/2015 </p> <p> <b>dateAsserted</b>: 22/02/2015 </p> <p> <b>informationSource</b>: <a>Donald Duck</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>derivedFrom</b>: <a>MedicationRequest/medrx002</a> </p> <p> <b>taken</b>: n </p> <p> <b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span> </p> <p> <b>note</b>: Patient indicates they miss the occasional dose </p> <p> <b>dosage</b>: </p> </div>\n  </text>\n  <contained>\n    <Medication xmlns=\"http://hl7.org/fhir\">\n      <id value=\"med0309\"/>\n      <code>\n        <coding>\n          <system value=\"http://hl7.org/fhir/sid/ndc\"/>\n          <code value=\"50580-506-02\"/>\n          <display value=\"Tylenol PM\"/>\n        </coding>\n      </code>\n      <form>\n        <coding>\n          <system value=\"http://snomed.info/sct\"/>\n          <code value=\"385057009\"/>\n          <display value=\"Film-coated tablet (qualifier value)\"/>\n        </coding>\n      </form>\n      <ingredient>\n        <itemCodeableConcept>\n          <coding>\n            <system value=\"http://www.nlm.nih.gov/research/umls/rxnorm\"/>\n            <code value=\"315266\"/>\n            <display value=\"Acetaminophen 500 MG\"/>\n          </coding>\n        </itemCodeableConcept>\n        <amount>\n          <numerator>\n            <value value=\"500\"/>\n            <system value=\"http://unitsofmeasure.org\"/>\n            <code value=\"mg\"/>\n          </numerator>\n          <denominator>\n            <value value=\"1\"/>\n            <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n            <code value=\"Tab\"/>\n          </denominator>\n        </amount>\n      </ingredient>\n      <ingredient>\n        <itemCodeableConcept>\n          <coding>\n            <system value=\"http://www.nlm.nih.gov/research/umls/rxnorm\"/>\n            <code value=\"901813\"/>\n            <display value=\"Diphenhydramine Hydrochloride 25 mg\"/>\n          </coding>\n        </itemCodeableConcept>\n        <amount>\n          <numerator>\n            <value value=\"25\"/>\n            <system value=\"http://unitsofmeasure.org\"/>\n            <code value=\"mg\"/>\n          </numerator>\n          <denominator>\n            <value value=\"1\"/>\n            <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n            <code value=\"Tab\"/>\n          </denominator>\n        </amount>\n      </ingredient>\n      <package>\n        <batch>\n          <lotNumber value=\"9494788\"/>\n          <expirationDate value=\"2017-05-22\"/>\n        </batch>\n      </package>\n    </Medication>\n  </contained>\n  <identifier>\n    <use value=\"official\"/>\n    <system value=\"http://www.bmc.nl/portal/medstatements\"/>\n    <value value=\"12345689\"/>\n  </identifier>\n  <status value=\"active\"/>\n  <category>\n    <coding>\n      <system value=\"http://hl7.org/fhir/medication-statement-category\"/>\n      <code value=\"inpatient\"/>\n      <display value=\"Inpatient\"/>\n    </coding>\n  </category>\n  <medicationReference>\n    <reference value=\"#med0309\"/>\n  </medicationReference>\n  <effectiveDateTime value=\"2015-01-23\"/>\n  <dateAsserted value=\"2015-02-22\"/>\n  <informationSource>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </informationSource>\n  <subject>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </subject>\n  <derivedFrom>\n    <reference value=\"MedicationRequest/medrx002\"/>\n  </derivedFrom>\n  <reasonCode>\n    <coding>\n      <system value=\"http://snomed.info/sct\"/>\n      <code value=\"32914008\"/>\n      <display value=\"Restless Legs\"/>\n    </coding>\n  </reasonCode>\n  <note>\n    <text value=\"Patient indicates they miss the occasional dose\"/>\n  </note>\n  <dosage>\n    <sequence value=\"1\"/>\n    <text value=\"1-2 tablets once daily at bedtime as needed for restless legs\"/>\n    <additionalInstruction>\n      <text value=\"Taking at bedtime\"/>\n    </additionalInstruction>\n    <timing>\n      <repeat>\n        <frequency value=\"1\"/>\n        <period value=\"1\"/>\n        <periodUnit value=\"d\"/>\n      </repeat>\n    </timing>\n    <asNeededCodeableConcept>\n      <coding>\n        <system value=\"http://snomed.info/sct\"/>\n        <code value=\"32914008\"/>\n        <display value=\"Restless Legs\"/>\n      </coding>\n    </asNeededCodeableConcept>\n    <route>\n      <coding>\n        <system value=\"http://snomed.info/sct\"/>\n        <code value=\"26643006\"/>\n        <display value=\"Oral Route\"/>\n      </coding>\n    </route>\n    <doseRange>\n      <low>\n        <value value=\"1\"/>\n        <unit value=\"TAB\"/>\n        <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n        <code value=\"TAB\"/>\n      </low>\n      <high>\n        <value value=\"2\"/>\n        <unit value=\"TAB\"/>\n        <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n        <code value=\"TAB\"/>\n      </high>\n    </doseRange>\n  </dosage>\n</MedicationStatement>\n"}},"schema":{}},"application/fhir+json; fhirVersion=4.0":{"examples":{"MedicationRequest":{"value":"{\n    \"resourceType\": \"MedicationRequest\",\n    \"text\": {\n        \"status\": \"generated\",\n        \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: medrx002 </p> <p> <b>identifier</b>: 12345 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>intent</b>: order </p> <p> <b>medication</b>: <a>prescribed medication</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>context</b>: <a>encounter that leads to this prescription</a> </p> <p> <b>authoredOn</b>: 01/03/2015 </p> <h3>Requesters</h3> <table> <tr> <td>-</td> <td> <b>Agent</b> </td> <td> <b>OnBehalfOf</b> </td> </tr> <tr> <td>*</td> <td> <a>Patrick Pump</a> </td> <td> <a>Organization/f002</a> </td> </tr> </table> <p> <b>reasonCode</b>: Essential hypertension (disorder) <span>(Details : {SNOMED CT code '59621000' = 'Essential hypertension', given as 'Essential hypertension (disorder)'})</span> </p> <p> <b>dosageInstruction</b>: </p> </div>\"\n    },\n    \"identifier\": [\n        {\n            \"use\": \"official\",\n            \"system\": \"http://www.bmc.nl/portal/prescriptions\",\n            \"value\": \"12345\"\n        }\n    ],\n    \"status\": \"active\",\n    \"intent\": \"order\",\n    \"medicationReference\": {\n        \"reference\": \"Medication/med0316\",\n        \"display\": \"prescribed medication\"\n    },\n    \"subject\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"encounter\": {\n        \"reference\": \"Encounter/f001\",\n        \"display\": \"encounter that leads to this prescription\"\n    },\n    \"authoredOn\": \"2015-03-01\",\n    \"requester\": {\n        \"reference\": \"Practitioner/f007\",\n        \"display\": \"Patrick Pump\"\n    },\n    \"reasonCode\": [\n        {\n            \"coding\": [\n                {\n                    \"system\": \"http://snomed.info/sct\",\n                    \"code\": \"59621000\",\n                    \"display\": \"Essential hypertension (disorder)\"\n                }\n            ]\n        }\n    ],\n    \"dosageInstruction\": [\n        {\n            \"sequence\": 1,\n            \"text\": \"Take one tablet daily as directed\"\n        }\n    ]\n}"},"MedicationStatement":{"value":"{\n    \"resourceType\": \"MedicationStatement\",\n    \"id\": \"example001\",\n    \"text\": {\n        \"status\": \"generated\",\n        \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: example001 </p> <p> <b>contained</b>: </p> <p> <b>identifier</b>: 12345689 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>category</b>: Inpatient <span>(Details : {http://hl7.org/fhir/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span> </p> <p> <b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; isBrand; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span> </p> <p> <b>effective</b>: 23/01/2015 </p> <p> <b>dateAsserted</b>: 22/02/2015 </p> <p> <b>informationSource</b>: <a>Donald Duck</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>derivedFrom</b>: <a>MedicationRequest/medrx002</a> </p> <p> <b>taken</b>: n </p> <p> <b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span> </p> <p> <b>note</b>: Patient indicates they miss the occasional dose </p> <p> <b>dosage</b>: </p> </div>\"\n    },\n    \"contained\": [\n        {\n            \"resourceType\": \"Medication\",\n            \"id\": \"med0309\",\n            \"code\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n                        \"code\": \"50580-506-02\",\n                        \"display\": \"Tylenol PM\"\n                    }\n                ]\n            },\n            \"form\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"385057009\",\n                        \"display\": \"Film-coated tablet (qualifier value)\"\n                    }\n                ]\n            },\n            \"ingredient\": [\n                {\n                    \"itemCodeableConcept\": {\n                        \"coding\": [\n                            {\n                                \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n                                \"code\": \"315266\",\n                                \"display\": \"Acetaminophen 500 MG\"\n                            }\n                        ]\n                    },\n                    \"strength\": {\n                        \"numerator\": {\n                            \"value\": 500,\n                            \"system\": \"http://unitsofmeasure.org\",\n                            \"code\": \"mg\"\n                        },\n                        \"denominator\": {\n                            \"value\": 1,\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"Tab\"\n                        }\n                    }\n                },\n                {\n                    \"itemCodeableConcept\": {\n                        \"coding\": [\n                            {\n                                \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n                                \"code\": \"901813\",\n                                \"display\": \"Diphenhydramine Hydrochloride 25 mg\"\n                            }\n                        ]\n                    },\n                    \"strength\": {\n                        \"numerator\": {\n                            \"value\": 25,\n                            \"system\": \"http://unitsofmeasure.org\",\n                            \"code\": \"mg\"\n                        },\n                        \"denominator\": {\n                            \"value\": 1,\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"Tab\"\n                        }\n                    }\n                }\n            ],\n            \"batch\": {\n                \"lotNumber\": \"9494788\",\n                \"expirationDate\": \"2017-05-22\"\n            }\n        }\n    ],\n    \"identifier\": [\n        {\n            \"use\": \"official\",\n            \"system\": \"http://www.bmc.nl/portal/medstatements\",\n            \"value\": \"12345689\"\n        }\n    ],\n    \"status\": \"active\",\n    \"category\": {\n        \"coding\": [\n            {\n                \"system\": \"http://hl7.org/fhir/medication-statement-category\",\n                \"code\": \"inpatient\",\n                \"display\": \"Inpatient\"\n            }\n        ]\n    },\n    \"medicationReference\": {\n        \"reference\": \"#med0309\"\n    },\n    \"subject\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"effectiveDateTime\": \"2015-01-23\",\n    \"dateAsserted\": \"2015-02-22\",\n    \"informationSource\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"derivedFrom\": [\n        {\n            \"reference\": \"MedicationRequest/medrx002\"\n        }\n    ],\n    \"reasonCode\": [\n        {\n            \"coding\": [\n                {\n                    \"system\": \"http://snomed.info/sct\",\n                    \"code\": \"32914008\",\n                    \"display\": \"Restless Legs\"\n                }\n            ]\n        }\n    ],\n    \"note\": [\n        {\n            \"text\": \"Patient indicates they miss the occasional dose\"\n        }\n    ],\n    \"dosage\": [\n        {\n            \"sequence\": 1,\n            \"text\": \"1-2 tablets once daily at bedtime as needed for restless legs\",\n            \"additionalInstruction\": [\n                {\n                    \"text\": \"Taking at bedtime\"\n                }\n            ],\n            \"timing\": {\n                \"repeat\": {\n                    \"frequency\": 1,\n                    \"period\": 1,\n                    \"periodUnit\": \"d\"\n                }\n            },\n            \"asNeededCodeableConcept\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"32914008\",\n                        \"display\": \"Restless Legs\"\n                    }\n                ]\n            },\n            \"route\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"26643006\",\n                        \"display\": \"Oral Route\"\n                    }\n                ]\n            },\n            \"doseAndRate\": [\n                {\n                    \"doseRange\": {\n                        \"low\": {\n                            \"value\": 1,\n                            \"unit\": \"TAB\",\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"TAB\"\n                        },\n                        \"high\": {\n                            \"value\": 2,\n                            \"unit\": \"TAB\",\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"TAB\"\n                        }\n                    }\n                }\n            ]\n        }\n    ]\n}"}},"schema":{}},"application/fhir+xml; fhirVersion=4.0":{"examples":{"MedicationRequest":{"value":"<MedicationRequest xmlns=\"http://hl7.org/fhir\">\n  <text>\n    <status value=\"generated\"/>\n    <div xmlns=\"http://www.w3.org/1999/xhtml\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: medrx002 </p> <p> <b>identifier</b>: 12345 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>intent</b>: order </p> <p> <b>medication</b>: <a>prescribed medication</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>context</b>: <a>encounter that leads to this prescription</a> </p> <p> <b>authoredOn</b>: 01/03/2015 </p> <h3>Requesters</h3> <table> <tr> <td>-</td> <td> <b>Agent</b> </td> <td> <b>OnBehalfOf</b> </td> </tr> <tr> <td>*</td> <td> <a>Patrick Pump</a> </td> <td> <a>Organization/f002</a> </td> </tr> </table> <p> <b>reasonCode</b>: Essential hypertension (disorder) <span>(Details : {SNOMED CT code '59621000' = 'Essential hypertension', given as 'Essential hypertension (disorder)'})</span> </p> <p> <b>dosageInstruction</b>: </p> </div>\n  </text>\n  <identifier>\n    <use value=\"official\"/>\n    <system value=\"http://www.bmc.nl/portal/prescriptions\"/>\n    <value value=\"12345\"/>\n  </identifier>\n  <status value=\"active\"/>\n  <intent value=\"order\"/>\n  <medicationReference>\n    <reference value=\"Medication/med0316\"/>\n    <display value=\"prescribed medication\"/>\n  </medicationReference>\n  <subject>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </subject>\n  <encounter>\n    <reference value=\"Encounter/f001\"/>\n    <display value=\"encounter that leads to this prescription\"/>\n  </encounter>\n  <authoredOn value=\"2015-03-01\"/>\n  <requester>\n    <reference value=\"Practitioner/f007\"/>\n    <display value=\"Patrick Pump\"/>\n  </requester>\n  <reasonCode>\n    <coding>\n      <system value=\"http://snomed.info/sct\"/>\n      <code value=\"59621000\"/>\n      <display value=\"Essential hypertension (disorder)\"/>\n    </coding>\n  </reasonCode>\n  <dosageInstruction>\n    <sequence value=\"1\"/>\n    <text value=\"Take one tablet daily as directed\"/>\n  </dosageInstruction>\n</MedicationRequest>\n"},"MedicationStatement":{"value":"<MedicationStatement xmlns=\"http://hl7.org/fhir\">\n  <id value=\"example001\"/>\n  <text>\n    <status value=\"generated\"/>\n    <div xmlns=\"http://www.w3.org/1999/xhtml\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: example001 </p> <p> <b>contained</b>: </p> <p> <b>identifier</b>: 12345689 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>category</b>: Inpatient <span>(Details : {http://hl7.org/fhir/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span> </p> <p> <b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; isBrand; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span> </p> <p> <b>effective</b>: 23/01/2015 </p> <p> <b>dateAsserted</b>: 22/02/2015 </p> <p> <b>informationSource</b>: <a>Donald Duck</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>derivedFrom</b>: <a>MedicationRequest/medrx002</a> </p> <p> <b>taken</b>: n </p> <p> <b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span> </p> <p> <b>note</b>: Patient indicates they miss the occasional dose </p> <p> <b>dosage</b>: </p> </div>\n  </text>\n  <contained>\n    <Medication xmlns=\"http://hl7.org/fhir\">\n      <id value=\"med0309\"/>\n      <code>\n        <coding>\n          <system value=\"http://hl7.org/fhir/sid/ndc\"/>\n          <code value=\"50580-506-02\"/>\n          <display value=\"Tylenol PM\"/>\n        </coding>\n      </code>\n      <form>\n        <coding>\n          <system value=\"http://snomed.info/sct\"/>\n          <code value=\"385057009\"/>\n          <display value=\"Film-coated tablet (qualifier value)\"/>\n        </coding>\n      </form>\n      <ingredient>\n        <itemCodeableConcept>\n          <coding>\n            <system value=\"http://www.nlm.nih.gov/research/umls/rxnorm\"/>\n            <code value=\"315266\"/>\n            <display value=\"Acetaminophen 500 MG\"/>\n          </coding>\n        </itemCodeableConcept>\n        <strength>\n          <numerator>\n            <value value=\"500\"/>\n            <system value=\"http://unitsofmeasure.org\"/>\n            <code value=\"mg\"/>\n          </numerator>\n          <denominator>\n            <value value=\"1\"/>\n            <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n            <code value=\"Tab\"/>\n          </denominator>\n        </strength>\n      </ingredient>\n      <ingredient>\n        <itemCodeableConcept>\n          <coding>\n            <system value=\"http://www.nlm.nih.gov/research/umls/rxnorm\"/>\n            <code value=\"901813\"/>\n            <display value=\"Diphenhydramine Hydrochloride 25 mg\"/>\n          </coding>\n        </itemCodeableConcept>\n        <strength>\n          <numerator>\n            <value value=\"25\"/>\n            <system value=\"http://unitsofmeasure.org\"/>\n            <code value=\"mg\"/>\n          </numerator>\n          <denominator>\n            <value value=\"1\"/>\n            <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n            <code value=\"Tab\"/>\n          </denominator>\n        </strength>\n      </ingredient>\n      <batch>\n        <lotNumber value=\"9494788\"/>\n        <expirationDate value=\"2017-05-22\"/>\n      </batch>\n    </Medication>\n  </contained>\n  <identifier>\n    <use value=\"official\"/>\n    <system value=\"http://www.bmc.nl/portal/medstatements\"/>\n    <value value=\"12345689\"/>\n  </identifier>\n  <status value=\"active\"/>\n  <category>\n    <coding>\n      <system value=\"http://hl7.org/fhir/medication-statement-category\"/>\n      <code value=\"inpatient\"/>\n      <display value=\"Inpatient\"/>\n    </coding>\n  </category>\n  <medicationReference>\n    <reference value=\"#med0309\"/>\n  </medicationReference>\n  <subject>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </subject>\n  <effectiveDateTime value=\"2015-01-23\"/>\n  <dateAsserted value=\"2015-02-22\"/>\n  <informationSource>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </informationSource>\n  <derivedFrom>\n    <reference value=\"MedicationRequest/medrx002\"/>\n  </derivedFrom>\n  <reasonCode>\n    <coding>\n      <system value=\"http://snomed.info/sct\"/>\n      <code value=\"32914008\"/>\n      <display value=\"Restless Legs\"/>\n    </coding>\n  </reasonCode>\n  <note>\n    <text value=\"Patient indicates they miss the occasional dose\"/>\n  </note>\n  <dosage>\n    <sequence value=\"1\"/>\n    <text value=\"1-2 tablets once daily at bedtime as needed for restless legs\"/>\n    <additionalInstruction>\n      <text value=\"Taking at bedtime\"/>\n    </additionalInstruction>\n    <timing>\n      <repeat>\n        <frequency value=\"1\"/>\n        <period value=\"1\"/>\n        <periodUnit value=\"d\"/>\n      </repeat>\n    </timing>\n    <asNeededCodeableConcept>\n      <coding>\n        <system value=\"http://snomed.info/sct\"/>\n        <code value=\"32914008\"/>\n        <display value=\"Restless Legs\"/>\n      </coding>\n    </asNeededCodeableConcept>\n    <route>\n      <coding>\n        <system value=\"http://snomed.info/sct\"/>\n        <code value=\"26643006\"/>\n        <display value=\"Oral Route\"/>\n      </coding>\n    </route>\n    <doseAndRate>\n      <doseRange>\n        <low>\n          <value value=\"1\"/>\n          <unit value=\"TAB\"/>\n          <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n          <code value=\"TAB\"/>\n        </low>\n        <high>\n          <value value=\"2\"/>\n          <unit value=\"TAB\"/>\n          <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n          <code value=\"TAB\"/>\n        </high>\n      </doseRange>\n    </doseAndRate>\n  </dosage>\n</MedicationStatement>\n"}},"schema":{}}}},"responses":{"200":{"content":{"application/fhir+json; fhirVersion=3.0":{"examples":{"MedicationRequest":{"value":"{\n  \"resourceType\": \"MedicationRequest\",\n  \"text\": {\n      \"status\": \"generated\",\n      \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: medrx002 </p> <p> <b>identifier</b>: 12345 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>intent</b>: order </p> <p> <b>medication</b>: <a>prescribed medication</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>context</b>: <a>encounter that leads to this prescription</a> </p> <p> <b>authoredOn</b>: 01/03/2015 </p> <h3>Requesters</h3> <table> <tr> <td>-</td> <td> <b>Agent</b> </td> <td> <b>OnBehalfOf</b> </td> </tr> <tr> <td>*</td> <td> <a>Patrick Pump</a> </td> <td> <a>Organization/f002</a> </td> </tr> </table> <p> <b>reasonCode</b>: Essential hypertension (disorder) <span>(Details : {SNOMED CT code '59621000' = 'Essential hypertension', given as 'Essential hypertension (disorder)'})</span> </p> <p> <b>dosageInstruction</b>: </p> </div>\"\n  },\n  \"identifier\": [\n      {\n          \"use\": \"official\",\n          \"system\": \"http://www.bmc.nl/portal/prescriptions\",\n          \"value\": \"12345\"\n      }\n  ],\n  \"status\": \"active\",\n  \"intent\": \"order\",\n  \"medicationReference\": {\n      \"reference\": \"Medication/med0316\",\n      \"display\": \"prescribed medication\"\n  },\n  \"subject\": {\n      \"reference\": \"Patient/pat1\",\n      \"display\": \"Donald Duck\"\n  },\n  \"context\": {\n      \"reference\": \"Encounter/f001\",\n      \"display\": \"encounter that leads to this prescription\"\n  },\n  \"authoredOn\": \"2015-03-01\",\n  \"requester\": {\n      \"agent\": {\n          \"reference\": \"Practitioner/f007\",\n          \"display\": \"Patrick Pump\"\n      }\n  },\n  \"reasonCode\": [\n      {\n          \"coding\": [\n              {\n                  \"system\": \"http://snomed.info/sct\",\n                  \"code\": \"59621000\",\n                  \"display\": \"Essential hypertension (disorder)\"\n              }\n          ]\n      }\n  ],\n  \"dosageInstruction\": [\n      {\n          \"sequence\": 1,\n          \"text\": \"Take one tablet daily as directed\"\n      }\n  ]\n}"},"MedicationStatement":{"value":"{\n    \"resourceType\": \"MedicationStatement\",\n    \"id\": \"example001\",\n    \"text\": {\n        \"status\": \"generated\",\n        \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: example001 </p> <p> <b>contained</b>: </p> <p> <b>identifier</b>: 12345689 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>category</b>: Inpatient <span>(Details : {http://hl7.org/fhir/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span> </p> <p> <b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; isBrand; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span> </p> <p> <b>effective</b>: 23/01/2015 </p> <p> <b>dateAsserted</b>: 22/02/2015 </p> <p> <b>informationSource</b>: <a>Donald Duck</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>derivedFrom</b>: <a>MedicationRequest/medrx002</a> </p> <p> <b>taken</b>: n </p> <p> <b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span> </p> <p> <b>note</b>: Patient indicates they miss the occasional dose </p> <p> <b>dosage</b>: </p> </div>\"\n    },\n    \"contained\": [\n        {\n            \"resourceType\": \"Medication\",\n            \"id\": \"med0309\",\n            \"code\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n                        \"code\": \"50580-506-02\",\n                        \"display\": \"Tylenol PM\"\n                    }\n                ]\n            },\n            \"form\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"385057009\",\n                        \"display\": \"Film-coated tablet (qualifier value)\"\n                    }\n                ]\n            },\n            \"ingredient\": [\n                {\n                    \"itemCodeableConcept\": {\n                        \"coding\": [\n                            {\n                                \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n                                \"code\": \"315266\",\n                                \"display\": \"Acetaminophen 500 MG\"\n                            }\n                        ]\n                    },\n                    \"amount\": {\n                        \"numerator\": {\n                            \"value\": 500,\n                            \"system\": \"http://unitsofmeasure.org\",\n                            \"code\": \"mg\"\n                        },\n                        \"denominator\": {\n                            \"value\": 1,\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"Tab\"\n                        }\n                    }\n                },\n                {\n                    \"itemCodeableConcept\": {\n                        \"coding\": [\n                            {\n                                \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n                                \"code\": \"901813\",\n                                \"display\": \"Diphenhydramine Hydrochloride 25 mg\"\n                            }\n                        ]\n                    },\n                    \"amount\": {\n                        \"numerator\": {\n                            \"value\": 25,\n                            \"system\": \"http://unitsofmeasure.org\",\n                            \"code\": \"mg\"\n                        },\n                        \"denominator\": {\n                            \"value\": 1,\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"Tab\"\n                        }\n                    }\n                }\n            ],\n            \"package\": {\n                \"batch\": [\n                    {\n                        \"lotNumber\": \"9494788\",\n                        \"expirationDate\": \"2017-05-22\"\n                    }\n                ]\n            }\n        }\n    ],\n    \"identifier\": [\n        {\n            \"use\": \"official\",\n            \"system\": \"http://www.bmc.nl/portal/medstatements\",\n            \"value\": \"12345689\"\n        }\n    ],\n    \"status\": \"active\",\n    \"category\": {\n        \"coding\": [\n            {\n                \"system\": \"http://hl7.org/fhir/medication-statement-category\",\n                \"code\": \"inpatient\",\n                \"display\": \"Inpatient\"\n            }\n        ]\n    },\n    \"medicationReference\": {\n        \"reference\": \"#med0309\"\n    },\n    \"effectiveDateTime\": \"2015-01-23\",\n    \"dateAsserted\": \"2015-02-22\",\n    \"informationSource\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"subject\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"derivedFrom\": [\n        {\n            \"reference\": \"MedicationRequest/medrx002\"\n        }\n    ],\n    \"reasonCode\": [\n        {\n            \"coding\": [\n                {\n                    \"system\": \"http://snomed.info/sct\",\n                    \"code\": \"32914008\",\n                    \"display\": \"Restless Legs\"\n                }\n            ]\n        }\n    ],\n    \"note\": [\n        {\n            \"text\": \"Patient indicates they miss the occasional dose\"\n        }\n    ],\n    \"dosage\": [\n        {\n            \"sequence\": 1,\n            \"text\": \"1-2 tablets once daily at bedtime as needed for restless legs\",\n            \"additionalInstruction\": [\n                {\n                    \"text\": \"Taking at bedtime\"\n                }\n            ],\n            \"timing\": {\n                \"repeat\": {\n                    \"frequency\": 1,\n                    \"period\": 1,\n                    \"periodUnit\": \"d\"\n                }\n            },\n            \"asNeededCodeableConcept\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"32914008\",\n                        \"display\": \"Restless Legs\"\n                    }\n                ]\n            },\n            \"route\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"26643006\",\n                        \"display\": \"Oral Route\"\n                    }\n                ]\n            },\n            \"doseRange\": {\n                \"low\": {\n                    \"value\": 1,\n                    \"unit\": \"TAB\",\n                    \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                    \"code\": \"TAB\"\n                },\n                \"high\": {\n                    \"value\": 2,\n                    \"unit\": \"TAB\",\n                    \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                    \"code\": \"TAB\"\n                }\n            }\n        }\n    ]\n}"}}},"application/fhir+xml; fhirVersion=3.0":{"examples":{"MedicationRequest":{"value":"<MedicationRequest xmlns=\"http://hl7.org/fhir\">\n  <text>\n    <status value=\"generated\"/>\n    <div xmlns=\"http://www.w3.org/1999/xhtml\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: medrx002 </p> <p> <b>identifier</b>: 12345 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>intent</b>: order </p> <p> <b>medication</b>: <a>prescribed medication</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>context</b>: <a>encounter that leads to this prescription</a> </p> <p> <b>authoredOn</b>: 01/03/2015 </p> <h3>Requesters</h3> <table> <tr> <td>-</td> <td> <b>Agent</b> </td> <td> <b>OnBehalfOf</b> </td> </tr> <tr> <td>*</td> <td> <a>Patrick Pump</a> </td> <td> <a>Organization/f002</a> </td> </tr> </table> <p> <b>reasonCode</b>: Essential hypertension (disorder) <span>(Details : {SNOMED CT code '59621000' = 'Essential hypertension', given as 'Essential hypertension (disorder)'})</span> </p> <p> <b>dosageInstruction</b>: </p> </div>\n  </text>\n  <identifier>\n    <use value=\"official\"/>\n    <system value=\"http://www.bmc.nl/portal/prescriptions\"/>\n    <value value=\"12345\"/>\n  </identifier>\n  <status value=\"active\"/>\n  <intent value=\"order\"/>\n  <medicationReference>\n    <reference value=\"Medication/med0316\"/>\n    <display value=\"prescribed medication\"/>\n  </medicationReference>\n  <subject>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </subject>\n  <context>\n    <reference value=\"Encounter/f001\"/>\n    <display value=\"encounter that leads to this prescription\"/>\n  </context>\n  <authoredOn value=\"2015-03-01\"/>\n  <requester>\n    <agent>\n      <reference value=\"Practitioner/f007\"/>\n      <display value=\"Patrick Pump\"/>\n    </agent>\n  </requester>\n  <reasonCode>\n    <coding>\n      <system value=\"http://snomed.info/sct\"/>\n      <code value=\"59621000\"/>\n      <display value=\"Essential hypertension (disorder)\"/>\n    </coding>\n  </reasonCode>\n  <dosageInstruction>\n    <sequence value=\"1\"/>\n    <text value=\"Take one tablet daily as directed\"/>\n  </dosageInstruction>\n</MedicationRequest>\n"},"MedicationStatement":{"value":"<MedicationStatement xmlns=\"http://hl7.org/fhir\">\n  <id value=\"example001\"/>\n  <text>\n    <status value=\"generated\"/>\n    <div xmlns=\"http://www.w3.org/1999/xhtml\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: example001 </p> <p> <b>contained</b>: </p> <p> <b>identifier</b>: 12345689 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>category</b>: Inpatient <span>(Details : {http://hl7.org/fhir/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span> </p> <p> <b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; isBrand; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span> </p> <p> <b>effective</b>: 23/01/2015 </p> <p> <b>dateAsserted</b>: 22/02/2015 </p> <p> <b>informationSource</b>: <a>Donald Duck</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>derivedFrom</b>: <a>MedicationRequest/medrx002</a> </p> <p> <b>taken</b>: n </p> <p> <b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span> </p> <p> <b>note</b>: Patient indicates they miss the occasional dose </p> <p> <b>dosage</b>: </p> </div>\n  </text>\n  <contained>\n    <Medication xmlns=\"http://hl7.org/fhir\">\n      <id value=\"med0309\"/>\n      <code>\n        <coding>\n          <system value=\"http://hl7.org/fhir/sid/ndc\"/>\n          <code value=\"50580-506-02\"/>\n          <display value=\"Tylenol PM\"/>\n        </coding>\n      </code>\n      <form>\n        <coding>\n          <system value=\"http://snomed.info/sct\"/>\n          <code value=\"385057009\"/>\n          <display value=\"Film-coated tablet (qualifier value)\"/>\n        </coding>\n      </form>\n      <ingredient>\n        <itemCodeableConcept>\n          <coding>\n            <system value=\"http://www.nlm.nih.gov/research/umls/rxnorm\"/>\n            <code value=\"315266\"/>\n            <display value=\"Acetaminophen 500 MG\"/>\n          </coding>\n        </itemCodeableConcept>\n        <amount>\n          <numerator>\n            <value value=\"500\"/>\n            <system value=\"http://unitsofmeasure.org\"/>\n            <code value=\"mg\"/>\n          </numerator>\n          <denominator>\n            <value value=\"1\"/>\n            <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n            <code value=\"Tab\"/>\n          </denominator>\n        </amount>\n      </ingredient>\n      <ingredient>\n        <itemCodeableConcept>\n          <coding>\n            <system value=\"http://www.nlm.nih.gov/research/umls/rxnorm\"/>\n            <code value=\"901813\"/>\n            <display value=\"Diphenhydramine Hydrochloride 25 mg\"/>\n          </coding>\n        </itemCodeableConcept>\n        <amount>\n          <numerator>\n            <value value=\"25\"/>\n            <system value=\"http://unitsofmeasure.org\"/>\n            <code value=\"mg\"/>\n          </numerator>\n          <denominator>\n            <value value=\"1\"/>\n            <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n            <code value=\"Tab\"/>\n          </denominator>\n        </amount>\n      </ingredient>\n      <package>\n        <batch>\n          <lotNumber value=\"9494788\"/>\n          <expirationDate value=\"2017-05-22\"/>\n        </batch>\n      </package>\n    </Medication>\n  </contained>\n  <identifier>\n    <use value=\"official\"/>\n    <system value=\"http://www.bmc.nl/portal/medstatements\"/>\n    <value value=\"12345689\"/>\n  </identifier>\n  <status value=\"active\"/>\n  <category>\n    <coding>\n      <system value=\"http://hl7.org/fhir/medication-statement-category\"/>\n      <code value=\"inpatient\"/>\n      <display value=\"Inpatient\"/>\n    </coding>\n  </category>\n  <medicationReference>\n    <reference value=\"#med0309\"/>\n  </medicationReference>\n  <effectiveDateTime value=\"2015-01-23\"/>\n  <dateAsserted value=\"2015-02-22\"/>\n  <informationSource>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </informationSource>\n  <subject>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </subject>\n  <derivedFrom>\n    <reference value=\"MedicationRequest/medrx002\"/>\n  </derivedFrom>\n  <reasonCode>\n    <coding>\n      <system value=\"http://snomed.info/sct\"/>\n      <code value=\"32914008\"/>\n      <display value=\"Restless Legs\"/>\n    </coding>\n  </reasonCode>\n  <note>\n    <text value=\"Patient indicates they miss the occasional dose\"/>\n  </note>\n  <dosage>\n    <sequence value=\"1\"/>\n    <text value=\"1-2 tablets once daily at bedtime as needed for restless legs\"/>\n    <additionalInstruction>\n      <text value=\"Taking at bedtime\"/>\n    </additionalInstruction>\n    <timing>\n      <repeat>\n        <frequency value=\"1\"/>\n        <period value=\"1\"/>\n        <periodUnit value=\"d\"/>\n      </repeat>\n    </timing>\n    <asNeededCodeableConcept>\n      <coding>\n        <system value=\"http://snomed.info/sct\"/>\n        <code value=\"32914008\"/>\n        <display value=\"Restless Legs\"/>\n      </coding>\n    </asNeededCodeableConcept>\n    <route>\n      <coding>\n        <system value=\"http://snomed.info/sct\"/>\n        <code value=\"26643006\"/>\n        <display value=\"Oral Route\"/>\n      </coding>\n    </route>\n    <doseRange>\n      <low>\n        <value value=\"1\"/>\n        <unit value=\"TAB\"/>\n        <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n        <code value=\"TAB\"/>\n      </low>\n      <high>\n        <value value=\"2\"/>\n        <unit value=\"TAB\"/>\n        <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n        <code value=\"TAB\"/>\n      </high>\n    </doseRange>\n  </dosage>\n</MedicationStatement>\n"}}},"application/fhir+json; fhirVersion=4.0":{"examples":{"MedicationRequest":{"value":"{\n    \"resourceType\": \"MedicationRequest\",\n    \"text\": {\n        \"status\": \"generated\",\n        \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: medrx002 </p> <p> <b>identifier</b>: 12345 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>intent</b>: order </p> <p> <b>medication</b>: <a>prescribed medication</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>context</b>: <a>encounter that leads to this prescription</a> </p> <p> <b>authoredOn</b>: 01/03/2015 </p> <h3>Requesters</h3> <table> <tr> <td>-</td> <td> <b>Agent</b> </td> <td> <b>OnBehalfOf</b> </td> </tr> <tr> <td>*</td> <td> <a>Patrick Pump</a> </td> <td> <a>Organization/f002</a> </td> </tr> </table> <p> <b>reasonCode</b>: Essential hypertension (disorder) <span>(Details : {SNOMED CT code '59621000' = 'Essential hypertension', given as 'Essential hypertension (disorder)'})</span> </p> <p> <b>dosageInstruction</b>: </p> </div>\"\n    },\n    \"identifier\": [\n        {\n            \"use\": \"official\",\n            \"system\": \"http://www.bmc.nl/portal/prescriptions\",\n            \"value\": \"12345\"\n        }\n    ],\n    \"status\": \"active\",\n    \"intent\": \"order\",\n    \"medicationReference\": {\n        \"reference\": \"Medication/med0316\",\n        \"display\": \"prescribed medication\"\n    },\n    \"subject\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"encounter\": {\n        \"reference\": \"Encounter/f001\",\n        \"display\": \"encounter that leads to this prescription\"\n    },\n    \"authoredOn\": \"2015-03-01\",\n    \"requester\": {\n        \"reference\": \"Practitioner/f007\",\n        \"display\": \"Patrick Pump\"\n    },\n    \"reasonCode\": [\n        {\n            \"coding\": [\n                {\n                    \"system\": \"http://snomed.info/sct\",\n                    \"code\": \"59621000\",\n                    \"display\": \"Essential hypertension (disorder)\"\n                }\n            ]\n        }\n    ],\n    \"dosageInstruction\": [\n        {\n            \"sequence\": 1,\n            \"text\": \"Take one tablet daily as directed\"\n        }\n    ]\n}"},"MedicationStatement":{"value":"{\n    \"resourceType\": \"MedicationStatement\",\n    \"id\": \"example001\",\n    \"text\": {\n        \"status\": \"generated\",\n        \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: example001 </p> <p> <b>contained</b>: </p> <p> <b>identifier</b>: 12345689 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>category</b>: Inpatient <span>(Details : {http://hl7.org/fhir/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span> </p> <p> <b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; isBrand; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span> </p> <p> <b>effective</b>: 23/01/2015 </p> <p> <b>dateAsserted</b>: 22/02/2015 </p> <p> <b>informationSource</b>: <a>Donald Duck</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>derivedFrom</b>: <a>MedicationRequest/medrx002</a> </p> <p> <b>taken</b>: n </p> <p> <b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span> </p> <p> <b>note</b>: Patient indicates they miss the occasional dose </p> <p> <b>dosage</b>: </p> </div>\"\n    },\n    \"contained\": [\n        {\n            \"resourceType\": \"Medication\",\n            \"id\": \"med0309\",\n            \"code\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://hl7.org/fhir/sid/ndc\",\n                        \"code\": \"50580-506-02\",\n                        \"display\": \"Tylenol PM\"\n                    }\n                ]\n            },\n            \"form\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"385057009\",\n                        \"display\": \"Film-coated tablet (qualifier value)\"\n                    }\n                ]\n            },\n            \"ingredient\": [\n                {\n                    \"itemCodeableConcept\": {\n                        \"coding\": [\n                            {\n                                \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n                                \"code\": \"315266\",\n                                \"display\": \"Acetaminophen 500 MG\"\n                            }\n                        ]\n                    },\n                    \"strength\": {\n                        \"numerator\": {\n                            \"value\": 500,\n                            \"system\": \"http://unitsofmeasure.org\",\n                            \"code\": \"mg\"\n                        },\n                        \"denominator\": {\n                            \"value\": 1,\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"Tab\"\n                        }\n                    }\n                },\n                {\n                    \"itemCodeableConcept\": {\n                        \"coding\": [\n                            {\n                                \"system\": \"http://www.nlm.nih.gov/research/umls/rxnorm\",\n                                \"code\": \"901813\",\n                                \"display\": \"Diphenhydramine Hydrochloride 25 mg\"\n                            }\n                        ]\n                    },\n                    \"strength\": {\n                        \"numerator\": {\n                            \"value\": 25,\n                            \"system\": \"http://unitsofmeasure.org\",\n                            \"code\": \"mg\"\n                        },\n                        \"denominator\": {\n                            \"value\": 1,\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"Tab\"\n                        }\n                    }\n                }\n            ],\n            \"batch\": {\n                \"lotNumber\": \"9494788\",\n                \"expirationDate\": \"2017-05-22\"\n            }\n        }\n    ],\n    \"identifier\": [\n        {\n            \"use\": \"official\",\n            \"system\": \"http://www.bmc.nl/portal/medstatements\",\n            \"value\": \"12345689\"\n        }\n    ],\n    \"status\": \"active\",\n    \"category\": {\n        \"coding\": [\n            {\n                \"system\": \"http://hl7.org/fhir/medication-statement-category\",\n                \"code\": \"inpatient\",\n                \"display\": \"Inpatient\"\n            }\n        ]\n    },\n    \"medicationReference\": {\n        \"reference\": \"#med0309\"\n    },\n    \"subject\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"effectiveDateTime\": \"2015-01-23\",\n    \"dateAsserted\": \"2015-02-22\",\n    \"informationSource\": {\n        \"reference\": \"Patient/pat1\",\n        \"display\": \"Donald Duck\"\n    },\n    \"derivedFrom\": [\n        {\n            \"reference\": \"MedicationRequest/medrx002\"\n        }\n    ],\n    \"reasonCode\": [\n        {\n            \"coding\": [\n                {\n                    \"system\": \"http://snomed.info/sct\",\n                    \"code\": \"32914008\",\n                    \"display\": \"Restless Legs\"\n                }\n            ]\n        }\n    ],\n    \"note\": [\n        {\n            \"text\": \"Patient indicates they miss the occasional dose\"\n        }\n    ],\n    \"dosage\": [\n        {\n            \"sequence\": 1,\n            \"text\": \"1-2 tablets once daily at bedtime as needed for restless legs\",\n            \"additionalInstruction\": [\n                {\n                    \"text\": \"Taking at bedtime\"\n                }\n            ],\n            \"timing\": {\n                \"repeat\": {\n                    \"frequency\": 1,\n                    \"period\": 1,\n                    \"periodUnit\": \"d\"\n                }\n            },\n            \"asNeededCodeableConcept\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"32914008\",\n                        \"display\": \"Restless Legs\"\n                    }\n                ]\n            },\n            \"route\": {\n                \"coding\": [\n                    {\n                        \"system\": \"http://snomed.info/sct\",\n                        \"code\": \"26643006\",\n                        \"display\": \"Oral Route\"\n                    }\n                ]\n            },\n            \"doseAndRate\": [\n                {\n                    \"doseRange\": {\n                        \"low\": {\n                            \"value\": 1,\n                            \"unit\": \"TAB\",\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"TAB\"\n                        },\n                        \"high\": {\n                            \"value\": 2,\n                            \"unit\": \"TAB\",\n                            \"system\": \"http://hl7.org/fhir/v3/orderableDrugForm\",\n                            \"code\": \"TAB\"\n                        }\n                    }\n                }\n            ]\n        }\n    ]\n}"}}},"application/fhir+xml; fhirVersion=4.0":{"examples":{"MedicationRequest":{"value":"<MedicationRequest xmlns=\"http://hl7.org/fhir\">\n  <text>\n    <status value=\"generated\"/>\n    <div xmlns=\"http://www.w3.org/1999/xhtml\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: medrx002 </p> <p> <b>identifier</b>: 12345 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>intent</b>: order </p> <p> <b>medication</b>: <a>prescribed medication</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>context</b>: <a>encounter that leads to this prescription</a> </p> <p> <b>authoredOn</b>: 01/03/2015 </p> <h3>Requesters</h3> <table> <tr> <td>-</td> <td> <b>Agent</b> </td> <td> <b>OnBehalfOf</b> </td> </tr> <tr> <td>*</td> <td> <a>Patrick Pump</a> </td> <td> <a>Organization/f002</a> </td> </tr> </table> <p> <b>reasonCode</b>: Essential hypertension (disorder) <span>(Details : {SNOMED CT code '59621000' = 'Essential hypertension', given as 'Essential hypertension (disorder)'})</span> </p> <p> <b>dosageInstruction</b>: </p> </div>\n  </text>\n  <identifier>\n    <use value=\"official\"/>\n    <system value=\"http://www.bmc.nl/portal/prescriptions\"/>\n    <value value=\"12345\"/>\n  </identifier>\n  <status value=\"active\"/>\n  <intent value=\"order\"/>\n  <medicationReference>\n    <reference value=\"Medication/med0316\"/>\n    <display value=\"prescribed medication\"/>\n  </medicationReference>\n  <subject>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </subject>\n  <encounter>\n    <reference value=\"Encounter/f001\"/>\n    <display value=\"encounter that leads to this prescription\"/>\n  </encounter>\n  <authoredOn value=\"2015-03-01\"/>\n  <requester>\n    <reference value=\"Practitioner/f007\"/>\n    <display value=\"Patrick Pump\"/>\n  </requester>\n  <reasonCode>\n    <coding>\n      <system value=\"http://snomed.info/sct\"/>\n      <code value=\"59621000\"/>\n      <display value=\"Essential hypertension (disorder)\"/>\n    </coding>\n  </reasonCode>\n  <dosageInstruction>\n    <sequence value=\"1\"/>\n    <text value=\"Take one tablet daily as directed\"/>\n  </dosageInstruction>\n</MedicationRequest>\n"},"MedicationStatement":{"value":"<MedicationStatement xmlns=\"http://hl7.org/fhir\">\n  <id value=\"example001\"/>\n  <text>\n    <status value=\"generated\"/>\n    <div xmlns=\"http://www.w3.org/1999/xhtml\"> <p> <b>Generated Narrative with Details</b> </p> <p> <b>id</b>: example001 </p> <p> <b>contained</b>: </p> <p> <b>identifier</b>: 12345689 (OFFICIAL) </p> <p> <b>status</b>: active </p> <p> <b>category</b>: Inpatient <span>(Details : {http://hl7.org/fhir/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span> </p> <p> <b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; isBrand; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span> </p> <p> <b>effective</b>: 23/01/2015 </p> <p> <b>dateAsserted</b>: 22/02/2015 </p> <p> <b>informationSource</b>: <a>Donald Duck</a> </p> <p> <b>subject</b>: <a>Donald Duck</a> </p> <p> <b>derivedFrom</b>: <a>MedicationRequest/medrx002</a> </p> <p> <b>taken</b>: n </p> <p> <b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span> </p> <p> <b>note</b>: Patient indicates they miss the occasional dose </p> <p> <b>dosage</b>: </p> </div>\n  </text>\n  <contained>\n    <Medication xmlns=\"http://hl7.org/fhir\">\n      <id value=\"med0309\"/>\n      <code>\n        <coding>\n          <system value=\"http://hl7.org/fhir/sid/ndc\"/>\n          <code value=\"50580-506-02\"/>\n          <display value=\"Tylenol PM\"/>\n        </coding>\n      </code>\n      <form>\n        <coding>\n          <system value=\"http://snomed.info/sct\"/>\n          <code value=\"385057009\"/>\n          <display value=\"Film-coated tablet (qualifier value)\"/>\n        </coding>\n      </form>\n      <ingredient>\n        <itemCodeableConcept>\n          <coding>\n            <system value=\"http://www.nlm.nih.gov/research/umls/rxnorm\"/>\n            <code value=\"315266\"/>\n            <display value=\"Acetaminophen 500 MG\"/>\n          </coding>\n        </itemCodeableConcept>\n        <strength>\n          <numerator>\n            <value value=\"500\"/>\n            <system value=\"http://unitsofmeasure.org\"/>\n            <code value=\"mg\"/>\n          </numerator>\n          <denominator>\n            <value value=\"1\"/>\n            <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n            <code value=\"Tab\"/>\n          </denominator>\n        </strength>\n      </ingredient>\n      <ingredient>\n        <itemCodeableConcept>\n          <coding>\n            <system value=\"http://www.nlm.nih.gov/research/umls/rxnorm\"/>\n            <code value=\"901813\"/>\n            <display value=\"Diphenhydramine Hydrochloride 25 mg\"/>\n          </coding>\n        </itemCodeableConcept>\n        <strength>\n          <numerator>\n            <value value=\"25\"/>\n            <system value=\"http://unitsofmeasure.org\"/>\n            <code value=\"mg\"/>\n          </numerator>\n          <denominator>\n            <value value=\"1\"/>\n            <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n            <code value=\"Tab\"/>\n          </denominator>\n        </strength>\n      </ingredient>\n      <batch>\n        <lotNumber value=\"9494788\"/>\n        <expirationDate value=\"2017-05-22\"/>\n      </batch>\n    </Medication>\n  </contained>\n  <identifier>\n    <use value=\"official\"/>\n    <system value=\"http://www.bmc.nl/portal/medstatements\"/>\n    <value value=\"12345689\"/>\n  </identifier>\n  <status value=\"active\"/>\n  <category>\n    <coding>\n      <system value=\"http://hl7.org/fhir/medication-statement-category\"/>\n      <code value=\"inpatient\"/>\n      <display value=\"Inpatient\"/>\n    </coding>\n  </category>\n  <medicationReference>\n    <reference value=\"#med0309\"/>\n  </medicationReference>\n  <subject>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </subject>\n  <effectiveDateTime value=\"2015-01-23\"/>\n  <dateAsserted value=\"2015-02-22\"/>\n  <informationSource>\n    <reference value=\"Patient/pat1\"/>\n    <display value=\"Donald Duck\"/>\n  </informationSource>\n  <derivedFrom>\n    <reference value=\"MedicationRequest/medrx002\"/>\n  </derivedFrom>\n  <reasonCode>\n    <coding>\n      <system value=\"http://snomed.info/sct\"/>\n      <code value=\"32914008\"/>\n      <display value=\"Restless Legs\"/>\n    </coding>\n  </reasonCode>\n  <note>\n    <text value=\"Patient indicates they miss the occasional dose\"/>\n  </note>\n  <dosage>\n    <sequence value=\"1\"/>\n    <text value=\"1-2 tablets once daily at bedtime as needed for restless legs\"/>\n    <additionalInstruction>\n      <text value=\"Taking at bedtime\"/>\n    </additionalInstruction>\n    <timing>\n      <repeat>\n        <frequency value=\"1\"/>\n        <period value=\"1\"/>\n        <periodUnit value=\"d\"/>\n      </repeat>\n    </timing>\n    <asNeededCodeableConcept>\n      <coding>\n        <system value=\"http://snomed.info/sct\"/>\n        <code value=\"32914008\"/>\n        <display value=\"Restless Legs\"/>\n      </coding>\n    </asNeededCodeableConcept>\n    <route>\n      <coding>\n        <system value=\"http://snomed.info/sct\"/>\n        <code value=\"26643006\"/>\n        <display value=\"Oral Route\"/>\n      </coding>\n    </route>\n    <doseAndRate>\n      <doseRange>\n        <low>\n          <value value=\"1\"/>\n          <unit value=\"TAB\"/>\n          <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n          <code value=\"TAB\"/>\n        </low>\n        <high>\n          <value value=\"2\"/>\n          <unit value=\"TAB\"/>\n          <system value=\"http://hl7.org/fhir/v3/orderableDrugForm\"/>\n          <code value=\"TAB\"/>\n        </high>\n      </doseRange>\n    </doseAndRate>\n  </dosage>\n</MedicationStatement>\n"}}}},"description":"Successful convertion"},"400":{"content":{"application/fhir+json; fhirVersion=4.0":{"examples":{"Invalid or missing header":{"value":"{\n  \"resourceType\": \"OperationOutcome\",\n  \"issue\": [\n    {\n      \"severity\": \"error\",\n      \"code\": \"value\",\n      \"details\": {\n        \"coding\": [\n          {\n            \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode\",\n            \"version\": \"1\",\n            \"code\": \"MISSING_OR_INVALID_HEADER\",\n            \"display\": \"There is a required header missing or invalid\"\n          }\n        ]\n      },\n      \"diagnostics\": \"<add diagnostics message>\"\n    }\n  ]\n}\n"}}}},"description":"Invalid request"}},"summary":"Convert FHIR payload"}}},"components":{"examples":{"MedicationRequest_R4_JSON":{"summary":"R4 JSON MedicationRequest","value":{"$ref":"components/examples/MedicationRequest/r4.json"}},"MedicationStatement_R4_JSON":{"summary":"R4 JSON MedicationStatement","value":{"$ref":"components/examples/MedicationStatement/r4.json"}},"MedicationRequest_R4_XML":{"summary":"R4 XML MedicationRequest","value":{"$ref":"components/examples/MedicationRequest/r4.xml"}},"MedicationStatement_R4_XML":{"summary":"R4 XML MedicationStatement","value":{"$ref":"components/examples/MedicationStatement/r4.xml"}},"MedicationRequest_STU3_JSON":{"summary":"STU3 JSON MedicationRequest","value":{"$ref":"components/examples/MedicationRequest/stu3.json"}},"MedicationStatement_STU3_JSON":{"summary":"STU3 JSON MedicationStatement","value":{"$ref":"components/examples/MedicationStatement/stu3.json"}},"MedicationRequest_STU3_XML":{"summary":"STU3 XML MedicationRequest","value":{"$ref":"components/examples/MedicationRequest/stu3.xml"}},"MedicationStatement_STU3_XML":{"summary":"STU3 XML MedicationStatement","value":{"$ref":"components/examples/MedicationStatement/stu3.xml"}},"InvalidOrMissingHeader":{"summary":"Invalid of missing header errror","value":{"$ref":"components/examples/400.json"}}},"schemas":{}},"x-nhs-api-spec-guid":"c488b99d-f9df-481b-a903-f16cab4855a6","x-meta":{"service_name":"fhir-converter","short_service_name":"fc","product_display_name":"FHIR Converter","service_base_path":"fhir-converter","product_description":"This proxy converts resource types `MedicationRequest` and `MedicationStatements` from STU3 to FHIR R4 and vice versa","pipeline_name_prefix":"FHIR-Converter"}}