{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-MedicationAdministration-1",
  "version": "1.1.0",
  "name": "CareConnect-MedicationAdministration-1",
  "status": "draft",
  "date": "2023-07-28",
  "publisher": "NHS England",
  "contact": [
    {
      "name": "Interoperability Team",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Describes the event of a patient consuming or otherwise being administered a medication.",
  "purpose": "[NOT CURATED BY INTEROPEN see: http://www.interopen.org/careconnect-curation-methodology/] Initial development for the Digital Maternity programme",
  "copyright": "Copyright © 2016 HL7 UK\r \r Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\r \r http://www.apache.org/licenses/LICENSE-2.0\r \r Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\r \r HL7® FHIR® standard Copyright © 2011+ HL7\r \r The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r \r https://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationAdministration",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationAdministration.identifier.assigner",
        "path": "MedicationAdministration.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
          }
        ]
      },
      {
        "id": "MedicationAdministration.partOf",
        "path": "MedicationAdministration.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Procedure-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-MedicationAdministration-1"
          }
        ]
      },
      {
        "id": "MedicationAdministration.medication[x]",
        "path": "MedicationAdministration.medication[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Medication-1"
          }
        ],
        "binding": {
          "strength": "example",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/medication-codes"
        }
      },
      {
        "id": "MedicationAdministration.subject",
        "path": "MedicationAdministration.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          }
        ]
      },
      {
        "id": "MedicationAdministration.context",
        "path": "MedicationAdministration.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-EpisodeOfCare-1"
          }
        ]
      },
      {
        "id": "MedicationAdministration.performer.actor",
        "path": "MedicationAdministration.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-RelatedPerson-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          }
        ]
      },
      {
        "id": "MedicationAdministration.performer.onBehalfOf",
        "path": "MedicationAdministration.performer.onBehalfOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
          }
        ]
      },
      {
        "id": "MedicationAdministration.reasonReference",
        "path": "MedicationAdministration.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Observation-1"
          }
        ]
      },
      {
        "id": "MedicationAdministration.prescription",
        "path": "MedicationAdministration.prescription",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-MedicationRequest-1"
          }
        ]
      },
      {
        "id": "MedicationAdministration.note.author[x]",
        "path": "MedicationAdministration.note.author[x]",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-RelatedPerson-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          }
        ]
      },
      {
        "id": "MedicationAdministration.dosage.route.coding",
        "path": "MedicationAdministration.dosage.route.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationAdministration.dosage.route.coding:snomedCT",
        "path": "MedicationAdministration.dosage.route.coding",
        "sliceName": "snomedCT",
        "max": "1",
        "binding": {
          "strength": "example",
          "description": "A code from the SNOMED Clinical Terminology UK coding system that describes the e-Prescribing route of administration.",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-MedicationDosageRoute-1"
          }
        }
      },
      {
        "id": "MedicationAdministration.dosage.route.coding:snomedCT.extension",
        "path": "MedicationAdministration.dosage.route.coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "MedicationAdministration.dosage.route.coding:snomedCT.extension:SnomedCTDescriptionId",
        "path": "MedicationAdministration.dosage.route.coding.extension",
        "sliceName": "SnomedCTDescriptionId",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
          }
        ]
      },
      {
        "id": "MedicationAdministration.dosage.route.coding:snomedCT.system",
        "path": "MedicationAdministration.dosage.route.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "MedicationAdministration.dosage.route.coding:snomedCT.code",
        "path": "MedicationAdministration.dosage.route.coding.code",
        "min": 1
      },
      {
        "id": "MedicationAdministration.dosage.route.coding:snomedCT.display",
        "path": "MedicationAdministration.dosage.route.coding.display",
        "min": 1
      }
    ]
  }
}