Release 4B

This page is part of the FHIR Specification (v4.3.0: R4B - STU). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

StructureDefinition: Shareable ActivityDefinition - XML

Clinical Decision Support Work Group Maturity Level: 0Trial UseUse Context: Any

Shareable ActivityDefinition

<?xml version="1.0" encoding="UTF-8"?>

<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shareableactivitydefinition"/> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">to do</div> 
  </text> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="3"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="cds"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use"/> 
  </extension> 
  <url value="http://hl7.org/fhir/StructureDefinition/shareableactivitydefinition"/> 
  <version value="4.3.0"/> 
  <name value="Shareable ActivityDefinition"/> 
  <status value="draft"/> 
  <experimental value="false"/> 
  <date value="2020-12-28T16:55:11+11:00"/> 
  <publisher value="HL7"/> 
  <description value="Enforces the minimum information set for the activity definition metadata required by
   HL7 and other organizations that share and publish activity definitions"/> 
  <fhirVersion value="4.3.0"/> 
  <mapping> 
    <identity value="rim"/> 
    <uri value="http://hl7.org/v3"/> 
    <name value="RIM Mapping"/> 
  </mapping> 
  <mapping> 
    <identity value="workflow"/> 
    <uri value="http://hl7.org/fhir/workflow"/> 
    <name value="Workflow Pattern"/> 
  </mapping> 
  <mapping> 
    <identity value="w5"/> 
    <uri value="http://hl7.org/fhir/fivews"/> 
    <name value="FiveWs Pattern Mapping"/> 
  </mapping> 
  <mapping> 
    <identity value="objimpl"/> 
    <uri value="http://hl7.org/fhir/object-implementation"/> 
    <name value="Object Implementation Information"/> 
  </mapping> 
  <kind value="resource"/> 
  <abstract value="false"/> 
  <type value="ActivityDefinition"/> 
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition"/> 
  <derivation value="constraint"/> 
  <snapshot> 
    <element id="ActivityDefinition">
      <path value="ActivityDefinition"/> 
      <short value="The definition of a specific activity to be taken, independent of any particular patient
       or context"/> 
      <definition value="This resource allows for the definition of some activity to be performed, independent
       of a particular patient, practitioner, or other performance context."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <constraint> 
        <key value="cnl-0"/> 
        <severity value="warning"/> 
        <human value="Name should be usable as an identifier for the module by machine processing applications
         such as code generation"/> 
        <expression value="name.exists() implies name.matches('[A-Z]([A-Za-z0-9_]){0,254}')"/> 
        <xpath value="not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="dom-2"/> 
        <severity value="error"/> 
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> 
        <expression value="contained.contained.empty()"/> 
        <xpath value="not(parent::f:contained and f:contained)"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <constraint> 
        <key value="dom-3"/> 
        <severity value="error"/> 
        <human value="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"/> 
        <expression value="contained.where(((id.exists() and ('#'+id in (%resource.descendants().reference | %resource.descenda
        nts().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(uri) = '#').exists()).not()).trace('unmatched',
         id).empty()"/> 
        <xpath value="not(exists(for $contained in f:contained return $contained[not(exists(parent::*/descendant::f:refere
        nce/@value=concat('#', $contained/*/f:id/@value)) or exists(descendant::f:reference[@value='#']))]))"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <constraint> 
        <key value="dom-4"/> 
        <severity value="error"/> 
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or
         a meta.lastUpdated"/> 
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> 
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <constraint> 
        <key value="dom-5"/> 
        <severity value="error"/> 
        <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> 
        <expression value="contained.meta.security.empty()"/> 
        <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <constraint> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
          <valueBoolean value="true"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
          <valueMarkdown value="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."/> 
        </extension> 
        <key value="dom-6"/> 
        <severity value="warning"/> 
        <human value="A resource should have narrative for robust management"/> 
        <expression value="text.`div`.exists()"/> 
        <xpath value="exists(f:text/h:div)"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Entity. Role, or Act"/> 
      </mapping> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Act[classCode=ACT; moodCode=DEFN]"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="clinical.general"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.id">
      <path value="ActivityDefinition.id"/> 
      <short value="Logical id of this artifact"/> 
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this
       value never changes."/> 
      <comment value="The only time that a resource does not have an id is when it is being submitted to the
       server using a create operation."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Resource.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
    </element> 
    <element id="ActivityDefinition.meta">
      <path value="ActivityDefinition.meta"/> 
      <short value="Metadata about the resource"/> 
      <definition value="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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Resource.meta"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Meta"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
    </element> 
    <element id="ActivityDefinition.implicitRules">
      <path value="ActivityDefinition.implicitRules"/> 
      <short value="A set of rules under which this content was created"/> 
      <definition value="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."/> 
      <comment value="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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Resource.implicitRules"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="uri"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="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 value="true"/> 
    </element> 
    <element id="ActivityDefinition.language">
      <path value="ActivityDefinition.language"/> 
      <short value="Language of the resource content"/> 
      <definition value="The base language in which the resource is written."/> 
      <comment value="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)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Resource.language"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="preferred"/> 
        <description value="IETF language tag"/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> 
      </binding> 
    </element> 
    <element id="ActivityDefinition.text">
      <path value="ActivityDefinition.text"/> 
      <short value="Text summary of the resource, for human interpretation"/> 
      <definition value="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 &quot;clinically
       safe&quot; for a human to just read the narrative. Resource definitions may define what
       content should be represented in the narrative to ensure clinical safety."/> 
      <comment value="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 &quot;text blob&quot;
       or where text is additionally entered raw or narrated and encoded information is added
       later."/> 
      <alias value="narrative"/> 
      <alias value="html"/> 
      <alias value="xhtml"/> 
      <alias value="display"/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="DomainResource.text"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Narrative"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Act.text?"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.contained">
      <path value="ActivityDefinition.contained"/> 
      <short value="Contained, inline Resources"/> 
      <definition value="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."/> 
      <comment value="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."/> 
      <alias value="inline resources"/> 
      <alias value="anonymous resources"/> 
      <alias value="contained resources"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="DomainResource.contained"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Resource"/> 
      </type> 
      <constraint> 
        <key value="dom-r4b"/> 
        <severity value="warning"/> 
        <human value="Containing new R4B resources within R4 resources may cause interoperability issues if
         instances are shared with R4 systems"/> 
        <expression value="($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable
         or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this
         is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition
         or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus
         or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence
         or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefi
        nition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition
         or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorizat
        ion or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource
         is SubscriptionTopic)"/> 
        <xpath value="not(f:Citation|f:Evidence|f:EvidenceReport|f:EvidenceVariable|f:MedicinalProductDefinition|f:Package
        dProductDefinition|f:AdministrableProductDefinition|f:Ingredient|f:ClinicalUseDefinition|f:RegulatedA
        uthorization|f:SubstanceDefinition|f:SubscriptionStatus|f:SubscriptionTopic) or not(parent::f:Citatio
        n|parent::f:Evidence|parent::f:EvidenceReport|parent::f:EvidenceVariable|parent::f:MedicinalProductDe
        finition|parent::f:PackagedProductDefinition|parent::f:AdministrableProductDefinition|parent::f:Ingre
        dient|parent::f:ClinicalUseDefinition|parent::f:RegulatedAuthorization|parent::f:SubstanceDefinition|
        f:SubscriptionStatus|f:SubscriptionTopic)"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.extension">
      <path value="ActivityDefinition.extension"/> 
      <short value="Additional content defined by implementations"/> 
      <definition value="May be used to represent additional information that is not part of the basic definition
       of the resource. To make the use of extensions safe and manageable, there is a strict
       set of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="DomainResource.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.modifierExtension">
      <path value="ActivityDefinition.modifierExtension"/> 
      <short value="Extensions that cannot be ignored"/> 
      <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource
       (including cannot change the meaning of modifierExtension itself)."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly
       distinguished from the vast majority of extensions which can be safely ignored.  This
       promotes interoperability by eliminating the need for implementers to prohibit the presence
       of extensions. For further information, see the [definition of modifier extensions](extensibility.ht
      ml#modifierExtension)."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="DomainResource.modifierExtension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource
       that contains them"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.url">
      <path value="ActivityDefinition.url"/> 
      <short value="Canonical identifier for this activity definition, represented as a URI (globally unique)"/> 
      <definition value="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."/> 
      <comment value="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.

The 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](resource.html#versions). 

In 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](resource.html#meta) element to
       indicate where the current master source of the resource can be found."/> 
      <requirements value="Allows the activity definition to be referenced by a single globally unique identifier."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.url"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="uri"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.url"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.identifier"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".identifier[scope=BUSN;reliability=ISS]"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.identifier">
      <path value="ActivityDefinition.identifier"/> 
      <short value="Additional identifier for the activity definition"/> 
      <definition value="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."/> 
      <comment value="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."/> 
      <requirements value="Allows externally provided and/or usable business identifiers to be easily associated
       with the module."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.identifier"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Identifier"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="true"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.identifier"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.identifier"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".identifier"/> 
      </mapping> 
      <mapping> 
        <identity value="objimpl"/> 
        <map value="no-gen-base"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.version">
      <path value="ActivityDefinition.version"/> 
      <short value="Business version of the activity definition"/> 
      <definition value="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."/> 
      <comment value="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]."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.version"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.version"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.version"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?)"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.name">
      <path value="ActivityDefinition.name"/> 
      <short value="Name for this activity definition (computer friendly)"/> 
      <definition value="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."/> 
      <comment value="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."/> 
      <requirements value="Support human navigation and code generation."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.name"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <condition value="cnl-0"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.title">
      <path value="ActivityDefinition.title"/> 
      <short value="Name for this activity definition (human friendly)"/> 
      <definition value="A short, descriptive, user-friendly title for the activity definition."/> 
      <comment value="This name does not need to be machine-processing friendly and may contain punctuation,
       white-space, etc."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.title"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="true"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.title"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".title"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.subtitle">
      <path value="ActivityDefinition.subtitle"/> 
      <short value="Subordinate title of the activity definition"/> 
      <definition value="An explanatory or alternate title for the activity definition giving additional information
       about its content."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.subtitle"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?)"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.status">
      <path value="ActivityDefinition.status"/> 
      <short value="draft | active | retired | unknown"/> 
      <definition value="The status of this activity definition. Enables tracking the life-cycle of the content."/> 
      <comment value="Allows filtering of activity definitions that are appropriate for use versus not."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.status"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="This is labeled as &quot;Is Modifier&quot; because applications should not use a retired
       {{title}} without due consideration"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PublicationStatus"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="required"/> 
        <description value="The lifecycle status of an artifact."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/publication-status|4.3.0"/> 
      </binding> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.status {different ValueSet}"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.status"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".status"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.experimental">
      <path value="ActivityDefinition.experimental"/> 
      <short value="For testing purposes, not real usage"/> 
      <definition value="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."/> 
      <comment value="Allows filtering of activity definitions that are appropriate for use versus not."/> 
      <requirements value="Enables experimental content to be developed following the same lifecycle that would be
       used for a production-level activity definition."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.experimental"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="boolean"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.experimental"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.class"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?)"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.subject[x]">
      <path value="ActivityDefinition.subject[x]"/> 
      <short value="Type of individual the activity definition is intended for"/> 
      <definition value="A code, group definition, or canonical reference that describes  or identifies the intended
       subject of the activity being defined.  Canonical references are allowed to support the
       definition of protocols for drug and substance quality specifications, and is allowed
       to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition,
       ManufacturedItemDefinition, or PackagedProductDefinition resource."/> 
      <comment value="Note that the choice of canonical for the subject element was introduced in R4B to support
       pharmaceutical quality use cases. To ensure as much backwards-compatibility as possible,
       it is recommended to only use the new canonical type with these use cases."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.subject[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"/> 
      </type> 
      <type> 
        <code value="canonical"/> 
      </type> 
      <meaningWhenMissing value="Patient"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SubjectType"/> 
        </extension> 
        <strength value="extensible"/> 
        <description value="The possible types of subjects for an activity (E.g. Patient, Practitioner, Organization,
         Location, etc.)."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/subject-type"/> 
      </binding> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.subject"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?) { only applies for subject Patient? }"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.date">
      <path value="ActivityDefinition.date"/> 
      <short value="Date last changed"/> 
      <definition value="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."/> 
      <comment value="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."/> 
      <alias value="Revision Date"/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.date"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="true"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.date"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.recorded"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=AUT].time"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.publisher">
      <path value="ActivityDefinition.publisher"/> 
      <short value="Name of the publisher (organization or individual)"/> 
      <definition value="The name of the organization or individual that published the activity definition."/> 
      <comment value="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."/> 
      <requirements value="Helps establish the &quot;authority/credibility&quot; of the activity definition.  May
       also allow for contact."/> 
      <alias value="steward"/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.publisher"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.publisher {as string instead of CodeableConcept}"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.witness"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=AUT].role"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.contact">
      <path value="ActivityDefinition.contact"/> 
      <short value="Contact details for the publisher"/> 
      <definition value="Contact details to assist a user in finding and communicating with the publisher."/> 
      <comment value="May be a web site, an email address, a telephone number, etc."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.contact"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="ContactDetail"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="true"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.contact"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=CALLBCK].role"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.description">
      <path value="ActivityDefinition.description"/> 
      <short value="Natural language description of the activity definition"/> 
      <definition value="A free text natural language description of the activity definition from a consumer's
       perspective."/> 
      <comment value="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)."/> 
      <alias value="scope"/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.description"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="markdown"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.description"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".text"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.useContext">
      <path value="ActivityDefinition.useContext"/> 
      <short value="The context that the content is intended to support"/> 
      <definition value="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."/> 
      <comment value="When multiple useContexts are specified, there is no expectation that all or any of the
       contexts apply."/> 
      <requirements value="Assist in searching for appropriate content."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.useContext"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="UsageContext"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="true"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.useContext"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?)"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.jurisdiction">
      <path value="ActivityDefinition.jurisdiction"/> 
      <short value="Intended jurisdiction for activity definition (if applicable)"/> 
      <definition value="A legal or geographic region in which the activity definition is intended to be used."/> 
      <comment value="It may be possible for the activity definition to be used in jurisdictions other than
       those for which it was originally designed or intended."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.jurisdiction"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="true"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Jurisdiction"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="extensible"/> 
        <description value="Countries and regions within which this artifact is targeted for use."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/jurisdiction"/> 
      </binding> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.jurisdiction"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?)"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.purpose">
      <path value="ActivityDefinition.purpose"/> 
      <short value="Why this activity definition is defined"/> 
      <definition value="Explanation of why this activity definition is needed and why it has been designed as
       it has."/> 
      <comment value="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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.purpose"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="markdown"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.purpose"/> 
      </mapping> 
      <mapping> 
        <identity value="w5"/> 
        <map value="FiveWs.why[x]"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".reasonCode.text"/> 
      </mapping> 
      <mapping> 
        <identity value="objimpl"/> 
        <map value="no-gen-base"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.usage">
      <path value="ActivityDefinition.usage"/> 
      <short value="Describes the clinical usage of the activity definition"/> 
      <definition value="A detailed description of how the activity definition is used from a clinical perspective."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.usage"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?)"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.copyright">
      <path value="ActivityDefinition.copyright"/> 
      <short value="Use and/or publishing restrictions"/> 
      <definition value="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."/> 
      <requirements value="Consumers must be able to determine any legal restrictions on the use of the activity
       definition and/or its content."/> 
      <alias value="License"/> 
      <alias value="Restrictions"/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.copyright"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="markdown"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.copyright"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?)"/> 
      </mapping> 
      <mapping> 
        <identity value="objimpl"/> 
        <map value="no-gen-base"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.approvalDate">
      <path value="ActivityDefinition.approvalDate"/> 
      <short value="When the activity definition was approved by publisher"/> 
      <definition value="The date on which the resource content was approved by the publisher. Approval happens
       once when the content is officially approved for usage."/> 
      <comment value="The 'date' element may be more recent than the approval date because of minor changes
       or editorial corrections."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.approvalDate"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="date"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.approvalDate"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;].act[classCode=CACT;moodCode=EVN;code=&quot;approval
        &quot;].effectiveTime"/> 
      </mapping> 
      <mapping> 
        <identity value="objimpl"/> 
        <map value="no-gen-base"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.lastReviewDate">
      <path value="ActivityDefinition.lastReviewDate"/> 
      <short value="When the activity definition was last reviewed"/> 
      <definition value="The date on which the resource content was last reviewed. Review happens periodically
       after approval but does not change the original approval date."/> 
      <comment value="If specified, this date follows the original approval date."/> 
      <requirements value="Gives a sense of how &quot;current&quot; the content is.  Resources that have not been
       reviewed in a long time may have a risk of being less appropriate/relevant."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.lastReviewDate"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="date"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.lastReviewDate"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;; subsetCode=&quot;RECENT&quot;].act[classCode=CACT;m
        oodCode=EVN;code=&quot;review&quot;].effectiveTime"/> 
      </mapping> 
      <mapping> 
        <identity value="objimpl"/> 
        <map value="no-gen-base"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.effectivePeriod">
      <path value="ActivityDefinition.effectivePeriod"/> 
      <short value="When the activity definition is expected to be used"/> 
      <definition value="The period during which the activity definition content was or is planned to be in active
       use."/> 
      <comment value="The effective period for a activity definition  determines when the content is applicable
       for usage and is independent of publication and review dates. For example, a measure intended
       to be used for the year 2016 might be published in 2015."/> 
      <requirements value="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 value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.effectivePeriod"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Period"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="workflow"/> 
        <map value="Definition.effectivePeriod"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?)"/> 
      </mapping> 
      <mapping> 
        <identity value="objimpl"/> 
        <map value="no-gen-base"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.topic">
      <path value="ActivityDefinition.topic"/> 
      <short value="E.g. Education, Treatment, Assessment, etc."/> 
      <definition value="Descriptive topics related to the content of the activity. Topics provide a high-level
       categorization of the activity that can be useful for filtering and searching."/> 
      <requirements value="Repositories must be able to determine how to categorize the activity definition so that
       it can be found by topical searches."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.topic"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DefinitionTopic"/> 
        </extension> 
        <strength value="example"/> 
        <description value="High-level categorization of the definition, used for searching, sorting, and filtering."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/definition-topic"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (to add?)"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.author">
      <path value="ActivityDefinition.author"/> 
      <short value="Who authored the content"/> 
      <definition value="An individiual or organization primarily involved in the creation and maintenance of the
       content."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.author"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="ContactDetail"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=AUT]"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.editor">
      <path value="ActivityDefinition.editor"/> 
      <short value="Who edited the content"/> 
      <definition value="An individual or organization primarily responsible for internal coherence of the content."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.editor"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="ContactDetail"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=AUT] { not a great match, but there does not appear to be an editor
         concept in V3 participation }"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.reviewer">
      <path value="ActivityDefinition.reviewer"/> 
      <short value="Who reviewed the content"/> 
      <definition value="An individual or organization primarily responsible for review of some aspect of the content."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.reviewer"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="ContactDetail"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.endorser">
      <path value="ActivityDefinition.endorser"/> 
      <short value="Who endorsed the content"/> 
      <definition value="An individual or organization responsible for officially endorsing the content for use
       in some setting."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.endorser"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="ContactDetail"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.relatedArtifact">
      <path value="ActivityDefinition.relatedArtifact"/> 
      <short value="Additional documentation, citations, etc."/> 
      <definition value="Related artifacts such as additional documentation, justification, or bibliographic references."/> 
      <comment value="Each related artifact is either an attachment, or a reference to another resource, but
       not both."/> 
      <requirements value="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 value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.relatedArtifact"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="RelatedArtifact"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV
         w/ inversionInd=true; No support for citation}"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.library">
      <path value="ActivityDefinition.library"/> 
      <short value="Logic used by the activity definition"/> 
      <definition value="A reference to a Library resource containing any formal logic used by the activity definition."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.library"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="canonical"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Library"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=USE].target[classCode=GROUPER,moodCode=EVN]"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.kind">
      <path value="ActivityDefinition.kind"/> 
      <short value="Kind of resource"/> 
      <definition value="A description of the kind of resource the activity definition is representing. For example,
       a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always,
       this is a Request resource."/> 
      <comment value="May determine what types of extensions are permitted."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.kind"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityDefinitionKind"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="required"/> 
        <description value="The kind of activity the definition is describing."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/request-resource-types|4.3.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".classCode"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.profile">
      <path value="ActivityDefinition.profile"/> 
      <short value="What profile the resource needs to conform to"/> 
      <definition value="A profile to which the target of the activity definition is expected to conform."/> 
      <requirements value="Allows profiles to be used to describe the types of activities that can be performed within
       a workflow, protocol, or order set."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.profile"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="canonical"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".templateId"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.code">
      <path value="ActivityDefinition.code"/> 
      <short value="Detail type of activity"/> 
      <definition value="Detailed description of the type of activity; e.g. What lab test, what procedure, what
       kind of encounter."/> 
      <comment value="Tends to be less relevant for activities involving particular products."/> 
      <requirements value="Allows matching performed to planned as well as validation against protocols."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.code"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityDefinitionType"/> 
        </extension> 
        <strength value="example"/> 
        <description value="Detailed type of the activity; e.g. CBC."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/procedure-code"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".code"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.intent">
      <path value="ActivityDefinition.intent"/> 
      <short value="proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order
       | option"/> 
      <definition value="Indicates the level of authority/intentionality associated with the activity and where
       the request should fit into the workflow chain."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.intent"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RequestIntent"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Codes indicating the degree of authority/intentionality associated with a request."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/request-intent|4.3.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".moodCode { of the realized Activity }"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.priority">
      <path value="ActivityDefinition.priority"/> 
      <short value="routine | urgent | asap | stat"/> 
      <definition value="Indicates how quickly the activity  should be addressed with respect to other requests."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.priority"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RequestPriority"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Identifies the level of importance to be assigned to actioning the request."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/request-priority|4.3.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".priority { of the realized activity }"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.doNotPerform">
      <path value="ActivityDefinition.doNotPerform"/> 
      <short value="True if the activity should not be performed"/> 
      <definition value="Set this to true if the definition is to indicate that a particular activity should NOT
       be performed. If true, this element should be interpreted to reinforce a negative coding.
       For example NPO as a code with a doNotPerform of true would still indicate to NOT perform
       the action."/> 
      <comment value="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 &quot;remove&quot; type of a
       PlanDefinition or RequestGroup."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.doNotPerform"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="boolean"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="true"/> 
      <isModifierReason value="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 value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".negationInd { of the realized activity }"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.timing[x]">
      <path value="ActivityDefinition.timing[x]"/> 
      <short value="When activity is to occur"/> 
      <definition value="The period, timing or frequency upon which the described activity is to occur."/> 
      <requirements value="Allows prompting for activities and detection of missed planned activities."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.timing[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Timing"/> 
      </type> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <type> 
        <code value="Age"/> 
      </type> 
      <type> 
        <code value="Period"/> 
      </type> 
      <type> 
        <code value="Range"/> 
      </type> 
      <type> 
        <code value="Duration"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".effectiveTime"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.location">
      <path value="ActivityDefinition.location"/> 
      <short value="Where it should happen"/> 
      <definition value="Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic,
       etc."/> 
      <comment value="May reference a specific clinical location or may just identify a type of location."/> 
      <requirements value="Helps in planning of activity."/> 
      <alias value="facility"/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.location"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=LOC].role"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.participant">
      <path value="ActivityDefinition.participant"/> 
      <short value="Who should participate in the action"/> 
      <definition value="Indicates who should participate in performing the action described."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.participant"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="BackboneElement"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource"/> 
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters"/> 
        <xpath value="@value|f:*|h:div|self::f:Parameters"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=PFM]"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.participant.id">
      <path value="ActivityDefinition.participant.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may be any
       string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.participant.extension">
      <path value="ActivityDefinition.participant.extension"/> 
      <short value="Additional content defined by implementations"/> 
      <definition value="May be used to represent additional information that is not part of the basic definition
       of the element. To make the use of extensions safe and manageable, there is a strict set
       of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.participant.modifierExtension">
      <path value="ActivityDefinition.participant.modifierExtension"/> 
      <short value="Extensions that cannot be ignored even if unrecognized"/> 
      <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource
       (including cannot change the meaning of modifierExtension itself)."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly
       distinguished from the vast majority of extensions which can be safely ignored.  This
       promotes interoperability by eliminating the need for implementers to prohibit the presence
       of extensions. For further information, see the [definition of modifier extensions](extensibility.ht
      ml#modifierExtension)."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <alias value="modifiers"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="BackboneElement.modifierExtension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="true"/> 
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element
       that contains them"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.participant.type">
      <path value="ActivityDefinition.participant.type"/> 
      <short value="patient | practitioner | related-person | device"/> 
      <definition value="The type of participant in the action."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.participant.type"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityParticipantType"/> 
        </extension> 
        <strength value="required"/> 
        <description value="The type of participant in the activity."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/action-participant-type|4.3.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".role.classCode"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.participant.role">
      <path value="ActivityDefinition.participant.role"/> 
      <short value="E.g. Nurse, Surgeon, Parent, etc."/> 
      <definition value="The role the participant should play in performing the described action."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.participant.role"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityParticipantRole"/> 
        </extension> 
        <strength value="example"/> 
        <description value="Defines roles played by participants for the action."/> 
        <valueSet value="http://terminology.hl7.org/ValueSet/action-participant-role"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".role.code"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.product[x]">
      <path value="ActivityDefinition.product[x]"/> 
      <short value="What's administered/supplied"/> 
      <definition value="Identifies the food, drug or other product being consumed or supplied in the activity."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.product[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Ingredient"/> 
      </type> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityProduct"/> 
        </extension> 
        <strength value="example"/> 
        <description value="Code describing the type of substance or medication."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/medication-codes"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".participation[typeCode=CSM].role"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.quantity">
      <path value="ActivityDefinition.quantity"/> 
      <short value="How much is administered/consumed/supplied"/> 
      <definition value="Identifies the quantity expected to be consumed at once (per dose, per meal, etc.)."/> 
      <alias value="dose"/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.quantity"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Quantity"/> 
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".quantity {for classCode=SPLY}"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.dosage">
      <path value="ActivityDefinition.dosage"/> 
      <short value="Detailed dosage instructions"/> 
      <definition value="Provides detailed dosage instructions in the same way that they are described for MedicationRequest
       resources."/> 
      <comment value="If a dosage instruction is used, the definition should not specify timing or quantity."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.dosage"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Dosage"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=COMP].target[classCode=SBADM; moodCode=DEFN]"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.bodySite">
      <path value="ActivityDefinition.bodySite"/> 
      <short value="What part of body to perform on"/> 
      <definition value="Indicates the sites on the subject's body where the procedure should be performed (I.e.
       the target sites)."/> 
      <comment value="Only used if not implicit in the code found in ServiceRequest.type."/> 
      <requirements value="Knowing where the procedure is made is important for tracking if multiple sites are possible."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.bodySite"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BodySite"/> 
        </extension> 
        <strength value="example"/> 
        <description value="A code that identifies the anatomical location."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/body-site"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".targetSiteCode {for classCode=PROC, SBADM}"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.specimenRequirement">
      <path value="ActivityDefinition.specimenRequirement"/> 
      <short value="What specimens are required to perform this action"/> 
      <definition value="Defines specimen requirements for the action to be performed, such as required specimens
       for a lab test."/> 
      <requirements value="Needed to represent lab order definitions."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.specimenRequirement"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/SpecimenDefinition"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.observationRequirement">
      <path value="ActivityDefinition.observationRequirement"/> 
      <short value="What observations are required to perform this action"/> 
      <definition value="Defines observation requirements for the action to be performed, such as body weight or
       surface area."/> 
      <requirements value="Needed to represent observation definitions."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.observationRequirement"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ObservationDefinition"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.observationResultRequirement">
      <path value="ActivityDefinition.observationResultRequirement"/> 
      <short value="What observations must be produced by this action"/> 
      <definition value="Defines the observations that are expected to be produced by the action."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.observationResultRequirement"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Reference"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ObservationDefinition"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.transform">
      <path value="ActivityDefinition.transform"/> 
      <short value="Transform to apply the template"/> 
      <definition value="A reference to a StructureMap resource that defines a transform that can be executed to
       produce the intent resource using the ActivityDefinition instance as the input."/> 
      <comment value="Note that if both a transform and dynamic values are specified, the dynamic values will
       be applied to the result of the transform."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.transform"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="canonical"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureMap"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.dynamicValue">
      <path value="ActivityDefinition.dynamicValue"/> 
      <short value="Dynamic aspects of the definition"/> 
      <definition value="Dynamic values that will be evaluated to produce values for elements of the resulting
       resource. For example, if the dosage of a medication must be computed based on the patient's
       weight, a dynamic value would be used to specify an expression that calculated the weight,
       and the path on the request resource that would contain the result."/> 
      <comment value="Dynamic values are applied in the order in which they are defined in the ActivityDefinition.
       Note that if both a transform and dynamic values are specified, the dynamic values will
       be applied to the result of the transform."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ActivityDefinition.dynamicValue"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="BackboneElement"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource"/> 
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters"/> 
        <xpath value="@value|f:*|h:div|self::f:Parameters"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.dynamicValue.id">
      <path value="ActivityDefinition.dynamicValue.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may be any
       string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.dynamicValue.extension">
      <path value="ActivityDefinition.dynamicValue.extension"/> 
      <short value="Additional content defined by implementations"/> 
      <definition value="May be used to represent additional information that is not part of the basic definition
       of the element. To make the use of extensions safe and manageable, there is a strict set
       of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.dynamicValue.modifierExtension">
      <path value="ActivityDefinition.dynamicValue.modifierExtension"/> 
      <short value="Extensions that cannot be ignored even if unrecognized"/> 
      <definition value="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.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource
       (including cannot change the meaning of modifierExtension itself)."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly
       distinguished from the vast majority of extensions which can be safely ignored.  This
       promotes interoperability by eliminating the need for implementers to prohibit the presence
       of extensions. For further information, see the [definition of modifier extensions](extensibility.ht
      ml#modifierExtension)."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <alias value="modifiers"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="BackboneElement.modifierExtension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="true"/> 
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element
       that contains them"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.dynamicValue.path">
      <path value="ActivityDefinition.dynamicValue.path"/> 
      <short value="The path to the element to be set dynamically"/> 
      <definition value="The path to the element to be customized. This is the path on the resource that will hold
       the result of the calculation defined by the expression. The specified path SHALL be a
       FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL
       consist only of identifiers, constant indexers, and a restricted subset of functions.
       The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers
       ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html
      #simple) for full details)."/> 
      <comment value="The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows
       path traversal, but not calculation."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.dynamicValue.path"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.dynamicValue.expression">
      <path value="ActivityDefinition.dynamicValue.expression"/> 
      <short value="An expression that provides the dynamic value for the customization"/> 
      <definition value="An expression specifying the value of the customized element."/> 
      <comment value="The expression may be inlined, or may be a reference to a named expression within a logic
       library referenced by the library element."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ActivityDefinition.dynamicValue.expression"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Expression"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <mustSupport value="false"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
  </snapshot> 
  <differential> 
    <element id="ActivityDefinition">
      <path value="ActivityDefinition"/> 
      <min value="1"/> 
      <max value="1"/> 
    </element> 
    <element id="ActivityDefinition.url">
      <path value="ActivityDefinition.url"/> 
      <min value="1"/> 
      <max value="1"/> 
      <type> 
        <code value="uri"/> 
      </type> 
    </element> 
    <element id="ActivityDefinition.identifier">
      <path value="ActivityDefinition.identifier"/> 
      <mustSupport value="true"/> 
    </element> 
    <element id="ActivityDefinition.version">
      <path value="ActivityDefinition.version"/> 
      <min value="1"/> 
      <max value="1"/> 
      <type> 
        <code value="string"/> 
      </type> 
    </element> 
    <element id="ActivityDefinition.name">
      <path value="ActivityDefinition.name"/> 
      <min value="1"/> 
      <max value="1"/> 
      <type> 
        <code value="string"/> 
      </type> 
    </element> 
    <element id="ActivityDefinition.title">
      <path value="ActivityDefinition.title"/> 
      <min value="0"/> 
      <max value="1"/> 
      <mustSupport value="true"/> 
    </element> 
    <element id="ActivityDefinition.experimental">
      <path value="ActivityDefinition.experimental"/> 
      <min value="1"/> 
      <max value="1"/> 
      <type> 
        <code value="boolean"/> 
      </type> 
    </element> 
    <element id="ActivityDefinition.date">
      <path value="ActivityDefinition.date"/> 
      <min value="0"/> 
      <max value="1"/> 
      <mustSupport value="true"/> 
    </element> 
    <element id="ActivityDefinition.publisher">
      <path value="ActivityDefinition.publisher"/> 
      <alias value="steward"/> 
      <min value="1"/> 
      <max value="1"/> 
      <type> 
        <code value="string"/> 
      </type> 
    </element> 
    <element id="ActivityDefinition.contact">
      <path value="ActivityDefinition.contact"/> 
      <mustSupport value="true"/> 
    </element> 
    <element id="ActivityDefinition.description">
      <path value="ActivityDefinition.description"/> 
      <alias value="scope"/> 
      <min value="1"/> 
      <max value="1"/> 
      <type> 
        <code value="markdown"/> 
      </type> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ActivityDefinition.useContext">
      <path value="ActivityDefinition.useContext"/> 
      <mustSupport value="true"/> 
    </element> 
    <element id="ActivityDefinition.jurisdiction">
      <path value="ActivityDefinition.jurisdiction"/> 
      <mustSupport value="true"/> 
    </element> 
  </differential> 
</StructureDefinition>