{
  "resourceType": "StructureDefinition",
  "id": "rdc-MedicationRequest",
  "url": "https://roche.com/fhir/iop/StructureDefinition/rdc-MedicationRequest",
  "name": "RdcMedicationRequest",
  "title": "RDC MedicationRequest",
  "status": "draft",
  "publisher": "F. Hoffmann-La Roche AG",
  "description": "Describes an order or request for both supply of the medication and the instructions for administration of a medication to a patient.",
  "copyright": "Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.identifier",
        "path": "MedicationRequest.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.basedOn",
        "path": "MedicationRequest.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationRequest.priorPrescription",
        "path": "MedicationRequest.priorPrescription",
        "max": "0"
      },
      {
        "id": "MedicationRequest.groupIdentifier",
        "path": "MedicationRequest.groupIdentifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.statusReason",
        "path": "MedicationRequest.statusReason",
        "max": "0"
      },
      {
        "id": "MedicationRequest.statusChanged",
        "path": "MedicationRequest.statusChanged",
        "max": "0"
      },
      {
        "id": "MedicationRequest.category",
        "path": "MedicationRequest.category",
        "binding": {
          "strength": "required",
          "valueSet": "https://roche.com/fhir/iop/ValueSet/insulin-codes"
        }
      },
      {
        "id": "MedicationRequest.priority",
        "path": "MedicationRequest.priority",
        "max": "0"
      },
      {
        "id": "MedicationRequest.doNotPerform",
        "path": "MedicationRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication",
        "path": "MedicationRequest.medication",
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "https://roche.com/fhir/iop/StructureDefinition/rdc-Medication"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.medication.concept",
        "path": "MedicationRequest.medication.concept",
        "definition": "Informs the type of administration conducted (ex. Basal or Bolus).",
        "binding": {
          "strength": "required",
          "valueSet": "https://roche.com/fhir/iop/ValueSet/insulin-codes"
        }
      },
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://roche.com/fhir/iop/StructureDefinition/rdc-Patient"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.informationSource",
        "path": "MedicationRequest.informationSource",
        "max": "0"
      },
      {
        "id": "MedicationRequest.encounter",
        "path": "MedicationRequest.encounter",
        "max": "0"
      },
      {
        "id": "MedicationRequest.supportingInformation",
        "path": "MedicationRequest.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester",
        "path": "MedicationRequest.requester",
        "definition": "Reference to the device instance that generated the request, such as a bolus calculator pump or other automated medication management system",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://roche.com/fhir/iop/StructureDefinition/rdc-Device-Instance"
            ]
          }
        ]
      },
      {
        "id": "MedicationRequest.reported",
        "path": "MedicationRequest.reported",
        "max": "0"
      },
      {
        "id": "MedicationRequest.performerType",
        "path": "MedicationRequest.performerType",
        "max": "0"
      },
      {
        "id": "MedicationRequest.performer",
        "path": "MedicationRequest.performer",
        "max": "0"
      },
      {
        "id": "MedicationRequest.device",
        "path": "MedicationRequest.device",
        "max": "0"
      },
      {
        "id": "MedicationRequest.recorder",
        "path": "MedicationRequest.recorder",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reason",
        "path": "MedicationRequest.reason",
        "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.renderedDosageInstruction",
        "path": "MedicationRequest.renderedDosageInstruction",
        "max": "0"
      },
      {
        "id": "MedicationRequest.effectiveDosePeriod",
        "path": "MedicationRequest.effectiveDosePeriod",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction",
        "binding": {
          "strength": "required",
          "valueSet": "https://roche.com/fhir/iop/ValueSet/insulin-codes"
        }
      },
      {
        "id": "MedicationRequest.dosageInstruction.method",
        "path": "MedicationRequest.dosageInstruction.method",
        "binding": {
          "strength": "required",
          "valueSet": "https://roche.com/fhir/iop/ValueSet/insulin-codes"
        }
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.type",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.type",
        "binding": {
          "strength": "required",
          "valueSet": "https://roche.com/fhir/iop/ValueSet/insulin-codes"
        }
      },
      {
        "id": "MedicationRequest.dispenseRequest",
        "path": "MedicationRequest.dispenseRequest",
        "max": "0"
      },
      {
        "id": "MedicationRequest.substitution",
        "path": "MedicationRequest.substitution",
        "max": "0"
      },
      {
        "id": "MedicationRequest.eventHistory",
        "path": "MedicationRequest.eventHistory",
        "max": "0"
      }
    ]
  }
}