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