PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r4.id.core@0.1.0
    https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationRequest
{
  "description": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \\\"MedicationRequest\\\" rather than \\\"MedicationPrescription\\\" or \\\"MedicationOrder\\\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.",
  "_filename": "MedicationRequest.json",
  "package_name": "hl7.fhir.r4.id.core",
  "date": "2019-11-01T09:29:23+11:00",
  "derivation": "specialization",
  "meta": {
    "lastUpdated": "2021-12-31T09:00:42.583+00:00"
  },
  "publisher": "Health Level Seven International (Pharmacy)",
  "fhirVersion": "4.0.1",
  "name": "MedicationRequest",
  "mapping": [ {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://ncpdp.org/SCRIPT10_6",
    "name": "Mapping to NCPDP SCRIPT 10.6",
    "identity": "script10.6"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "MedicationRequest",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.1.0",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
    "valueString": "Clinical.Medications"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "trial-use"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 3
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
    "valueCode": "patient"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "phx"
  } ],
  "status": "draft",
  "id": "552e29f5-3ed9-43e5-98e1-7448e9ef212c",
  "kind": "resource",
  "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationRequest",
  "version": "4.0.1",
  "differential": {
    "element": [ {
      "id": "MedicationRequest",
      "path": "MedicationRequest",
      "alias": [ "Prescription", "Order" ],
      "short": "Ordering of medication for patient or group",
      "mapping": [ {
        "map": "Request",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx",
        "identity": "script10.6"
      }, {
        "map": "CombinedMedicationRequest",
        "identity": "rim"
      } ],
      "definition": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns."
    }, {
      "id": "MedicationRequest.identifier",
      "path": "MedicationRequest.identifier",
      "type": [ {
        "code": "Identifier"
      } ],
      "short": "External ids for this request",
      "comment": "This is a business identifier, not a resource identifier.",
      "mapping": [ {
        "map": "Request.identifier",
        "identity": "workflow"
      }, {
        "map": "Message/Header/PrescriberOrderNumber",
        "identity": "script10.6"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number",
        "identity": "v2"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "definition": "Identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server."
    }, {
      "path": "MedicationRequest.status",
      "min": 1,
      "definition": "A code specifying the current state of the order.  Generally, this will be active or completed state.",
      "isModifier": true,
      "short": "active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown",
      "mapping": [ {
        "map": "Request.status",
        "identity": "workflow"
      }, {
        "map": "no mapping",
        "identity": "script10.6"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestStatus"
        } ],
        "description": "A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription."
      },
      "max": "1",
      "id": "MedicationRequest.status",
      "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
      "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary": true
    }, {
      "path": "MedicationRequest.statusReason",
      "definition": "Captures the reason for the current state of the MedicationRequest.",
      "short": "Reason for current status",
      "mapping": [ {
        "map": "Request.statusReason",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestStatusReason"
        } ],
        "description": "Identifies the reasons for a given status."
      },
      "max": "1",
      "id": "MedicationRequest.statusReason",
      "comment": "This is generally only used for \"exception\" statuses such as \"suspended\" or \"cancelled\". The reason why the MedicationRequest was created at all is captured in reasonCode, not here."
    }, {
      "path": "MedicationRequest.intent",
      "min": 1,
      "definition": "Whether the request is a proposal, plan, or an original order.",
      "isModifier": true,
      "short": "proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option",
      "mapping": [ {
        "map": "Request.intent",
        "identity": "workflow"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestIntent"
        } ],
        "description": "The kind of medication order."
      },
      "max": "1",
      "id": "MedicationRequest.intent",
      "comment": "It is expected that the type of requester will be restricted for different stages of a MedicationRequest.  For example, Proposals can be created by a patient, relatedPerson, Practitioner or Device.  Plans can be created by Practitioners, Patients, RelatedPersons and Devices.  Original orders can be created by a Practitioner only.\r\rAn instance-order is an instantiation of a request or order and may be used to populate Medication Administration Record.\r\rThis element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
      "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request",
      "isSummary": true
    }, {
      "id": "MedicationRequest.category",
      "path": "MedicationRequest.category",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "short": "Type of medication usage",
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-category",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestCategory"
        } ],
        "description": "A coded concept identifying the category of medication request.  For example, where the medication is to be consumed or administered, or the type of medication treatment."
      },
      "comment": "The category can be used to include where the medication is expected to be consumed or other types of requests.",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/Directions\r\ror \r\rMessage/Body/NewRx/MedicationPrescribed/StructuredSIG",
        "identity": "script10.6"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value",
        "identity": "rim"
      } ],
      "definition": "Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient))."
    }, {
      "path": "MedicationRequest.priority",
      "definition": "Indicates how quickly the Medication Request should be addressed with respect to other requests.",
      "short": "routine | urgent | asap | stat",
      "mapping": [ {
        "map": "Request.priority",
        "identity": "workflow"
      }, {
        "map": "FiveWs.grade",
        "identity": "w5"
      }, {
        "map": ".priorityCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestPriority"
        } ],
        "description": "Identifies the level of importance to be assigned to actioning the request."
      },
      "max": "1",
      "id": "MedicationRequest.priority",
      "isSummary": true
    }, {
      "path": "MedicationRequest.doNotPerform",
      "definition": "If true indicates that the provider is asking for the medication request not to occur.",
      "isModifier": true,
      "short": "True if request is prohibiting action",
      "mapping": [ {
        "map": "SubstanceAdministration.actionNegationInd",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "MedicationRequest.doNotPerform",
      "comment": "If do not perform is not specified, the request is a positive request e.g. \"do perform\".",
      "isModifierReason": "This element is labeled as a modifier because this element negates the request to occur (ie, this is a request for the medication not to be ordered or prescribed, etc)",
      "isSummary": true
    }, {
      "id": "MedicationRequest.reported[x]",
      "max": "1",
      "path": "MedicationRequest.reported[x]",
      "type": [ {
        "code": "boolean"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "short": "Reported rather than primary record",
      "mapping": [ {
        "map": ".participation[typeCode=INF].role",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record.  It may also indicate the source of the report."
    }, {
      "path": "MedicationRequest.medication[x]",
      "min": 1,
      "definition": "Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.",
      "short": "Medication to be taken",
      "mapping": [ {
        "map": "Request.code",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx/MedicationPrescribed\r\rMedication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode\r\rMedication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier\r\rMedication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription",
        "identity": "script10.6"
      }, {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      }, {
        "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code",
        "identity": "v2"
      }, {
        "map": "consumable.administrableMedication",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Medication" ]
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationCode"
        } ],
        "description": "A coded concept identifying substance or product that can be ordered."
      },
      "max": "1",
      "id": "MedicationRequest.medication[x]",
      "comment": "If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended.  For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.",
      "isSummary": true
    }, {
      "path": "MedicationRequest.subject",
      "min": 1,
      "definition": "A link to a resource representing the person or set of individuals to whom the medication will be given.",
      "short": "Who or group medication request is for",
      "mapping": [ {
        "map": "Request.subject",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx/Patient\r\r(need detail to link to specific patient … Patient.Identification in SCRIPT)",
        "identity": "script10.6"
      }, {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "PID-3-Patient ID List",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=AUT].role",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Group" ]
      } ],
      "max": "1",
      "id": "MedicationRequest.subject",
      "comment": "The subject on a medication request is mandatory.  For the secondary use case where the actual subject is not provided, there still must be an anonymized subject specified.",
      "isSummary": true
    }, {
      "id": "MedicationRequest.encounter",
      "max": "1",
      "path": "MedicationRequest.encounter",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ]
      } ],
      "short": "Encounter created as part of encounter/admission/stay",
      "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.\"    If there is a need to link to episodes of care they will be handled with an extension.",
      "mapping": [ {
        "map": "Request.context",
        "identity": "workflow"
      }, {
        "map": "no mapping",
        "identity": "script10.6"
      }, {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": "PV1-19-Visit Number",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]",
        "identity": "rim"
      } ],
      "definition": "The Encounter during which this [x] was created or to which the creation of this record is tightly associated."
    }, {
      "id": "MedicationRequest.supportingInformation",
      "path": "MedicationRequest.supportingInformation",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "short": "Information to support ordering of the medication",
      "mapping": [ {
        "map": "Request.supportingInfo",
        "identity": "workflow"
      }, {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": ".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]",
        "identity": "rim"
      } ],
      "definition": "Include additional information (for example, patient height and weight) that supports the ordering of the medication."
    }, {
      "id": "MedicationRequest.authoredOn",
      "max": "1",
      "path": "MedicationRequest.authoredOn",
      "type": [ {
        "code": "dateTime"
      } ],
      "short": "When request was initially authored",
      "mapping": [ {
        "map": "Request.authoredOn",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx/MedicationPrescribed/WrittenDate",
        "identity": "script10.6"
      }, {
        "map": "FiveWs.recorded",
        "identity": "w5"
      }, {
        "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction",
        "identity": "v2"
      }, {
        "map": "author.time",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "The date (and perhaps time) when the prescription was initially written or authored on."
    }, {
      "id": "MedicationRequest.requester",
      "max": "1",
      "path": "MedicationRequest.requester",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Organization", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Device" ]
      } ],
      "short": "Who/What requested the Request",
      "mapping": [ {
        "map": "Request.requester",
        "identity": "workflow"
      }, {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "The individual, organization, or device that initiated the request and has responsibility for its activation."
    }, {
      "id": "MedicationRequest.performer",
      "max": "1",
      "path": "MedicationRequest.performer",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Organization", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/CareTeam" ]
      } ],
      "short": "Intended performer of administration",
      "mapping": [ {
        "map": "Request.performer",
        "identity": "workflow"
      }, {
        "map": "FiveWs.actor",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]",
        "identity": "rim"
      } ],
      "definition": "The specified desired performer of the medication treatment (e.g. the performer of the medication administration)."
    }, {
      "path": "MedicationRequest.performerType",
      "definition": "Indicates the type of performer of the administration of the medication.",
      "short": "Desired kind of performer of the medication administration",
      "mapping": [ {
        "map": "Request.performerType",
        "identity": "workflow"
      }, {
        "map": ".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/performer-role",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestPerformerType"
        } ],
        "description": "Identifies the type of individual that is desired to administer the medication."
      },
      "max": "1",
      "id": "MedicationRequest.performerType",
      "comment": "If specified without indicating a performer, this indicates that the performer must be of the specified type. If specified with a performer then it indicates the requirements of the performer if the designated performer is not available.",
      "isSummary": true
    }, {
      "id": "MedicationRequest.recorder",
      "max": "1",
      "path": "MedicationRequest.recorder",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ]
      } ],
      "short": "Person who entered the request",
      "mapping": [ {
        "map": "FiveWs.who",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=TRANS].role[classCode=ASSIGNED].code (HealthcareProviderType)",
        "identity": "rim"
      } ],
      "definition": "The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order."
    }, {
      "id": "MedicationRequest.reasonCode",
      "path": "MedicationRequest.reasonCode",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "short": "Reason or indication for ordering or not ordering the medication",
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/condition-code",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestReason"
        } ],
        "description": "A coded concept indicating why the medication was ordered."
      },
      "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference.",
      "mapping": [ {
        "map": "Request.reasonCode",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value",
        "identity": "script10.6"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": "ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication",
        "identity": "v2"
      }, {
        "map": "reason.observation.reasonCode",
        "identity": "rim"
      } ],
      "definition": "The reason or the indication for ordering or not ordering the medication."
    }, {
      "id": "MedicationRequest.reasonReference",
      "path": "MedicationRequest.reasonReference",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Condition", "http://hl7.org/fhir/StructureDefinition/Observation" ]
      } ],
      "short": "Condition or observation that supports why the prescription is being written",
      "comment": "This is a reference to a condition or observation that is the reason for the medication order.  If only a code exists, use reasonCode.",
      "mapping": [ {
        "map": "Request.reasonReference",
        "identity": "workflow"
      }, {
        "map": "no mapping",
        "identity": "script10.6"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": "reason.observation[code=ASSERTION].value",
        "identity": "rim"
      } ],
      "definition": "Condition or observation that supports why the medication was ordered."
    }, {
      "id": "MedicationRequest.instantiatesCanonical",
      "path": "MedicationRequest.instantiatesCanonical",
      "type": [ {
        "code": "canonical"
      } ],
      "short": "Instantiates FHIR protocol or definition",
      "mapping": [ {
        "map": "Request.instantiates",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=DEFN].target",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "The URL pointing to a protocol, guideline, orderset, or other definition that is adhered to in whole or in part by this MedicationRequest."
    }, {
      "id": "MedicationRequest.instantiatesUri",
      "path": "MedicationRequest.instantiatesUri",
      "type": [ {
        "code": "uri"
      } ],
      "short": "Instantiates external protocol or definition",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=DEFN].target",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this MedicationRequest."
    }, {
      "id": "MedicationRequest.basedOn",
      "path": "MedicationRequest.basedOn",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/CarePlan", "http://hl7.org/fhir/StructureDefinition/MedicationRequest", "http://hl7.org/fhir/StructureDefinition/ServiceRequest", "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" ]
      } ],
      "short": "What request fulfills",
      "mapping": [ {
        "map": "Request.basedOn",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]",
        "identity": "rim"
      } ],
      "isSummary": true,
      "definition": "A plan or request that is fulfilled in whole or in part by this medication request."
    }, {
      "path": "MedicationRequest.groupIdentifier",
      "requirements": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.",
      "definition": "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition or prescription.",
      "short": "Composite request this is part of",
      "mapping": [ {
        "map": "Request.groupIdentifier",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "MedicationRequest.groupIdentifier",
      "isSummary": true
    }, {
      "path": "MedicationRequest.courseOfTherapyType",
      "definition": "The description of the overall patte3rn of the administration of the medication to the patient.",
      "short": "Overall pattern of medication administration",
      "mapping": [ {
        "map": "Act.code where classCode = LIST and moodCode = EVN",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestCourseOfTherapy"
        } ],
        "description": "Identifies the overall pattern of medication administratio."
      },
      "max": "1",
      "id": "MedicationRequest.courseOfTherapyType",
      "comment": "This attribute should not be confused with the protocol of the medication."
    }, {
      "id": "MedicationRequest.insurance",
      "path": "MedicationRequest.insurance",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Coverage", "http://hl7.org/fhir/StructureDefinition/ClaimResponse" ]
      } ],
      "short": "Associated insurance coverage",
      "mapping": [ {
        "map": "Request.insurance",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=COVBY].target",
        "identity": "rim"
      } ],
      "definition": "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service."
    }, {
      "id": "MedicationRequest.note",
      "path": "MedicationRequest.note",
      "type": [ {
        "code": "Annotation"
      } ],
      "short": "Information about the prescription",
      "mapping": [ {
        "map": "Request.note",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx/MedicationPrescribed/Note",
        "identity": "script10.6"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "definition": "Extra information about the prescription that could not be conveyed by the other attributes."
    }, {
      "id": "MedicationRequest.dosageInstruction",
      "path": "MedicationRequest.dosageInstruction",
      "type": [ {
        "code": "Dosage"
      } ],
      "short": "How the medication should be taken",
      "comment": "There are examples where a medication request may include the option of an oral dose or an Intravenous or Intramuscular dose.  For example, \"Ondansetron 8mg orally or IV twice a day as needed for nausea\" or \"Compazine® (prochlorperazine) 5-10mg PO or 25mg PR bid prn nausea or vomiting\".  In these cases, two medication requests would be created that could be grouped together.  The decision on which dose and route of administration to use is based on the patient's condition at the time the dose is needed.",
      "mapping": [ {
        "map": "Request.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "see dosageInstruction mapping",
        "identity": "rim"
      } ],
      "definition": "Indicates how the medication is to be used by the patient."
    }, {
      "id": "MedicationRequest.dispenseRequest",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Medication supply authorization",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/ExpirationDate",
        "identity": "script10.6"
      }, {
        "map": "component.supplyEvent",
        "identity": "rim"
      } ],
      "definition": "Indicates the specific details for the dispense or medication supply part of a medication request (also known as a Medication Prescription or Medication Order).  Note that this information is not always sent with the order.  There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department."
    }, {
      "id": "MedicationRequest.dispenseRequest.initialFill",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest.initialFill",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "First fill details",
      "comment": "If populating this element, either the quantity or the duration must be included.",
      "mapping": [ {
        "map": "SubstanceAdministration -> ActRelationship[sequenceNumber = '1'] -> Supply",
        "identity": "rim"
      } ],
      "definition": "Indicates the quantity or duration for the first dispense of the medication."
    }, {
      "id": "MedicationRequest.dispenseRequest.initialFill.quantity",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest.initialFill.quantity",
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "short": "First fill quantity",
      "mapping": [ {
        "map": "Supply.quantity[moodCode=RQO]",
        "identity": "rim"
      } ],
      "definition": "The amount or quantity to provide as part of the first dispense."
    }, {
      "id": "MedicationRequest.dispenseRequest.initialFill.duration",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest.initialFill.duration",
      "type": [ {
        "code": "Duration"
      } ],
      "short": "First fill duration",
      "mapping": [ {
        "map": "Supply.effectivetime[moodCode=RQO]",
        "identity": "rim"
      } ],
      "definition": "The length of time that the first dispense is expected to last."
    }, {
      "id": "MedicationRequest.dispenseRequest.dispenseInterval",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest.dispenseInterval",
      "type": [ {
        "code": "Duration"
      } ],
      "short": "Minimum period of time between dispenses",
      "mapping": [ {
        "map": "Supply.effectivetime[moodCode=RQO]",
        "identity": "rim"
      } ],
      "definition": "The minimum period of time that must occur between dispenses of the medication."
    }, {
      "path": "MedicationRequest.dispenseRequest.validityPeriod",
      "requirements": "Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.",
      "definition": "This indicates the validity period of a prescription (stale dating the Prescription).",
      "short": "Time period supply is authorized for",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/Refills",
        "identity": "script10.6"
      }, {
        "map": "effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "MedicationRequest.dispenseRequest.validityPeriod",
      "comment": "It reflects the prescribers' perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations."
    }, {
      "id": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
      "type": [ {
        "code": "unsignedInt"
      } ],
      "short": "Number of refills authorized",
      "comment": "If displaying \"number of authorized fills\", add 1 to this number.",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/Quantity",
        "identity": "script10.6"
      }, {
        "map": "RXE-12-Number of Refills",
        "identity": "v2"
      }, {
        "map": "repeatNumber",
        "identity": "rim"
      } ],
      "definition": "An integer indicating the number of times, in addition to the original dispense, (aka refills or repeats) that the patient can receive the prescribed medication. Usage Notes: This integer does not include the original order dispense. This means that if an order indicates dispense 30 tablets plus \"3 repeats\", then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets.  A prescriber may explicitly say that zero refills are permitted after the initial dispense."
    }, {
      "id": "MedicationRequest.dispenseRequest.quantity",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest.quantity",
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "short": "Amount of medication to supply per dispense",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/DaysSupply",
        "identity": "script10.6"
      }, {
        "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system",
        "identity": "v2"
      }, {
        "map": "quantity",
        "identity": "rim"
      } ],
      "definition": "The amount that is to be dispensed for one fill."
    }, {
      "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
      "type": [ {
        "code": "Duration"
      } ],
      "short": "Number of days supply per dispense",
      "comment": "In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage). When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/Substitutions",
        "identity": "script10.6"
      }, {
        "map": "expectedUseTime",
        "identity": "rim"
      } ],
      "definition": "Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last."
    }, {
      "id": "MedicationRequest.dispenseRequest.performer",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest.performer",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "short": "Intended dispenser",
      "mapping": [ {
        "map": "FiveWs.who",
        "identity": "w5"
      }, {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=SPLY, moodCode=RQO] .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]",
        "identity": "rim"
      } ],
      "definition": "Indicates the intended dispensing Organization specified by the prescriber."
    }, {
      "id": "MedicationRequest.substitution",
      "max": "1",
      "path": "MedicationRequest.substitution",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Any restrictions on medication substitution",
      "mapping": [ {
        "map": "specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions",
        "identity": "script10.6"
      }, {
        "map": "subjectOf.substitutionPersmission",
        "identity": "rim"
      } ],
      "definition": "Indicates whether or not substitution can or should be part of the dispense. In some cases, substitution must happen, in other cases substitution must not happen. This block explains the prescriber's intent. If nothing is specified substitution may be done."
    }, {
      "path": "MedicationRequest.substitution.allowed[x]",
      "min": 1,
      "definition": "True if the prescriber allows a different drug to be dispensed from what was prescribed.",
      "short": "Whether substitution is allowed or not",
      "mapping": [ {
        "map": "specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions",
        "identity": "script10.6"
      }, {
        "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status",
        "identity": "v2"
      }, {
        "map": "code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      }, {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestSubstitution"
        } ],
        "description": "Identifies the type of substitution allowed."
      },
      "max": "1",
      "id": "MedicationRequest.substitution.allowed[x]",
      "comment": "This element is labeled as a modifier because whether substitution is allow or not, it cannot be ignored."
    }, {
      "id": "MedicationRequest.substitution.reason",
      "max": "1",
      "path": "MedicationRequest.substitution.reason",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "short": "Why should (not) substitution be made",
      "binding": {
        "strength": "example",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationIntendedSubstitutionReason"
        } ],
        "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed."
      },
      "mapping": [ {
        "map": "not mapped",
        "identity": "script10.6"
      }, {
        "map": "RXE-9 Substition status",
        "identity": "v2"
      }, {
        "map": "reasonCode",
        "identity": "rim"
      } ],
      "definition": "Indicates the reason for the substitution, or why substitution must or must not be performed."
    }, {
      "id": "MedicationRequest.priorPrescription",
      "max": "1",
      "path": "MedicationRequest.priorPrescription",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ]
      } ],
      "short": "An order/prescription that is being replaced",
      "mapping": [ {
        "map": "Request.replaces",
        "identity": "workflow"
      }, {
        "map": "not mapped",
        "identity": "script10.6"
      }, {
        "map": ".outboundRelationship[typeCode=?RPLC or ?SUCC]/target[classCode=SBADM,moodCode=RQO]",
        "identity": "rim"
      } ],
      "definition": "A link to a resource representing an earlier order related order or prescription."
    }, {
      "id": "MedicationRequest.detectedIssue",
      "path": "MedicationRequest.detectedIssue",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/DetectedIssue" ]
      } ],
      "alias": [ "Contraindication", "Drug Utilization Review (DUR)", "Alert" ],
      "short": "Clinical Issue with action",
      "comment": "This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value",
        "identity": "rim"
      } ],
      "definition": "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc."
    }, {
      "id": "MedicationRequest.eventHistory",
      "path": "MedicationRequest.eventHistory",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Provenance" ]
      } ],
      "short": "A list of events of interest in the lifecycle",
      "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).",
      "mapping": [ {
        "map": "Request.relevantHistory",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]",
        "identity": "rim"
      } ],
      "definition": "Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource."
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/fhir",
      "system": "url"
    } ]
  }, {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/medication/index.cfm",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}