{
  "resourceType": "MedicationRequest",
  "id": "4c39e52e-7ae4-48a2-b209-0561932b9e54",
  "contained": [
    {
      "resourceType": "Medication",
      "id": "med1",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "318902004",
            "display": "Ramipril 5mg capsules"
          }
        ]
      }
    }
  ],
  "status": "active",
  "intent": "order",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
          "code": "inpatient",
          "display": "inpatient"
        }
      ]
    }
  ],
  "priority": "routine",
  "medicationReference": {
    "reference": "#med1"
  },
  "subject": {
    "identifier": {
      "system": "https://fhir.nhs.uk/Id/nhs-number",
      "value": "9999999999"
    }
  },
  "authoredOn": "2020-05-15T15:00:00Z",
  "requester": {
    "reference": "urn:staff-1112",
    "display": "Dr Maikeu Well"
  },
  "recorder": {
    "reference": "urn:staff-1112",
    "display": "Dr Maikeu Well"
  },
  "dosageInstruction": [
    {
      "additionalInstruction": [
        {
          "text": "subsequent courses repeated after 7-day tablet-free interval"
        }
      ],
      "timing": {
        "repeat": {
          "boundsDuration": {
            "value": 21,
            "unit": "day",
            "system": "http://unitsofmeasure.org",
            "code": "d"
          },
          "frequency": 1,
          "period": 1,
          "periodUnit": "d"
        }
      },
      "route": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "26643006",
            "display": "oral"
          }
        ]
      },
      "doseAndRate": [
        {
          "doseQuantity": {
            "value": 1,
            "unit": "tablet",
            "system": "http://snomed.info/sct",
            "code": "428673006"
          }
        }
      ]
    }
  ],
  "substitution": {
    "allowedBoolean": false
  }
}