{
  "resourceType": "StructureDefinition",
  "url": "http://fhir.de/StructureDefinition/medicationrequest-de-basis/0.2",
  "version": "0.2",
  "name": "medicationrequest-de-basis-0.2",
  "title": "MedicationRequest, deutsches Basisprofil (Version 0.2)",
  "status": "draft",
  "date": "2018-09-25",
  "publisher": "HL7 Deutschland e.V. (Technisches Komitee FHIR)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.de/technische-komitees/fhir/"
        }
      ]
    }
  ],
  "description": "Basisprofil für die Verwendung der MedicationRequest Ressource in Deutschland",
  "purpose": "Verordnung von Medikamenten, z.B. im Kontext von Rezepten",
  "copyright": "HL7 Deutschland e.V.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.extension",
        "path": "MedicationRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.extension:rezept-zusatzinfos",
        "path": "MedicationRequest.extension",
        "sliceName": "rezept-zusatzinfos",
        "short": "Rezept-Zusatzinformationen",
        "definition": "Zusatzinformationen im Kontext von Rezepten (Medikations-Verordnungen)",
        "type": [
          {
            "code": "Extension",
            "profile": "http://fhir.de/StructureDefinition/rezept-zusatzinfos/0.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.basedOn",
        "path": "MedicationRequest.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/medicationrequest-de-basis/0.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.groupIdentifier",
        "path": "MedicationRequest.groupIdentifier",
        "short": "gruppierender (zusammenfassender) Identifikator",
        "definition": "Ein Identifikator, der allen MedicationRequests gemeinsam ist, die annähernd zur selben Zeit vom selben Autor für den selben Patienten erstellt wurden.\r\nDies kann beispielsweise zur Gruppierung für die in Deutschland üblichen 1..3 Verordnungen auf einem (Papier-)Rezept verwendet werden."
      },
      {
        "id": "MedicationRequest.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Medication"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/medication-de-basis/0.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/patient-de-basis/0.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.requester.agent",
        "path": "MedicationRequest.requester.agent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/practitioner-de-basis/0.2"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/organization-de-basis/0.2"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/patient-de-basis/0.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.recorder",
        "path": "MedicationRequest.recorder",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/practitioner-de-basis/0.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.reasonReference",
        "path": "MedicationRequest.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Condition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/observation-de-basis/0.2"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/condition-de-basis/0.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.performer",
        "path": "MedicationRequest.dispenseRequest.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/organization-de-basis/0.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.substitution",
        "path": "MedicationRequest.substitution",
        "short": "aut-idem-Regelung",
        "definition": "Gibt an, ob ein alternatives Präparat (identischer Wirkstoff, Dosis, Form) angegegeben werden darf.\r\nVgl. Definition des allowed-Elements"
      },
      {
        "id": "MedicationRequest.substitution.allowed",
        "path": "MedicationRequest.substitution.allowed",
        "short": "aut-idem",
        "definition": "aut-idem-Regelung.\r\nfalse === aut-idem := KEIN Ersetzen durch Produkt eines anderen Herstellers erlaubt\r\ntrue === NICHT aut-idem := Ersetzen durch Produkt eines anderen Herstellers erlaubt"
      },
      {
        "id": "MedicationRequest.priorPrescription",
        "path": "MedicationRequest.priorPrescription",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/medicationrequest-de-basis/0.2"
          }
        ]
      }
    ]
  }
}