### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/ActivityDefinition.json
### ----------------------------------------------------
### -- Chunk 12 of 14
CACT;moodCode=EVN;code=\"review\"].effectiveTime"
      },
      {
        "identity" : "objimpl",
        "map" : "no-gen-base"
      }]
    },
    {
      "id" : "ActivityDefinition.effectivePeriod",
      "path" : "ActivityDefinition.effectivePeriod",
      "short" : "When the activity definition is expected to be used",
      "definition" : "The period during which the activity definition content was or is planned to be in active use.",
      "comment" : "The effective period for a activity definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
      "requirements" : "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of the activity definition are or are expected to be used instead.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ActivityDefinition.effectivePeriod",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.effectivePeriod"
      },
      {
        "identity" : "rim",
        "map" : "N/A (to add?)"
      },
      {
        "identity" : "objimpl",
        "map" : "no-gen-base"
      }]
    },
    {
      "id" : "ActivityDefinition.topic",
      "path" : "ActivityDefinition.topic",
      "short" : "E.g. Education, Treatment, Assessment, etc.",
      "definition" : "Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching.",
      "requirements" : "Repositories must be able to determine how to categorize the activity definition so that it can be found by topical searches.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "ActivityDefinition.topic",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DefinitionTopic"
        }],
        "strength" : "example",
        "description" : "High-level categorization of the definition, used for searching, sorting, and filtering.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/definition-topic"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A (to add?)"
      }]
    },
    {
      "id" : "ActivityDefinition.author",
      "path" : "ActivityDefinition.author",
      "short" : "Who authored the content",
      "definition" : "An individiual or organization primarily involved in the creation and maintenance of the content.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "ActivityDefinition.author",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "ContactDetail"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=AUT]"
      }]
    },
    {
      "id" : "ActivityDefinition.editor",
      "path" : "ActivityDefinition.editor",
      "short" : "Who edited the content",
      "definition" : "An individual or organization primarily responsible for internal coherence of the content.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "ActivityDefinition.editor",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "ContactDetail"
      }],
      "isModifier" : false,
      "isSummary" : false
    },
    {
      "id" : "ActivityDefinition.reviewer",
      "path" : "ActivityDefinition.reviewer",
      "short" : "Who reviewed the content",
      "definition" : "An individual or organization primarily responsible for review of some aspect of the content.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "ActivityDefinition.reviewer",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "ContactDetail"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
      }]
    },
    {
      "id" : "ActivityDefinition.endorser",
      "path" : "ActivityDefinition.endorser",
      "short" : "Who endorsed the content",
      "definition" : "An individual or organization responsible for officially endorsing the content for use in some setting.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "ActivityDefinition.endorser",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "ContactDetail"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"
      }]
    },
    {
      "id" : "ActivityDefinition.relatedArtifact",
      "path" : "ActivityDefinition.relatedArtifact",
      "short" : "Additional documentation, citations, etc.",
      "definition" : "Related artifacts such as additional documentation, justification, or bibliographic references.",
      "comment" : "Each related artifact is either an attachment, or a reference to another resource, but not both.",
      "requirements" : "Activity definitions must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "ActivityDefinition.relatedArtifact",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "RelatedArtifact"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}"
      }]
    },
    {
      "id" : "ActivityDefinition.library",
      "path" : "ActivityDefinition.library",
      "short" : "Logic used by the activity definition",
      "definition" : "A reference to a Library resource containing any formal logic used by the activity definition.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "ActivityDefinition.library",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Library"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=USE].target[classCode=GROUPER,moodCode=EVN]"
      }]
    },
    {
      "id" : "ActivityDefinition.kind",
      "path" : "ActivityDefinition.kind",
      "short" : "Kind of resource",
      "definition" : "A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource.",
      "comment" : "May determine what types of extensions are permitted.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ActivityDefinition.kind",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ActivityDefinitionKind"
        }],
        "strength" : "required",
        "description" : "The kind of activity the definition is describing.",
        "valueSet" : "http://hl7.org/fhir/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",
      "base" : {
        "path" : "ActivityDefinition.profile",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"]
      }],
      "isModifier" : false,
      "isSummary" : false
    },
    {
      "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",
      "base" : {
        "path" : "ActivityDefinition.code",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "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",
      "base" : {
        "path" : "ActivityDefinition.intent",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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",
      "base" : {
        "path" : "ActivityDefinition.priority",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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",
      "base" : {
        "path" : "ActivityDefinition.doNotPerform",
        "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",
      "base" : {
        "path" : "ActivityDefinition.timing[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Timing"
      },
      {
        "code" : "dateTime"
      },
      {
        "code" : "Age"
      },
      {
        "code" : "Period"
      },
      {
        "code" : "Range"
      },
      {
        "code" : "Duration"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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",
      "base" : {
        "path" : "ActivityDefinition.location",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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" : "*",
      "base" : {
        "path" : "ActivityDefinition.participant",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=PFM]"
      }]
    },
    {
      "id" : "ActivityDefinition.participant.id",
      "path" : "ActivityDefinition.participant.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "ActivityDefinition.participant.extension",
      "path" : "ActivityDefinition.participant.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "ActivityDefinition.participant.modifierExtension",
      "path" : "ActivityDefinition.participant.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "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",
      "base" : {
        "path" : "ActivityDefinition.participant.type",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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",
      "base" : {
        "path" : "ActivityDefinition.participant.role",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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",
      "base" : {
        "path" : "ActivityDefinition.product[x]",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Medication",
        "http://hl7.org/fhir/StructureDefinition/Substance"]
      },
      {
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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",
      "base" : {
        "path" : "ActivityDefinition.quantity",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Quantity",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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" : "*",
      "base" : {
        "path" : "ActivityDefinition.dosage",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Dosage"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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" : "*",
      "base" : {
        "path" : "ActivityDefinition.bodySite",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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" : "*",
      "base" : {
        "path" : "ActivityDefinition.specimenRequirement",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/SpecimenDefinition"]
      }],
      "isModifier" : false,
      "isSummary" : false
    },
    {
      "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" : "*",
      "base" : {
        "path" : "ActivityDefinition.observationRequirement",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ObservationDefinition"]
      }],
      "isModifier" : false,
      "isSummary" : false
    },
    {
      "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" : "*",
      "base" : {
        "path" : "ActivityDefinition.observationResultRequirement",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ObservationDefinition"]
      }],
      "isModifier" : false,
      "isSummary" : false
    },
    {
      "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",
      "base" : {
        "path" : "ActivityDefinition.transform",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/StructureMap"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "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" : "*",
      "base" : {
        "path" : "ActivityDefinition.dynamicValue",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "ActivityDefinition.dynamicValue.id",
      "path" : "ActivityDefinition.dynamicValue.id",
      "representation" : ["xmlAttr"],
      "short" : "Unique id for inter-element referencing",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "ActivityDefinition.dynamicValue.extension",
      "path" : "ActivityDefinition.dynamicValue.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
