{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-Message",
  "name": "NHSDigitalMedicationRequestMessage",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.subject",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.requester",
        "path": "MedicationRequest.requester",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole-EPSLegal"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.eventHistory",
        "path": "MedicationRequest.eventHistory",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "bundled"
            ]
          }
        ]
      }
    ]
  }
}