ADI-PMOCPRServiceRequest
type: StructureDefinition
node role: treeRoot
resource.id:
  value: ADI-PMOCPRServiceRequest
resource.language:
  value: en
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Generated Narrative: StructureDefinition ADI-PMOCPRServiceRequest Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> ServiceRequest 0..* ADIPMOServiceRequest A request for a service to be performed #xD; category 1..* CodeableConcept Classification of service Required Pattern: At least the following #xD; coding 1..* Coding Code defined by a terminology system Fixed Value: (Complex) #xD; system 1..1 uri Identity of the terminology system Fixed Value: http://loinc.org #xD; code 1..1 code Symbol in syntax defined by the system Fixed Value: 100822-6 #xD; display 1..1 string Representation defined by the system Fixed Value: Cardiopulmonary resuscitation orders #xD; doNotPerform S 0..1 boolean True if service/procedure should not be performed #xD; code 1..1 CodeableConcept What is being requested/ordered Binding: Cardiopulmonary Resuscitation Procedures Grouping (extensible) #xD; orderDetail S 1..1 CodeableConcept Additional order information Binding: Cardiopulmonary Resuscitation Order Options (required) #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: pe
domain resource.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  extension.value integer:
    value: 2
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      extension.value canonical:
        value: http://hl7.org/fhir/us/pacio-adi/ImplementationGuide/hl7.fhir.us.pacio-adi
        link: http://hl7.org/fhir/us/pacio-adi/ImplementationGuide/hl7.fhir.us.pacio-adi
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/pacio-adi/ImplementationGuide/hl7.fhir.us.pacio-adi
        link: http://hl7.org/fhir/us/pacio-adi/ImplementationGuide/hl7.fhir.us.pacio-adi
structure definition.url:
  value: http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PMOCPRServiceRequest
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.68.42.18
structure definition.version:
  value: 2.0.0-ballot
structure definition.name:
  value: ADIPMOCPRServiceRequest
structure definition.title:
  value: ADI PMO Cardiopulmonary Resuscitation ServiceRequest
structure definition.status:
  value: active
structure definition.experimental:
  value: false
structure definition.date:
  value: 2026-08-20T02:25:11+00:00
structure definition.publisher:
  value: HL7 International / Patient Empowerment
structure definition.contact:
  index: -1
  contact detail.name:
    value: HL7 International / Patient Empowerment
  contact detail.telecom:
    index: -1
    contact point.system:
      value: url
    contact point.value:
      value: http://www.hl7.org/Special/committees/patientempowerment
  contact detail.telecom:
    index: -1
    contact point.system:
      value: email
structure definition.description:
  value: This profile is used to represent a practitioner authored portable medical order for cardiopulmonary resuscitation.
structure definition.jurisdiction:
  index: -1
  codeable concept.coding:
    index: -1
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: US
    coding.display:
      value: United States of America
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: v2
  structure definition.mapping.uri:
    value: http://hl7.org/v2
  structure definition.mapping.name:
    value: HL7 v2 Mapping
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: quick
  structure definition.mapping.uri:
    value: http://siframework.org/cqf
  structure definition.mapping.name:
    value: Quality Improvement and Clinical Knowledge (QUICK)
structure definition.kind:
  value: resource
structure definition.abstract:
  value: false
structure definition.type:
  value: ServiceRequest
structure definition.base definition:
  value: http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PMOServiceRequest
  link: http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PMOServiceRequest
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: 2.0.0-ballot
  structure definition.snapshot.element:
    index: -1
    element.id:
      value: ServiceRequest
    element definition.path:
      value: ServiceRequest
    element definition.short:
      value: A request for a service to be performed
    element definition.definition:
      value: A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.
    element definition.alias:
      value: diagnostic request
      index: -1
    element definition.alias:
      value: referral
      index: -1
    element definition.alias:
      value: referral request
      index: -1
    element definition.alias:
      value: transfer of care request
      index: -1
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: ServiceRequest
      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

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: prr-1
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: orderDetail SHALL only be present if code is present
element definition.constraint.expression:
  value: orderDetail.empty() or code.exists()
