us-quality-core-medicationrequested
type: StructureDefinition
node role: treeRoot
resource.id:
  value: us-quality-core-medicationrequested
resource.language:
  value: en
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Generated Narrative: StructureDefinition us-quality-core-medicationrequested Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> MedicationRequest 0..* USQualityCoreMedicationRequest Ordering of medication for patient or group #xD; status 1..1 code (USCDI+ Quality) active | on-hold | cancelled | completed | stopped | draft Binding: Positive MedicationRequest Status (required) #xD; category 0..* CodeableConcept Type of medication usage Binding: medicationRequest Category Codes (example): A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment. #xD; doNotPerform 0..1 boolean (USCDI+ Quality) True if medication was not requested Fixed Value: false #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  extension.value code:
    value: cqi
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  extension.value integer:
    value: 4
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      extension.value canonical:
        value: http://hl7.org/fhir/us/quality-core/ImplementationGuide/hl7.fhir.us.quality-core
        link: http://hl7.org/fhir/us/quality-core/ImplementationGuide/hl7.fhir.us.quality-core
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  extension.value code:
    value: trial-use
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      extension.value canonical:
        value: http://hl7.org/fhir/us/quality-core/ImplementationGuide/hl7.fhir.us.quality-core
        link: http://hl7.org/fhir/us/quality-core/ImplementationGuide/hl7.fhir.us.quality-core
structure definition.url:
  value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-medicationrequested
structure definition.identifier:
  index: -1
  identifier.system:
    value: urn:ietf:rfc:3986
  identifier.value:
    value: urn:oid:2.16.840.1.113883.4.642.40.78.42.33
structure definition.version:
  value: 1.0.0-ballot
structure definition.name:
  value: USQualityCoreMedicationRequested
structure definition.title:
  value: US Quality Core MedicationRequested
structure definition.status:
  value: active
structure definition.experimental:
  value: false
structure definition.date:
  value: 2026-06-30
structure definition.publisher:
  value: HL7 International / Clinical Quality Information
structure definition.contact:
  index: -1
  contact detail.name:
    value: HL7 International / Clinical Quality Information
  contact detail.telecom:
    index: -1
    contact point.system:
      value: url
    contact point.value:
      value: http://www.hl7.org/Special/committees/cqi
structure definition.contact:
  index: -1
  contact detail.name:
    value: Clinical Quality Information WG
  contact detail.telecom:
    index: -1
    contact point.system:
      value: url
    contact point.value:
      value: http://www.hl7.org/Special/committees/cqi
structure definition.description:
  value: Positive profile of MedicationRequest for decision support/quality metrics. Indicates that a medication was proposed, planned, or ordered.
structure definition.jurisdiction:
  index: -1
  codeable concept.coding:
    index: -1
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: US
structure definition.fhir version:
  value: 4.0.1
structure definition.mapping:
  index: -1
  structure definition.mapping.identity:
    value: workflow
  structure definition.mapping.uri:
    value: http://hl7.org/fhir/workflow
  structure definition.mapping.name:
    value: Workflow Pattern
structure definition.mapping:
  index: -1
  structure definition.mapping.identity:
    value: script10.6
  structure definition.mapping.uri:
    value: http://ncpdp.org/SCRIPT10_6
  structure definition.mapping.name:
    value: Mapping to NCPDP SCRIPT 10.6
structure definition.mapping:
  index: -1
  structure definition.mapping.identity:
    value: rim
  structure definition.mapping.uri:
    value: http://hl7.org/v3
  structure definition.mapping.name:
    value: RIM Mapping
structure definition.mapping:
  index: -1
  structure definition.mapping.identity:
    value: w5
  structure definition.mapping.uri:
    value: http://hl7.org/fhir/fivews
  structure definition.mapping.name:
    value: FiveWs Pattern Mapping
structure definition.mapping:
  index: -1
  structure definition.mapping.identity:
    value: v2
  structure definition.mapping.uri:
    value: http://hl7.org/v2
  structure definition.mapping.name:
    value: HL7 v2 Mapping
structure definition.kind:
  value: resource
structure definition.abstract:
  value: false
structure definition.type:
  value: MedicationRequest
structure definition.base definition:
  value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-medicationrequest
  link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-medicationrequest
structure definition.derivation:
  value: constraint
structure definition.snapshot:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    extension.value string:
      value: 1.0.0-ballot
  structure definition.snapshot.element:
    index: -1
    element.id:
      value: MedicationRequest
    element definition.path:
      value: MedicationRequest
    element definition.short:
      value: Ordering of medication for patient or group
    element definition.definition:
      value: An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.
    element definition.alias:
      value: Prescription
      index: -1
    element definition.alias:
      value: Order
      index: -1
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: MedicationRequest
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.constraint:
      index: -1
      element definition.constraint.key:
        value: dom-2
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      element definition.constraint.expression:
        value: contained.contained.empty()
      element definition.constraint.xpath:
        value: not(parent::f:contained and f:contained)
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    element definition.constraint:
      index: -1
      element definition.constraint.key:
        value: dom-3
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource

value: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()

value: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))

index: -1
element definition.constraint.key:
  value: dom-4
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
element definition.constraint.expression:
  value: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
element definition.constraint.xpath:
  value: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
element definition.constraint.source:
  value: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

index: -1
element definition.constraint.key:
  value: dom-5
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: If a resource is contained in another resource, it SHALL NOT have a security label
element definition.constraint.expression:
  value: contained.meta.security.empty()
