{
  "resourceType": "StructureDefinition",
  "id": "MedicationStatement",
  "url": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/MedicationStatement/v1",
  "version": "1.0",
  "name": "MedicationStatement",
  "status": "active",
  "date": "2024-05-02T12:08:33.5385973+00:00",
  "description": "This resource is used for the medication history of the patient, both previous and current medical history.\r\nThe profile is based on the MedicationStatement Resource.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.id",
        "path": "MedicationStatement.id",
        "max": "0"
      },
      {
        "id": "MedicationStatement.meta",
        "path": "MedicationStatement.meta"
      },
      {
        "id": "MedicationStatement.meta.id",
        "path": "MedicationStatement.meta.id",
        "max": "0"
      },
      {
        "id": "MedicationStatement.meta.versionId",
        "path": "MedicationStatement.meta.versionId",
        "min": 1
      },
      {
        "id": "MedicationStatement.meta.lastUpdated",
        "path": "MedicationStatement.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "MedicationStatement.meta.source",
        "path": "MedicationStatement.meta.source",
        "max": "0"
      },
      {
        "id": "MedicationStatement.meta.profile",
        "path": "MedicationStatement.meta.profile",
        "max": "0"
      },
      {
        "id": "MedicationStatement.meta.security",
        "path": "MedicationStatement.meta.security",
        "max": "0"
      },
      {
        "id": "MedicationStatement.meta.tag",
        "path": "MedicationStatement.meta.tag",
        "max": "0"
      },
      {
        "id": "MedicationStatement.implicitRules",
        "path": "MedicationStatement.implicitRules",
        "max": "0"
      },
      {
        "id": "MedicationStatement.language",
        "path": "MedicationStatement.language",
        "max": "0"
      },
      {
        "id": "MedicationStatement.text",
        "path": "MedicationStatement.text",
        "max": "0"
      },
      {
        "id": "MedicationStatement.contained",
        "path": "MedicationStatement.contained",
        "max": "0"
      },
      {
        "id": "MedicationStatement.identifier",
        "path": "MedicationStatement.identifier",
        "short": "Identifier of the medicine taken",
        "definition": "Identifier of the medicine taken.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationStatement.identifier.use",
        "path": "MedicationStatement.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationStatement.identifier.type",
        "path": "MedicationStatement.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationStatement.identifier.system",
        "path": "MedicationStatement.identifier.system",
        "definition": "Establishes the namespace for the identifier of the medicine taken.",
        "min": 1,
        "fixedUri": "http://amphisystems.com/amphi/journaldatasystemid"
      },
      {
        "id": "MedicationStatement.identifier.value",
        "path": "MedicationStatement.identifier.value",
        "short": "A unique identifier of the medicine",
        "definition": "A unique identifier of the medicine.",
        "min": 1
      },
      {
        "id": "MedicationStatement.identifier.period",
        "path": "MedicationStatement.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationStatement.identifier.assigner",
        "path": "MedicationStatement.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationStatement.basedOn",
        "path": "MedicationStatement.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationStatement.partOf",
        "path": "MedicationStatement.partOf",
        "max": "0"
      },
      {
        "id": "MedicationStatement.status",
        "path": "MedicationStatement.status",
        "definition": "A code representing the patient or other source's judgment about the state of the medication used that this statement is about.",
        "fixedCode": "active"
      },
      {
        "id": "MedicationStatement.statusReason",
        "path": "MedicationStatement.statusReason",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category",
        "path": "MedicationStatement.category",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category.coding",
        "path": "MedicationStatement.category.coding",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category.coding.system",
        "path": "MedicationStatement.category.coding.system",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category.coding.version",
        "path": "MedicationStatement.category.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category.coding.code",
        "path": "MedicationStatement.category.coding.code",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category.coding.display",
        "path": "MedicationStatement.category.coding.display",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category.coding.userSelected",
        "path": "MedicationStatement.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category.text",
        "path": "MedicationStatement.category.text",
        "max": "0"
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "definition": "Identifies the medication being administered.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Medication/v1"
            ]
          }
        ]
      },
      {
        "id": "MedicationStatement.medication[x].reference",
        "path": "MedicationStatement.medication[x].reference",
        "short": "Literal reference to the medication resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "MedicationStatement.medication[x].type",
        "path": "MedicationStatement.medication[x].type",
        "max": "0"
      },
      {
        "id": "MedicationStatement.medication[x].identifier",
        "path": "MedicationStatement.medication[x].identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.medication[x].display",
        "path": "MedicationStatement.medication[x].display",
        "definition": "Name of the medication.",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "definition": "The patient who is/was taking the medication.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Patient/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.subject.reference",
        "path": "MedicationStatement.subject.reference",
        "definition": "Literal reference to the patient resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "MedicationStatement.subject.type",
        "path": "MedicationStatement.subject.type",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject.identifier",
        "path": "MedicationStatement.subject.identifier",
        "definition": "Patient Identifier which gives access to past medical history.",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject.identifier.use",
        "path": "MedicationStatement.subject.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject.identifier.type",
        "path": "MedicationStatement.subject.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject.identifier.system",
        "path": "MedicationStatement.subject.identifier.system",
        "definition": "Establishes the namespace for the Social Security Number.",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject.identifier.value",
        "path": "MedicationStatement.subject.identifier.value",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. The unique value of the Social Security Number.",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject.identifier.period",
        "path": "MedicationStatement.subject.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject.identifier.assigner",
        "path": "MedicationStatement.subject.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationStatement.subject.display",
        "path": "MedicationStatement.subject.display",
        "max": "0"
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context",
        "short": "Encounter associated with MedicationStatement",
        "definition": "The encounter of care that establishes the context for this MedicationStatement.",
        "max": "0"
      },
      {
        "id": "MedicationStatement.context.reference",
        "path": "MedicationStatement.context.reference",
        "max": "0"
      },
      {
        "id": "MedicationStatement.context.type",
        "path": "MedicationStatement.context.type",
        "max": "0"
      },
      {
        "id": "MedicationStatement.context.identifier",
        "path": "MedicationStatement.context.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.context.display",
        "path": "MedicationStatement.context.display",
        "max": "0"
      },
      {
        "id": "MedicationStatement.effective[x]",
        "path": "MedicationStatement.effective[x]",
        "definition": "The interval of time during which it is being asserted that the patient is/was/will be taking the medication.",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "MedicationStatement.effective[x].start",
        "path": "MedicationStatement.effective[x].start",
        "definition": "Start date of the treatment.",
        "min": 1
      },
      {
        "id": "MedicationStatement.effective[x].end",
        "path": "MedicationStatement.effective[x].end",
        "definition": "End date of the treatment."
      },
      {
        "id": "MedicationStatement.dateAsserted",
        "path": "MedicationStatement.dateAsserted",
        "short": "Author time",
        "definition": "Author time is not shown at the moment.",
        "max": "0"
      },
      {
        "id": "MedicationStatement.informationSource",
        "path": "MedicationStatement.informationSource",
        "definition": "The clinician that provided the information about the taking of this medication.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Practitioner/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.informationSource.reference",
        "path": "MedicationStatement.informationSource.reference",
        "definition": "Literal reference to the practitioner resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "MedicationStatement.informationSource.type",
        "path": "MedicationStatement.informationSource.type",
        "max": "0"
      },
      {
        "id": "MedicationStatement.informationSource.identifier",
        "path": "MedicationStatement.informationSource.identifier",
        "definition": "Identifier of the clinician recording the medicine",
        "max": "0"
      },
      {
        "id": "MedicationStatement.informationSource.identifier.use",
        "path": "MedicationStatement.informationSource.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationStatement.informationSource.identifier.type",
        "path": "MedicationStatement.informationSource.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationStatement.informationSource.identifier.system",
        "path": "MedicationStatement.informationSource.identifier.system",
        "definition": "Establishes the namespace for the value of  - that is, a URL that describes a set values that are unique.",
        "min": 1
      },
      {
        "id": "MedicationStatement.informationSource.identifier.value",
        "path": "MedicationStatement.informationSource.identifier.value",
        "definition": "The portion of the identifier of the clinician which is typically relevant to the user and which is unique within the context of the system.",
        "min": 1
      },
      {
        "id": "MedicationStatement.informationSource.identifier.period",
        "path": "MedicationStatement.informationSource.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationStatement.informationSource.identifier.assigner",
        "path": "MedicationStatement.informationSource.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationStatement.informationSource.display",
        "path": "MedicationStatement.informationSource.display",
        "max": "0"
      },
      {
        "id": "MedicationStatement.derivedFrom",
        "path": "MedicationStatement.derivedFrom",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonCode",
        "path": "MedicationStatement.reasonCode",
        "short": "Reason for prescription",
        "definition": "Reason for prescription.",
        "max": "1"
      },
      {
        "id": "MedicationStatement.reasonCode.coding",
        "path": "MedicationStatement.reasonCode.coding",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonCode.text",
        "path": "MedicationStatement.reasonCode.text",
        "definition": "Display of reason for prescription.",
        "min": 1
      },
      {
        "id": "MedicationStatement.reasonReference",
        "path": "MedicationStatement.reasonReference",
        "max": "0"
      },
      {
        "id": "MedicationStatement.note",
        "path": "MedicationStatement.note",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage",
        "path": "MedicationStatement.dosage",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationStatement.dosage.sequence",
        "path": "MedicationStatement.dosage.sequence",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.text",
        "path": "MedicationStatement.dosage.text",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.additionalInstruction",
        "path": "MedicationStatement.dosage.additionalInstruction",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.patientInstruction",
        "path": "MedicationStatement.dosage.patientInstruction",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing",
        "path": "MedicationStatement.dosage.timing",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.asNeeded[x]",
        "path": "MedicationStatement.dosage.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.site",
        "path": "MedicationStatement.dosage.site",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.route",
        "path": "MedicationStatement.dosage.route",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.method",
        "path": "MedicationStatement.dosage.method",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate",
        "path": "MedicationStatement.dosage.doseAndRate",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.type",
        "path": "MedicationStatement.dosage.doseAndRate.type",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x]",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x].value",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x].value",
        "definition": "The value of the measured amount.",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x].unit",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x].unit",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x].system",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x].system",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x].code",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x].code",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.rate[x]",
        "path": "MedicationStatement.dosage.doseAndRate.rate[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.rate[x].value",
        "path": "MedicationStatement.dosage.doseAndRate.rate[x].value",
        "definition": "The value of the measured amount.",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.rate[x].unit",
        "path": "MedicationStatement.dosage.doseAndRate.rate[x].unit",
        "definition": "Unit representation.",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.rate[x].system",
        "path": "MedicationStatement.dosage.doseAndRate.rate[x].system",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.rate[x].code",
        "path": "MedicationStatement.dosage.doseAndRate.rate[x].code",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerPeriod",
        "path": "MedicationStatement.dosage.maxDosePerPeriod",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerAdministration",
        "path": "MedicationStatement.dosage.maxDosePerAdministration",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerLifetime",
        "path": "MedicationStatement.dosage.maxDosePerLifetime",
        "max": "0"
      }
    ]
  }
}