element definition.constraint.xpath:
  value: exists(f:code) or not(exists(f:orderDetail))
element definition.constraint.source:
  value: http://hl7.org/fhir/StructureDefinition/ServiceRequest
  link: http://hl7.org/fhir/StructureDefinition/ServiceRequest

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: v2
element definition.mapping.map:
  value: ORC

index: -1
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: Act[moodCode<=INT]

index: -1
element.id:
  value: ServiceRequest.id
element definition.path:
  value: ServiceRequest.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: ServiceRequest.meta
element definition.path:
  value: ServiceRequest.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: ServiceRequest.implicitRules
element definition.path:
  value: ServiceRequest.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: ServiceRequest.language
element definition.path:
  value: ServiceRequest.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: ServiceRequest.text
element definition.path:
  value: ServiceRequest.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: ServiceRequest.contained
element definition.path:
  value: ServiceRequest.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: ServiceRequest.extension
element definition.path:
  value: ServiceRequest.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 resource. 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: 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
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: -1
element.id:
  value: ServiceRequest.modifierExtension
element definition.path:
  value: ServiceRequest.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: ServiceRequest.identifier
element definition.path:
  value: ServiceRequest.identifier
element definition.short:
  value: Identifiers assigned to this order
element definition.definition:
  value: Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.
element definition.comment:
  value: The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2). For further discussion and examples see the resource notes section below.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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: true
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: 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, ORC.3, RF1-6 / RF1-11,
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .identifier
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: ClinicalStatement.identifier

index: -1
element.id:
  value: ServiceRequest.instantiatesCanonical
element definition.path:
  value: ServiceRequest.instantiatesCanonical
element definition.short:
  value: Instantiates FHIR protocol or definition
element definition.definition:
  value: The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.
element definition.comment:
  value: Note: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PlanDefinition|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.instantiatesCanonical
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: Varies by domain
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: ServiceRequest.instantiatesUri
element definition.path:
  value: ServiceRequest.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 ServiceRequest.
element definition.comment:
  value: This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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: workflow
  element definition.mapping.map:
    value: Request.instantiatesUri
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: Varies by domain
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: ServiceRequest.basedOn
element definition.path:
  value: ServiceRequest.basedOn
element definition.short:
  value: What request fulfills
element definition.definition:
  value: Plan/proposal/order fulfilled by this request.
element definition.alias:
  value: fulfills
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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/ServiceRequest|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.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: v2
  element definition.mapping.map:
    value: ORC.8 (plus others)
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=FLFS].target

index: -1
element.id:
  value: ServiceRequest.replaces
element definition.path:
  value: ServiceRequest.replaces
element definition.short:
  value: What request replaces
element definition.definition:
  value: The request takes the place of the referenced completed or terminated request(s).
element definition.alias:
  value: supersedes
  index: -1
element definition.alias:
  value: prior
  index: -1
element definition.alias:
  value: renewed order
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.replaces
  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/ServiceRequest|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.replaces
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: Handled by message location of ORC (ORC.1=RO or RU)
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=RPLC].target

index: -1
element.id:
  value: ServiceRequest.requisition
element definition.path:
  value: ServiceRequest.requisition
element definition.short:
  value: Composite Request ID
element definition.definition:
  value: A shared identifier common to all service requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier.
element definition.comment:
  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.requirements:
  value: Some business processes need to know if multiple items were ordered as part of the same "requisition" for billing or other purposes.
element definition.alias:
  value: grouperId
  index: -1
element definition.alias:
  value: groupIdentifier
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.requisition
  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: v2
  element definition.mapping.map:
    value: ORC.4
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier

index: -1
element.id:
  value: ServiceRequest.status
