### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/RequestGroup.json
### ----------------------------------------------------
### -- Chunk 12 of 12
 },
      "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|4.0.0"
      },
      "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,
      "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.reasonCode",
      "path" : "RequestGroup.reasonCode",
      "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" : "CodeableConcept"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "id" : "RequestGroup.reasonReference",
      "path" : "RequestGroup.reasonReference",
      "short" : "Why the request group is needed",
      "definition" : "Indicates another resource whose existence justifies this request group.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "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"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.reasonReference"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      }]
    },
    {
      "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",
      "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)"
      }]
    },
    {
      "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.",
      "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|4.0.0"
      },
      "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"
      }],
      "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.condition",
      "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|4.0.0"
      }
    },
    {
      "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",
      "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.actionId",
      "path" : "RequestGroup.action.relatedAction.actionId",
      "short" : "What action this is related to",
      "definition" : "The element id of the action this is related to.",
      "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|4.0.0"
      }
    },
    {
      "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.",
      "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.participant",
      "path" : "RequestGroup.action.participant",
      "short" : "Who should perform the action",
      "definition" : "The participant that should perform or be responsible for this action.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Device"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Request.performer"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.actor"
      }]
    },
    {
      "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|4.0.0"
      }
    },
    {
      "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|4.0.0"
      }
    },
    {
      "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|4.0.0"
      }
    },
    {
      "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|4.0.0"
      }
    },
    {
      "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|4.0.0"
      }
    },
    {
      "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"]
    }]
  }
}


