### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/PlanDefinition.json
### ----------------------------------------------------
### -- Chunk 23 of 23
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" : "PlanDefinition.action.definition[x]",
      "path" : "PlanDefinition.action.definition[x]",
      "short" : "Description of the activity to be performed",
      "definition" : "A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken.",
      "comment" : "Note that the definition is optional, and if no definition is specified, a dynamicValue with a root ($this) path can be used to define the entire resource dynamically.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
        "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
        "http://hl7.org/fhir/StructureDefinition/Questionnaire"]
      },
      {
        "code" : "uri"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.derivedFrom"
      }]
    },
    {
      "id" : "PlanDefinition.action.transform",
      "path" : "PlanDefinition.action.transform",
      "short" : "Transform to apply the template",
      "definition" : "A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.",
      "comment" : "Note that when a referenced ActivityDefinition also defines a transform, the transform specified here generally takes precedence. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureMap"]
      }]
    },
    {
      "id" : "PlanDefinition.action.dynamicValue",
      "path" : "PlanDefinition.action.dynamicValue",
      "short" : "Dynamic aspects of the definition",
      "definition" : "Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result.",
      "comment" : "Dynamic values are applied in the order in which they are defined in the PlanDefinition resource. Note that when dynamic values are also specified by a referenced ActivityDefinition, the dynamicValues from the ActivityDefinition are applied first, followed by the dynamicValues specified here. In addition, if both a transform and dynamic values are specific, the dynamic values are applied to the result of the transform.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "PlanDefinition.action.dynamicValue.path",
      "path" : "PlanDefinition.action.dynamicValue.path",
      "short" : "The path to the element to be set dynamically",
      "definition" : "The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).",
      "comment" : "To specify the path to the current action being realized, the %action environment variable is available in this path. For example, to specify the description element of the target action, the path would be %action.description. The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows path traversal, but not calculation.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "PlanDefinition.action.dynamicValue.expression",
      "path" : "PlanDefinition.action.dynamicValue.expression",
      "short" : "An expression that provides the dynamic value for the customization",
      "definition" : "An expression specifying the value of the customized element.",
      "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" : "PlanDefinition.action.action",
      "path" : "PlanDefinition.action.action",
      "short" : "A sub-action",
      "definition" : "Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub-actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition.",
      "min" : 0,
      "max" : "*",
      "contentReference" : "#PlanDefinition.action",
      "mapping" : [{
        "identity" : "workflow",
        "map" : "{InverseRelationship of Definition.partOf}"
      }]
    }]
  }
}


