@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/StructureDefinition/Request> a fhir:StructureDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Request"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "informative"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "fhir"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/StructureDefinition/Request"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/StructureDefinition/Request>
  ] ; # 
  fhir:version [ fhir:v "6.0.0-ballot4"] ; # 
  fhir:name [ fhir:v "Request"] ; # 
  fhir:title [ fhir:v "request"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2026-08-18T17:22:57+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Logical Model: A pattern to be followed by resources that represent a specific proposal, plan and/or order for some sort of action or service."] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
         fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>
       ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ; # 
  fhir:fhirVersion [ fhir:v "6.0.0-ballot4"] ; # 
  fhir:mapping ( [
     fhir:identity [ fhir:v "v2" ] ;
     fhir:uri [
       fhir:v "http://hl7.org/v2"^^xsd:anyURI ;
       fhir:l <http://hl7.org/v2>
     ] ;
     fhir:name [ fhir:v "HL7 V2 Mapping" ]
  ] [
     fhir:identity [ fhir:v "rim" ] ;
     fhir:uri [
       fhir:v "http://hl7.org/v3"^^xsd:anyURI ;
       fhir:l <http://hl7.org/v3>
     ] ;
     fhir:name [ fhir:v "RIM Mapping" ]
  ] [
     fhir:identity [ fhir:v "w5" ] ;
     fhir:uri [
       fhir:v "http://hl7.org/fhir/fivews"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/fivews>
     ] ;
     fhir:name [ fhir:v "FiveWs Pattern Mapping" ]
  ] ) ; # 
  fhir:kind [ fhir:v "logical"] ; # 
  fhir:abstract [ fhir:v false] ; # 
  fhir:type [
     fhir:v "Request"^^xsd:anyURI ;
     fhir:l fhir:Request
  ] ; # 
  fhir:baseDefinition [
     fhir:v "http://hl7.org/fhir/StructureDefinition/Base"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/StructureDefinition/Base>
  ] ; # 
  fhir:snapshot [
     fhir:element ( [
       fhir:id [ fhir:v "Request" ] ;
       fhir:path [ fhir:v "Request" ] ;
       fhir:short [ fhir:v "Request Pattern" ] ;
       fhir:definition [ fhir:v "A pattern to be followed by resources that represent a specific proposal, plan and/or order for some sort of action or service." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v false ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ORC" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v "Act[moodCode<=INT]" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.identifier" ] ;
       fhir:path [ fhir:v "Request.identifier" ] ;
       fhir:short [ fhir:v "Business Identifier for {{title}}" ] ;
       fhir:definition [ fhir:v "Business identifiers assigned to this {{title}} by the author and/or other systems.  These identifiers remain constant as the resource is updated and propagates from server to server." ] ;
       fhir:comment [ fhir:v "The identifier.type element is used to distinguish between the identifiers assigned by the requester/placer and the performer/filler.\n\nNote: This is a business identifier, not a resource identifier (see [general discussion](resource.html#identifiers) and [request-specific discussion](request.html#identifier)).  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." ] ;
       fhir:requirements [ fhir:v "Allows identification of the {{title}} as it is known by various participating systems and in a way that remains consistent across servers." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.identifier" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Identifier"^^xsd:anyURI ;
           fhir:l fhir:Identifier
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ORC.2, ORC.3" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".identifier" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.identifier" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.basedOn" ] ;
       fhir:path [ fhir:v "Request.basedOn" ] ;
       fhir:short [ fhir:v "Fulfills plan, proposal or order" ] ;
       fhir:definition [ fhir:v "A higher-level request resource (i.e. a plan, proposal or order) that is fulfilled in whole or in part by this {{title}}.  Authorization from the 'basedOn' request flows through to the referencing {{title}}." ] ;
       fhir:comment [ fhir:v "basedOn represents the 'authorization' chain for an action, not the 'reason for action'.  For example, an order might be placed on hold under the authorization for a surgery.  However the 'reason' for placing the hold is \"to avoid interaction with anesthesia medications\"\n\n[The allowed reference resources may be adjusted as appropriate for the request resource]." ] ;
       fhir:requirements [ fhir:v "Allows tracing of authorization for the request and tracking whether proposals/recommendations were acted upon." ] ;
       fhir:alias ( [ fhir:v "fulfills" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.basedOn" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/CarePlan"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/CarePlan>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Claim"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Claim>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/CommunicationRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/DeviceRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/DeviceRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/NutritionOrder"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/NutritionOrder>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/RequestOrchestration"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/RequestOrchestration>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/ServiceRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Task"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Task>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/VisionPrescription"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/VisionPrescription>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ORC.8 (plus others)" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".outboundRelationship[typeCode=FLFS].target" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.replaces" ] ;
       fhir:path [ fhir:v "Request.replaces" ] ;
       fhir:short [ fhir:v "Request(s) replaced by this {{title}}" ] ;
       fhir:definition [ fhir:v "Completed or terminated request(s) whose function is taken by this new {{title}}." ] ;
       fhir:comment [ fhir:v "The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing." ] ;
       fhir:requirements [ fhir:v "Allows tracing the continuation of a therapy or administrative process instantiated through multiple requests." ] ;
       fhir:alias ( [ fhir:v "supersedes" ] [ fhir:v "prior" ] [ fhir:v "renewed order" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.replaces" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/CarePlan"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/CarePlan>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Claim"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Claim>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/CommunicationRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/CommunicationRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/CoverageEligibilityRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/DeviceRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/DeviceRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/NutritionOrder"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/NutritionOrder>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/RequestOrchestration"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/RequestOrchestration>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/ServiceRequest>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Task"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Task>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/VisionPrescription"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/VisionPrescription>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "Handled by message location of ORC (ORC.1=RO or RU)" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".outboundRelationship[typeCode=RPLC].target" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.groupIdentifier" ] ;
       fhir:path [ fhir:v "Request.groupIdentifier" ] ;
       fhir:short [ fhir:v "Composite request this is part of" ] ;
       fhir:definition [ fhir:v "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form." ] ;
       fhir:comment [ fhir:v "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." ] ;
       fhir:requirements [ fhir:v "Some business processes need to know if multiple items were ordered as part of the same \"prescription\" or \"requisition\" for billing or other purposes." ] ;
       fhir:alias ( [ fhir:v "grouperId" ] [ fhir:v "requisition" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.groupIdentifier" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Identifier"^^xsd:anyURI ;
           fhir:l fhir:Identifier
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ORC.4" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.status" ] ;
       fhir:path [ fhir:v "Request.status" ] ;
       fhir:short [ fhir:v "draft | active | on-hold | revoked | completed | entered-in-error | unknown" ] ;
       fhir:definition [ fhir:v "The current state of the {{title}}." ] ;
       fhir:comment [ fhir:v "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, completed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding [Event](event.html)(s) or using the [Task](task.html) resource.  A nominal state-transition diagram can be found in the [[request.html#statemachine | Request pattern]] documentation  Unknown does not represent \"other\" - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.  A status of 'active' when doNotPerform is true means that the request to not perform is currently in force.\n\nA status of completed for a \"doNotPerform\" request indicates that the period of non-performance is now satisfied and the request no longer holds." ] ;
       fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.status" ] ;
         fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "code"^^xsd:anyURI ;
           fhir:l fhir:code
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v true ] ;
       fhir:isModifierReason [ fhir:v "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" ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:binding [
         fhir:extension ( [
           fhir:url [
             fhir:v "http://hl7.org/fhir/tools/StructureDefinition/binding-definition"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/tools/StructureDefinition/binding-definition>
           ] ;
           fhir:value [
             a fhir:Markdown ;
             fhir:v "Codes identifying the lifecycle stage of a request."
           ]
         ] [
           fhir:url [
             fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
           ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "RequestStatus"
           ]
         ] ) ;
         fhir:strength [ fhir:v "required" ] ;
         fhir:description [ fhir:v "Codes identifying the lifecycle stage of a request." ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/ValueSet/request-status|6.0.0-ballot4"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/ValueSet/request-status?version=6.0.0-ballot4>
         ]
       ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ORC.5" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".status" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.status" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.statusReason" ] ;
       fhir:path [ fhir:v "Request.statusReason" ] ;
       fhir:short [ fhir:v "Reason for current status" ] ;
       fhir:definition [ fhir:v "Captures the reason for the current state of the {{title}}. Note that any change to the state requires the removal of any existing statusReasons, and, if appropriate, populating new statusReasons." ] ;
       fhir:comment [ fhir:v "This is generally only used for \"exception\" statuses such as \"suspended\" or \"cancelled\".  The reason why the {{title}} was created at all is captured in reasonCode, not here.  [distinct reason codes for different statuses can be enforced using invariants if they are universal bindings]." ] ;
       fhir:alias ( [ fhir:v "Suspended Reason" ] [ fhir:v "Cancelled Reason" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.statusReason" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "CodeableConcept"^^xsd:anyURI ;
           fhir:l fhir:CodeableConcept
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v false ] ;
       fhir:binding [
         fhir:extension ( [
           fhir:url [
             fhir:v "http://hl7.org/fhir/tools/StructureDefinition/binding-definition"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/tools/StructureDefinition/binding-definition>
           ] ;
           fhir:value [
             a fhir:Markdown ;
             fhir:v "Codes identifying the reason for the current state of a request."
           ]
         ] [
           fhir:url [
             fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
           ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "RequestStatusReason"
           ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:description [ fhir:v "Codes identifying the reason for the current state of a request." ]
       ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.intent" ] ;
       fhir:path [ fhir:v "Request.intent" ] ;
       fhir:short [ fhir:v "proposal | plan | order (immutable)" ] ;
       fhir:definition [ fhir:v "Indicates the level of authority/intentionality associated with the {{title}} and where the request fits into the workflow chain." ] ;
       fhir:comment [ fhir:v "This element is expected to be immutable.  E.g. A \"proposal\" instance should never change to be a \"plan\" instance or \"order\" instance.  Instead, a new instance 'basedOn' the prior instance should be created with the new 'intent' value.\n\nOne exception to this is that the granularity of Request.intent is allowed to change.  For example, a Request identified as an \"order\" might later be clarified to be a \"filler-order\".  Or, in rarer cases (to meet recipient constraints), the reverse might also occur.\n\nWhen resources map to this element, they are free to define as many codes as necessary to cover their space and will map to \"proposal, plan or order\".  Can have multiple codes that map to one of these.  E.g. \"original order\", \"encoded order\", \"reflex order\" would all map to \"order\".  Expectation is that the set of codes is mutually exclusive or a strict all-encompassing hierarchy." ] ;
       fhir:requirements [ fhir:v "Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain." ] ;
       fhir:alias ( [ fhir:v "category" ] ) ;
       fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.intent" ] ;
         fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "code"^^xsd:anyURI ;
           fhir:l fhir:code
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v true ] ;
       fhir:isModifierReason [ fhir:v "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" ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:binding [
         fhir:extension ( [
           fhir:url [
             fhir:v "http://hl7.org/fhir/tools/StructureDefinition/binding-definition"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/tools/StructureDefinition/binding-definition>
           ] ;
           fhir:value [
             a fhir:Markdown ;
             fhir:v "Codes indicating the degree of authority/intentionality associated with a request."
           ]
         ] [
           fhir:url [
             fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
           ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "RequestIntent"
           ]
         ] ) ;
         fhir:strength [ fhir:v "required" ] ;
         fhir:description [ fhir:v "Codes indicating the degree of authority/intentionality associated with a request." ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/ValueSet/request-intent|6.0.0-ballot4"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/ValueSet/request-intent?version=6.0.0-ballot4>
         ]
       ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "N/A" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.class" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.priority" ] ;
       fhir:path [ fhir:v "Request.priority" ] ;
       fhir:short [ fhir:v "routine | urgent | asap | stat" ] ;
       fhir:definition [ fhir:v "Indicates how quickly the {{title}} should be addressed with respect to other requests." ] ;
       fhir:comment [ fhir:v "Different systems, organizations, and/or jurisdictions may have differing business expectations around the same priority code.  For timing critical requests, it is best to make the timing requirement explicit in Request.effective[x] rather than relying on a priority code to indicate performance timing expectations." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.priority" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "code"^^xsd:anyURI ;
           fhir:l fhir:code
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:binding [
         fhir:extension ( [
           fhir:url [
             fhir:v "http://hl7.org/fhir/tools/StructureDefinition/binding-definition"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/tools/StructureDefinition/binding-definition>
           ] ;
           fhir:value [
             a fhir:Markdown ;
             fhir:v "Identifies the level of importance to be assigned to actioning the request."
           ]
         ] [
           fhir:url [
             fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
           ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "RequestPriority"
           ]
         ] ) ;
         fhir:strength [ fhir:v "required" ] ;
         fhir:description [ fhir:v "Identifies the level of importance to be assigned to actioning the request." ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/ValueSet/request-priority|6.0.0-ballot4"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/ValueSet/request-priority?version=6.0.0-ballot4>
         ]
       ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "TQ1.9" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".priorityCode" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.grade" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.doNotPerform" ] ;
       fhir:path [ fhir:v "Request.doNotPerform" ] ;
       fhir:short [ fhir:v "true if request is prohibiting action" ] ;
       fhir:definition [ fhir:v "If true indicates that the {{title}} is asking for the specified action to *not* occur." ] ;
       fhir:comment [ fhir:v "The attributes provided with the request qualify what is not to be done.  For example, if an effectiveTime is provided, the \"do not\" request only applies within the specified time.  If a performerType is specified then the \"do not\" request only applies to performers of that type.  Qualifiers include: code, subject, occurrence, performerType and performer.\n\nIn some cases, the Request.code may pre-coordinate prohibition into the requested action.  E.g. \"NPO\" (nothing by mouth), \"DNR\" (do not recussitate).  If this happens, doNotPerform SHALL NOT be set to true.  I.e. The resource shall not have double negation. (E.g. \"Do not DNR\")." ] ;
       fhir:requirements [ fhir:v "Supports things like Do Not Recussitate, Nothing by mouth, etc." ] ;
       fhir:alias ( [ fhir:v "prohibited" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.doNotPerform" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "boolean"^^xsd:anyURI ;
           fhir:l fhir:boolean
         ]
       ] ) ;
       fhir:meaningWhenMissing [ fhir:v "If do not perform is not specified, the request is a positive request e.g. \"do perform\"" ] ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v true ] ;
       fhir:isModifierReason [ fhir:v "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." ] ;
       fhir:isSummary [ fhir:v true ]
     ] [
       fhir:id [ fhir:v "Request.category" ] ;
       fhir:path [ fhir:v "Request.category" ] ;
       fhir:short [ fhir:v "Partitions the {{title}} into one or more categories that can be used to filter searching, to govern access control and/or to guide system behavior." ] ;
       fhir:definition [ fhir:v "Partitions the {{title}} into one or more categories that can be used to filter searching, to govern access control and/or to guide system behavior." ] ;
       fhir:requirements [ fhir:v "Categorization might be done automatically (inferred by code) or manually by user assertion.  The absence of a category may limit the ability to determine when the element should be handled, so strong consideration should be given to how systems will be able to determine category values for legacy data and how data that cannot be categorized will be handled.  As well, some categories might not be mutually exclusive, so systems should prepare for multiple declared categories - even within a single category 'axis'.\nIn general, there should not be a 'strong' binding ('required' or 'extensible') on the category element overall.  Instead, the element can be sliced and bindings can be asserted that apply to particular repetitions." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.category" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "CodeableConcept"^^xsd:anyURI ;
           fhir:l fhir:CodeableConcept
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ]
     ] [
       fhir:id [ fhir:v "Request.code" ] ;
       fhir:path [ fhir:v "Request.code" ] ;
       fhir:short [ fhir:v "Service requested/ordered" ] ;
       fhir:definition [ fhir:v "A code that identifies the specific service or action being asked to be done (or not done)." ] ;
       fhir:requirements [ fhir:v "[In some cases, the service type is implicit based on the scope of the resource and only a product element will be present]." ] ;
       fhir:alias ( [ fhir:v "type" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.code" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "CodeableConcept"^^xsd:anyURI ;
           fhir:l fhir:CodeableConcept
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:binding [
         fhir:extension ( [
           fhir:url [
             fhir:v "http://hl7.org/fhir/tools/StructureDefinition/binding-definition"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/tools/StructureDefinition/binding-definition>
           ] ;
           fhir:value [
             a fhir:Markdown ;
             fhir:v "Codes indicating the details of what is being requested.  These will vary significantly based on the type of request resource and will often be example/preferred rather than extensible/required."
           ]
         ] [
           fhir:url [
             fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
           ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "RequestCode"
           ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:description [ fhir:v "Codes indicating the details of what is being requested.  These will vary significantly based on the type of request resource and will often be example/preferred rather than extensible/required." ]
       ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "Varies by domain" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".code" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.what[x]" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.product" ] ;
       fhir:path [ fhir:v "Request.product" ] ;
       fhir:short [ fhir:v "Product requested/ordered" ] ;
       fhir:definition [ fhir:v "Indicates the product whose supply or manipulation is authorized by this {{title}}." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.product" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "CodeableReference"^^xsd:anyURI ;
           fhir:l fhir:CodeableReference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Device"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Device>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/DeviceDefinition"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/DeviceDefinition>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Medication"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Medication>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/NutritionProduct"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/NutritionProduct>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Substance"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Substance>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "Varies by domain" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".participation[typeCode=PRD].role" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.subject" ] ;
       fhir:path [ fhir:v "Request.subject" ] ;
       fhir:short [ fhir:v "Individual the service is ordered/prohibited for" ] ;
       fhir:definition [ fhir:v "The individual or set of individuals the action is to be performed/not performed on or for." ] ;
       fhir:comment [ fhir:v "[For resources that aren't patient-specific, the set of allowed resources may be extended to include other things.  Group should generally be retained unless there's certainty this resource won't be used for veterinary, research or public health settings where Group may be necessary (e.g. this cage of rats/crate of chickens, group of people in a 5 mile radious of the incident, etc.)]." ] ;
       fhir:requirements [ fhir:v "Links the request to the Patient context." ] ;
       fhir:alias ( [ fhir:v "patient" ] ) ;
       fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.subject" ] ;
         fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Group"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Group>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "Accompanying PID segment" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".participation[typeCode=SBJ].role" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.subject" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.encounter" ] ;
       fhir:path [ fhir:v "Request.encounter" ] ;
       fhir:short [ fhir:v "Encounter the {{title}} is tied to" ] ;
       fhir:definition [ fhir:v "The Encounter during which this {{title}} was created or to which the creation of this record is tightly associated." ] ;
       fhir:comment [ fhir:v "This will typically be the encounter during which the {{title}} was created.  However, some {{title}s may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission activities)." ] ;
       fhir:requirements [ fhir:v "Links the {{title}} to the Encounter context." ] ;
       fhir:alias ( [ fhir:v "context" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.encounter" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "Accompanying PV1" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.context" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.occurrence[x]" ] ;
       fhir:path [ fhir:v "Request.occurrence[x]" ] ;
       fhir:short [ fhir:v "When service should (not) occur" ] ;
       fhir:definition [ fhir:v "The date or time(s) at which the activity or service is desired to occur or not occur." ] ;
       fhir:comment [ fhir:v "[The list of types may be constrained as appropriate for the type of event]." ] ;
       fhir:alias ( [ fhir:v "timing" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.occurrence[x]" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "dateTime"^^xsd:anyURI ;
           fhir:l fhir:dateTime
         ]
       ] [
         fhir:code [
           fhir:v "Period"^^xsd:anyURI ;
           fhir:l fhir:Period
         ]
       ] [
         fhir:code [
           fhir:v "Timing"^^xsd:anyURI ;
           fhir:l fhir:Timing
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "Accompanying TQ1/TQ2 segments" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".effectiveTime" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.planned" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.authoredOn" ] ;
       fhir:path [ fhir:v "Request.authoredOn" ] ;
       fhir:short [ fhir:v "When request was created/transitioned to active (e.g. signed/authorized)" ] ;
       fhir:definition [ fhir:v "For draft {{title}}s, indicates the date of initial creation.  For requests with other statuses, indicates the date of activation." ] ;
       fhir:alias ( [ fhir:v "createdOn" ] [ fhir:v "signedOn" ] [ fhir:v "authorizedOn" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.authoredOn" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "dateTime"^^xsd:anyURI ;
           fhir:l fhir:dateTime
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ORC.9" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".participation[typeCode=AUT].time" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.recorded" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.requester" ] ;
       fhir:path [ fhir:v "Request.requester" ] ;
       fhir:short [ fhir:v "Who/what is requesting service" ] ;
       fhir:definition [ fhir:v "Who initiated the {{request}} and has responsibility for its activation." ] ;
       fhir:comment [ fhir:v "[Resources may choose to constrain potential requesters, though should consider proposals and plans as well as orders]." ] ;
       fhir:alias ( [ fhir:v "author" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.requester" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Practitioner>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/PractitionerRole>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Organization"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Organization>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/RelatedPerson>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Device"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Device>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ORC.12" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".participation[typeCode=AUT].role" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.author" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.reported[x]" ] ;
       fhir:path [ fhir:v "Request.reported[x]" ] ;
       fhir:short [ fhir:v "Reported rather than primary record" ] ;
       fhir:definition [ fhir:v "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record.  It may also indicate the source of the report." ] ;
       fhir:requirements [ fhir:v "Reported data may have different rules on editing and may be visually distinguished from primary data." ] ;
       fhir:alias ( [ fhir:v "informer" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.reported[x]" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "boolean"^^xsd:anyURI ;
           fhir:l fhir:boolean
         ]
       ] [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/RelatedPerson>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Practitioner>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/PractitionerRole>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Organization"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Organization>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".participation[typeCode=RPT].role" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.source" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.performerType" ] ;
       fhir:path [ fhir:v "Request.performerType" ] ;
       fhir:short [ fhir:v "Desired kind of service performer" ] ;
       fhir:definition [ fhir:v "The type of individual that is desired to act upon/ not act upon the {{request}}." ] ;
       fhir:comment [ fhir:v "If specified without indicating a performer, this indicates that the performer must be (or can't be) of the specified type.  If specified with a performer then it indicates the requirements of the performer if the designated performer is not available.  If doNotPerform is true, then only one of performerType and performer should be present." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.performerType" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "CodeableConcept"^^xsd:anyURI ;
           fhir:l fhir:CodeableConcept
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:binding [
         fhir:extension ( [
           fhir:url [
             fhir:v "http://hl7.org/fhir/tools/StructureDefinition/binding-definition"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/tools/StructureDefinition/binding-definition>
           ] ;
           fhir:value [
             a fhir:Markdown ;
             fhir:v "Identifies types of practitioners, devices or other agents that should fulfill a request.  While the detailed constraints of relevant agents will vary by resource, some degree of consistency around recommended codes across request and definition resources would be desirable."
           ]
         ] [
           fhir:url [
             fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
           ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "PerformerType"
           ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:description [ fhir:v "Identifies types of practitioners, devices or other agents that should fulfill a request.  While the detailed constraints of relevant agents will vary by resource, some degree of consistency around recommended codes across request and definition resources would be desirable." ]
       ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "PRT" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.actor" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.performer" ] ;
       fhir:path [ fhir:v "Request.performer" ] ;
       fhir:short [ fhir:v "Specific desired (non)performer" ] ;
       fhir:definition [ fhir:v "Indicates who or what is being asked to perform (or not perform) the {{request}}." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.performer" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Practitioner>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/PractitionerRole>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Organization"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Organization>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/CareTeam"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/CareTeam>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/HealthcareService"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/HealthcareService>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Device"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Device>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/RelatedPerson>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "PRT" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.actor" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.deliverTo" ] ;
       fhir:path [ fhir:v "Request.deliverTo" ] ;
       fhir:short [ fhir:v "Who should receive result of {{title}}" ] ;
       fhir:definition [ fhir:v "Identifies the entity(ies) who should receive the results of executing the {{title}} (or the location to which the results should be delivered)." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.deliverTo" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/RelatedPerson>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Practitioner>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/PractitionerRole>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Organization"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Organization>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Location"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Location>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/HealthcareService"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/HealthcareService>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/CareTeam"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/CareTeam>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Device"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Device>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Endpoint"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Endpoint>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ]
     ] [
       fhir:id [ fhir:v "Request.reason" ] ;
       fhir:path [ fhir:v "Request.reason" ] ;
       fhir:short [ fhir:v "Why is service (not) needed?" ] ;
       fhir:definition [ fhir:v "Describes why the request is being made in coded or textual form, or Indicates another resource whose existence justifies this request." ] ;
       fhir:comment [ fhir:v "Textual reasons can be captured using reasonCode.text.  If doNoPerform is true, this will be the reason why the request is being made to not act." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.reason" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "CodeableReference"^^xsd:anyURI ;
           fhir:l fhir:CodeableReference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Condition>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Observation>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/DiagnosticReport>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/DocumentReference"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/DocumentReference>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v true ] ;
       fhir:binding [
         fhir:extension ( [
           fhir:url [
             fhir:v "http://hl7.org/fhir/tools/StructureDefinition/binding-definition"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/tools/StructureDefinition/binding-definition>
           ] ;
           fhir:value [
             a fhir:Markdown ;
             fhir:v "Codes identifying why this request was necessary.  These may be clinical reasons (e.g. diagnoses, symptoms) and/or administrative reasons.  While the detailed constraints of relevant reasons will vary by resource, some degree of consistency across resources around recommended codes would be desirable."
           ]
         ] [
           fhir:url [
             fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
           ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "RequestReason"
           ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:description [ fhir:v "Codes identifying why this request was necessary.  These may be clinical reasons (e.g. diagnoses, symptoms) and/or administrative reasons.  While the detailed constraints of relevant reasons will vary by resource, some degree of consistency across resources around recommended codes would be desirable." ]
       ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ORC.16" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".reasonCode" ]
       ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:map [ fhir:v "FiveWs.why[x]" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.insurance" ] ;
       fhir:path [ fhir:v "Request.insurance" ] ;
       fhir:short [ fhir:v "Associated insurance coverage" ] ;
       fhir:definition [ fhir:v "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be relevant in delivering the requested service." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.insurance" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Coverage"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Coverage>
         ] [
           fhir:v "http://hl7.org/fhir/StructureDefinition/ClaimResponse"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/ClaimResponse>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v false ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "IN1/IN2" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".outboundRelationship[typeCode=COVBY].target" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.supportingInfo" ] ;
       fhir:path [ fhir:v "Request.supportingInfo" ] ;
       fhir:short [ fhir:v "Extra information to use in performing request" ] ;
       fhir:definition [ fhir:v "Information that may be needed by/relevant to the performer in their execution of this {{title}}." ] ;
       fhir:comment [ fhir:v "See guidance on [notes vs. supportingInfo](request.html#notes)." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.supportingInfo" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Resource"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Resource>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v false ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "Accompanying segments" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".outboundRelationship[typeCode=PERT].target" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.note" ] ;
       fhir:path [ fhir:v "Request.note" ] ;
       fhir:short [ fhir:v "Comments made about {{title}}" ] ;
       fhir:definition [ fhir:v "Comments made about the {{title}} by the requester, performer, subject or other participants." ] ;
       fhir:comment [ fhir:v "See guidance on [notes vs. supportingInfo](request.html#notes)." ] ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.note" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Annotation"^^xsd:anyURI ;
           fhir:l fhir:Annotation
         ]
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v false ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "NTE" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" ]
       ] )
     ] [
       fhir:id [ fhir:v "Request.relevantHistory" ] ;
       fhir:path [ fhir:v "Request.relevantHistory" ] ;
       fhir:short [ fhir:v "Key events in history of {{title}}" ] ;
       fhir:definition [ fhir:v "Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource." ] ;
       fhir:comment [ fhir:v "This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude.  Referenced provenances SHOULD adhere to the [provenance-relevant-history profile](provenance-relevant-history.html).\n\nSee additional guidance [here](request.html#history)." ] ;
       fhir:alias ( [ fhir:v "eventHistory" ] ) ;
       fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Request.relevantHistory" ] ;
         fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [
           fhir:v "Reference"^^xsd:anyURI ;
           fhir:l fhir:Reference
         ] ;
         fhir:targetProfile ( [
           fhir:v "http://hl7.org/fhir/StructureDefinition/provenance-relevant-history"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/provenance-relevant-history>
         ] )
       ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [
           fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
         ]
       ] ) ;
       fhir:isModifier [ fhir:v false ] ;
       fhir:isSummary [ fhir:v false ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "N/A" ]
       ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" ]
       ] )
     ] )
  ] . # 

# -------------------------------------------------------------------------------------