element definition.path:
  value: ServiceRequest.status
element definition.short:
  value: draft | active | on-hold | revoked | completed | entered-in-error | unknown
element definition.definition:
  value: The status of the order.
element definition.comment:
  value: The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](http://hl7.org/fhir/R4/event.html) for general discussion) or using the [Task](http://hl7.org/fhir/R4/task.html) resource.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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.pattern code:
  value: active
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.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: ServiceRequestStatus
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The status of a service order.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/request-status|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.status
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: v2
  element definition.mapping.map:
    value: ORC.5,RF1-1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .status
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: Action.currentStatus

index: -1
element.id:
  value: ServiceRequest.intent
element definition.path:
  value: ServiceRequest.intent
element definition.short:
  value: proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
element definition.definition:
  value: Whether the request is a proposal, plan, an original order or a reflex order.
element definition.comment:
  value: 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: ServiceRequest.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.pattern code:
  value: directive
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.extension:
    index: -1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: ServiceRequestIntent
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The kind of service request.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/request-intent|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.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: v2
  element definition.mapping.map:
    value: N/A
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: ServiceRequest.category
element definition.path:
  value: ServiceRequest.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: Classification of service
element definition.definition:
  value: A code that classifies the service for searching, sorting and display purposes (e.g. "Surgical Procedure").
element definition.comment:
  value: There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource. The level of granularity is defined by the category concepts in the value set.
element definition.requirements:
  value: Used for filtering what service request are retrieved and displayed.
element definition.min:
  value: 1
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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.pattern codeable concept:
  codeable concept.coding: http://loinc.org/rdf#100822-6
    index: -1
    coding.system:
      value: http://loinc.org
    coding.code:
      value: 100822-6
    coding.display:
      value: Cardiopulmonary resuscitation orders
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-bindingName
    extension.value string:
      value: ServiceRequestCategory
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: Classification of the requested service.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/servicerequest-category|4.0.1
    link: 4.0
    link: .1
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: v2
  element definition.mapping.map:
    value: RF1-5
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="INT"].code

index: -1
element.id:
  value: ServiceRequest.category:us-core
element definition.path:
  value: ServiceRequest.category
element definition.slice name:
  value: us-core
element definition.short:
  value: Classification of service
element definition.definition:
  value: A code that classifies the service for searching, sorting and display purposes (e.g. "Surgical Procedure").
element definition.comment:
  value: There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource. The level of granularity is defined by the category concepts in the value set.
element definition.requirements:
  value: Used for filtering what service request are retrieved and displayed.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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: true
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: 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/us/core/ValueSet/us-core-servicerequest-category
    link: http://hl7.org/fhir/us/core/ValueSet/us-core-servicerequest-category
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: v2
  element definition.mapping.map:
    value: RF1-5
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="INT"].code

index: -1
element.id:
  value: ServiceRequest.priority
element definition.path:
  value: ServiceRequest.priority
element definition.short:
  value: routine | urgent | asap | stat
element definition.definition:
  value: Indicates how quickly the ServiceRequest 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: ServiceRequest.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.meaning when missing:
  value: If missing, this task should be performed with normal priority
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: ServiceRequestPriority
  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: v2
  element definition.mapping.map:
    value: TQ1.9, RF1-2
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .priorityCode

index: -1
element.id:
  value: ServiceRequest.doNotPerform
element definition.path:
  value: ServiceRequest.doNotPerform
element definition.short:
  value: True if service/procedure should not be performed
element definition.definition:
  value: Set this to true if the record is saying that the service/procedure should NOT be performed.
element definition.comment:
  value: In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition. If the ServiceRequest.code and ServiceRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation.
element definition.requirements:
  value: Used for do not ambulate, do not elevate head of bed, do not flush NG tube, do not take blood pressure on a certain arm, etc.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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.meaning when missing:
  value: If missing, the request is a positive request e.g. "do perform"
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: If true this element negates the specified action. For Example, instead of a request for a procedure, it is a request for the procedure to not occur.
element definition.is summary:
  value: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.doNotPerform
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .actionNegationInd

