<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="RequestGroup" />
  <meta>
    <lastUpdated value="2021-01-02T08:58:31.578+11:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Clinical.Care Provision" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="2" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="business" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="cds" />
  </extension>
  <extension url="http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status">
    <valueCode value=".status = entered-in-error" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/RequestGroup" />
  <version value="4.6.0" />
  <name value="RequestGroup" />
  <status value="draft" />
  <date value="2021-01-02T08:58:31+11:00" />
  <publisher value="Health Level Seven International (Clinical Decision Support)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/dss/index.cfm" />
    </telecom>
  </contact>
  <description value="A group of related requests that can be used to capture intended activities that have inter-dependencies such as &quot;give this medication after that one&quot;." />
  <fhirVersion value="4.6.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="RequestGroup" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="RequestGroup">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="0,0" />
      </extension>
      <path value="RequestGroup" />
      <short value="A group of related requests" />
      <definition value="A group of related requests that can be used to capture intended activities that have inter-dependencies such as &quot;give this medication after that one&quot;." />
      <min value="0" />
      <max value="*" />
      <mapping>
        <identity value="workflow" />
        <map value="Request" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="clinical.general" />
      </mapping>
    </element>
    <element id="RequestGroup.identifier">
      <path value="RequestGroup.identifier" />
      <short value="Business identifier" />
      <definition value="Allows a service to provide a unique, business identifier for the request." />
      <requirements value="Allows identification of the request as it is known by various participating systems and in a way that remains consistent across servers." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Request.identifier" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
    </element>
    <element id="RequestGroup.instantiatesCanonical">
      <path value="RequestGroup.instantiatesCanonical" />
      <short value="Instantiates FHIR protocol or definition" />
      <definition value="A canonical URL referencing a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="canonical" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Request.instantiatesCanonical" />
      </mapping>
    </element>
    <element id="RequestGroup.instantiatesUri">
      <path value="RequestGroup.instantiatesUri" />
      <short value="Instantiates external protocol or definition" />
      <definition value="A URL referencing an externally defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Request.instantiatesUri" />
      </mapping>
    </element>
    <element id="RequestGroup.basedOn">
      <path value="RequestGroup.basedOn" />
      <short value="Fulfills plan, proposal, or order" />
      <definition value="A plan, proposal or order that is fulfilled in whole or in part by this request." />
      <requirements value="Allows tracing of authorization for the request and tracking whether proposals/recommendations were acted upon." />
      <alias value="fulfills" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.basedOn" />
      </mapping>
    </element>
    <element id="RequestGroup.replaces">
      <path value="RequestGroup.replaces" />
      <short value="Request(s) replaced by this request" />
      <definition value="Completed or terminated request(s) whose function is taken by this new request." />
      <comment value="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." />
      <requirements value="Allows tracing the continuation of a therapy or administrative process instantiated through multiple requests." />
      <alias value="supersedes" />
      <alias value="prior" />
      <alias value="renewed order" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.replaces" />
      </mapping>
    </element>
    <element id="RequestGroup.groupIdentifier">
      <path value="RequestGroup.groupIdentifier" />
      <short value="Composite request this is part of" />
      <definition value="A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form." />
      <comment value="Requests are linked either by a &quot;basedOn&quot; 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." />
      <requirements value="Some business processes need to know if multiple items were ordered as part of the same &quot;prescription&quot; or &quot;requisition&quot; for billing or other purposes." />
      <alias value="grouperid" />
      <alias value="requisition" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Request.groupIdentifier" />
      </mapping>
    </element>
    <element id="RequestGroup.status">
      <path value="RequestGroup.status" />
      <short value="draft | active | on-hold | revoked | completed | entered-in-error | unknown" />
      <definition value="The current state of the request. For request groups, the status reflects the status of all the requests in the group." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isModifierReason 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" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RequestStatus" />
        </extension>
        <strength value="required" />
        <description value="Codes identifying the lifecycle stage of a request." />
        <valueSet value="http://hl7.org/fhir/ValueSet/request-status" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Request.status" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
    </element>
    <element id="RequestGroup.intent">
      <path value="RequestGroup.intent" />
      <short value="proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option" />
      <definition value="Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain." />
      <requirements value="Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain." />
      <alias value="category" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isModifierReason value="This element changes the interpretation of all descriptive attributes. For example &quot;the time the request is recommended to occur&quot; vs. &quot;the time the request is authorized to occur&quot; or &quot;who is recommended to perform the request&quot; vs. &quot;who is authorized to perform the request" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RequestIntent" />
        </extension>
        <strength value="required" />
        <description value="Codes indicating the degree of authority/intentionality associated with a request." />
        <valueSet value="http://hl7.org/fhir/ValueSet/request-intent" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Request.intent" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.class" />
      </mapping>
    </element>
    <element id="RequestGroup.priority">
      <path value="RequestGroup.priority" />
      <short value="routine | urgent | asap | stat" />
      <definition value="Indicates how quickly the request should be addressed with respect to other requests." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <meaningWhenMissing value="If missing, this request should be performed with normal priority" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RequestPriority" />
        </extension>
        <strength value="required" />
        <description value="Identifies the level of importance to be assigned to actioning the request." />
        <valueSet value="http://hl7.org/fhir/ValueSet/request-priority" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Request.priority" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.grade" />
      </mapping>
    </element>
    <element id="RequestGroup.code">
      <path value="RequestGroup.code" />
      <short value="What's being requested/ordered" />
      <definition value="A code that identifies what the overall request group is." />
      <comment value="This element can be used to provide a code that captures the meaning of the request group as a whole, as opposed to the code of the action element, which captures the meaning of the individual actions within the request group." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RequestCode" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-code" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Request.code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.what[x]" />
      </mapping>
    </element>
    <element id="RequestGroup.subject">
      <path value="RequestGroup.subject" />
      <short value="Who the request group is about" />
      <definition value="The subject for which the request group was created." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.subject" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="RequestGroup.encounter">
      <path value="RequestGroup.encounter" />
      <short value="Created as part of" />
      <definition value="Describes the context of the request group, if any." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.encounter" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.context" />
      </mapping>
    </element>
    <element id="RequestGroup.authoredOn">
      <path value="RequestGroup.authoredOn" />
      <short value="When the request group was authored" />
      <definition value="Indicates when the request group was created." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.authoredOn" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.recorded" />
      </mapping>
    </element>
    <element id="RequestGroup.author">
      <path value="RequestGroup.author" />
      <short value="Device or practitioner that authored the request group" />
      <definition value="Provides a reference to the author of the request group." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.requester" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.author" />
      </mapping>
    </element>
    <element id="RequestGroup.reason">
      <path value="RequestGroup.reason" />
      <short value="Why the request group is needed" />
      <definition value="Describes the reason for the request group in coded or textual form." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionReasonCode" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-reason-code" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Request.reason" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
    </element>
    <element id="RequestGroup.goal">
      <path value="RequestGroup.goal" />
      <short value="What goals" />
      <definition value="Goals that are intended to be achieved by following the requests in this RequestGroup." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Goal" />
      </type>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="RequestGroup.note">
      <path value="RequestGroup.note" />
      <short value="Additional notes about the response" />
      <definition value="Provides a mechanism to communicate additional information about the response." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Annotation" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.note" />
      </mapping>
    </element>
    <element id="RequestGroup.action">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="350,0" />
      </extension>
      <path value="RequestGroup.action" />
      <short value="Proposed actions, if any" />
      <definition value="The actions, if any, produced by the evaluation of the artifact." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="rqg-1" />
        <severity value="error" />
        <human value="Must have resource or action but not both" />
        <expression value="resource.exists() != action.exists()" />
        <xpath value="exists(f:resource) != exists(f:action)" />
        <source value="http://hl7.org/fhir/StructureDefinition/RequestGroup" />
      </constraint>
    </element>
    <element id="RequestGroup.action.linkId">
      <path value="RequestGroup.action.linkId" />
      <short value="Pointer to specific item from the PlanDefinition" />
      <definition value="The linkId of the action from the PlanDefinition that corresponds to this action in the RequestGroup resource." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="N/A (to add?)" />
      </mapping>
    </element>
    <element id="RequestGroup.action.prefix">
      <path value="RequestGroup.action.prefix" />
      <short value="User-visible prefix for the action (e.g. 1. or A.)" />
      <definition value="A user-visible prefix for the action. For example a section or item numbering such as 1. or A." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="RequestGroup.action.title">
      <path value="RequestGroup.action.title" />
      <short value="User-visible title" />
      <definition value="The title of the action displayed to a user." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="RequestGroup.action.description">
      <path value="RequestGroup.action.description" />
      <short value="Short description of the action" />
      <definition value="A short description of the action used to provide a summary to display to the user." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="RequestGroup.action.textEquivalent">
      <path value="RequestGroup.action.textEquivalent" />
      <short value="Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system" />
      <definition value="A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="RequestGroup.action.priority">
      <path value="RequestGroup.action.priority" />
      <short value="routine | urgent | asap | stat" />
      <definition value="Indicates how quickly the action should be addressed with respect to other actions." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RequestPriority" />
        </extension>
        <strength value="required" />
        <description value="Identifies the level of importance to be assigned to actioning the request." />
        <valueSet value="http://hl7.org/fhir/ValueSet/request-priority" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Request.priority" />
      </mapping>
    </element>
    <element id="RequestGroup.action.code">
      <path value="RequestGroup.action.code" />
      <short value="Code representing the meaning of the action or sub-actions" />
      <definition value="A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a section of a documentation template." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionCode" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-code" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Request.code" />
      </mapping>
    </element>
    <element id="RequestGroup.action.documentation">
      <path value="RequestGroup.action.documentation" />
      <short value="Supporting documentation for the intended performer of the action" />
      <definition value="Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="RelatedArtifact" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.supportingInfo" />
      </mapping>
    </element>
    <element id="RequestGroup.action.goal">
      <path value="RequestGroup.action.goal" />
      <short value="What goals" />
      <definition value="Goals that are intended to be achieved by following the requests in this action." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Goal" />
      </type>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="RequestGroup.action.condition">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="370,320" />
      </extension>
      <path value="RequestGroup.action.condition" />
      <short value="Whether or not the action is applicable" />
      <definition value="An expression that describes applicability criteria, or start/stop conditions for the action." />
      <comment value="When multiple conditions of the same kind are present, the effects are combined using AND semantics, so the overall condition is true only if all of the conditions are true." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="RequestGroup.action.condition.kind">
      <path value="RequestGroup.action.condition.kind" />
      <short value="applicability | start | stop" />
      <definition value="The kind of condition." />
      <comment value="Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe enter/exit criteria for an action." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionConditionKind" />
        </extension>
        <strength value="required" />
        <description value="The kind of condition for the action." />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-condition-kind" />
      </binding>
    </element>
    <element id="RequestGroup.action.condition.expression">
      <path value="RequestGroup.action.condition.expression" />
      <short value="Boolean-valued expression" />
      <definition value="An expression that returns true or false, indicating whether or not the condition is satisfied." />
      <comment value="The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Expression" />
      </type>
    </element>
    <element id="RequestGroup.action.relatedAction">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="20,370" />
      </extension>
      <path value="RequestGroup.action.relatedAction" />
      <short value="Relationship to another action" />
      <definition value="A relationship to another action such as &quot;before&quot; or &quot;30-60 minutes after start of&quot;." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="RequestGroup.action.relatedAction.targetId">
      <path value="RequestGroup.action.relatedAction.targetId" />
      <short value="What action this is related to" />
      <definition value="The element id of the target related action." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
    </element>
    <element id="RequestGroup.action.relatedAction.relationship">
      <path value="RequestGroup.action.relatedAction.relationship" />
      <short value="before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end" />
      <definition value="The relationship of this action to the related action." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionRelationshipType" />
        </extension>
        <strength value="required" />
        <description value="Defines the types of relationships between actions." />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-relationship-type" />
      </binding>
    </element>
    <element id="RequestGroup.action.relatedAction.offset[x]">
      <path value="RequestGroup.action.relatedAction.offset[x]" />
      <short value="Time offset for the relationship" />
      <definition value="A duration or range of durations to apply to the relationship. For example, 30-60 minutes before." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Duration" />
      </type>
      <type>
        <code value="Range" />
      </type>
    </element>
    <element id="RequestGroup.action.timing[x]">
      <path value="RequestGroup.action.timing[x]" />
      <short value="When the action should take place" />
      <definition value="An optional value describing when the action should be performed." />
      <comment value="The intent of the timing element is to provide timing for when the action should be performed. The timing may be absolute (specified as a dateTime or Period) or relative (specified as an Age, Duration, or Range), or it may be a more complex, potentially repeating timing specified using Timing." />
      <requirements value="Allows prompting for activities and detection of missed planned activities." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Duration" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="Timing" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.occurrence[x]" />
      </mapping>
    </element>
    <element id="RequestGroup.action.location">
      <path value="RequestGroup.action.location" />
      <short value="Where it should happen" />
      <definition value="Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc." />
      <comment value="May reference a specific clinical location or may just identify a type of location." />
      <requirements value="Helps in planning of activity." />
      <alias value="facility" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=LOC].role" />
      </mapping>
    </element>
    <element id="RequestGroup.action.participant">
      <path value="RequestGroup.action.participant" />
      <short value="Who should perform the action" />
      <definition value="The participant that should perform or be responsible for this action." />
      <comment value="Because request groups represent potential options for performing activities, some specific participants may still be unknown, so this element allows for both definitional participants (in the same way they are specified in ActivityDefinition and PlanDefinition resources) as well as identifying specific participants when they are known." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Request.performer" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.actor" />
      </mapping>
    </element>
    <element id="RequestGroup.action.participant.type">
      <path value="RequestGroup.action.participant.type" />
      <short value="careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson" />
      <definition value="The type of participant in the action." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityParticipantType" />
        </extension>
        <strength value="required" />
        <description value="The type of participant in the activity." />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-participant-type|4.6.0" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".role.classCode" />
      </mapping>
    </element>
    <element id="RequestGroup.action.participant.typeReference">
      <path value="RequestGroup.action.participant.typeReference" />
      <short value="Who or what can participate" />
      <definition value="The type of participant in the action." />
      <comment value="When this element is a reference, it SHOULD be a reference to a definitional resource (for example, a location type, rather than a specific location)." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".role.classCode" />
      </mapping>
    </element>
    <element id="RequestGroup.action.participant.role">
      <path value="RequestGroup.action.participant.role" />
      <short value="E.g. Nurse, Surgeon, Parent, etc." />
      <definition value="The role the participant should play in performing the described action." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityParticipantRole" />
        </extension>
        <strength value="example" />
        <description value="Defines roles played by participants for the action." />
        <valueSet value="http://terminology.hl7.org/ValueSet/action-participant-role" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".role.code" />
      </mapping>
    </element>
    <element id="RequestGroup.action.participant.function">
      <path value="RequestGroup.action.participant.function" />
      <short value="E.g. Author, Reviewer, Witness, etc." />
      <definition value="Indicates how the actor will be involved in the action - author, reviewer, witness, etc." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionParticipantFunction" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-participant-function" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".role.code" />
      </mapping>
    </element>
    <element id="RequestGroup.action.participant.actor">
      <path value="RequestGroup.action.participant.actor" />
      <short value="Who/what is participating?" />
      <definition value="A reference to the actual participant." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".role.code" />
      </mapping>
    </element>
    <element id="RequestGroup.action.type">
      <path value="RequestGroup.action.type" />
      <short value="create | update | remove | fire-event" />
      <definition value="The type of action to perform (create, update, remove)." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionType" />
        </extension>
        <strength value="extensible" />
        <description value="The type of action to be performed." />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-type" />
      </binding>
    </element>
    <element id="RequestGroup.action.groupingBehavior">
      <path value="RequestGroup.action.groupingBehavior" />
      <short value="visual-group | logical-group | sentence-group" />
      <definition value="Defines the grouping behavior for the action and its children." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionGroupingBehavior" />
        </extension>
        <strength value="required" />
        <description value="Defines organization behavior of a group." />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-grouping-behavior" />
      </binding>
    </element>
    <element id="RequestGroup.action.selectionBehavior">
      <path value="RequestGroup.action.selectionBehavior" />
      <short value="any | all | all-or-none | exactly-one | at-most-one | one-or-more" />
      <definition value="Defines the selection behavior for the action and its children." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionSelectionBehavior" />
        </extension>
        <strength value="required" />
        <description value="Defines selection behavior of a group." />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-selection-behavior" />
      </binding>
    </element>
    <element id="RequestGroup.action.requiredBehavior">
      <path value="RequestGroup.action.requiredBehavior" />
      <short value="must | could | must-unless-documented" />
      <definition value="Defines expectations around whether an action is required." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionRequiredBehavior" />
        </extension>
        <strength value="required" />
        <description value="Defines expectations around whether an action or action group is required." />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-required-behavior" />
      </binding>
    </element>
    <element id="RequestGroup.action.precheckBehavior">
      <path value="RequestGroup.action.precheckBehavior" />
      <short value="yes | no" />
      <definition value="Defines whether the action should usually be preselected." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionPrecheckBehavior" />
        </extension>
        <strength value="required" />
        <description value="Defines selection frequency behavior for an action or group." />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-precheck-behavior" />
      </binding>
    </element>
    <element id="RequestGroup.action.cardinalityBehavior">
      <path value="RequestGroup.action.cardinalityBehavior" />
      <short value="single | multiple" />
      <definition value="Defines whether the action can be selected multiple times." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActionCardinalityBehavior" />
        </extension>
        <strength value="required" />
        <description value="Defines behavior for an action or a group for how many times that item may be repeated." />
        <valueSet value="http://hl7.org/fhir/ValueSet/action-cardinality-behavior" />
      </binding>
    </element>
    <element id="RequestGroup.action.resource">
      <path value="RequestGroup.action.resource" />
      <short value="The target of the action" />
      <definition value="The resource that is the target of the action (e.g. CommunicationRequest)." />
      <comment value="The target resource SHALL be a [Request](request.html) resource with a Request.intent set to &quot;option&quot;." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <condition value="rqg-1" />
    </element>
    <element id="RequestGroup.action.action">
      <path value="RequestGroup.action.action" />
      <short value="Sub action" />
      <definition value="Sub actions." />
      <min value="0" />
      <max value="*" />
      <contentReference value="#RequestGroup.action" />
      <condition value="rqg-1" />
    </element>
  </differential>
</StructureDefinition>