### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/ActivityDefinition.json
### ----------------------------------------------------
### -- Chunk 14 of 14
hir/ValueSet/request-resource-types|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".classCode"
      }]
    },
    {
      "id" : "ActivityDefinition.profile",
      "path" : "ActivityDefinition.profile",
      "short" : "What profile the resource needs to conform to",
      "definition" : "A profile to which the target of the activity definition is expected to conform.",
      "requirements" : "Allows profiles to be used to describe the types of activities that can be performed within a workflow, protocol, or order set.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"]
      }]
    },
    {
      "id" : "ActivityDefinition.code",
      "path" : "ActivityDefinition.code",
      "short" : "Detail type of activity",
      "definition" : "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.",
      "comment" : "Tends to be less relevant for activities involving particular products.",
      "requirements" : "Allows matching performed to planned as well as validation against protocols.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ActivityDefinitionType"
        }],
        "strength" : "example",
        "description" : "Detailed type of the activity; e.g. CBC.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-code"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "ActivityDefinition.intent",
      "path" : "ActivityDefinition.intent",
      "short" : "proposal | plan | order",
      "definition" : "Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "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|4.0.0"
      }
    },
    {
      "id" : "ActivityDefinition.priority",
      "path" : "ActivityDefinition.priority",
      "short" : "routine | urgent | asap | stat",
      "definition" : "Indicates how quickly the activity  should be addressed with respect to other requests.",
      "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"
      }
    },
    {
      "id" : "ActivityDefinition.doNotPerform",
      "path" : "ActivityDefinition.doNotPerform",
      "short" : "True if the activity should not be performed",
      "definition" : "Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.",
      "comment" : "This element is not intended to be used to communicate a decision support response to cancel an order in progress. That should be done with the \"remove\" type of a PlanDefinition or RequestGroup.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }],
      "isModifier" : true,
      "isModifierReason" : "If true this element negates the specified action. For Example,  instead of a request for a procedure, it is a request for the procedure to not occur.",
      "isSummary" : true
    },
    {
      "id" : "ActivityDefinition.timing[x]",
      "path" : "ActivityDefinition.timing[x]",
      "short" : "When activity is to occur",
      "definition" : "The period, timing or frequency upon which the described activity is to occur.",
      "requirements" : "Allows prompting for activities and detection of missed planned activities.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Timing"
      },
      {
        "code" : "dateTime"
      },
      {
        "code" : "Age"
      },
      {
        "code" : "Period"
      },
      {
        "code" : "Range"
      },
      {
        "code" : "Duration"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".effectiveTime"
      }]
    },
    {
      "id" : "ActivityDefinition.location",
      "path" : "ActivityDefinition.location",
      "short" : "Where it should happen",
      "definition" : "Identifies the facility where the activity 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" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=LOC].role"
      }]
    },
    {
      "id" : "ActivityDefinition.participant",
      "path" : "ActivityDefinition.participant",
      "short" : "Who should participate in the action",
      "definition" : "Indicates who should participate in performing the action described.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=PFM]"
      }]
    },
    {
      "id" : "ActivityDefinition.participant.type",
      "path" : "ActivityDefinition.participant.type",
      "short" : "patient | practitioner | related-person | device",
      "definition" : "The type of participant in the action.",
      "min" : 1,
      "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.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".role.classCode"
      }]
    },
    {
      "id" : "ActivityDefinition.participant.role",
      "path" : "ActivityDefinition.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://hl7.org/fhir/ValueSet/action-participant-role"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".role.code"
      }]
    },
    {
      "id" : "ActivityDefinition.product[x]",
      "path" : "ActivityDefinition.product[x]",
      "short" : "What's administered/supplied",
      "definition" : "Identifies the food, drug or other product being consumed or supplied in the activity.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Medication",
        "http://hl7.org/fhir/StructureDefinition/Substance"]
      },
      {
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ActivityProduct"
        }],
        "strength" : "example",
        "description" : "Code describing the type of substance or medication.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/medication-codes"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=CSM].role"
      }]
    },
    {
      "id" : "ActivityDefinition.quantity",
      "path" : "ActivityDefinition.quantity",
      "short" : "How much is administered/consumed/supplied",
      "definition" : "Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).",
      "alias" : ["dose"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".quantity {for classCode=SPLY}"
      }]
    },
    {
      "id" : "ActivityDefinition.dosage",
      "path" : "ActivityDefinition.dosage",
      "short" : "Detailed dosage instructions",
      "definition" : "Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.",
      "comment" : "If a dosage instruction is used, the definition should not specify timing or quantity.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Dosage"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target[classCode=SBADM; moodCode=DEFN]"
      }]
    },
    {
      "id" : "ActivityDefinition.bodySite",
      "path" : "ActivityDefinition.bodySite",
      "short" : "What part of body to perform on",
      "definition" : "Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites).",
      "comment" : "Only used if not implicit in the code found in ServiceRequest.type.",
      "requirements" : "Knowing where the procedure is made is important for tracking if multiple sites are possible.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "BodySite"
        }],
        "strength" : "example",
        "description" : "A code that identifies the anatomical location.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".targetSiteCode {for classCode=PROC, SBADM}"
      }]
    },
    {
      "id" : "ActivityDefinition.specimenRequirement",
      "path" : "ActivityDefinition.specimenRequirement",
      "short" : "What specimens are required to perform this action",
      "definition" : "Defines specimen requirements for the action to be performed, such as required specimens for a lab test.",
      "requirements" : "Needed to represent lab order definitions.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SpecimenDefinition"]
      }]
    },
    {
      "id" : "ActivityDefinition.observationRequirement",
      "path" : "ActivityDefinition.observationRequirement",
      "short" : "What observations are required to perform this action",
      "definition" : "Defines observation requirements for the action to be performed, such as body weight or surface area.",
      "requirements" : "Needed to represent observation definitions.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ObservationDefinition"]
      }]
    },
    {
      "id" : "ActivityDefinition.observationResultRequirement",
      "path" : "ActivityDefinition.observationResultRequirement",
      "short" : "What observations must be produced by this action",
      "definition" : "Defines the observations that are expected to be produced by the action.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ObservationDefinition"]
      }]
    },
    {
      "id" : "ActivityDefinition.transform",
      "path" : "ActivityDefinition.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 if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureMap"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ActivityDefinition.dynamicValue",
      "path" : "ActivityDefinition.dynamicValue",
      "short" : "Dynamic aspects of the definition",
      "definition" : "Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result.",
      "comment" : "Dynamic values are applied in the order in which they are defined in the ActivityDefinition. Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ActivityDefinition.dynamicValue.path",
      "path" : "ActivityDefinition.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" : "The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows path traversal, but not calculation.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ActivityDefinition.dynamicValue.expression",
      "path" : "ActivityDefinition.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" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Expression"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    }]
  }
}