index: -1
element.id:
  value: ServiceRequest.code
element definition.path:
  value: ServiceRequest.code
element definition.short:
  value: What is being requested/ordered
element definition.definition:
  value: A code that identifies a particular service (i.e., procedure, diagnostic investigation, or panel of investigations) that have been requested.
element definition.comment:
  value: Many laboratory and radiology procedure codes embed the specimen/organ system in the test order name, for example, serum or serum/plasma glucose, or a chest x-ray. The specimen might not be recorded separately from the test code.
element definition.alias:
  value: service requested
  index: -1
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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.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.1115.31
    link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1115.31
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: 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: PR1-3 / OBR-4 (varies by domain)
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .code
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: Procedure.procedureCode

index: -1
element.id:
  value: ServiceRequest.code.id
element definition.path:
  value: ServiceRequest.code.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: ServiceRequest.code.extension
element definition.path:
  value: ServiceRequest.code.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: ServiceRequest.code.coding
element definition.path:
  value: ServiceRequest.code.coding
element definition.short:
  value: Code defined by a terminology system
element definition.definition:
  value: A reference to a code defined by a terminology system.
element definition.comment:
  value: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
element definition.requirements:
  value: Allows for alternative encodings within a code system, and translations to other code systems.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: CodeableConcept.coding
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: Coding
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: C*E.1-8, C*E.10-22
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: union(., ./translation)
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

index: -1
element.id:
  value: ServiceRequest.code.text
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  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 definition.path:
  value: ServiceRequest.code.text
element definition.short:
  value: 𝗔𝗗𝗗𝗜𝗧𝗜𝗢𝗡𝗔𝗟 𝗨𝗦𝗖𝗗𝗜: The name of the test, procedure, or service to be performed.
element definition.definition:
  value: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
element definition.comment:
  value: Very often the text is the same as a displayName of one of the codings.
element definition.requirements:
  value: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: CodeableConcept.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.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: C*E.9. But note many systems use C*E.2 for this
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./originalText[mediaType/code="text/plain"]/data
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

index: -1
element.id:
  value: ServiceRequest.orderDetail
element definition.path:
  value: ServiceRequest.orderDetail
element definition.short:
  value: Additional order information
element definition.definition:
  value: Additional details and instructions about the how the services are to be delivered. For example, and order for a urinary catheter may have an order detail for an external or indwelling catheter, or an order for a bandage may require additional instructions specifying how the bandage should be applied.
element definition.comment:
  value: For information from the medical record intended to support the delivery of the requested services, use the `supportingInformation` element.
element definition.alias:
  value: detailed instructions
  index: -1
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.orderDetail
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: -1
  element definition.type.code:
    value: CodeableConcept
element definition.condition:
  value: prr-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: required
  element definition.binding.value set:
    value: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1115.28
    link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1115.28
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: NTE
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .code
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: Procedure.procedureCode

index: -1
element.id:
  value: ServiceRequest.quantity[x]
element definition.path:
  value: ServiceRequest.quantity[x]
element definition.short:
  value: Service amount
element definition.definition:
  value: An amount of service being requested which can be a quantity ( for example $1,500 home modification), a ratio ( for example, 20 half day visits per month), or a range (2.0 to 1.8 Gy per fraction).
element definition.requirements:
  value: When ordering a service the number of service items may need to be specified separately from the the service item.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.quantity[x]
  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:
  index: -1
  element definition.type.code:
    value: Ratio
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.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: NTE
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .quantity

index: -1
element.id:
  value: ServiceRequest.subject
element definition.path:
  value: ServiceRequest.subject
element definition.short:
  value: Individual or Entity the service is ordered for
