{
  "resourceType": "StructureDefinition",
  "id": "MedicationRequest",
  "url": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/MedicationRequest/v1",
  "version": "1.0",
  "name": "MedicationRequest",
  "status": "active",
  "date": "2024-05-02T12:08:33.5385973+00:00",
  "description": "This resource is used for the medication request done by a clinician in the ER while treatment of the patient is ongoing in the prehospital area.\r\nThe profile is based on the MedicationRequest Resource.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.id",
        "path": "MedicationRequest.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.meta",
        "path": "MedicationRequest.meta"
      },
      {
        "id": "MedicationRequest.meta.id",
        "path": "MedicationRequest.meta.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.meta.versionId",
        "path": "MedicationRequest.meta.versionId",
        "min": 1
      },
      {
        "id": "MedicationRequest.meta.lastUpdated",
        "path": "MedicationRequest.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "MedicationRequest.meta.source",
        "path": "MedicationRequest.meta.source",
        "max": "0"
      },
      {
        "id": "MedicationRequest.meta.profile",
        "path": "MedicationRequest.meta.profile",
        "max": "0"
      },
      {
        "id": "MedicationRequest.meta.security",
        "path": "MedicationRequest.meta.security",
        "max": "0"
      },
      {
        "id": "MedicationRequest.meta.tag",
        "path": "MedicationRequest.meta.tag",
        "max": "0"
      },
      {
        "id": "MedicationRequest.implicitRules",
        "path": "MedicationRequest.implicitRules",
        "max": "0"
      },
      {
        "id": "MedicationRequest.language",
        "path": "MedicationRequest.language",
        "max": "0"
      },
      {
        "id": "MedicationRequest.text",
        "path": "MedicationRequest.text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.contained",
        "path": "MedicationRequest.contained",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier",
        "path": "MedicationRequest.identifier",
        "definition": "An identifier for this medication request.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationRequest.identifier.use",
        "path": "MedicationRequest.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.type",
        "path": "MedicationRequest.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.system",
        "path": "MedicationRequest.identifier.system",
        "definition": "The namespace for the identifier value.",
        "min": 1
      },
      {
        "id": "MedicationRequest.identifier.value",
        "path": "MedicationRequest.identifier.value",
        "definition": "The value that is unique.",
        "min": 1
      },
      {
        "id": "MedicationRequest.identifier.period",
        "path": "MedicationRequest.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier.assigner",
        "path": "MedicationRequest.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.status",
        "path": "MedicationRequest.status",
        "definition": "A code specifying the state of the medication request.\r\n\r\nWhen the administration is registered and successfully send, the status is 'completed'. If the request awaits connection to the mobile client the status is ‘On-hold’. Lastly if the request is failed in the sending, the status is ‘cancelled’."
      },
      {
        "id": "MedicationRequest.statusReason",
        "path": "MedicationRequest.statusReason",
        "max": "0"
      },
      {
        "id": "MedicationRequest.intent",
        "path": "MedicationRequest.intent",
        "definition": "The intent of the medication request.",
        "fixedCode": "plan"
      },
      {
        "id": "MedicationRequest.category",
        "path": "MedicationRequest.category",
        "definition": "Type of medication.",
        "max": "1"
      },
      {
        "id": "MedicationRequest.category.coding",
        "path": "MedicationRequest.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationRequest.category.coding.system",
        "path": "MedicationRequest.category.coding.system",
        "definition": "Identity of the terminology system.",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/ValueSet/medicationrequest-category"
      },
      {
        "id": "MedicationRequest.category.coding.version",
        "path": "MedicationRequest.category.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationRequest.category.coding.code",
        "path": "MedicationRequest.category.coding.code",
        "definition": "Symbol in syntax defined by the system.",
        "min": 1,
        "fixedCode": "inpatient"
      },
      {
        "id": "MedicationRequest.category.coding.display",
        "path": "MedicationRequest.category.coding.display",
        "definition": "Representation defined by the system."
      },
      {
        "id": "MedicationRequest.category.coding.userSelected",
        "path": "MedicationRequest.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationRequest.category.text",
        "path": "MedicationRequest.category.text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.priority",
        "path": "MedicationRequest.priority",
        "fixedCode": "asap"
      },
      {
        "id": "MedicationRequest.doNotPerform",
        "path": "MedicationRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reported[x]",
        "path": "MedicationRequest.reported[x]",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "definition": "Medication to be taken.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/CodeableConcept/v1"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Medication/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.subject",
        "definition": "Who the medication request is for.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Patient/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.subject.reference",
        "path": "MedicationRequest.subject.reference",
        "min": 1
      },
      {
        "id": "MedicationRequest.subject.type",
        "path": "MedicationRequest.subject.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.identifier",
        "path": "MedicationRequest.subject.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.display",
        "path": "MedicationRequest.subject.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter",
        "path": "MedicationRequest.encounter",
        "definition": "The Encounter during which this medication request was created or to which the creation of this record is tightly associated.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Encounter/v1"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.encounter.reference",
        "path": "MedicationRequest.encounter.reference",
        "min": 1
      },
      {
        "id": "MedicationRequest.encounter.type",
        "path": "MedicationRequest.encounter.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter.identifier",
        "path": "MedicationRequest.encounter.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter.display",
        "path": "MedicationRequest.encounter.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.supportingInformation",
        "path": "MedicationRequest.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationRequest.authoredOn",
        "path": "MedicationRequest.authoredOn",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester",
        "path": "MedicationRequest.requester",
        "definition": "The clinician initiated the request and has responsibility for its activation. If the administration of the medication is done without a requester it must be set as auto.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Practitioner/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.requester.reference",
        "path": "MedicationRequest.requester.reference",
        "definition": "Literal reference to the practitioner resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.type",
        "path": "MedicationRequest.requester.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.identifier",
        "path": "MedicationRequest.requester.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.display",
        "path": "MedicationRequest.requester.display",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference. If no requester is associated with the medication administration, the text shall be set as automatic requester.",
        "fixedString": "automatic"
      },
      {
        "id": "MedicationRequest.performer",
        "path": "MedicationRequest.performer",
        "max": "0"
      },
      {
        "id": "MedicationRequest.performerType",
        "path": "MedicationRequest.performerType",
        "max": "0"
      },
      {
        "id": "MedicationRequest.recorder",
        "path": "MedicationRequest.recorder",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonCode",
        "path": "MedicationRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonReference",
        "path": "MedicationRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "MedicationRequest.instantiatesCanonical",
        "path": "MedicationRequest.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "MedicationRequest.instantiatesUri",
        "path": "MedicationRequest.instantiatesUri",
        "max": "0"
      },
      {
        "id": "MedicationRequest.basedOn",
        "path": "MedicationRequest.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationRequest.groupIdentifier",
        "path": "MedicationRequest.groupIdentifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.courseOfTherapyType",
        "path": "MedicationRequest.courseOfTherapyType",
        "max": "0"
      },
      {
        "id": "MedicationRequest.insurance",
        "path": "MedicationRequest.insurance",
        "max": "0"
      },
      {
        "id": "MedicationRequest.note",
        "path": "MedicationRequest.note",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction",
        "path": "MedicationRequest.dosageInstruction",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest",
        "path": "MedicationRequest.dispenseRequest",
        "max": "0"
      },
      {
        "id": "MedicationRequest.substitution",
        "path": "MedicationRequest.substitution",
        "max": "0"
      },
      {
        "id": "MedicationRequest.priorPrescription",
        "path": "MedicationRequest.priorPrescription",
        "max": "0"
      },
      {
        "id": "MedicationRequest.detectedIssue",
        "path": "MedicationRequest.detectedIssue",
        "max": "0"
      },
      {
        "id": "MedicationRequest.eventHistory",
        "path": "MedicationRequest.eventHistory",
        "max": "0"
      }
    ]
  }
}