{
  "resourceType": "StructureDefinition",
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">No human-readable text provided in this case.</div>"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationRequest",
  "version": "4.0.1",
  "name": "MedicationRequestPrescription",
  "title": "MedicationRequest Prescription",
  "status": "active",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "acCDR-HL7v2-mapping",
      "name": "acCDR HL7v2 mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.id",
        "path": "MedicationRequest.id",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.meta",
        "path": "MedicationRequest.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.meta.profile",
        "path": "MedicationRequest.meta.profile",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.identifier",
        "path": "MedicationRequest.identifier",
        "max": "1",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "ORC.2",
            "comment": "unique number identifying the medication order generated by the order entry system"
          }
        ]
      },
      {
        "id": "MedicationRequest.identifier.system",
        "path": "MedicationRequest.identifier.system",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "ORC.2.3"
          }
        ]
      },
      {
        "id": "MedicationRequest.identifier.value",
        "path": "MedicationRequest.identifier.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "ORC.2.1"
          }
        ]
      },
      {
        "id": "MedicationRequest.status",
        "path": "MedicationRequest.status",
        "fixedCode": "unknown",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.intent",
        "path": "MedicationRequest.intent",
        "fixedCode": "order",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.medication[x]",
        "path": "MedicationRequest.medication[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Medication"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.medication[x].reference",
        "path": "MedicationRequest.medication[x].reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.subject.reference",
        "path": "MedicationRequest.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.requester",
        "path": "MedicationRequest.requester",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-PractitionerRole",
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Practitioner"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.requester.reference",
        "path": "MedicationRequest.requester.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.reasonCode",
        "path": "MedicationRequest.reasonCode",
        "max": "5",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/prescriptionindicationforuse"
        },
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "RXE.27",
            "comment": "give indication"
          }
        ]
      },
      {
        "id": "MedicationRequest.reasonCode.coding",
        "path": "MedicationRequest.reasonCode.coding",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.reasonCode.coding.system",
        "path": "MedicationRequest.reasonCode.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "RXE.27.3"
          }
        ]
      },
      {
        "id": "MedicationRequest.reasonCode.coding.code",
        "path": "MedicationRequest.reasonCode.coding.code",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "RXE.27.1"
          }
        ]
      },
      {
        "id": "MedicationRequest.reasonCode.coding.display",
        "path": "MedicationRequest.reasonCode.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.reasonCode.text",
        "path": "MedicationRequest.reasonCode.text",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "RXE.27.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction",
        "path": "MedicationRequest.dosageInstruction",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.dosageInstruction.sequence",
        "path": "MedicationRequest.dosageInstruction.sequence",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.dosageInstruction.text",
        "path": "MedicationRequest.dosageInstruction.text",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "TQ1.11"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.dosageInstruction.additionalInstruction.text",
        "path": "MedicationRequest.dosageInstruction.additionalInstruction.text",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "RXE.7.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing",
        "path": "MedicationRequest.dosageInstruction.timing",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "TQ1"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat",
        "path": "MedicationRequest.dosageInstruction.timing.repeat",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat.duration",
        "path": "MedicationRequest.dosageInstruction.timing.repeat.duration",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "TQ1.6.1"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.repeat.durationUnit",
        "path": "MedicationRequest.dosageInstruction.timing.repeat.durationUnit",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "TQ1.6.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.code",
        "path": "MedicationRequest.dosageInstruction.timing.code",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ehealthontario.ca/fhir/ValueSet/dhdr-medication-repeat-pattern"
        },
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "TQ1.3"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.code.coding",
        "path": "MedicationRequest.dosageInstruction.timing.code.coding",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.code.coding.system",
        "path": "MedicationRequest.dosageInstruction.timing.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "TQ1.3.3"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.code.coding.code",
        "path": "MedicationRequest.dosageInstruction.timing.code.coding.code",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "TQ1.3.1"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.code.coding.display",
        "path": "MedicationRequest.dosageInstruction.timing.code.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.dosageInstruction.timing.code.text",
        "path": "MedicationRequest.dosageInstruction.timing.code.text",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "TQ1.3.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.asNeeded[x]",
        "path": "MedicationRequest.dosageInstruction.asNeeded[x]",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "TQ1.3.1",
            "comment": "if the code is PRN set boolean for true"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.route",
        "path": "MedicationRequest.dosageInstruction.route",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "RXR.1"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.coding",
        "path": "MedicationRequest.dosageInstruction.route.coding",
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration"
        }
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.coding.system",
        "path": "MedicationRequest.dosageInstruction.route.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "RXR.1.3"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.coding.code",
        "path": "MedicationRequest.dosageInstruction.route.coding.code",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "RXR.1.1"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.coding.display",
        "path": "MedicationRequest.dosageInstruction.route.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.dosageInstruction.route.text",
        "path": "MedicationRequest.dosageInstruction.route.text",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "acCDR-HL7v2-mapping",
            "map": "RXR.1.2"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate",
        "path": "MedicationRequest.dosageInstruction.doseAndRate",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]",
        "type": [
          {
            "code": "Range",
            "profile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-doseRange"
            ]
          },
          {
            "code": "Quantity",
            "profile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-doseQuantity"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]",
        "path": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]",
        "type": [
          {
            "code": "Range",
            "profile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-rateRange"
            ]
          },
          {
            "code": "Quantity",
            "profile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-rateQuantity"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}