element definition.definition:
  value: On whom or what the service is to be performed. This is usually a human patient, but can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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/core/StructureDefinition/us-core-patient
    index: -1
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
      extension.value boolean:
        value: true
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: 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
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=SBJ].role
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: ClinicalStatement.subject
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.subject

index: -1
element.id:
  value: ServiceRequest.encounter
element definition.path:
  value: ServiceRequest.encounter
element definition.short:
  value: Encounter in which the request was created
element definition.definition:
  value: An encounter that provides additional information about the healthcare context in which this request is made.
element definition.alias:
  value: context
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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/core/StructureDefinition/us-core-encounter
    index: -1
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-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: true
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Request.encounter
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
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: ClinicalStatement.encounter

index: -1
element.id:
  value: ServiceRequest.occurrence[x]
element definition.path:
  value: ServiceRequest.occurrence[x]
element definition.short:
  value: When service should occur
element definition.definition:
  value: The date/time at which the requested service should occur.
element definition.alias:
  value: schedule
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.occurrence[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: Period
element definition.type:
  index: -1
  element definition.type.code:
    value: dateTime
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: workflow
  element definition.mapping.map:
    value: Request.occurrence[x]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.planned
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: TQ1/TQ2, OBR-7/OBR-8
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .effectiveTime
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: Procedure.procedureSchedule

index: -1
element.id:
  value: ServiceRequest.asNeeded[x]
element definition.path:
  value: ServiceRequest.asNeeded[x]
element definition.short:
  value: Preconditions for service
element definition.definition:
  value: If a CodeableConcept is present, it indicates the pre-condition for performing the service. For example "pain", "on flare-up", etc.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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: ProcedureAsNeededReason
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example "pain", "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: rim
  element definition.mapping.map:
    value: boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false CodeableConcept: precondition.observationEventCriterion[code="Assertion"].value
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: Proposal.prnReason.reason

index: -1
element.id:
  value: ServiceRequest.authoredOn
element definition.path:
  value: ServiceRequest.authoredOn
element definition.short:
  value: Date request signed
element definition.definition:
  value: When the request transitioned to being actionable.
element definition.alias:
  value: orderedOn
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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: w5
  element definition.mapping.map:
    value: FiveWs.recorded
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: ORC.9, RF1-7 / RF1-9
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=AUT].time
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: Proposal.proposedAtTime

index: -1
element.id:
  value: ServiceRequest.requester
element definition.path:
  value: ServiceRequest.requester
element definition.short:
  value: Who/what is requesting service
element definition.definition:
  value: The individual who initiated the request and has responsibility for its activation.
element definition.comment:
  value: This not the dispatcher, but rather who is the authorizer. This element is not intended to handle delegation which would generally be managed through the Provenance resource.
element definition.alias:
  value: author
  index: -1
element definition.alias:
  value: orderer
  index: -1
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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/core/StructureDefinition/us-core-practitioner
    index: -1
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner
    element.extension:
      index: -1
      extension.url:
        value: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
      extension.value boolean:
        value: true
  element definition.type.target profile:
    value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole
    index: -1
    link: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole
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: v2
  element definition.mapping.map:
    value: ORC.12, PRT
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: quick
  element definition.mapping.map:
    value: ClinicalStatement.statementAuthor

index: -1
element.id:
  value: ServiceRequest.performerType
element definition.path:
  value: ServiceRequest.performerType
element definition.short:
  value: Performer role
element definition.definition:
  value: Desired type of performer for doing the requested service.
element definition.comment:
  value: This is a role, not a participation type. In other words, does not describe the task but describes the capacity. For example, “compounding pharmacy”, “psychiatrist” or “internal referral”.
element definition.alias:
  value: specialty
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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: ServiceRequestParticipantRole
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/participant-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: w5
  element definition.mapping.map:
    value: FiveWs.actor
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PRT, RF!-3
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: ServiceRequest.performer
element definition.path:
  value: ServiceRequest.performer
