PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.cpg@1.0.0
    http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollmentactivity
{
  "description": "Definition of an activity to enroll or unenroll a patient in a strategy or pathway as part of a computable clinical practice guideline",
  "_filename": "StructureDefinition-cpg-enrollmentactivity.json",
  "package_name": "hl7.fhir.uv.cpg",
  "date": "2018-06-06",
  "derivation": "constraint",
  "publisher": "Health Level Seven, Inc. - CDS WG",
  "fhirVersion": "4.0.1",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "display": "World"
    } ]
  } ],
  "name": "CPGEnrollmentActivity",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/fhir/object-implementation",
    "name": "Object Implementation Information",
    "identity": "objimpl"
  } ],
  "abstract": false,
  "type": "ActivityDefinition",
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "1.0.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "adf-0",
        "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
        "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
        "source": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
        "severity": "warning",
        "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')"
      }, {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "ActivityDefinition",
      "min": 1,
      "definition": "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context.",
      "isModifier": false,
      "short": "The definition of a specific activity to be taken, independent of any particular patient or context",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Definition",
        "identity": "workflow"
      }, {
        "map": "Act[classCode=ACT; moodCode=DEFN]",
        "identity": "rim"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "ActivityDefinition",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition"
      },
      "isSummary": false
    }, {
      "path": "ActivityDefinition.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "isModifier": false,
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "max": "1",
      "id": "ActivityDefinition.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "ActivityDefinition.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "ActivityDefinition.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "ActivityDefinition.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "isModifier": false,
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "ActivityDefinition.text",
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "ActivityDefinition.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "isModifier": false,
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "ActivityDefinition.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "ActivityDefinition.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.extension",
      "min": 1,
      "definition": "Defines a knowledge capability afforded by this knowledge artifact.",
      "isModifier": false,
      "short": "shareable | computable | publishable | executable",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" ]
      } ],
      "mustSupport": true,
      "sliceName": "knowledgeCapability",
      "max": "*",
      "id": "ActivityDefinition.extension:knowledgeCapability",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.extension",
      "min": 0,
      "definition": "Defines a knowledge representation level provided by this knowledge artifact.",
      "isModifier": false,
      "short": "narrative | semi-structured | structured | executable",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel" ]
      } ],
      "mustSupport": true,
      "sliceName": "knowledgeRepresentationLevel",
      "max": "*",
      "id": "ActivityDefinition.extension:knowledgeRepresentationLevel",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.extension",
      "min": 0,
      "definition": "The URL of the PlanDefinition (Strategy or Pathway) in which the patient should be enrolled.",
      "isModifier": false,
      "short": "Enroll In?",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollIn" ]
      } ],
      "mustSupport": true,
      "sliceName": "enrollIn",
      "max": "1",
      "id": "ActivityDefinition.extension:enrollIn",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.extension",
      "min": 0,
      "definition": "Determines whether the activity is to enroll or unenroll the patient in the specified strategy or pathway.",
      "isModifier": false,
      "short": "Unenroll?",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-isUnenrollment" ]
      } ],
      "mustSupport": true,
      "sliceName": "isUnenrollment",
      "max": "1",
      "id": "ActivityDefinition.extension:isUnenrollment",
      "comment": "If isUnenrollment is not specified, the default is false (meaning the activity is an enrollment activity).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.modifierExtension",
      "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](http://hl7.org/fhir/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "ActivityDefinition.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.url",
      "requirements": "Allows the activity definition to be referenced by a single globally unique identifier.",
      "min": 1,
      "definition": "An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers.",
      "isModifier": false,
      "short": "Canonical identifier for this activity definition, represented as a URI (globally unique)",
      "mapping": [ {
        "map": "Definition.url",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".identifier[scope=BUSN;reliability=ISS]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "ActivityDefinition.url",
      "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](http://hl7.org/fhir/resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](http://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.url"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.identifier",
      "requirements": "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
      "min": 0,
      "definition": "A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance.",
      "isModifier": false,
      "short": "Additional identifier for the activity definition",
      "mapping": [ {
        "map": "Definition.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".identifier",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "ActivityDefinition.identifier",
      "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this activity definition outside of FHIR, where it is not possible to use the logical URI.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.version",
      "min": 1,
      "definition": "The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.",
      "isModifier": false,
      "short": "Business version of the activity definition",
      "mapping": [ {
        "map": "Definition.version",
        "identity": "workflow"
      }, {
        "map": "FiveWs.version",
        "identity": "w5"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "ActivityDefinition.version",
      "comment": "There may be different activity definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the activity definition with the format [url]|[version].",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.version"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.name",
      "requirements": "Support human navigation and code generation.",
      "min": 1,
      "definition": "A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
      "isModifier": false,
      "short": "Name for this activity definition (computer friendly)",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "ActivityDefinition.name",
      "condition": [ "inv-0" ],
      "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.name"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.title",
      "min": 0,
      "definition": "A short, descriptive, user-friendly title for the activity definition.",
      "isModifier": false,
      "short": "Name for this activity definition (human friendly)",
      "mapping": [ {
        "map": "Definition.title",
        "identity": "workflow"
      }, {
        "map": ".title",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "ActivityDefinition.title",
      "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.title"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.subtitle",
      "min": 0,
      "definition": "An explanatory or alternate title for the activity definition giving additional information about its content.",
      "isModifier": false,
      "short": "Subordinate title of the activity definition",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "ActivityDefinition.subtitle",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.subtitle"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.status",
      "min": 1,
      "definition": "The status of this activity definition. Enables tracking the life-cycle of the content.",
      "isModifier": true,
      "short": "draft | active | retired | unknown",
      "mapping": [ {
        "map": "Definition.status {different ValueSet}",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": ".status",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "PublicationStatus"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "The lifecycle status of an artifact."
      },
      "max": "1",
      "id": "ActivityDefinition.status",
      "comment": "Allows filtering of activity definitions that are appropriate for use versus not.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "ActivityDefinition.status"
      },
      "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.experimental",
      "requirements": "Enables experimental content to be developed following the same lifecycle that would be used for a production-level activity definition.",
      "min": 1,
      "definition": "A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
      "isModifier": false,
      "short": "For testing purposes, not real usage",
      "mapping": [ {
        "map": "Definition.experimental",
        "identity": "workflow"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "ActivityDefinition.experimental",
      "comment": "Allows filtering of activity definitions that are appropriate for use versus not.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.experimental"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.subject[x]",
      "min": 0,
      "definition": "A code or group definition that describes the intended subject of the activity being defined.",
      "isModifier": false,
      "short": "Type of individual the activity definition is intended for",
      "mapping": [ {
        "map": "Definition.subject",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Group" ]
      } ],
      "mustSupport": true,
      "meaningWhenMissing": "Patient",
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/subject-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SubjectType"
        } ],
        "description": "The possible types of subjects for an activity (E.g. Patient, Practitioner, Organization, Location, etc.)."
      },
      "max": "1",
      "id": "ActivityDefinition.subject[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.subject[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.date",
      "min": 0,
      "definition": "The date  (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes.",
      "isModifier": false,
      "short": "Date last changed",
      "mapping": [ {
        "map": "Definition.date",
        "identity": "workflow"
      }, {
        "map": "FiveWs.recorded",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].time",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "alias": [ "Revision Date" ],
      "max": "1",
      "id": "ActivityDefinition.date",
      "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the activity definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.date"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.publisher",
      "requirements": "Helps establish the \"authority/credibility\" of the activity definition.  May also allow for contact.",
      "min": 1,
      "definition": "The name of the organization or individual that published the activity definition.",
      "isModifier": false,
      "short": "Name of the publisher (organization or individual)",
      "mapping": [ {
        "map": "Definition.publisher {as string instead of CodeableConcept}",
        "identity": "workflow"
      }, {
        "map": "FiveWs.witness",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "steward" ],
      "max": "1",
      "id": "ActivityDefinition.publisher",
      "comment": "Usually an organization but may be an individual. The publisher (or steward) of the activity definition is the organization or individual primarily responsible for the maintenance and upkeep of the activity definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the activity definition. This item SHOULD be populated unless the information is available from context.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.publisher"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.contact",
      "min": 0,
      "definition": "Contact details to assist a user in finding and communicating with the publisher.",
      "isModifier": false,
      "short": "Contact details for the publisher",
      "mapping": [ {
        "map": "Definition.contact",
        "identity": "workflow"
      }, {
        "map": ".participation[typeCode=CALLBCK].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactDetail"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "ActivityDefinition.contact",
      "comment": "May be a web site, an email address, a telephone number, etc.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.contact"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.description",
      "min": 1,
      "definition": "A free text natural language description of the activity definition from a consumer's perspective.",
      "isModifier": false,
      "short": "Natural language description of the activity definition",
      "mapping": [ {
        "map": "Definition.description",
        "identity": "workflow"
      }, {
        "map": ".text",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "alias": [ "scope" ],
      "max": "1",
      "id": "ActivityDefinition.description",
      "comment": "This description can be used to capture details such as why the activity definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the activity definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the activity definition is presumed to be the predominant language in the place the activity definition was created).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.description"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.useContext",
      "requirements": "Assist in searching for appropriate content.",
      "min": 0,
      "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate activity definition instances.",
      "isModifier": false,
      "short": "The context that the content is intended to support",
      "mapping": [ {
        "map": "Definition.useContext",
        "identity": "workflow"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "UsageContext"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "ActivityDefinition.useContext",
      "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.useContext"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.jurisdiction",
      "min": 0,
      "definition": "A legal or geographic region in which the activity definition is intended to be used.",
      "isModifier": false,
      "short": "Intended jurisdiction for activity definition (if applicable)",
      "mapping": [ {
        "map": "Definition.jurisdiction",
        "identity": "workflow"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Jurisdiction"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "Countries and regions within which this artifact is targeted for use."
      },
      "max": "*",
      "id": "ActivityDefinition.jurisdiction",
      "comment": "It may be possible for the activity definition to be used in jurisdictions other than those for which it was originally designed or intended.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.jurisdiction"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.purpose",
      "min": 0,
      "definition": "Explanation of why this activity definition is needed and why it has been designed as it has.",
      "isModifier": false,
      "short": "Why this activity definition is defined",
      "mapping": [ {
        "map": "Definition.purpose",
        "identity": "workflow"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": ".reasonCode.text",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "max": "1",
      "id": "ActivityDefinition.purpose",
      "comment": "This element does not describe the usage of the activity definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this activity definition.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.purpose"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.usage",
      "min": 0,
      "definition": "A detailed description of how the activity definition is used from a clinical perspective.",
      "isModifier": false,
      "short": "Describes the clinical usage of the activity definition",
      "mapping": [ {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "ActivityDefinition.usage",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.usage"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.copyright",
      "requirements": "Consumers must be able to determine any legal restrictions on the use of the activity definition and/or its content.",
      "min": 0,
      "definition": "A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition.",
      "isModifier": false,
      "short": "Use and/or publishing restrictions",
      "mapping": [ {
        "map": "Definition.copyright",
        "identity": "workflow"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "alias": [ "License", "Restrictions" ],
      "max": "1",
      "id": "ActivityDefinition.copyright",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.copyright"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.approvalDate",
      "min": 0,
      "definition": "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
      "isModifier": false,
      "short": "When the activity definition was approved by publisher",
      "mapping": [ {
        "map": "Definition.approvalDate",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=\"SUBJ\"].act[classCode=CACT;moodCode=EVN;code=\"approval\"].effectiveTime",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "date"
      } ],
      "max": "1",
      "id": "ActivityDefinition.approvalDate",
      "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.approvalDate"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.lastReviewDate",
      "requirements": "Gives a sense of how \"current\" the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
      "min": 0,
      "definition": "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
      "isModifier": false,
      "short": "When the activity definition was last reviewed",
      "mapping": [ {
        "map": "Definition.lastReviewDate",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=\"SUBJ\"; subsetCode=\"RECENT\"].act[classCode=CACT;moodCode=EVN;code=\"review\"].effectiveTime",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "date"
      } ],
      "max": "1",
      "id": "ActivityDefinition.lastReviewDate",
      "comment": "If specified, this date follows the original approval date.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.lastReviewDate"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.effectivePeriod",
      "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,
      "definition": "The period during which the activity definition content was or is planned to be in active use.",
      "isModifier": false,
      "short": "When the activity definition is expected to be used",
      "mapping": [ {
        "map": "Definition.effectivePeriod",
        "identity": "workflow"
      }, {
        "map": "N/A (to add?)",
        "identity": "rim"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "ActivityDefinition.effectivePeriod",
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.effectivePeriod"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.topic",
      "requirements": "Repositories must be able to determine how to categorize the activity definition so that it can be found by topical searches.",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "E.g. Education, Treatment, Assessment, etc.",
      "mapping": [ {
        "map": "N/A (to add?)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/definition-topic",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DefinitionTopic"
        } ],
        "description": "High-level categorization of the definition, used for searching, sorting, and filtering."
      },
      "max": "*",
      "id": "ActivityDefinition.topic",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.topic"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.author",
      "min": 0,
      "definition": "An individiual or organization primarily involved in the creation and maintenance of the content.",
      "isModifier": false,
      "short": "Who authored the content",
      "mapping": [ {
        "map": ".participation[typeCode=AUT]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactDetail"
      } ],
      "max": "*",
      "id": "ActivityDefinition.author",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.author"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.editor",
      "min": 0,
      "definition": "An individual or organization primarily responsible for internal coherence of the content.",
      "isModifier": false,
      "short": "Who edited the content",
      "type": [ {
        "code": "ContactDetail"
      } ],
      "max": "*",
      "id": "ActivityDefinition.editor",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.editor"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.reviewer",
      "min": 0,
      "definition": "An individual or organization primarily responsible for review of some aspect of the content.",
      "isModifier": false,
      "short": "Who reviewed the content",
      "mapping": [ {
        "map": ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactDetail"
      } ],
      "max": "*",
      "id": "ActivityDefinition.reviewer",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.reviewer"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.endorser",
      "min": 0,
      "definition": "An individual or organization responsible for officially endorsing the content for use in some setting.",
      "isModifier": false,
      "short": "Who endorsed the content",
      "mapping": [ {
        "map": ".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "ContactDetail"
      } ],
      "max": "*",
      "id": "ActivityDefinition.endorser",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.endorser"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.relatedArtifact",
      "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,
      "definition": "Related artifacts such as additional documentation, justification, or bibliographic references.",
      "isModifier": false,
      "short": "Additional documentation, citations, etc.",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "RelatedArtifact"
      } ],
      "max": "*",
      "id": "ActivityDefinition.relatedArtifact",
      "comment": "Each related artifact is either an attachment, or a reference to another resource, but not both.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.relatedArtifact"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.library",
      "min": 0,
      "definition": "A reference to a Library resource containing any formal logic used by the activity definition.",
      "isModifier": false,
      "short": "Logic used by the activity definition",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=USE].target[classCode=GROUPER,moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "canonical",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Library" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "ActivityDefinition.library",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.library"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.kind",
      "fixedCode": "Task",
      "min": 1,
      "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.",
      "isModifier": false,
      "short": "Kind of resource",
      "mapping": [ {
        "map": ".classCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/request-resource-types|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ActivityDefinitionKind"
        } ],
        "description": "The kind of activity the definition is describing."
      },
      "max": "1",
      "id": "ActivityDefinition.kind",
      "comment": "May determine what types of extensions are permitted.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.kind"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.profile",
      "requirements": "Allows profiles to be used to describe the types of activities that can be performed within a workflow, protocol, or order set.",
      "min": 1,
      "definition": "The profile that the resulting task must conform to; at least a CPGQuestionnaireTask, though the activity definition may introduce further constraints.",
      "isModifier": false,
      "short": "At least a CPG Questionnaire Task",
      "type": [ {
        "code": "canonical"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "ActivityDefinition.profile",
      "fixedCanonical": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollmenttask",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.profile"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.code",
      "requirements": "Allows matching performed to planned as well as validation against protocols.",
      "min": 0,
      "definition": "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.",
      "isModifier": false,
      "short": "Detail type of activity",
      "mapping": [ {
        "map": ".code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ActivityDefinitionType"
        } ],
        "description": "Detailed type of the activity; e.g. CBC."
      },
      "max": "1",
      "id": "ActivityDefinition.code",
      "comment": "Tends to be less relevant for activities involving particular products.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.intent",
      "fixedCode": "proposal",
      "min": 1,
      "definition": "Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.",
      "isModifier": false,
      "short": "proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "RequestIntent"
        } ],
        "description": "Codes indicating the degree of authority/intentionality associated with a request."
      },
      "max": "1",
      "id": "ActivityDefinition.intent",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.intent"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.priority",
      "min": 0,
      "definition": "Indicates how quickly the activity  should be addressed with respect to other requests.",
      "isModifier": false,
      "short": "routine | urgent | asap | stat",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "RequestPriority"
        } ],
        "description": "Identifies the level of importance to be assigned to actioning the request."
      },
      "max": "1",
      "id": "ActivityDefinition.priority",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.priority"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.doNotPerform",
      "min": 1,
      "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.",
      "isModifier": true,
      "short": "True if the activity should not be performed",
      "type": [ {
        "code": "boolean"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "ActivityDefinition.doNotPerform",
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.doNotPerform"
      },
      "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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.timing[x]",
      "requirements": "Allows prompting for activities and detection of missed planned activities.",
      "min": 0,
      "definition": "The period, timing or frequency upon which the described activity is to occur.",
      "isModifier": false,
      "short": "When activity is to occur",
      "mapping": [ {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Timing"
      }, {
        "code": "dateTime"
      }, {
        "code": "Age"
      }, {
        "code": "Period"
      }, {
        "code": "Range"
      }, {
        "code": "Duration"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "ActivityDefinition.timing[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.timing[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.location",
      "requirements": "Helps in planning of activity.",
      "min": 0,
      "definition": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
      "isModifier": false,
      "short": "Where it should happen",
      "mapping": [ {
        "map": ".participation[typeCode=LOC].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Location" ]
      } ],
      "mustSupport": true,
      "alias": [ "facility" ],
      "max": "1",
      "id": "ActivityDefinition.location",
      "comment": "May reference a specific clinical location or may just identify a type of location.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.location"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.participant",
      "min": 0,
      "definition": "Indicates who should participate in performing the action described.",
      "isModifier": false,
      "short": "Who should participate in the action",
      "mapping": [ {
        "map": ".participation[typeCode=PFM]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "ActivityDefinition.participant",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.participant"
      },
      "isSummary": false
    }, {
      "path": "ActivityDefinition.participant.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "ActivityDefinition.participant.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.participant.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "ActivityDefinition.participant.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.participant.modifierExtension",
      "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](http://hl7.org/fhir/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "ActivityDefinition.participant.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.participant.type",
      "min": 1,
      "definition": "The type of participant in the action.",
      "isModifier": false,
      "short": "patient | practitioner | related-person | device",
      "mapping": [ {
        "map": ".role.classCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ActivityParticipantType"
        } ],
        "description": "The type of participant in the activity."
      },
      "max": "1",
      "id": "ActivityDefinition.participant.type",
      "base": {
        "max": "1",
        "min": 1,
        "path": "ActivityDefinition.participant.type"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.participant.role",
      "min": 0,
      "definition": "The role the participant should play in performing the described action.",
      "isModifier": false,
      "short": "E.g. Nurse, Surgeon, Parent, etc.",
      "mapping": [ {
        "map": ".role.code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/action-participant-role",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ActivityParticipantRole"
        } ],
        "description": "Defines roles played by participants for the action."
      },
      "max": "1",
      "id": "ActivityDefinition.participant.role",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.participant.role"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.product[x]",
      "min": 0,
      "definition": "Identifies the food, drug or other product being consumed or supplied in the activity.",
      "isModifier": false,
      "short": "What's administered/supplied",
      "mapping": [ {
        "map": ".participation[typeCode=CSM].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Medication", "http://hl7.org/fhir/StructureDefinition/Substance" ]
      }, {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ActivityProduct"
        } ],
        "description": "Code describing the type of substance or medication."
      },
      "max": "1",
      "id": "ActivityDefinition.product[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.product[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.quantity",
      "min": 0,
      "definition": "Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).",
      "isModifier": false,
      "short": "How much is administered/consumed/supplied",
      "mapping": [ {
        "map": ".quantity {for classCode=SPLY}",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "alias": [ "dose" ],
      "max": "1",
      "id": "ActivityDefinition.quantity",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.quantity"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.dosage",
      "min": 0,
      "definition": "Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.",
      "isModifier": false,
      "short": "Detailed dosage instructions",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM; moodCode=DEFN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Dosage"
      } ],
      "max": "*",
      "id": "ActivityDefinition.dosage",
      "comment": "If a dosage instruction is used, the definition should not specify timing or quantity.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.dosage"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.bodySite",
      "requirements": "Knowing where the procedure is made is important for tracking if multiple sites are possible.",
      "min": 0,
      "definition": "Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites).",
      "isModifier": false,
      "short": "What part of body to perform on",
      "mapping": [ {
        "map": ".targetSiteCode {for classCode=PROC, SBADM}",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/body-site",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "BodySite"
        } ],
        "description": "A code that identifies the anatomical location."
      },
      "max": "*",
      "id": "ActivityDefinition.bodySite",
      "comment": "Only used if not implicit in the code found in ServiceRequest.type.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.bodySite"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.specimenRequirement",
      "requirements": "Needed to represent lab order definitions.",
      "min": 0,
      "definition": "Defines specimen requirements for the action to be performed, such as required specimens for a lab test.",
      "isModifier": false,
      "short": "What specimens are required to perform this action",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/SpecimenDefinition" ]
      } ],
      "max": "*",
      "id": "ActivityDefinition.specimenRequirement",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.specimenRequirement"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.observationRequirement",
      "requirements": "Needed to represent observation definitions.",
      "min": 0,
      "definition": "Defines observation requirements for the action to be performed, such as body weight or surface area.",
      "isModifier": false,
      "short": "What observations are required to perform this action",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/ObservationDefinition" ]
      } ],
      "max": "*",
      "id": "ActivityDefinition.observationRequirement",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.observationRequirement"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.observationResultRequirement",
      "min": 0,
      "definition": "Defines the observations that are expected to be produced by the action.",
      "isModifier": false,
      "short": "What observations must be produced by this action",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/ObservationDefinition" ]
      } ],
      "max": "*",
      "id": "ActivityDefinition.observationResultRequirement",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.observationResultRequirement"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.transform",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Transform to apply the template",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "canonical",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/StructureMap" ]
      } ],
      "max": "1",
      "id": "ActivityDefinition.transform",
      "comment": "Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "ActivityDefinition.transform"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.dynamicValue",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Dynamic aspects of the definition",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "ActivityDefinition.dynamicValue",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "ActivityDefinition.dynamicValue"
      },
      "isSummary": false
    }, {
      "path": "ActivityDefinition.dynamicValue.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "ActivityDefinition.dynamicValue.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.dynamicValue.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "ActivityDefinition.dynamicValue.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "ActivityDefinition.dynamicValue.modifierExtension",
      "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](http://hl7.org/fhir/extensibility.html#modifierExtension).",
      "min": 0,
      "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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "ActivityDefinition.dynamicValue.modifierExtension",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.dynamicValue.path",
      "min": 1,
      "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](http://hl7.org/fhir/fhirpath.html#simple) for full details).",
      "isModifier": false,
      "short": "The path to the element to be set dynamically",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "ActivityDefinition.dynamicValue.path",
      "comment": "The path attribute contains a [Simple FHIRPath Subset](http://hl7.org/fhir/fhirpath.html#simple) that allows path traversal, but not calculation.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "ActivityDefinition.dynamicValue.path"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "ActivityDefinition.dynamicValue.expression",
      "min": 1,
      "definition": "An expression specifying the value of the customized element.",
      "isModifier": false,
      "short": "An expression that provides the dynamic value for the customization",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Expression"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "ActivityDefinition.dynamicValue.expression",
      "comment": "The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "ActivityDefinition.dynamicValue.expression"
      },
      "isSummary": false
    } ]
  },
  "status": "draft",
  "id": "f277a5b2-69d0-450f-8392-11638012f207",
  "kind": "resource",
  "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollmentactivity",
  "version": "1.0.0",
  "differential": {
    "element": [ {
      "id": "ActivityDefinition",
      "path": "ActivityDefinition",
      "mustSupport": false
    }, {
      "id": "ActivityDefinition.extension:enrollIn",
      "max": "1",
      "min": 0,
      "path": "ActivityDefinition.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollIn" ]
      } ],
      "sliceName": "enrollIn",
      "mustSupport": true
    }, {
      "id": "ActivityDefinition.extension:isUnenrollment",
      "max": "1",
      "min": 0,
      "path": "ActivityDefinition.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-isUnenrollment" ]
      } ],
      "comment": "If isUnenrollment is not specified, the default is false (meaning the activity is an enrollment activity).",
      "sliceName": "isUnenrollment",
      "mustSupport": true
    }, {
      "id": "ActivityDefinition.kind",
      "max": "1",
      "min": 1,
      "path": "ActivityDefinition.kind",
      "type": [ {
        "code": "code"
      } ],
      "fixedCode": "Task",
      "mustSupport": true
    }, {
      "path": "ActivityDefinition.profile",
      "min": 1,
      "definition": "The profile that the resulting task must conform to; at least a CPGQuestionnaireTask, though the activity definition may introduce further constraints.",
      "short": "At least a CPG Questionnaire Task",
      "type": [ {
        "code": "canonical"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "ActivityDefinition.profile",
      "fixedCanonical": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-enrollmenttask"
    }, {
      "id": "ActivityDefinition.intent",
      "max": "1",
      "min": 1,
      "path": "ActivityDefinition.intent",
      "type": [ {
        "code": "code"
      } ],
      "fixedCode": "proposal",
      "mustSupport": true
    }, {
      "id": "ActivityDefinition.doNotPerform",
      "max": "1",
      "min": 1,
      "path": "ActivityDefinition.doNotPerform",
      "mustSupport": true
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/special/committees/DSS",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableactivity"
}