element definition.constraint.xpath:
  value: not(exists(f:contained/*/f:meta/f:security))
element definition.constraint.source:
  value: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

index: -1
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
  extension.value boolean:
    value: true
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation
  extension.value markdown:
    value: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.
element definition.constraint.key:
  value: dom-6
element definition.constraint.severity:
  value: warning
element definition.constraint.human:
  value: A resource should have narrative for robust management
element definition.constraint.expression:
  value: text.`div`.exists()
element definition.constraint.xpath:
  value: exists(f:text/h:div)
element definition.constraint.source:
  value: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

index: -1
element definition.constraint.key:
  value: us-core-21
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: requester SHALL be present if intent is "order"
element definition.constraint.expression:
  value: (intent='order' or intent='original-order' or intent='reflex-order'or intent='filler-order' or intent='instance-order') implies requester.exists()
element definition.constraint.source:
  value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
  link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest

index: -1
element definition.constraint.key:
  value: mrq-1
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: To indicate what medication, either a reference to a Medication, or either at least one coding in the medication or a codeOperations extension shall be provided
element definition.constraint.expression:
  value: (medication is Reference).not() implies medication.extension('http://hl7.org/fhir/StructureDefinition/codeOptions').exists() xor medication.coding.exists()
element definition.constraint.xpath:
  value: exists(f:extension)
element definition.constraint.source:
  value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-medicationrequest
  link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-medicationrequest

value: false

value: false

value: false

index: -1
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: Entity. Role, or Act

index: -1
element definition.mapping.identity:
  value: workflow
element definition.mapping.map:
  value: Request

index: -1
element definition.mapping.identity:
  value: script10.6
element definition.mapping.map:
  value: Message/Body/NewRx

index: -1
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: CombinedMedicationRequest

index: -1
element.id:
  value: MedicationRequest.id
element definition.path:
  value: MedicationRequest.id
element definition.short:
  value: Logical id of this artifact
element definition.definition:
  value: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
element definition.comment:
  value: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: id
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: true

index: -1
element.id:
  value: MedicationRequest.meta
element definition.path:
  value: MedicationRequest.meta
element definition.short:
  value: Metadata about the resource
element definition.definition:
  value: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.meta
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Meta
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true

index: -1
element.id:
  value: MedicationRequest.implicitRules
element definition.path:
  value: MedicationRequest.implicitRules
element definition.short:
  value: A set of rules under which this content was created
element definition.definition:
  value: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
element definition.comment:
  value: 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. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.implicitRules
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: uri
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
element definition.is summary:
  value: true

index: -1
element.id:
  value: MedicationRequest.language
element definition.path:
  value: MedicationRequest.language
element definition.short:
  value: Language of the resource content
element definition.definition:
  value: The base language in which the resource is written.
element definition.comment:
  value: 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).
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.language
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    extension.value canonical:
      value: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: Language
  element definition.binding.strength:
    value: preferred
  element definition.binding.description:
    value: A human language.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/languages|4.0.1
    link: 4.0
    link: .1

index: -1
element.id:
  value: MedicationRequest.text
element definition.path:
  value: MedicationRequest.text
element definition.short:
  value: Text summary of the resource, for human interpretation
element definition.definition:
  value: A human-readable narrative that contains a summary of the resource and can 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.
element definition.comment:
  value: 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 information is added later.
element definition.alias:
  value: narrative
  index: -1
element definition.alias:
  value: html
  index: -1
element definition.alias:
  value: xhtml
  index: -1
element definition.alias:
  value: display
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Narrative
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Act.text?

index: -1
element.id:
  value: MedicationRequest.contained
element definition.path:
  value: MedicationRequest.contained
element definition.short:
  value: Contained, inline Resources
element definition.definition:
  value: 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.
element definition.comment:
  value: 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. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
element definition.alias:
  value: inline resources
  index: -1
element definition.alias:
  value: anonymous resources
  index: -1
element definition.alias:
  value: contained resources
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.contained
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Resource
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: MedicationRequest.extension
element definition.path:
  value: MedicationRequest.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.ordered:
    value: false
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Extension
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: MedicationRequest.extension:medicationAdherence
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement
  extension.value boolean:
    value: true
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement
  extension.value boolean:
    value: true
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.extension
element definition.slice name:
  value: medicationAdherence
element definition.short:
  value: (USCDI+ Quality) Reported adherence to prescribed medication instructions.
element definition.definition:
  value: Reported adherence to prescribed medication instructions.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication-adherence|9.0.0
    index: -1
    link: 9.0
    link: .0
element definition.condition:
  value: ele-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.must support:
  value: false
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: -1
element.id:
  value: MedicationRequest.modifierExtension
element definition.path:
  value: MedicationRequest.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored
element definition.definition:
  value: 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 and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: 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.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: MedicationRequest.identifier
element definition.path:
  value: MedicationRequest.identifier
element definition.short:
  value: External ids for this request
element definition.definition:
  value: Identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.
element definition.comment:
  value: This is a business identifier, not a resource identifier.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.identifier
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Identifier
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.identifier
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Header/PrescriberOrderNumber
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.identifier
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: ORC-2-Placer Order Number / ORC-3-Filler Order Number
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .id

index: -1
element.id:
  value: MedicationRequest.status
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.status
element definition.short:
  value: (USCDI+ Quality) active | on-hold | cancelled | completed | stopped | draft
element definition.definition:
  value: A code specifying the current state of the order. Generally, this will be active or completed state.
element definition.comment:
  value: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.status
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
element definition.is summary:
  value: true
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.value set:
    value: http://hl7.org/fhir/us/quality-core/ValueSet/us-quality-core-positive-medication-request-status
    link: http://hl7.org/fhir/us/quality-core/ValueSet/us-quality-core-positive-medication-request-status
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.status
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: no mapping
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.status
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .statusCode

index: -1
element.id:
  value: MedicationRequest.statusReason
element definition.path:
  value: MedicationRequest.statusReason
element definition.short:
  value: Reason for current status
element definition.definition:
  value: Captures the reason for the current state of the MedicationRequest.
element definition.comment:
  value: This is generally only used for "exception" statuses such as "suspended" or "cancelled". The reason why the MedicationRequest was created at all is captured in reasonCode, not here.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.statusReason
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationRequestStatusReason
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: Identifies the reasons for a given status.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medicationrequest-status-reason|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.statusReason
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde

index: -1
element.id:
  value: MedicationRequest.intent
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.intent
element definition.short:
  value: (USCDI+ Quality) proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
element definition.definition:
  value: Whether the request is a proposal, plan, or an original order.
element definition.comment:
  value: 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. An instance-order is an instantiation of a request or order and may be used to populate Medication Administration Record. This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.intent
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.condition:
  value: us-core-21
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: This element changes the interpretation of all descriptive attributes. For example "the time the request is recommended to occur" vs. "the time the request is authorized to occur" or "who is recommended to perform the request" vs. "who is authorized to perform the request
element definition.is summary:
  value: true
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The kind of medication order.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medicationrequest-intent
    link: http://hl7.org/fhir/ValueSet/medicationrequest-intent
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.intent
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.class
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)

index: -1
element.id:
  value: MedicationRequest.category
element definition.path:
  value: MedicationRequest.category
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: $this
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Type of medication usage
element definition.definition:
  value: Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).
element definition.comment:
  value: The category can be used to include where the medication is expected to be consumed or other types of requests.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.category
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationRequestCategory
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medicationrequest-category
    link: http://hl7.org/fhir/ValueSet/medicationrequest-category
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/Directions or Message/Body/NewRx/MedicationPrescribed/StructuredSIG
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.class
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value

index: -1
element.id:
  value: MedicationRequest.category:us-core
element definition.path:
  value: MedicationRequest.category
element definition.slice name:
  value: us-core
element definition.short:
  value: Type of medication usage
element definition.definition:
  value: Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).
element definition.comment:
  value: The category can be used to include where the medication is expected to be consumed or other types of requests.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.category
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The type of medication order. Note that other codes are permitted in other slices, see [Required Bindings When Slicing by Value Sets](http://hl7.org/fhir/us/core/STU9/general-requirements.html#required-bindings-when-slicing-by-valuesets)
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medicationrequest-category
    link: http://hl7.org/fhir/ValueSet/medicationrequest-category
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/Directions or Message/Body/NewRx/MedicationPrescribed/StructuredSIG
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.class
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value

index: -1
element.id:
  value: MedicationRequest.priority
element definition.path:
  value: MedicationRequest.priority
element definition.short:
  value: routine | urgent | asap | stat
element definition.definition:
  value: Indicates how quickly the Medication Request should be addressed with respect to other requests.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.priority
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationRequestPriority
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: Identifies the level of importance to be assigned to actioning the request.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/request-priority|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.priority
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.grade
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .priorityCode

index: -1
element.id:
  value: MedicationRequest.doNotPerform
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.doNotPerform
element definition.short:
  value: (USCDI+ Quality) True if medication was not requested
element definition.definition:
  value: If true indicates that the provider is asking for the medication request not to occur.
element definition.comment:
  value: If do not perform is not specified, the request is a positive request e.g. "do perform".
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.doNotPerform
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: boolean
element definition.fixed boolean:
  value: false
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: This element is labeled as a modifier because this element negates the request to occur (ie, this is a request for the medication not to be ordered or prescribed, etc)
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: SubstanceAdministration.actionNegationInd

index: -1
element.id:
  value: MedicationRequest.reported[x]
element definition.path:
  value: MedicationRequest.reported[x]
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: type
    element definition.slicing.discriminator.path:
      value: $this
  element definition.slicing.ordered:
    value: false
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Reported rather than primary record
element definition.definition:
  value: Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.reported[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    extension.value boolean:
      value: true
  element definition.type.code:
    value: boolean
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    extension.value boolean:
      value: true
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-relatedperson
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-relatedperson
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=INF].role

index: -1
element.id:
  value: MedicationRequest.reported[x]:reportedReference
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.reported[x]
element definition.slice name:
  value: reportedReference
element definition.short:
  value: (USCDI+ Quality) Reported rather than primary record
element definition.definition:
  value: Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.reported[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    extension.value boolean:
      value: true
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-relatedperson
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-relatedperson
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=INF].role

index: -1
element.id:
  value: MedicationRequest.medication[x]
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.medication[x]
element definition.short:
  value: (USCDI+ Quality) Medication to be taken
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.medication[x]
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication
    index: -1
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication
element definition.condition:
  value: mrq-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element definition.binding.strength:
    value: extensible
  element definition.binding.value set:
    value: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1010.4
    link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1010.4
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.code
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed Medication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode Medication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier Medication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.what[x]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: consumable.administrableMedication

index: -1
element.id:
  value: MedicationRequest.medication[x].id
element definition.path:
  value: MedicationRequest.medication[x].id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.medication[x].extension
element definition.path:
  value: MedicationRequest.medication[x].extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.medication[x].extension:codeOptions
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.medication[x].extension
element definition.slice name:
  value: codeOptions
element definition.short:
  value: (USCDI+ Quality) Url of a value set of candidate medications
element definition.definition:
  value: A logical reference (e.g. a reference to ValueSet.url) to a value set/version that identifies a set of possible coded values representing the medication.
element definition.comment:
  value: This extension SHALL NOT be used when an appropriate higher level concept code exists. This extension cannot be used to satisfy a required binding. When this extension is used on an element with an extensible binding, the set of possible coded values in the referenced value set SHALL be present in the bound value set unless none of the codes in the bound value set apply to the concept being communicated (based on human review). When this extension appears on a CodeableConcept, the CodeableConcept SHALL have no codings, and the text of the CodeableConcept SHOULD be present. For example, the text might mention the title of value set that describes the allowed content.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/codeOptions
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/codeOptions
element definition.condition:
  value: mrq-1
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CWE.
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CD.valueSet/CD.valueSetVersion

index: -1
element.id:
  value: MedicationRequest.subject
element definition.path:
  value: MedicationRequest.subject
element definition.short:
  value: Who or group medication request is for
element definition.definition:
  value: A link to a resource representing the person or set of individuals to whom the medication will be given.
element definition.comment:
  value: 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.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.subject
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.subject
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/Patient (need detail to link to specific patient … Patient.Identification in SCRIPT)
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.subject[x]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-3-Patient ID List
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=AUT].role
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.subject

index: -1
element.id:
  value: MedicationRequest.encounter
element definition.path:
  value: MedicationRequest.encounter
element definition.short:
  value: Encounter created as part of encounter/admission/stay
element definition.definition:
  value: The Encounter during which this [x] was created or to which the creation of this record is tightly associated.
element definition.comment:
  value: This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter." If there is a need to link to episodes of care they will be handled with an extension.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.encounter
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-encounter
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-encounter
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.context
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: no mapping
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.context
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PV1-19-Visit Number
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]

index: -1
element.id:
  value: MedicationRequest.supportingInformation
element definition.path:
  value: MedicationRequest.supportingInformation
element definition.short:
  value: Information to support ordering of the medication
element definition.definition:
  value: Include additional information (for example, patient height and weight) that supports the ordering of the medication.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.supportingInformation
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Resource|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.supportingInfo
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.context
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .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)]

index: -1
element.id:
  value: MedicationRequest.authoredOn
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.authoredOn
element definition.short:
  value: (USCDI+ Quality) When request was initially authored
element definition.definition:
  value: The date (and perhaps time) when the prescription was initially written or authored on.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.authoredOn
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: dateTime
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.authoredOn
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/WrittenDate
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.recorded
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: author.time

index: -1
element.id:
  value: MedicationRequest.requester
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.requester
element definition.short:
  value: (USCDI+ Quality) Who/What requested the Request
element definition.definition:
  value: The individual, organization, or device that initiated the request and has responsibility for its activation.
element definition.comment:
  value: Should include USQualityCoreDevice but the base profile excludes device references.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.requester
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitioner
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-practitionerrole
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-patient
element definition.condition:
  value: us-core-21
  index: -1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.requester
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.author
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=AUT].role

index: -1
element.id:
  value: MedicationRequest.performer
element definition.path:
  value: MedicationRequest.performer
element definition.short:
  value: Intended performer of administration
element definition.definition:
  value: The specified desired performer of the medication treatment (e.g. the performer of the medication administration).
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.performer
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Organization|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Patient|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Device|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.performer
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.actor
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]

index: -1
element.id:
  value: MedicationRequest.performerType
element definition.path:
  value: MedicationRequest.performerType
element definition.short:
  value: Desired kind of performer of the medication administration
element definition.definition:
  value: Indicates the type of performer of the administration of the medication.
element definition.comment:
  value: If specified without indicating a performer, this indicates that the performer must be of the specified type. If specified with a performer then it indicates the requirements of the performer if the designated performer is not available.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.performerType
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationRequestPerformerType
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: Identifies the type of individual that is desired to administer the medication.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/performer-role|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.performerType
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=PRF].role[scoper.determinerCode=KIND].code

index: -1
element.id:
  value: MedicationRequest.recorder
element definition.path:
  value: MedicationRequest.recorder
element definition.short:
  value: Person who entered the request
element definition.definition:
  value: The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.recorder
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.who
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=TRANS].role[classCode=ASSIGNED].code (HealthcareProviderType)

index: -1
element.id:
  value: MedicationRequest.reasonCode
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement
  extension.value boolean:
    value: true
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement
  extension.value boolean:
    value: true
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.reasonCode
element definition.short:
  value: (USCDI+ Quality) Reason or indication for ordering or not ordering the medication
element definition.definition:
  value: The reason or the indication for ordering or not ordering the medication.
element definition.comment:
  value: This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.reasonCode
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element definition.binding.strength:
    value: extensible
  element definition.binding.value set:
    value: http://hl7.org/fhir/us/core/ValueSet/us-core-condition-code
    link: http://hl7.org/fhir/us/core/ValueSet/us-core-condition-code
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.reasonCode
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.why[x]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: reason.observation.reasonCode

index: -1
element.id:
  value: MedicationRequest.reasonReference
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement
  extension.value boolean:
    value: true
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement
  extension.value boolean:
    value: true
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.reasonReference
element definition.short:
  value: (USCDI+ Quality) US Quality Core Condition or Observation that supports the prescription
element definition.definition:
  value: Condition or observation that supports why the medication was ordered.
element definition.comment:
  value: This is a reference to a condition or observation that is the reason for the medication order. If only a code exists, use reasonCode.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.reasonReference
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-simple-observation
    index: -1
    link: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-simple-observation
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.reasonReference
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: no mapping
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.why[x]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: reason.observation[code=ASSERTION].value

index: -1
element.id:
  value: MedicationRequest.instantiatesCanonical
element definition.path:
  value: MedicationRequest.instantiatesCanonical
element definition.short:
  value: Instantiates FHIR protocol or definition
element definition.definition:
  value: The URL pointing to a protocol, guideline, orderset, or other definition that is adhered to in whole or in part by this MedicationRequest.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.instantiatesCanonical
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: canonical
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.instantiates
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=DEFN].target

index: -1
element.id:
  value: MedicationRequest.instantiatesUri
element definition.path:
  value: MedicationRequest.instantiatesUri
element definition.short:
  value: Instantiates external protocol or definition
element definition.definition:
  value: The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this MedicationRequest.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.instantiatesUri
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: uri
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=DEFN].target

index: -1
element.id:
  value: MedicationRequest.basedOn
element definition.path:
  value: MedicationRequest.basedOn
element definition.short:
  value: What request fulfills
element definition.definition:
  value: A plan or request that is fulfilled in whole or in part by this medication request.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.basedOn
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.basedOn
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]

index: -1
element.id:
  value: MedicationRequest.groupIdentifier
element definition.path:
  value: MedicationRequest.groupIdentifier
element definition.short:
  value: Composite request this is part of
element definition.definition:
  value: 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.
element definition.requirements:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.groupIdentifier
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Identifier
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.groupIdentifier
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id

index: -1
element.id:
  value: MedicationRequest.courseOfTherapyType
element definition.path:
  value: MedicationRequest.courseOfTherapyType
element definition.short:
  value: Overall pattern of medication administration
element definition.definition:
  value: The description of the overall patte3rn of the administration of the medication to the patient.
element definition.comment:
  value: This attribute should not be confused with the protocol of the medication.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.courseOfTherapyType
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationRequestCourseOfTherapy
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: Identifies the overall pattern of medication administratio.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Act.code where classCode = LIST and moodCode = EVN

index: -1
element.id:
  value: MedicationRequest.insurance
element definition.path:
  value: MedicationRequest.insurance
element definition.short:
  value: Associated insurance coverage
element definition.definition:
  value: Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.insurance
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Coverage|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ClaimResponse|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.insurance
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=COVBY].target

index: -1
element.id:
  value: MedicationRequest.note
element definition.path:
  value: MedicationRequest.note
element definition.short:
  value: Information about the prescription
element definition.definition:
  value: Extra information about the prescription that could not be conveyed by the other attributes.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.note
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Annotation
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.note
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/Note
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value

index: -1
element.id:
  value: MedicationRequest.dosageInstruction
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction
element definition.short:
  value: (USCDI+ Quality) How medication should be taken
element definition.definition:
  value: Indicates how the medication is to be used by the patient.
element definition.comment:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dosageInstruction
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Dosage
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.occurrence[x]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: see dosageInstruction mapping

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.id
element definition.path:
  value: MedicationRequest.dosageInstruction.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.extension
element definition.path:
  value: MedicationRequest.dosageInstruction.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.modifierExtension
element definition.path:
  value: MedicationRequest.dosageInstruction.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: 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.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.alias:
  value: modifiers
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.sequence
element definition.path:
  value: MedicationRequest.dosageInstruction.sequence
element definition.short:
  value: The order of the dosage instructions
element definition.definition:
  value: Indicates the order in which the dosage instructions should be applied or interpreted.
element definition.requirements:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.sequence
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: integer
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: TQ1-1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .text

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.text
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.text
element definition.short:
  value: (USCDI+ Quality) Free text dosage instructions e.g. SIG
element definition.definition:
  value: Free text dosage instructions e.g. SIG.
element definition.requirements:
  value: 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. Additional information about administration or preparation of the medication should be included as text.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: string
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXO-6; RXE-21
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .text

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.additionalInstruction
element definition.path:
  value: MedicationRequest.dosageInstruction.additionalInstruction
element definition.short:
  value: Supplemental instruction or warnings to the patient - e.g. "with meals", "may cause drowsiness"
element definition.definition:
  value: Supplemental instructions to the patient on how to take the medication (e.g. "with meals" or"take half to one hour before food") or warnings for the patient about the medication (e.g. "may cause drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps").
element definition.comment:
  value: Information about administration or preparation of the medication (e.g. "infuse as rapidly as possibly via intraperitoneal port" or "immediately following drug x") should be populated in dosage.text.
element definition.requirements:
  value: Additional instruction is intended to be coded, but where no code exists, the element could include text. For example, "Swallow with plenty of water" which might or might not be coded.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Dosage.additionalInstruction
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: AdditionalInstruction
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery".
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/additional-instruction-codes|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXO-7
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .text

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.patientInstruction
element definition.path:
  value: MedicationRequest.dosageInstruction.patientInstruction
element definition.short:
  value: Patient or consumer oriented instructions
element definition.definition:
  value: Instructions in terms that are understood by the patient or consumer.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.patientInstruction
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: string
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXO-7
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .text

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.timing
element definition.short:
  value: (USCDI+ Quality) When medication should be administered
element definition.definition:
  value: When medication should be administered.
element definition.comment:
  value: This attribute might 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.
element definition.requirements:
  value: The timing schedule for giving the medication to the patient. This 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.timing
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Timing
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .effectiveTime

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.id
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.extension
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.modifierExtension
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: 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.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.alias:
  value: modifiers
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.event
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.event
element definition.short:
  value: When the event occurs
element definition.definition:
  value: Identifies specific times when the event occurs.
element definition.requirements:
  value: In a Medication Administration Record, for instance, you need to take a general specification, and turn it into a precise specification.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Timing.event
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: dateTime
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: QLIST<TS>

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat
element definition.short:
  value: (USCDI+ Quality) When the event is to occur
element definition.definition:
  value: A set of rules that describe when the event is scheduled.
element definition.requirements:
  value: Many timing schedules are determined by regular repetitions.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: tim-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: if there's a duration, there needs to be duration units
  element definition.constraint.expression:
    value: duration.empty() or durationUnit.exists()
  element definition.constraint.xpath:
    value: not(exists(f:duration)) or exists(f:durationUnit)
  element definition.constraint.source:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: tim-2
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: if there's a period, there needs to be period units
  element definition.constraint.expression:
    value: period.empty() or periodUnit.exists()
  element definition.constraint.xpath:
    value: not(exists(f:period)) or exists(f:periodUnit)
  element definition.constraint.source:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: tim-4
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: duration SHALL be a non-negative value
  element definition.constraint.expression:
    value: duration.exists() implies duration >= 0
  element definition.constraint.xpath:
    value: f:duration/@value >= 0 or not(f:duration/@value)
  element definition.constraint.source:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: tim-5
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: period SHALL be a non-negative value
  element definition.constraint.expression:
    value: period.exists() implies period >= 0
  element definition.constraint.xpath:
    value: f:period/@value >= 0 or not(f:period/@value)
  element definition.constraint.source:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: tim-6
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If there's a periodMax, there must be a period
  element definition.constraint.expression:
    value: periodMax.empty() or period.exists()
  element definition.constraint.xpath:
    value: not(exists(f:periodMax)) or exists(f:period)
  element definition.constraint.source:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: tim-7
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If there's a durationMax, there must be a duration
  element definition.constraint.expression:
    value: durationMax.empty() or duration.exists()
  element definition.constraint.xpath:
    value: not(exists(f:durationMax)) or exists(f:duration)
  element definition.constraint.source:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: tim-8
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If there's a countMax, there must be a count
  element definition.constraint.expression:
    value: countMax.empty() or count.exists()
  element definition.constraint.xpath:
    value: not(exists(f:countMax)) or exists(f:count)
  element definition.constraint.source:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: tim-9
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If there's an offset, there must be a when (and not C, CM, CD, CV)
  element definition.constraint.expression:
    value: offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not()))
  element definition.constraint.xpath:
    value: not(exists(f:offset)) or exists(f:when)
  element definition.constraint.source:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: tim-10
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If there's a timeOfDay, there cannot be a when, or vice versa
  element definition.constraint.expression:
    value: timeOfDay.empty() or when.empty()
  element definition.constraint.xpath:
    value: not(exists(f:timeOfDay)) or not(exists(f:when))
  element definition.constraint.source:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Implies PIVL or EIVL

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.id
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.extension
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]
element definition.short:
  value: (USCDI+ Quality) Length/Range of lengths, or (Start and/or end) limits
element definition.definition:
  value: Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.bounds[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Duration
element definition.type:
  index: -1
  element definition.type.code:
    value: Range
element definition.type:
  index: -1
  element definition.type.code:
    value: Period
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: IVL(TS) used in a QSI

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.count
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.count
element definition.short:
  value: Number of times to repeat
element definition.definition:
  value: A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values.
element definition.comment:
  value: If you have both bounds and count, then this should be understood as within the bounds period, until count times happens.
element definition.requirements:
  value: Repetitions may be limited by end time or total occurrences.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.count
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: positiveInt
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.count

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.countMax
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.countMax
element definition.short:
  value: Maximum number of times to repeat
element definition.definition:
  value: If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.countMax
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: positiveInt
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.count

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.duration
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.duration
element definition.short:
  value: How long when it happens
element definition.definition:
  value: How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration.
element definition.comment:
  value: For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise).
element definition.requirements:
  value: Some activities are not instantaneous and need to be maintained for a period of time.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.duration
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: decimal
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.phase

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.durationMax
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.durationMax
element definition.short:
  value: How long when it happens (Max)
element definition.definition:
  value: If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.
element definition.comment:
  value: For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise).
element definition.requirements:
  value: Some activities are not instantaneous and need to be maintained for a period of time.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.durationMax
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: decimal
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.phase

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.durationUnit
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.durationUnit
element definition.short:
  value: s | min | h | d | wk | mo | a - unit of time (UCUM)
element definition.definition:
  value: The units of time for the duration, in UCUM units.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.durationUnit
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: UnitsOfTime
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: A unit of time (units from UCUM).
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/units-of-time|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.phase.unit

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.frequency
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.frequency
element definition.short:
  value: (USCDI+ Quality) Event occurs frequency times per period
element definition.definition:
  value: The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.frequency
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: positiveInt
element definition.meaning when missing:
  value: If no frequency is stated, the assumption is that the event occurs once per period, but systems SHOULD always be specific about this
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.phase

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.frequencyMax
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.frequencyMax
element definition.short:
  value: (USCDI+ Quality) Event occurs frequencyMax times per period
element definition.definition:
  value: If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.frequencyMax
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: positiveInt
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.phase

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.period
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.period
element definition.short:
  value: (USCDI+ Quality) Event occurs frequency times per period
element definition.definition:
  value: Indicates the duration of time over which repetitions are to occur; e.g. to express "3 times per day", 3 would be the frequency and "1 day" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: decimal
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.phase

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.periodMax
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.periodMax
element definition.short:
  value: (USCDI+ Quality) Upper limit of period (3-4 hours)
element definition.definition:
  value: If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as "do this once every 3-5 days.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.periodMax
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: decimal
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.phase

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.periodUnit
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.periodUnit
element definition.short:
  value: (USCDI+ Quality) s | min | h | d | wk | mo | a - unit of time (UCUM)
element definition.definition:
  value: The units of time for the period in UCUM units.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.periodUnit
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: UnitsOfTime
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: A unit of time (units from UCUM).
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/units-of-time|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: PIVL.phase.unit

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.dayOfWeek
element definition.short:
  value: mon | tue | wed | thu | fri | sat | sun
element definition.definition:
  value: If one or more days of week is provided, then the action happens only on the specified day(s).
element definition.comment:
  value: If no days are specified, the action is assumed to happen every day as otherwise specified. The elements frequency and period cannot be used as well as dayOfWeek.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Timing.repeat.dayOfWeek
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: DayOfWeek
  element definition.binding.strength:
    value: required
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/days-of-week|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.timeOfDay
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.timeOfDay
element definition.short:
  value: Time of day for action
element definition.definition:
  value: Specified time of day for action to take place.
element definition.comment:
  value: When time of day is specified, it is inferred that the action happens every day (as filtered by dayofWeek) on the specified times. The elements when, frequency and period cannot be used as well as timeOfDay.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Timing.repeat.timeOfDay
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: time
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.when
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.when
element definition.short:
  value: Code for time period of occurrence
element definition.definition:
  value: An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.
element definition.comment:
  value: When more than one event is listed, the event is tied to the union of the specified events.
element definition.requirements:
  value: Timings are frequently determined by occurrences such as waking, eating and sleep.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Timing.repeat.when
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: code
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: EventTiming
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: Real world event relating to the schedule.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/event-timing|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: EIVL.event

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.repeat.offset
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.repeat.offset
element definition.short:
  value: Minutes from event (before or after)
element definition.definition:
  value: The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.repeat.offset
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: unsignedInt
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: EIVL.offset

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.timing.code
element definition.path:
  value: MedicationRequest.dosageInstruction.timing.code
element definition.short:
  value: BID | TID | QID | AM | PM | QD | QOD | +
element definition.definition:
  value: A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code).
element definition.comment:
  value: BID etc. are defined as 'at institutionally specified times'. For example, an institution may choose that BID is "always at 7am and 6pm". If it is inappropriate for this choice to be made, the code BID should not be used. Instead, a distinct organization-specific code should be used in place of the HL7-defined BID code and/or a structured representation should be used (in this case, specifying the two event times).
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Timing.code
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: TimingAbbreviation
  element definition.binding.strength:
    value: preferred
  element definition.binding.description:
    value: Code for a known / defined timing pattern.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/timing-abbreviation|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: QSC.code

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.asNeeded[x]
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.asNeeded[x]
element definition.short:
  value: (USCDI+ Quality) Take "as needed" (for x)
element definition.definition:
  value: 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).
element definition.comment:
  value: 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".
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.asNeeded[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: boolean
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationAsNeededReason
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: 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.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: TQ1-9
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code="as needed"].value=boolean or codable concept

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.site
element definition.path:
  value: MedicationRequest.dosageInstruction.site
element definition.short:
  value: Body site to administer to
element definition.definition:
  value: Body site to administer to.
element definition.comment:
  value: If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both.
element definition.requirements:
  value: A coded specification of the anatomic site where the medication first enters the body.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.site
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationAdministrationSite
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A coded concept describing the site location the medicine enters into or onto the body.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/approach-site-codes|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXR-2
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .approachSiteCode

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.route
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.route
element definition.short:
  value: (USCDI+ Quality) How drug should enter body
element definition.definition:
  value: How drug should enter body.
element definition.requirements:
  value: A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.route
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: SNOMED CT and NCI Thesaurus SPL route of administration codes
  element definition.binding.value set:
    value: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1267.22
    link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1267.22
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXR-1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .routeCode

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.method
element definition.path:
  value: MedicationRequest.dosageInstruction.method
element definition.short:
  value: Technique for administering medication
element definition.definition:
  value: Technique for administering medication.
element definition.comment:
  value: Terminologies used often pre-coordinate this term with the route and or form of administration.
element definition.requirements:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.method
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationAdministrationMethod
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A coded concept describing the technique by which the medicine is administered.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/administration-method-codes|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXR-4
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .doseQuantity

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.doseAndRate
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.doseAndRate
element definition.short:
  value: (USCDI+ Quality) Amount of medication administered
element definition.definition:
  value: The amount of medication administered.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Dosage.doseAndRate
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: TQ1-2

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.doseAndRate.id
element definition.path:
  value: MedicationRequest.dosageInstruction.doseAndRate.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.doseAndRate.extension
element definition.path:
  value: MedicationRequest.dosageInstruction.doseAndRate.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: -1
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.doseAndRate.type
element definition.path:
  value: MedicationRequest.dosageInstruction.doseAndRate.type
element definition.short:
  value: The kind of dose or rate specified
element definition.definition:
  value: The kind of dose or rate specified, for example, ordered or calculated.
element definition.requirements:
  value: If the type is not populated, assume to be "ordered".
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.doseAndRate.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: DoseAndRateType
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: The kind of dose or rate specified.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/dose-rate-type|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXO-21; RXE-23

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.doseAndRate.dose[x]
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dosageInstruction.doseAndRate.dose[x]
element definition.short:
  value: (USCDI+ Quality) Amount of medication per dose
element definition.definition:
  value: Amount of medication per dose.
element definition.comment:
  value: 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.
element definition.requirements:
  value: The amount of therapeutic or other substance given at one administration event.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.doseAndRate.dose[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
    extension.value boolean:
      value: true
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    index: -1
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
element definition.type:
  index: -1
  element definition.type.code:
    value: Range
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    extension.value canonical:
      value: http://hl7.org/fhir/ValueSet/ucum-units
      link: http://hl7.org/fhir/ValueSet/ucum-units
  element definition.binding.strength:
    value: preferred
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/ucum-common
    link: http://hl7.org/fhir/ValueSet/ucum-common
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXO-2, RXE-3
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .doseQuantity

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.doseAndRate.rate[x]
element definition.path:
  value: MedicationRequest.dosageInstruction.doseAndRate.rate[x]
element definition.short:
  value: Amount of medication per unit of time
element definition.definition:
  value: Amount of medication per unit of time.
element definition.comment:
  value: 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. It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour.
element definition.requirements:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.doseAndRate.rate[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Ratio
element definition.type:
  index: -1
  element definition.type.code:
    value: Range
element definition.type:
  index: -1
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXE22, RXE23, RXE-24
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .rateQuantity

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.maxDosePerPeriod
element definition.path:
  value: MedicationRequest.dosageInstruction.maxDosePerPeriod
element definition.short:
  value: Upper limit on medication per unit of time
element definition.definition:
  value: Upper limit on medication per unit of time.
element definition.comment:
  value: 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".
element definition.requirements:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.maxDosePerPeriod
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Ratio
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXO-23, RXE-19
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .maxDoseQuantity

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.maxDosePerAdministration
element definition.path:
  value: MedicationRequest.dosageInstruction.maxDosePerAdministration
element definition.short:
  value: Upper limit on medication per administration
element definition.definition:
  value: Upper limit on medication per administration.
element definition.comment:
  value: 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.
element definition.requirements:
  value: The maximum total quantity of a therapeutic substance that may be administered to a subject per administration.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.maxDosePerAdministration
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: not supported

index: -1
element.id:
  value: MedicationRequest.dosageInstruction.maxDosePerLifetime
element definition.path:
  value: MedicationRequest.dosageInstruction.maxDosePerLifetime
element definition.short:
  value: Upper limit on medication per lifetime of the patient
element definition.definition:
  value: Upper limit on medication per lifetime of the patient.
element definition.requirements:
  value: The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Dosage.maxDosePerLifetime
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: not supported

index: -1
element.id:
  value: MedicationRequest.dispenseRequest
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dispenseRequest
element definition.short:
  value: (USCDI+ Quality) Medication supply authorization
element definition.definition:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/ExpirationDate
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: component.supplyEvent

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.id
element definition.path:
  value: MedicationRequest.dispenseRequest.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.extension
element definition.path:
  value: MedicationRequest.dispenseRequest.extension
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.modifierExtension
element definition.path:
  value: MedicationRequest.dispenseRequest.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: 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.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.alias:
  value: modifiers
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.initialFill
element definition.path:
  value: MedicationRequest.dispenseRequest.initialFill
element definition.short:
  value: First fill details
element definition.definition:
  value: Indicates the quantity or duration for the first dispense of the medication.
element definition.comment:
  value: If populating this element, either the quantity or the duration must be included.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest.initialFill
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: SubstanceAdministration -> ActRelationship[sequenceNumber = '1'] -> Supply

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.initialFill.id
element definition.path:
  value: MedicationRequest.dispenseRequest.initialFill.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.initialFill.extension
element definition.path:
  value: MedicationRequest.dispenseRequest.initialFill.extension
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.initialFill.modifierExtension
element definition.path:
  value: MedicationRequest.dispenseRequest.initialFill.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: 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.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.alias:
  value: modifiers
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.initialFill.quantity
element definition.path:
  value: MedicationRequest.dispenseRequest.initialFill.quantity
element definition.short:
  value: First fill quantity
element definition.definition:
  value: The amount or quantity to provide as part of the first dispense.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest.initialFill.quantity
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Supply.quantity[moodCode=RQO]

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.initialFill.duration
element definition.path:
  value: MedicationRequest.dispenseRequest.initialFill.duration
element definition.short:
  value: First fill duration
element definition.definition:
  value: The length of time that the first dispense is expected to last.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest.initialFill.duration
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Duration
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Supply.effectivetime[moodCode=RQO]

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.dispenseInterval
element definition.path:
  value: MedicationRequest.dispenseRequest.dispenseInterval
element definition.short:
  value: Minimum period of time between dispenses
element definition.definition:
  value: The minimum period of time that must occur between dispenses of the medication.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest.dispenseInterval
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Duration
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Supply.effectivetime[moodCode=RQO]

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.validityPeriod
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dispenseRequest.validityPeriod
element definition.short:
  value: (USCDI+ Quality) Time period supply is authorized for
element definition.definition:
  value: This indicates the validity period of a prescription (stale dating the Prescription).
element definition.comment:
  value: 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.
element definition.requirements:
  value: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest.validityPeriod
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Period
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/Refills
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: effectiveTime

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.numberOfRepeatsAllowed
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dispenseRequest.numberOfRepeatsAllowed
element definition.short:
  value: (USCDI+ Quality) Number of refills authorized
element definition.definition:
  value: An integer indicating the number of times, in addition to the original dispense, (aka refills or repeats) that the patient can receive the prescribed medication. Usage Notes: This integer does not include the original order dispense. This means that if an order indicates dispense 30 tablets plus "3 repeats", then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets. A prescriber may explicitly say that zero refills are permitted after the initial dispense.
element definition.comment:
  value: If displaying "number of authorized fills", add 1 to this number.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest.numberOfRepeatsAllowed
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: unsignedInt
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/Quantity
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXE-12-Number of Refills
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: repeatNumber

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.quantity
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dispenseRequest.quantity
element definition.short:
  value: (USCDI+ Quality) Amount of medication to supply per dispense
element definition.definition:
  value: The amount that is to be dispensed for one fill.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest.quantity
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.must support:
  value: true
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/DaysSupply
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: quantity

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.expectedSupplyDuration
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-uscdi-quality-extension
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationRequest.dispenseRequest.expectedSupplyDuration
element definition.short:
  value: (USCDI+ Quality) Number of days supply per dispense
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest.expectedSupplyDuration
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Duration
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: Message/Body/NewRx/MedicationPrescribed/Substitutions
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: expectedUseTime

index: -1
element.id:
  value: MedicationRequest.dispenseRequest.performer
element definition.path:
  value: MedicationRequest.dispenseRequest.performer
element definition.short:
  value: Intended dispenser
element definition.definition:
  value: Indicates the intended dispensing Organization specified by the prescriber.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.dispenseRequest.performer
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Organization|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.who
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=COMP].target[classCode=SPLY, moodCode=RQO] .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]

index: -1
element.id:
  value: MedicationRequest.substitution
element definition.path:
  value: MedicationRequest.substitution
element definition.short:
  value: Any restrictions on medication substitution
element definition.definition:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.substitution
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: subjectOf.substitutionPersmission

index: -1
element.id:
  value: MedicationRequest.substitution.id
element definition.path:
  value: MedicationRequest.substitution.id
element definition.representation:
  value: xmlAttr
  index: -1
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.substitution.extension
element definition.path:
  value: MedicationRequest.substitution.extension
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: -1
element.id:
  value: MedicationRequest.substitution.modifierExtension
element definition.path:
  value: MedicationRequest.substitution.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: 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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: 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.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: -1
element definition.alias:
  value: user content
  index: -1
element definition.alias:
  value: modifiers
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: MedicationRequest.substitution.allowed[x]
element definition.path:
  value: MedicationRequest.substitution.allowed[x]
element definition.short:
  value: Whether substitution is allowed or not
element definition.definition:
  value: True if the prescriber allows a different drug to be dispensed from what was prescribed.
element definition.comment:
  value: This element is labeled as a modifier because whether substitution is allow or not, it cannot be ignored.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.substitution.allowed[x]
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: boolean
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationRequestSubstitution
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: Identifies the type of substitution allowed.
  element definition.binding.value set:
    value: http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
    link: http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXO-9-Allow Substitutions / RXE-9-Substitution Status
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: code

index: -1
element.id:
  value: MedicationRequest.substitution.reason
element definition.path:
  value: MedicationRequest.substitution.reason
element definition.short:
  value: Why should (not) substitution be made
element definition.definition:
  value: Indicates the reason for the substitution, or why substitution must or must not be performed.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.substitution.reason
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationIntendedSubstitutionReason
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.
  element definition.binding.value set:
    value: http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason
    link: http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: not mapped
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXE-9 Substition status
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: reasonCode

index: -1
element.id:
  value: MedicationRequest.priorPrescription
element definition.path:
  value: MedicationRequest.priorPrescription
element definition.short:
  value: An order/prescription that is being replaced
element definition.definition:
  value: A link to a resource representing an earlier order related order or prescription.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationRequest.priorPrescription
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.replaces
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: script10.6
  element definition.mapping.map:
    value: not mapped
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=?RPLC or ?SUCC]/target[classCode=SBADM,moodCode=RQO]

index: -1
element.id:
  value: MedicationRequest.detectedIssue
element definition.path:
  value: MedicationRequest.detectedIssue
element definition.short:
  value: Clinical Issue with action
element definition.definition:
  value: 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.
element definition.comment:
  value: This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.
element definition.alias:
  value: Contraindication
  index: -1
element definition.alias:
  value: Drug Utilization Review (DUR)
  index: -1
element definition.alias:
  value: Alert
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.detectedIssue
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/DetectedIssue|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value

index: -1
element.id:
  value: MedicationRequest.eventHistory
element definition.path:
  value: MedicationRequest.eventHistory
element definition.short:
  value: A list of events of interest in the lifecycle
element definition.definition:
  value: 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.
element definition.comment:
  value: This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationRequest.eventHistory
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1
    index: -1
    link: 4.0
    link: .1
element definition.constraint:
  index: -1
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.relevantHistory
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]

structure definition.differential.element:
  index: -1
  element.id:
    value: MedicationRequest
  element definition.path:
    value: MedicationRequest
structure definition.differential.element:
  index: -1
  element.id:
    value: MedicationRequest.status
  element definition.path:
    value: MedicationRequest.status
  element definition.short:
    value: (USCDI+ Quality) active | on-hold | cancelled | completed | stopped | draft
  element definition.binding:
    element definition.binding.strength:
      value: required
    element definition.binding.value set:
      value: http://hl7.org/fhir/us/quality-core/ValueSet/us-quality-core-positive-medication-request-status
      link: http://hl7.org/fhir/us/quality-core/ValueSet/us-quality-core-positive-medication-request-status
structure definition.differential.element:
  index: -1
  element.id:
    value: MedicationRequest.category
  element definition.path:
    value: MedicationRequest.category
  element definition.binding:
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      extension.value string:
        value: MedicationRequestCategory
    element definition.binding.strength:
      value: example
    element definition.binding.description:
      value: A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.
    element definition.binding.value set:
      value: http://hl7.org/fhir/ValueSet/medicationrequest-category
      link: http://hl7.org/fhir/ValueSet/medicationrequest-category
structure definition.differential.element:
  index: -1
  element.id:
    value: MedicationRequest.doNotPerform
  element definition.path:
    value: MedicationRequest.doNotPerform
  element definition.short:
    value: (USCDI+ Quality) True if medication was not requested
  element definition.fixed boolean:
    value: false