PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.qicore@2.0.0
    http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest
{
  "description": null,
  "_filename": "StructureDefinition-qicore-medicationrequest.json",
  "package_name": "hl7.fhir.us.qicore",
  "date": "2015-02-27T18:00:00+11:00",
  "derivation": "constraint",
  "publisher": "Health Level Seven International (Clinical Quality Information - QICore)",
  "fhirVersion": "3.0.1",
  "name": "QICore-MedicationRequest",
  "mapping": [ {
    "uri": "http://www.healthit.gov/quality-data-model",
    "name": "Quality Data Model",
    "identity": "qdm"
  }, {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Mapping",
    "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/w5",
    "name": "W5 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": "2.0.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-1",
        "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
        "xpath": "not(parent::f:contained and f:text)",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.text.empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
        "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()"
      } ],
      "path": "MedicationRequest",
      "min": 0,
      "definition": "Profile of medication prescription, indicating which elements must be supported in rule and measure interpreters.",
      "short": "Ordering of medication for patient or group",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "..Request",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx",
        "identity": "script10.6"
      }, {
        "map": "CombinedMedicationRequest",
        "identity": "rim"
      }, {
        "map": "clinical.medication",
        "identity": "w5"
      }, {
        "map": "Medication, Order",
        "identity": "qdm"
      } ],
      "mustSupport": false,
      "alias": [ "Prescription", "Order" ],
      "max": "*",
      "id": "MedicationRequest",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest"
      }
    }, {
      "path": "MedicationRequest.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "id"
      } ],
      "max": "1",
      "id": "MedicationRequest.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "MedicationRequest.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "MedicationRequest.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueReference": {
            "reference": "http://hl7.org/fhir/ValueSet/all-languages"
          }
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A human language.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      "max": "1",
      "id": "MedicationRequest.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      }
    }, {
      "path": "MedicationRequest.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "MedicationRequest.text",
      "condition": [ "dom-1" ],
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      }
    }, {
      "path": "MedicationRequest.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "MedicationRequest.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      }
    }, {
      "path": "MedicationRequest.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "path": "MedicationRequest.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      }
    }, {
      "path": "MedicationRequest.identifier",
      "min": 0,
      "definition": "This records 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. For example a re-imbursement system might issue its own id for each prescription that is created.  This is particularly important where FHIR only provides part of an entire workflow process where records must be tracked through an entire system.",
      "short": "External ids for this request",
      "mapping": [ {
        "map": "…identifer",
        "identity": "workflow"
      }, {
        "map": "Message/Header/PrescriberOrderNumber",
        "identity": "script10.6"
      }, {
        "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number",
        "identity": "v2"
      }, {
        "map": ".id",
        "identity": "rim"
      }, {
        "map": "id",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "*",
      "id": "MedicationRequest.identifier",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.identifier"
      }
    }, {
      "path": "MedicationRequest.definition",
      "min": 0,
      "definition": "Protocol or definition followed by this request.",
      "short": "Protocol or definition",
      "mapping": [ {
        "map": "…definition",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=DEFN].target[classCode=unspecified]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/PlanDefinition"
      } ],
      "max": "*",
      "id": "MedicationRequest.definition",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.definition"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.basedOn",
      "min": 0,
      "definition": "A plan or request that is fulfilled in whole or in part by this medication request.",
      "short": "What request fulfills",
      "mapping": [ {
        "map": "…basedOn",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]",
        "identity": "rim"
      } ],
      "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"
      } ],
      "max": "*",
      "id": "MedicationRequest.basedOn",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.basedOn"
      },
      "isSummary": true
    }, {
      "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.",
      "min": 0,
      "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": "…groupIdentifier",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "MedicationRequest.groupIdentifier",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.groupIdentifier"
      },
      "isSummary": true
    }, {
      "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": "…status",
        "identity": "workflow"
      }, {
        "map": "no mapping",
        "identity": "script10.6"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      }, {
        "map": "status",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "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",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-request-status"
        }
      },
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.status"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.intent",
      "min": 1,
      "definition": "Whether the request is a proposal, plan, or an original order.",
      "isModifier": true,
      "short": "proposal | plan | order | instance-order",
      "mapping": [ {
        "map": "…intent",
        "identity": "workflow"
      }, {
        "map": ".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)",
        "identity": "rim"
      }, {
        "map": "class",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestIntent"
        } ],
        "description": "The kind of medication order",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-request-intent"
        }
      },
      "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.\n\nThis element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationRequest.intent"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.category",
      "min": 0,
      "definition": "Indicates the type of medication order and where the medication is expected to be consumed or administered.",
      "short": "Type of medication usage",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/Directions\r\ror \r\rMessage/Body/NewRx/MedicationPrescribed/StructuredSIG",
        "identity": "script10.6"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value",
        "identity": "rim"
      }, {
        "map": "class",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestCategory"
        } ],
        "description": "A coded concept identifying where the medication ordered is expected to be consumed or administered",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-request-category"
        }
      },
      "max": "1",
      "id": "MedicationRequest.category",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.category"
      }
    }, {
      "path": "MedicationRequest.priority",
      "min": 0,
      "definition": "Indicates how quickly the Medication Request should be addressed with respect to other requests.",
      "short": "routine | urgent | stat | asap",
      "mapping": [ {
        "map": "…priority",
        "identity": "workflow"
      }, {
        "map": ".priorityCode",
        "identity": "rim"
      }, {
        "map": "grade",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationRequestPriority"
        } ],
        "description": "Identifies the level of importance to be assigned to actioning the request",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-request-priority"
        }
      },
      "max": "1",
      "id": "MedicationRequest.priority",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.priority"
      },
      "isSummary": true
    }, {
      "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": "…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": "RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code",
        "identity": "v2"
      }, {
        "map": "consumable.administrableMedication",
        "identity": "rim"
      }, {
        "map": "what",
        "identity": "w5"
      }, {
        "map": "primary code",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "preferred",
        "description": "The set of RxNorm codes to represent medications",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes"
        }
      },
      "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. .",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationRequest.medication[x]"
      },
      "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": "…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": "PID-3-Patient ID List",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=AUT].role",
        "identity": "rim"
      }, {
        "map": "who.focus",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      } ],
      "mustSupport": true,
      "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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationRequest.subject"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.context",
      "min": 0,
      "definition": "A link to an encounter, or episode of care, that identifies the particular occurrence or set occurrences of contact between patient and health care provider.",
      "short": "Created during encounter/admission/stay",
      "mapping": [ {
        "map": "…context",
        "identity": "workflow"
      }, {
        "map": "no mapping",
        "identity": "script10.6"
      }, {
        "map": "PV1-19-Visit Number",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]",
        "identity": "rim"
      }, {
        "map": "context",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationRequest.context",
      "comment": "SubstanceAdministration->component->EncounterEvent.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.context"
      }
    }, {
      "path": "MedicationRequest.supportingInformation",
      "min": 0,
      "definition": "Include additional information (for example, patient height and weight) that supports the ordering of the medication.",
      "short": "Information to support ordering of the medication",
      "mapping": [ {
        "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"
      }, {
        "map": "context",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
      } ],
      "max": "*",
      "id": "MedicationRequest.supportingInformation",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.supportingInformation"
      }
    }, {
      "path": "MedicationRequest.authoredOn",
      "min": 1,
      "definition": "The date (and perhaps time) when the prescription was initially written or authored on.",
      "short": "When request was initially authored",
      "mapping": [ {
        "map": "…authoredOn",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx/MedicationPrescribed/WrittenDate",
        "identity": "script10.6"
      }, {
        "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction",
        "identity": "v2"
      }, {
        "map": "author.time",
        "identity": "rim"
      }, {
        "map": "when.recorded",
        "identity": "w5"
      }, {
        "map": "active datetime",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationRequest.authoredOn",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.authoredOn"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      }, {
        "key": "mps-1",
        "human": "onBehalfOf can only be specified if agent is practitioner or device",
        "xpath": "contains(f:agent/f:reference/@value, '/Practitioner/') or contains(f:agent/f:reference/@value, '/Device/') or not(exists(f:onBehalfOf))",
        "source": "MedicationRequest.requester",
        "severity": "error",
        "expression": "(agent.resolve().empty()) or (agent.resolve() is Device) or (agent.resolve() is Practitioner) or onBehalfOf.exists().not()"
      } ],
      "path": "MedicationRequest.requester",
      "min": 1,
      "definition": "The individual, organization or device that initiated the request and has responsibility for its activation.",
      "short": "Who/What requested the Request",
      "mapping": [ {
        "map": "…requester",
        "identity": "workflow"
      }, {
        "map": ".participation[typeCode=AUT].role",
        "identity": "rim"
      }, {
        "map": "who.author",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationRequest.requester",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.requester"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.requester.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.requester.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.requester.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.requester.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.requester.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "MedicationRequest.requester.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.requester.agent",
      "min": 1,
      "definition": "The healthcare professional responsible for authorizing the initial prescription.",
      "short": "Who ordered the initial medication(s)",
      "mapping": [ {
        "map": "….agent",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx/Prescriber\r\r(need detail to link to specific prescriber … Prescriber.Identification in SCRIPT)",
        "identity": "script10.6"
      }, {
        "map": "RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)",
        "identity": "v2"
      }, {
        "map": ".player",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationRequest.requester.agent",
      "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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationRequest.requester.agent"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.requester.onBehalfOf",
      "requirements": "Practitioners and Devices can be associated with multiple organizations. This element indicates which organization they were acting on behalf of when authoring the request.",
      "min": 0,
      "definition": "The organization the device or practitioner was acting on behalf of.",
      "short": "Organization agent is acting for",
      "mapping": [ {
        "map": "….onBehalfOf",
        "identity": "workflow"
      }, {
        "map": ".scoper",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "MedicationRequest.requester.onBehalfOf",
      "condition": [ "mps-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.requester.onBehalfOf"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.recorder",
      "min": 0,
      "definition": "The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order.",
      "short": "Person who entered the request",
      "mapping": [ {
        "map": ".participation[typeCode=TRANS].role[classCode=ASSIGNED].code (HealthcareProviderType)",
        "identity": "rim"
      }, {
        "map": "who",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
      } ],
      "max": "1",
      "id": "MedicationRequest.recorder",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.recorder"
      }
    }, {
      "path": "MedicationRequest.reasonCode",
      "min": 0,
      "definition": "The reason or the indication for ordering the medication.",
      "short": "Reason or indication for writing the prescription",
      "mapping": [ {
        "map": "…reasonCode",
        "identity": "workflow"
      }, {
        "map": "Message/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value",
        "identity": "script10.6"
      }, {
        "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"
      }, {
        "map": "why",
        "identity": "w5"
      }, {
        "map": "reason",
        "identity": "qdm"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "preferred",
        "description": "The reason code for the presecription",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/us/core/ValueSet/us-core-problem"
        }
      },
      "max": "*",
      "id": "MedicationRequest.reasonCode",
      "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.reasonCode"
      }
    }, {
      "path": "MedicationRequest.reasonReference",
      "min": 0,
      "definition": "Condition or observation that supports why the medication was ordered.",
      "short": "Condition or Observation that supports why the prescription is being written",
      "mapping": [ {
        "map": "…reasonReference",
        "identity": "workflow"
      }, {
        "map": "no mapping",
        "identity": "script10.6"
      }, {
        "map": "reason.observation[code=ASSERTION].value",
        "identity": "rim"
      }, {
        "map": "why",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Condition"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
      } ],
      "max": "*",
      "id": "MedicationRequest.reasonReference",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.reasonReference"
      }
    }, {
      "path": "MedicationRequest.note",
      "min": 0,
      "definition": "Extra information about the prescription that could not be conveyed by the other attributes.",
      "short": "Information about the prescription",
      "mapping": [ {
        "map": "…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"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "max": "*",
      "id": "MedicationRequest.note",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.note"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction",
      "min": 0,
      "definition": "Indicates how the medication is to be used by the patient.",
      "short": "How the medication should be taken",
      "mapping": [ {
        "map": "…occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "see dosageInstruction mapping",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Dosage"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "MedicationRequest.dosageInstruction",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.dosageInstruction"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType"
      } ],
      "mustSupport": false,
      "sliceName": "doseType",
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:dosetype",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:dosetype.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.extension:dosetype.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:dosetype.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.valueCodeableConcept",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:dosetype.valueCodeableConcept",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-infuseOver"
      } ],
      "mustSupport": false,
      "sliceName": "infuseOver",
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:infuseover",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:infuseover.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.extension:infuseover.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-infuseOver",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:infuseover.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.valueDuration",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Duration"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:infuseover.valueDuration",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrement"
      } ],
      "mustSupport": false,
      "sliceName": "rateIncrement",
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrement",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrement.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrement.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrement",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrement.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.valueRatio",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrement.valueRatio",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrementInterval"
      } ],
      "mustSupport": false,
      "sliceName": "rateIncrementInterval",
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrementinterval",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrementinterval.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrementinterval.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrementInterval",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrementinterval.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.valueDuration",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Duration"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rateincrementinterval.valueDuration",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateGoal"
      } ],
      "mustSupport": false,
      "sliceName": "rateGoal",
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rategoal",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rategoal.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.extension:rategoal.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateGoal",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rategoal.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.valueRatio",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:rategoal.valueRatio",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-minDosePerPeriod"
      } ],
      "mustSupport": false,
      "sliceName": "minDosePerPeriod",
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:mindoseperperiod",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:mindoseperperiod.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.extension:mindoseperperiod.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-minDosePerPeriod",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:mindoseperperiod.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.valueRatio",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:mindoseperperiod.valueRatio",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryRate"
      } ],
      "mustSupport": false,
      "sliceName": "maxDeliveryRate",
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryrate",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryrate.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryrate.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryRate",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryrate.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.valueRatio",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryrate.valueRatio",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryVolume"
      } ],
      "mustSupport": false,
      "sliceName": "maxDeliveryVolume",
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryvolume",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryvolume.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryvolume.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryVolume",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryvolume.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.extension.valueQuantity",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryvolume.valueQuantity",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "MedicationRequest.dosageInstruction.sequence",
      "requirements": "If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent.  If the sequence number is different, then the Dosages are intended to be sequential.",
      "min": 0,
      "definition": "Indicates the order in which the dosage instructions should be applied or interpreted.",
      "short": "The order of the dosage instructions",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "integer"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.sequence",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.sequence"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.text",
      "requirements": "Free text dosage instructions can be used for cases where the instructions are too complex to code.  The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated.  If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing.",
      "min": 0,
      "definition": "Free text dosage instructions e.g. SIG.",
      "short": "Free text dosage instructions e.g. SIG",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.text",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.text"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.additionalInstruction",
      "requirements": "Additional instruction such as \"Swallow with plenty of water\" which may or may not be coded.",
      "min": 0,
      "definition": "Supplemental instruction - e.g. \"with meals\".",
      "short": "Supplemental instruction - e.g. \"with meals\"",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AdditionalInstruction"
        } ],
        "description": "A coded concept identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\".",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/additional-instruction-codes"
        }
      },
      "max": "*",
      "id": "MedicationRequest.dosageInstruction.additionalInstruction",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Dosage.additionalInstruction"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.patientInstruction",
      "min": 0,
      "definition": "Instructions in terms that are understood by the patient or consumer.",
      "short": "Patient or consumer oriented instructions",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.patientInstruction",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.patientInstruction"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.timing",
      "requirements": "The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions. For example: \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.",
      "min": 0,
      "definition": "When medication should be administered.",
      "short": "When medication should be administered",
      "mapping": [ {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Timing"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.timing",
      "comment": "This attribute may not always be populated while the Dosage.text is expected to be populated.  If both are populated, then the Dosage.text should reflect the content of the Dosage.timing.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.timing"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.asNeeded[x]",
      "min": 0,
      "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).",
      "short": "Take \"as needed\" (for x)",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code=\"as needed\"].value=boolean or codable concept",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      }, {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAsNeededReason"
        } ],
        "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason"
        }
      },
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.asNeeded[x]",
      "comment": "Can express \"as needed\" without a reason by setting the Boolean = True.  In this case the CodeableConcept is not populated.  Or you can express \"as needed\" with a reason by including the CodeableConcept.  In this case the Boolean is assumed to be True.  If you set the Boolean to False, then the dose is given according to the schedule and is not \"prn\" or \"as needed\".",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.asNeeded[x]"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.site",
      "requirements": "A coded specification of the anatomic site where the medication first enters the body.",
      "min": 0,
      "definition": "Body site to administer to.",
      "short": "Body site to administer to",
      "mapping": [ {
        "map": ".approachSiteCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAdministrationSite"
        } ],
        "description": "A coded concept describing the site location the medicine enters into or onto the body.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/approach-site-codes"
        }
      },
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.site",
      "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [body-site-instance](extension-body-site-instance.html).  May be a summary code, or a reference to a very precise definition of the location, or both.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.site"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.route",
      "requirements": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.",
      "min": 0,
      "definition": "How drug should enter body.",
      "short": "How drug should enter body",
      "mapping": [ {
        "map": ".routeCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "RouteOfAdministration"
        } ],
        "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/route-codes"
        }
      },
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.route",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.route"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.method",
      "requirements": "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections.  For examples, Slow Push; Deep IV.",
      "min": 0,
      "definition": "Technique for administering medication.",
      "short": "Technique for administering medication",
      "mapping": [ {
        "map": ".doseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAdministrationMethod"
        } ],
        "description": "A coded concept describing the technique by which the medicine is administered.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/administration-method-codes"
        }
      },
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.method",
      "comment": "Terminologies used often pre-coordinate this term with the route and or form of administration.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.method"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.dose[x]",
      "requirements": "The amount of therapeutic or other substance given at one administration event.",
      "min": 0,
      "definition": "Amount of medication per dose.",
      "short": "Amount of medication per dose",
      "mapping": [ {
        "map": ".doseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Range"
      }, {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.dose[x]",
      "comment": "Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.dose[x]"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.maxDosePerPeriod",
      "requirements": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours.",
      "min": 0,
      "definition": "Upper limit on medication per unit of time.",
      "short": "Upper limit on medication per unit of time",
      "mapping": [ {
        "map": ".maxDoseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.maxDosePerPeriod",
      "comment": "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example \"2 tablets every 4 hours to a maximum of 8/day\".",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerPeriod"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.maxDosePerAdministration",
      "requirements": "The maximum total quantity of a therapeutic substance that may be administered to a subject per administration.",
      "min": 0,
      "definition": "Upper limit on medication per administration.",
      "short": "Upper limit on medication per administration",
      "mapping": [ {
        "map": "not supported",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.maxDosePerAdministration",
      "comment": "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerAdministration"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.maxDosePerLifetime",
      "requirements": "The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject.",
      "min": 0,
      "definition": "Upper limit on medication per lifetime of the patient.",
      "short": "Upper limit on medication per lifetime of the patient",
      "mapping": [ {
        "map": "not supported",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.maxDosePerLifetime",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerLifetime"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dosageInstruction.rate[x]",
      "requirements": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.",
      "min": 0,
      "definition": "Amount of medication per unit of time.",
      "short": "Amount of medication per unit of time",
      "mapping": [ {
        "map": ".rateQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      }, {
        "code": "Range"
      }, {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationRequest.dosageInstruction.rate[x]",
      "comment": "It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.rate[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "MedicationRequest.dispenseRequest",
      "min": 0,
      "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.",
      "short": "Medication supply authorization",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/ExpirationDate",
        "identity": "script10.6"
      }, {
        "map": "component.supplyEvent",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationRequest.dispenseRequest",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.dispenseRequest"
      }
    }, {
      "path": "MedicationRequest.dispenseRequest.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.dispenseRequest.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.dispenseRequest.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.dispenseRequest.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.dispenseRequest.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "MedicationRequest.dispenseRequest.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.dispenseRequest.validityPeriod",
      "requirements": "Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.",
      "min": 0,
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.dispenseRequest.validityPeriod"
      }
    }, {
      "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
      "min": 0,
      "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.",
      "short": "Number of refills authorized",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/Quantity",
        "identity": "script10.6"
      }, {
        "map": "RXE-12-Number of Refills",
        "identity": "v2"
      }, {
        "map": "repeatNumber",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "positiveInt"
      } ],
      "max": "1",
      "id": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
      "comment": "If displaying \"number of authorized fills\", add 1 to this number.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed"
      }
    }, {
      "path": "MedicationRequest.dispenseRequest.quantity",
      "min": 0,
      "definition": "The amount that is to be dispensed for one fill.",
      "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"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationRequest.dispenseRequest.quantity",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.dispenseRequest.quantity"
      }
    }, {
      "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
      "min": 0,
      "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.",
      "short": "Number of days supply per dispense",
      "mapping": [ {
        "map": "Message/Body/NewRx/MedicationPrescribed/Substitutions",
        "identity": "script10.6"
      }, {
        "map": "expectedUseTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Duration"
      } ],
      "max": "1",
      "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration"
      }
    }, {
      "path": "MedicationRequest.dispenseRequest.performer",
      "min": 0,
      "definition": "Indicates the intended dispensing Organization specified by the prescriber.",
      "short": "Intended dispenser",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=SPLY, moodCode=RQO] .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]",
        "identity": "rim"
      }, {
        "map": "who",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
      } ],
      "max": "1",
      "id": "MedicationRequest.dispenseRequest.performer",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.dispenseRequest.performer"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "MedicationRequest.substitution",
      "min": 0,
      "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.",
      "short": "Any restrictions on medication substitution",
      "mapping": [ {
        "map": "specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions",
        "identity": "script10.6"
      }, {
        "map": "subjectOf.substitutionPersmission",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "MedicationRequest.substitution",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.substitution"
      }
    }, {
      "path": "MedicationRequest.substitution.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationRequest.substitution.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationRequest.substitution.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationRequest.substitution.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "MedicationRequest.substitution.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "MedicationRequest.substitution.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "MedicationRequest.substitution.allowed",
      "min": 1,
      "definition": "True if the prescriber allows a different drug to be dispensed from what was prescribed.",
      "isModifier": true,
      "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"
      } ],
      "max": "1",
      "id": "MedicationRequest.substitution.allowed",
      "comment": "This element is labeled as a modifer because whether substitution is allow or not cannot be ignored.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationRequest.substitution.allowed"
      }
    }, {
      "path": "MedicationRequest.substitution.reason",
      "min": 0,
      "definition": "Indicates the reason for the substitution, or why substitution must or must not be performed.",
      "short": "Why should (not) substitution be made",
      "mapping": [ {
        "map": "not mapped",
        "identity": "script10.6"
      }, {
        "map": "RXE-9 Substition status",
        "identity": "v2"
      }, {
        "map": "reasonCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "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.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason"
        }
      },
      "max": "1",
      "id": "MedicationRequest.substitution.reason",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.substitution.reason"
      }
    }, {
      "path": "MedicationRequest.priorPrescription",
      "min": 0,
      "definition": "A link to a resource representing an earlier order related order or prescription.",
      "short": "An order/prescription that is being replaced",
      "mapping": [ {
        "map": "…replaces",
        "identity": "workflow"
      }, {
        "map": "not mapped",
        "identity": "script10.6"
      }, {
        "map": ".outboundRelationship[typeCode=?RPLC or ?SUCC]/target[classCode=SBADM,moodCode=RQO]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
      } ],
      "max": "1",
      "id": "MedicationRequest.priorPrescription",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationRequest.priorPrescription"
      }
    }, {
      "path": "MedicationRequest.detectedIssue",
      "min": 0,
      "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.",
      "short": "Clinical Issue with action",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
      } ],
      "alias": [ "Contraindication", "Drug Utilization Review (DUR)", "Alert" ],
      "max": "*",
      "id": "MedicationRequest.detectedIssue",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.detectedIssue"
      }
    }, {
      "path": "MedicationRequest.eventHistory",
      "min": 0,
      "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.",
      "short": "A list of events of interest in the lifecycle",
      "mapping": [ {
        "map": "…relevantHistory",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Provenance"
      } ],
      "max": "*",
      "id": "MedicationRequest.eventHistory",
      "comment": "This may 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.).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationRequest.eventHistory"
      }
    } ]
  },
  "status": "draft",
  "id": "580896b8-1d09-4dc5-b5d2-b6d94622aa3c",
  "kind": "resource",
  "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest",
  "version": "0.1",
  "differential": {
    "element": [ {
      "id": "MedicationRequest",
      "path": "MedicationRequest",
      "mapping": [ {
        "map": "Medication, Order",
        "identity": "qdm"
      } ],
      "definition": "Profile of medication prescription, indicating which elements must be supported in rule and measure interpreters.",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.status",
      "max": "1",
      "min": 1,
      "path": "MedicationRequest.status",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationRequest.medication[x]",
      "path": "MedicationRequest.medication[x]",
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"
      } ],
      "binding": {
        "strength": "preferred",
        "description": "The set of RxNorm codes to represent medications",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes"
        }
      },
      "mapping": [ {
        "map": "primary code",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationRequest.subject",
      "path": "MedicationRequest.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationRequest.context",
      "path": "MedicationRequest.context",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationRequest.authoredOn",
      "max": "1",
      "min": 1,
      "path": "MedicationRequest.authoredOn",
      "mapping": [ {
        "map": "active datetime",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationRequest.requester",
      "max": "1",
      "min": 1,
      "path": "MedicationRequest.requester",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationRequest.requester.agent",
      "path": "MedicationRequest.requester.agent",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"
      } ],
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationRequest.requester.onBehalfOf",
      "path": "MedicationRequest.requester.onBehalfOf",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"
      } ],
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.reasonCode",
      "path": "MedicationRequest.reasonCode",
      "binding": {
        "strength": "preferred",
        "description": "The reason code for the presecription",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/us/core/ValueSet/us-core-problem"
        }
      },
      "mapping": [ {
        "map": "reason",
        "identity": "qdm"
      } ],
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.dosageInstruction",
      "path": "MedicationRequest.dosageInstruction",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationRequest.dosageInstruction.extension:dosetype",
      "max": "1",
      "min": 0,
      "path": "MedicationRequest.dosageInstruction.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-doseType"
      } ],
      "sliceName": "doseType",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.dosageInstruction.extension:infuseover",
      "max": "1",
      "min": 0,
      "path": "MedicationRequest.dosageInstruction.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-infuseOver"
      } ],
      "sliceName": "infuseOver",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.dosageInstruction.extension:rateincrement",
      "max": "1",
      "min": 0,
      "path": "MedicationRequest.dosageInstruction.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrement"
      } ],
      "sliceName": "rateIncrement",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.dosageInstruction.extension:rateincrementinterval",
      "max": "1",
      "min": 0,
      "path": "MedicationRequest.dosageInstruction.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateIncrementInterval"
      } ],
      "sliceName": "rateIncrementInterval",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.dosageInstruction.extension:rategoal",
      "max": "1",
      "min": 0,
      "path": "MedicationRequest.dosageInstruction.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-rateGoal"
      } ],
      "sliceName": "rateGoal",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.dosageInstruction.extension:mindoseperperiod",
      "max": "1",
      "min": 0,
      "path": "MedicationRequest.dosageInstruction.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-minDosePerPeriod"
      } ],
      "sliceName": "minDosePerPeriod",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryrate",
      "max": "1",
      "min": 0,
      "path": "MedicationRequest.dosageInstruction.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryRate"
      } ],
      "sliceName": "maxDeliveryRate",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.dosageInstruction.extension:maxdeliveryvolume",
      "max": "1",
      "min": 0,
      "path": "MedicationRequest.dosageInstruction.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://hl7.org/fhir/StructureDefinition/pharmacy-core-maxDeliveryVolume"
      } ],
      "sliceName": "maxDeliveryVolume",
      "isModifier": false,
      "mustSupport": false
    }, {
      "id": "MedicationRequest.dosageInstruction.site",
      "path": "MedicationRequest.dosageInstruction.site",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "MedicationRequest.dispenseRequest",
      "path": "MedicationRequest.dispenseRequest",
      "isModifier": false,
      "mustSupport": true
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/special/committees/CQI",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest"
}