element definition.short:
  value: Requested performer
element definition.definition:
  value: The desired performer for doing the requested service. For example, the surgeon, dermatopathologist, endoscopist, etc.
element definition.comment:
  value: If multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order. If order of preference is needed use the [request-performerOrder extension](http://hl7.org/fhir/R4/extension-request-performerorder.html). Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).
element definition.alias:
  value: request recipient
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.performer
  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/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/CareTeam|4.0.1
    index: -1
    link: 4.0
    link: .1
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/HealthcareService|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.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.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: v2
  element definition.mapping.map:
    value: PRT, Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT
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: ServiceRequest.locationCode
element definition.path:
  value: ServiceRequest.locationCode
element definition.short:
  value: Requested location
element definition.definition:
  value: The preferred location(s) where the procedure should actually happen in coded or free text form. E.g. at home or nursing day care center.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.locationCode
  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: ServiceRequestLocation
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A location type where services are delivered.
  element definition.binding.value set:
    value: http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
    link: http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
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=LOC].role[scoper.determinerCode=KIND].code

index: -1
element.id:
  value: ServiceRequest.locationReference
element definition.path:
  value: ServiceRequest.locationReference
element definition.short:
  value: Requested location
element definition.definition:
  value: A reference to the the preferred location(s) where the procedure should actually happen. E.g. at home or nursing day care center.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.locationReference
  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/Location|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: 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=LOC].role[scoper.determinerCode=INSTANCE]

index: -1
element.id:
  value: ServiceRequest.reasonCode
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement
  extension.value boolean:
    value: true
element definition.path:
  value: ServiceRequest.reasonCode
element definition.short:
  value: 𝗔𝗗𝗗𝗜𝗧𝗜𝗢𝗡𝗔𝗟 𝗨𝗦𝗖𝗗𝗜: Explanation/Justification for procedure or service
element definition.definition:
  value: An explanation or justification for why this service is being requested in coded or textual form. This is often for billing purposes. May relate to the resources referred to in `supportingInfo`.
element definition.comment:
  value: This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. Use `CodeableConcept.text` element if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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: true
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: 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, RF1-10
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .reasonCode

index: -1
element.id:
  value: ServiceRequest.reasonReference
element.extension:
  index: -1
  extension.url:
    value: http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement
  extension.value boolean:
    value: true
element definition.path:
  value: ServiceRequest.reasonReference
element definition.short:
  value: 𝗔𝗗𝗗𝗜𝗧𝗜𝗢𝗡𝗔𝗟 𝗨𝗦𝗖𝗗𝗜: US Core Profile that supports the requested service
element definition.definition:
  value: Indicates another resource that provides a justification for why this service is being requested. May relate to the resources referred to in `supportingInfo`.
