{
  "resourceType": "StructureDefinition",
  "id": "Medication",
  "url": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Medication/v1",
  "version": "1.0",
  "name": "Medication",
  "status": "active",
  "date": "2024-01-10T14:25:44.7798514+00:00",
  "description": "This profile originates from the medication used in a medication administration, medication statement or medication request. The registration contains the medication including the specific substance.\r\nThe profile is based on the Medication Resource.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication.id",
        "path": "Medication.id",
        "max": "0"
      },
      {
        "id": "Medication.meta",
        "path": "Medication.meta"
      },
      {
        "id": "Medication.meta.id",
        "path": "Medication.meta.id",
        "max": "0"
      },
      {
        "id": "Medication.meta.versionId",
        "path": "Medication.meta.versionId",
        "min": 1
      },
      {
        "id": "Medication.meta.lastUpdated",
        "path": "Medication.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Medication.meta.source",
        "path": "Medication.meta.source",
        "max": "0"
      },
      {
        "id": "Medication.meta.profile",
        "path": "Medication.meta.profile",
        "max": "0"
      },
      {
        "id": "Medication.meta.security",
        "path": "Medication.meta.security",
        "max": "0"
      },
      {
        "id": "Medication.meta.tag",
        "path": "Medication.meta.tag",
        "max": "0"
      },
      {
        "id": "Medication.implicitRules",
        "path": "Medication.implicitRules",
        "max": "0"
      },
      {
        "id": "Medication.language",
        "path": "Medication.language",
        "max": "0"
      },
      {
        "id": "Medication.text",
        "path": "Medication.text",
        "max": "0"
      },
      {
        "id": "Medication.contained",
        "path": "Medication.contained",
        "max": "0"
      },
      {
        "id": "Medication.identifier",
        "path": "Medication.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Medication.identifier.use",
        "path": "Medication.identifier.use",
        "max": "0"
      },
      {
        "id": "Medication.identifier.type",
        "path": "Medication.identifier.type",
        "max": "0"
      },
      {
        "id": "Medication.identifier.system",
        "path": "Medication.identifier.system",
        "definition": "The namespace for the identifier value.",
        "min": 1
      },
      {
        "id": "Medication.identifier.value",
        "path": "Medication.identifier.value",
        "definition": "The value that is unique.",
        "min": 1
      },
      {
        "id": "Medication.identifier.period",
        "path": "Medication.identifier.period",
        "max": "0"
      },
      {
        "id": "Medication.identifier.assigner",
        "path": "Medication.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "max": "0"
      },
      {
        "id": "Medication.status",
        "path": "Medication.status",
        "max": "0"
      },
      {
        "id": "Medication.manufacturer",
        "path": "Medication.manufacturer",
        "max": "0"
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "max": "0"
      },
      {
        "id": "Medication.amount",
        "path": "Medication.amount",
        "max": "0"
      },
      {
        "id": "Medication.ingredient",
        "path": "Medication.ingredient",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Medication.ingredient.item[x]",
        "path": "Medication.ingredient.item[x]",
        "definition": "The actual ingredient - either a substance (simple ingredient) if the medication is predefined in the prehospital system or CodeableConcept if the medication is not predefined.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Substance/v1"
            ]
          }
        ]
      },
      {
        "id": "Medication.ingredient.item[x].reference",
        "path": "Medication.ingredient.item[x].reference",
        "definition": "Literal reference to a substance resource. Relative URL is being used."
      },
      {
        "id": "Medication.ingredient.item[x].type",
        "path": "Medication.ingredient.item[x].type",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.item[x].identifier",
        "path": "Medication.ingredient.item[x].identifier",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.item[x].display",
        "path": "Medication.ingredient.item[x].display",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.isActive",
        "path": "Medication.ingredient.isActive",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.strength",
        "path": "Medication.ingredient.strength",
        "min": 1
      },
      {
        "id": "Medication.ingredient.strength.numerator",
        "path": "Medication.ingredient.strength.numerator",
        "min": 1
      },
      {
        "id": "Medication.ingredient.strength.numerator.value",
        "path": "Medication.ingredient.strength.numerator.value",
        "min": 1
      },
      {
        "id": "Medication.ingredient.strength.numerator.comparator",
        "path": "Medication.ingredient.strength.numerator.comparator",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.strength.numerator.unit",
        "path": "Medication.ingredient.strength.numerator.unit",
        "min": 1
      },
      {
        "id": "Medication.ingredient.strength.numerator.system",
        "path": "Medication.ingredient.strength.numerator.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/ValueSet/ucum-units"
      },
      {
        "id": "Medication.ingredient.strength.numerator.code",
        "path": "Medication.ingredient.strength.numerator.code",
        "min": 1
      },
      {
        "id": "Medication.ingredient.strength.denominator.value",
        "path": "Medication.ingredient.strength.denominator.value",
        "min": 1
      },
      {
        "id": "Medication.ingredient.strength.denominator.comparator",
        "path": "Medication.ingredient.strength.denominator.comparator",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.strength.denominator.unit",
        "path": "Medication.ingredient.strength.denominator.unit",
        "min": 1
      },
      {
        "id": "Medication.ingredient.strength.denominator.system",
        "path": "Medication.ingredient.strength.denominator.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/ValueSet/ucum-units"
      },
      {
        "id": "Medication.ingredient.strength.denominator.code",
        "path": "Medication.ingredient.strength.denominator.code",
        "min": 1
      },
      {
        "id": "Medication.batch",
        "path": "Medication.batch",
        "max": "0"
      }
    ]
  }
}