element definition.comment:
  value: This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. To be as specific as possible, a reference to *Observation* or *Condition* should be used if available. Otherwise when referencing *DiagnosticReport* it should contain a finding in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`. When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request. Use the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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/pacio-adi/StructureDefinition/ADI-DocumentReference
    index: -1
    link: http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-DocumentReference
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.reasonReference
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
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=RSON].target

index: -1
element.id:
  value: ServiceRequest.insurance
element definition.path:
  value: ServiceRequest.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 needed for delivering the requested service.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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: v2
  element definition.mapping.map:
    value: IN1/IN2
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: ServiceRequest.supportingInfo
element definition.path:
  value: ServiceRequest.supportingInfo
element definition.short:
  value: Additional clinical information
element definition.definition:
  value: Additional clinical information about the patient or specimen that may influence the services or their interpretations. This information includes diagnosis, clinical findings and other observations. In laboratory ordering these are typically referred to as "ask at order entry questions (AOEs)". This includes observations explicitly requested by the producer (filler) to provide context or supporting information needed to complete the order. For example, reporting the amount of inspired oxygen for blood gas measurements.
element definition.comment:
  value: To represent information about how the services are to be delivered use the `instructions` element.
element definition.alias:
  value: Ask at order entry question
  index: -1
element definition.alias:
  value: AOE
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.supportingInfo
  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: v2
  element definition.mapping.map:
    value: Accompanying segments
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=PERT].target

index: -1
element.id:
  value: ServiceRequest.specimen
element definition.path:
  value: ServiceRequest.specimen
element definition.short:
  value: Procedure Samples
element definition.definition:
  value: One or more specimens that the laboratory procedure will use.
element definition.comment:
  value: Many diagnostic procedures need a specimen, but the request itself is not actually about the specimen. This element is for when the diagnostic is requested on already existing specimens and the request points to the specimen it applies to. Conversely, if the request is entered first with an unknown specimen, then the [Specimen](http://hl7.org/fhir/R4/specimen.html) resource points to the ServiceRequest.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.specimen
  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/Specimen|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: SPM
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=SPC].role

index: -1
element.id:
  value: ServiceRequest.bodySite
element definition.path:
  value: ServiceRequest.bodySite
element definition.short:
  value: Location on Body
element definition.definition:
  value: Anatomic location where the procedure should be performed. This is the target site.
element definition.comment:
  value: Only used if not implicit in the code found in ServiceRequest.code. If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately) then use the standard extension [procedure-targetBodyStructure](http://hl7.org/fhir/R4/extension-procedure-targetbodystructure.html).
element definition.requirements:
  value: Knowing where the procedure is performed is important for tracking if multiple sites are possible.
element definition.alias:
  value: location
  index: -1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.bodySite
  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: BodySite
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: Codes describing anatomical locations. May include laterality.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/body-site|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: SPM
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: targetSiteCode
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: Procedure.targetBodySite

index: -1
element.id:
  value: ServiceRequest.note
element definition.path:
  value: ServiceRequest.note
element definition.short:
  value: Comments
element definition.definition:
  value: Any other notes and comments made about the service request. For example, internal billing notes.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: ServiceRequest.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: v2
  element definition.mapping.map:
    value: NTE
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: quick
  element definition.mapping.map:
    value: ClinicalStatement.additionalText

index: -1
element.id:
  value: ServiceRequest.patientInstruction
element definition.path:
  value: ServiceRequest.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: ServiceRequest.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: NTE
element definition.mapping:
  index: -1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .text

index: -1
element.id:
  value: ServiceRequest.relevantHistory
element definition.path:
  value: ServiceRequest.relevantHistory
element definition.short:
  value: Request provenance
element definition.definition:
  value: Key events in the history of the request.
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: ServiceRequest.relevantHistory
  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: v2
  element definition.mapping.map:
    value: N/A
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: ServiceRequest
  element definition.path:
    value: ServiceRequest
structure definition.differential.element:
  index: -1
  element.id:
    value: ServiceRequest.category
  element definition.path:
    value: ServiceRequest.category
  element definition.pattern codeable concept:
    codeable concept.coding: http://loinc.org/rdf#100822-6
      index: -1
      coding.system:
        value: http://loinc.org
      coding.code:
        value: 100822-6
      coding.display:
        value: Cardiopulmonary resuscitation orders
structure definition.differential.element:
  index: -1
  element.id:
    value: ServiceRequest.doNotPerform
  element definition.path:
    value: ServiceRequest.doNotPerform
  element definition.must support:
    value: true
structure definition.differential.element:
  index: -1
  element.id:
    value: ServiceRequest.code
  element definition.path:
    value: ServiceRequest.code
  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.1115.31
      link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1115.31
structure definition.differential.element:
  index: -1
  element.id:
    value: ServiceRequest.orderDetail
  element definition.path:
    value: ServiceRequest.orderDetail
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.must support:
    value: true
  element definition.binding:
    element definition.binding.strength:
      value: required
    element definition.binding.value set:
      value: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1115.28
      link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1115.28