NCCN Templates® 1.0

StructureDefinition-regimen-entry-template


<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="regimen-entry-template"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>url</b>: <a href="http://nccn.org/fhir/StructureDefinition/regimen-entry-template">http://nccn.org/fhir/StructureDefinition/regimen-entry-template</a></p><p><b>version</b>: 1</p><p><b>name</b>: Regimen Entry Template</p><p><b>status</b>: DRAFT</p><p><b>date</b>: Apr 14, 2017</p><p><b>publisher</b>: The National Comprehensive Cancer Network</p><p><b>contact</b>: </p><p><b>url</b>: <a href="http://nccn.org/fhir/StructureDefinition/regimen-entry-template">http://nccn.org/fhir/StructureDefinition/regimen-entry-template</a></p><p><b>version</b>: 1</p><p><b>name</b>: Regimen Entry Template</p><p><b>status</b>: DRAFT</p><p><b>date</b>: Apr 14, 2017</p><p><b>publisher</b>: The National Comprehensive Cancer Network</p><p><b>contact</b>: </p><p><b>fhirVersion</b>: 1.9.0</p><blockquote><p><b>mapping</b></p><p><b>identity</b>: workflow</p><p><b>uri</b>: <a href="http://hl7.org/fhir/workflow">http://hl7.org/fhir/workflow</a></p><p><b>name</b>: Workflow Mapping</p></blockquote><blockquote><p><b>mapping</b></p><p><b>identity</b>: w5</p><p><b>uri</b>: <a href="http://hl7.org/fhir/w5">http://hl7.org/fhir/w5</a></p><p><b>name</b>: W5 Mapping</p></blockquote><blockquote><p><b>mapping</b></p><p><b>identity</b>: objimpl</p><p><b>uri</b>: <a href="http://hl7.org/fhir/object-implementation">http://hl7.org/fhir/object-implementation</a></p><p><b>name</b>: Object Implementation Information</p></blockquote><blockquote><p><b>mapping</b></p><p><b>identity</b>: rim</p><p><b>uri</b>: <a href="http://hl7.org/v3">http://hl7.org/v3</a></p><p><b>name</b>: RIM Mapping</p></blockquote><p><b>kind</b>: RESOURCE</p><p><b>abstract</b>: false</p><p><b>type</b>: ActivityDefinition</p><p><b>baseDefinition</b>: <a href="http://hl7.org/fhir/StructureDefinition/ActivityDefinition">http://hl7.org/fhir/StructureDefinition/ActivityDefinition</a></p><p><b>derivation</b>: CONSTRAINT</p><h3>Snapshots</h3><table class="grid"><tr><td>-</td><td><b>Element</b></td></tr><tr><td>*</td><td>todo-bundle</td></tr></table><h3>Differentials</h3><table class="grid"><tr><td>-</td><td><b>Element</b></td></tr><tr><td>*</td><td>todo-bundle</td></tr></table></div>
  </text>
  <url value="http://nccn.org/fhir/StructureDefinition/regimen-entry-template"/>
  <version value="1"/>
  <name value="Regimen Entry Template"/>
  <status value="draft"/>
  <date value="2017-04-14"/>
  <publisher value="The National Comprehensive Cancer Network"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://nccn.org"/>
    </telecom>
  </contact>
  <fhirVersion value="1.9.0"/>
  <mapping>
    <identity value="workflow"/>
    <uri value="http://hl7.org/fhir/workflow"/>
    <name value="Workflow Mapping"/>
  </mapping>
  <mapping>
    <identity value="w5"/>
    <uri value="http://hl7.org/fhir/w5"/>
    <name value="W5 Mapping"/>
  </mapping>
  <mapping>
    <identity value="objimpl"/>
    <uri value="http://hl7.org/fhir/object-implementation"/>
    <name value="Object Implementation Information"/>
  </mapping>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </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:regimenentrytemplate">
      <path value="ActivityDefinition"/>
      <sliceName value="regimenEntryTemplate"/>
      <short value="NCCN Order Template Profile"/>
      <definition
                  value="The NCCN Order Template Profile is based upon the core FHIR PlanDefinition Resource and designed to improve the safety and effectiveness of cancer treatment protocols."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ActivityDefinition"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <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="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-1"/>
        <severity value="error"/>
        <human
               value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/>
        <expression value="contained.text.empty()"/>
        <xpath value="not(parent::f:contained and f:text)"/>
        <source value="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="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"/>
        <expression
                    value="contained.where((&#39;#&#39;+id in %resource.descendants().reference).not()).empty()"/>
        <xpath
               value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat(&#39;#&#39;, $id))]))"/>
        <source value="DomainResource"/>
      </constraint>
      <mustSupport value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="clinical.general"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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="1"/>
      <max value="1"/>
      <base>
        <path value="Resource.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="id"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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 may not always be associated with version changes to the resource."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Resource.meta"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Meta"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.id">
      <path value="ActivityDefinition.meta.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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="0"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mustSupport value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.extension">
      <path value="ActivityDefinition.meta.extension"/>
      <short value="Extension"/>
      <definition value="An Extension"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.versionId">
      <path value="ActivityDefinition.meta.versionId"/>
      <short value="The version of this order template"/>
      <definition
                  value="On the NCCN FHIR server, this will always be in a format like [external version].[internal version]. The external version number is incremented each time the template is duplicated into a new version. The internal version number will increment with each save. Only published versions will be available from the API."/>
      <comment
               value="This version number can be used for finding and retrieving specific versions of an OrderTemplate via the API. However, data consumers should use PlanDefinition.version as the primary source of version information because FHIR servers may override the Meta.versionId when a resource is copied."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Meta.versionId"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="id"/>
      </type>
      <example>
        <label value="General"/>
        <valueId value="1.1000000000000001"/>
      </example>
      <mustSupport value="false"/>
      <isSummary value="true"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.lastUpdated">
      <path value="ActivityDefinition.meta.lastUpdated"/>
      <short value="When the resource version last changed"/>
      <definition
                  value="When the resource last changed - e.g. when the version changed."/>
      <comment
               value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Meta.lastUpdated"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="instant"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.profile">
      <path value="ActivityDefinition.meta.profile"/>
      <short value="Profiles this resource claims to conform to"/>
      <definition
                  value="A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url]()."/>
      <comment
               value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Meta.profile"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <fixedUri value="http://nccn.org/fhir/StructureDefinition/regimen-entry"/>
      <mustSupport value="false"/>
      <isSummary value="true"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.security">
      <path value="ActivityDefinition.meta.security"/>
      <short value="Security Labels applied to this resource"/>
      <definition
                  value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/>
      <comment
               value="The security labels can be updated without changing the stated version of the resource  The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Meta.security"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Coding"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SecurityLabels"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description
                     value="Security Labels from the Healthcare Privacy and Security Classification System."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-labels"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.tag">
      <path value="ActivityDefinition.meta.tag"/>
      <short value="Tags applied to this resource"/>
      <definition
                  value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/>
      <comment
               value="The tags can be updated without changing the stated version of the resource.  The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Meta.tag"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Coding"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Tags"/>
        </extension>
        <strength value="example"/>
        <description
                     value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/common-tags"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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."/>
      <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 as much as possible."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Resource.implicitRules"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="true"/>
      <isSummary value="true"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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="0"/>
      <base>
        <path value="Resource.language"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="false"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
          </valueReference>
        </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="extensible"/>
        <description value="A human language."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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 may 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 in formation is added later."/>
      <alias value="narrative"/>
      <alias value="html"/>
      <alias value="xhtml"/>
      <alias value="display"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="DomainResource.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Narrative"/>
      </type>
      <condition value="dom-1"/>
      <mustSupport value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="Act.text?"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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."/>
      <alias value="inline resources"/>
      <alias value="anonymous resources"/>
      <alias value="contained resources"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="DomainResource.contained"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Resource"/>
      </type>
      <mustSupport value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.extension">
      <path value="ActivityDefinition.extension"/>
      <short value="Extension"/>
      <definition value="An Extension"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="DomainResource.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.modifierExtension">
      <path value="ActivityDefinition.modifierExtension"/>
      <short value="Extension"/>
      <definition value="An Extension"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="DomainResource.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="true"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.url">
      <path value="ActivityDefinition.url"/>
      <short
             value="Logical uri to reference this activity definition (globally unique)"/>
      <definition
                  value="An absolute URL that is used to identify this activity definition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this activity definition is (or will be) published. The URL SHOULD include the major version of the activity definition. For more information see [Technical and Business Versions](resource.html#versions)."/>
      <comment
               value="Can be a urn:uuid: or a urn:oid:, but real http: addresses are preferred."/>
      <requirements
                    value="Allows the activity definition to be referenced by a single globally unique identifier."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.url"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.url"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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 data type - e.g. to identify this activity definition outside of FHIR, where the logical URL is not possible to use."/>
      <requirements
                    value="Allows externally provided and/or useable business identifiers to be easily associated with the module."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.identifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Identifier"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.identifier"/>
      </mapping>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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 are orderable. 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 multiple different instances of a activity definition that have the same identifier but different versions."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.version"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.version"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id.version"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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 alpha-numeric type name to ensure it is computable friendly."/>
      <requirements value="Support human navigation &amp; code generation."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.name"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.title"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.title"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.status">
      <path value="ActivityDefinition.status"/>
      <short value="&quot;active&quot; if the template is currently published"/>
      <definition
                  value="The status of this activity definition. Enables tracking the life-cycle of the content."/>
      <comment
               value="Allows filtering of activity definition that are appropriate for use vs. not."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ActivityDefinition.status"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="true"/>
      <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 a Value Set or Concept Map."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/publication-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="workflow"/>
        <map value="Definitition.status (different ValueSet)"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.experimental">
      <path value="ActivityDefinition.experimental"/>
      <short value="If for testing purposes, not real usage"/>
      <definition
                  value="A flag 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 definition that are appropriate for use vs. not."/>
      <requirements
                    value="Enables experimental content to be developed following the same life-cycle as a production-level activity definition would."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.experimental"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.experimental"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.date">
      <path value="ActivityDefinition.date"/>
      <short value="Date this was last changed"/>
      <definition
                  value="The date  (and optionally time) when the activity definition was published. The date must change when the business version changes, if it does, 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."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.date"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.date"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.recorded"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.publisher">
      <path value="ActivityDefinition.publisher"/>
      <short value="Name of the publisher (Organization or individual)"/>
      <definition
                  value="The name of the individual or organization 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."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.publisher"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <fixedString value="National Comprehensive Cancer Network"/>
      <mustSupport 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="who.witness"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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 the consumer&#39;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 profile is presumed to be the predominant language in the place the profile was created)."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.description"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="markdown"/>
      </type>
      <mustSupport value="false"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.description"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.purpose">
      <path value="ActivityDefinition.purpose"/>
      <short value="Why this activity definition is defined"/>
      <definition
                  value="Explains 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 (See, e.g, the comments element, or relatedArtifacts), rather it&#39;s for traceability of &#39;&#39;why&#39;&#39; the resource is either needed or &#39;&#39;why&#39;&#39; 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="0"/>
      <base>
        <path value="ActivityDefinition.purpose"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="markdown"/>
      </type>
      <mustSupport value="false"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.purpose"/>
      </mapping>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="why"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.usage">
      <path value="ActivityDefinition.usage"/>
      <short value="Describes the clinical usage of the asset"/>
      <definition
                  value="A detailed description of how the asset is used from a clinical perspective."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.usage"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.approvalDate">
      <path value="ActivityDefinition.approvalDate"/>
      <short value="When the activity definition was approved by publisher"/>
      <definition
                  value="The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage."/>
      <comment
               value="The date may be more recent than the approval date because of minor changes / editorial corrections."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.approvalDate"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="date"/>
      </type>
      <mustSupport value="false"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.approvalDate"/>
      </mapping>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.lastReviewDate">
      <path value="ActivityDefinition.lastReviewDate"/>
      <short value="When the activity definition was last reviewed"/>
      <definition
                  value="The date on which the asset content was last reviewed. Review happens periodically after approval, but doesn&#39;t change the original approval date."/>
      <comment value="If specified, this is usually after the approval date."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.lastReviewDate"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="date"/>
      </type>
      <mustSupport value="false"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.lastReviewDate"/>
      </mapping>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.effectivePeriod">
      <path value="ActivityDefinition.effectivePeriod"/>
      <short value="When the activity definition is effective"/>
      <definition
                  value="The period during which the activity definition content was or is planned to be effective."/>
      <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 would be published in 2015."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.effectivePeriod"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Period"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.effectivePeriod"/>
      </mapping>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.useContext">
      <path value="ActivityDefinition.useContext"/>
      <short value="Content intends to support these contexts"/>
      <definition
                  value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions."/>
      <comment
               value="When multiple usageContexts are specified, there is no expectation for whether all or any of the contexts apply."/>
      <requirements value="Assist in searching for appropriate content."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.useContext"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="UsageContext"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.useContext"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.jurisdiction">
      <path value="ActivityDefinition.jurisdiction"/>
      <short
             value="Intended jurisdiction for activity definition (if applicable)"/>
      <definition
                  value="A jurisdiction in which the activity definition is intended to be used."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.jurisdiction"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport 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"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/jurisdiction"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.jurisdiction"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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 asset  so that it can be found by topical searches."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.topic"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport 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"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/definition-topic"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.contributor">
      <path value="ActivityDefinition.contributor"/>
      <short value="A content contributor"/>
      <definition
                  value="A contributor to the content of the asset, including authors, editors, reviewers, and endorsers."/>
      <requirements
                    value="Consumers of the content must be able to quickly determine who contributed to the content of the knowledge asset."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.contributor"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Contributor"/>
      </type>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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="0"/>
      <base>
        <path value="ActivityDefinition.contact"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="ContactDetail"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.contact"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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 of the library 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="0"/>
      <base>
        <path value="ActivityDefinition.copyright"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="markdown"/>
      </type>
      <mustSupport value="false"/>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.copyright"/>
      </mapping>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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="Assets 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="0"/>
      <base>
        <path value="ActivityDefinition.relatedArtifact"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="RelatedArtifact"/>
      </type>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.library">
      <path value="ActivityDefinition.library"/>
      <short value="Logic used by the asset"/>
      <definition
                  value="A reference to a Library resource containing any formal logic used by the asset."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.library"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Library"/>
      </type>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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 ProcedureRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource."/>
      <comment value="May determine what types of extensions are permitted."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ActivityDefinition.kind"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <fixedCode value="MedicationRequest"/>
      <mustSupport value="false"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityDefinitionKind"/>
        </extension>
        <strength value="required"/>
        <description value="The kind of activity the definition is describing"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/resource-types"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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="0"/>
      <base>
        <path value="ActivityDefinition.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="false"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityDefinitionType"/>
        </extension>
        <strength value="example"/>
        <description value="Detailed type of planned activity; e.g. CBC"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/procedure-code"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="workflow"/>
        <map value="Definition.subjectCodeableConcept"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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="0"/>
      <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="Period"/>
      </type>
      <type>
        <code value="Range"/>
      </type>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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="0"/>
      <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>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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="0"/>
      <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"/>
        <expression value="children().count() &gt; id.count()"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.participant.id">
      <path value="ActivityDefinition.participant.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.participant.modifierExtension">
      <path value="ActivityDefinition.participant.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.participant.type">
      <path value="ActivityDefinition.participant.type"/>
      <short value="patient | practitioner | related-person"/>
      <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>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ActivityParticipantType"/>
        </extension>
        <strength value="required"/>
        <description
                     value="The type of participant for an action in the orderset"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/action-participant-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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>
      <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"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/action-participant-role"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.productCodeableConcept">
      <path value="ActivityDefinition.productCodeableConcept"/>
      <short value="What&#39;s administered/supplied"/>
      <definition
                  value="Identifies the food, drug or other product being consumed or supplied in the activity."/>
      <alias value="agent"/>
      <alias value="medication"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ActivityDefinition.product[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="false"/>
      <binding>
        <strength value="required"/>
        <description
                     value="Concepts from RxNorm with a term type of IN, PIN, or MIN"/>
        <valueSetReference>
          <reference value="http://nccn.org/fhir/ValueSet/rxnorm-ingredients"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.quantity">
      <path value="ActivityDefinition.quantity"/>
      <short value="regimen options"/>
      <definition
                  value="Identifies the quantity expected to be consumed at once (per dose, per meal, etc.)."/>
      <alias value="dose"/>
      <min value="0"/>
      <max value="0"/>
      <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>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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="In the current version of the NCCN Chemotherapy Order Template Tool, if the recommended dosing changes over time (e.g. dose titration), each dosage will be listed in its own ActivityDefinition."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ActivityDefinition.dosage"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Dosage"/>
      </type>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.id">
      <path value="ActivityDefinition.dosage.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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="0"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mustSupport value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.extension:isfullystructured">
      <path value="ActivityDefinition.dosage.extension"/>
      <sliceName value="isFullyStructured"/>
      <short value="Extension"/>
      <definition value="An Extension"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
        <profile
                 value="http://nccn.org/fhir/StructureDefinition/fullyStructured"/>
      </type>
      <condition value="ele-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="children().count() &gt; id.count()"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="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(.), &#39;value&#39;)])"/>
        <source value="Extension"/>
      </constraint>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.sequence">
      <path value="ActivityDefinition.dosage.sequence"/>
      <short value="The order of the dosage instructions"/>
      <definition
                  value="Indicates the order in which the dosage instructions should be applied or interpreted."/>
      <requirements
                    value="If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent.  If the sequence number is different, then the Dosages are intended to be sequential."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Dosage.sequence"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="integer"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.text">
      <path value="ActivityDefinition.dosage.text"/>
      <short value="Free text dosage instructions e.g. SIG"/>
      <definition value="Free text dosage instructions e.g. SIG."/>
      <requirements
                    value="Free text dosage instructions can be used for cases where the instructions are too complex to code.  The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated.  If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Dosage.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.additionalInstruction">
      <path value="ActivityDefinition.dosage.additionalInstruction"/>
      <short value="Supplemental instruction - e.g. &quot;with meals&quot;"/>
      <definition
                  value="Supplemental instruction - e.g. &quot;with meals&quot;."/>
      <requirements
                    value="Additional instruction such as &quot;Swallow with plenty of water&quot; which may or may not be coded."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Dosage.additionalInstruction"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AdditionalInstruction"/>
        </extension>
        <strength value="example"/>
        <description
                     value="A coded concept identifying additional instructions such as &quot;take with water&quot; or &quot;avoid operating heavy machinery&quot;."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/additional-instruction-codes"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.patientInstruction">
      <path value="ActivityDefinition.dosage.patientInstruction"/>
      <short value="Patient or consumer oriented instructions"/>
      <definition
                  value="Instructions in terms that are understood by the patient or consumer."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Dosage.patientInstruction"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing">
      <path value="ActivityDefinition.dosage.timing"/>
      <short value="When medication should be administered"/>
      <definition value="When medication should be administered."/>
      <comment
               value="This attribute may not always be populated while the Dosage.text is expected to be populated.  If both are populated, then the Dosage.text should reflect the content of the Dosage.timing."/>
      <requirements
                    value="The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions. For example: &quot;Every 8 hours&quot;; &quot;Three times a day&quot;; &quot;1/2 an hour before breakfast for 10 days from 23-Dec 2011:&quot;; &quot;15 Oct 2013, 17 Oct 2013 and 1 Nov 2013&quot;.  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn&#39;t imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Dosage.timing"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Timing"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".effectiveTime"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing.id">
      <path value="ActivityDefinition.dosage.timing.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mustSupport value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.extension:daysofcycle">
      <path value="ActivityDefinition.dosage.timing.extension"/>
      <sliceName value="daysOfCycle"/>
      <short value="Extension"/>
      <definition value="An Extension"/>
      <comment value="Consider changing to the core extension in the future."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
        <profile value="http://nccn.org/fhir/StructureDefinition/daysOfCycle"/>
      </type>
      <condition value="ele-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="children().count() &gt; id.count()"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="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(.), &#39;value&#39;)])"/>
        <source value="Extension"/>
      </constraint>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing.event">
      <path value="ActivityDefinition.dosage.timing.event"/>
      <short value="When the event occurs"/>
      <definition value="Identifies specific times when the event occurs."/>
      <requirements
                    value="In an MAR, for instance, you need to take a general specification, and turn it into a precise specification."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Timing.event"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="QLIST&lt;TS&gt;"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat">
      <path value="ActivityDefinition.dosage.timing.repeat"/>
      <short value="When the event is to occur"/>
      <definition
                  value="A set of rules that describe when the event is scheduled."/>
      <requirements
                    value="Many timing schedules are determined by regular repetitions."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="children().count() &gt; id.count()"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <constraint>
        <key value="tim-9"/>
        <severity value="error"/>
        <human
               value="If there&#39;s an offset, there must be a when (and not C, CM, CD, CV)"/>
        <expression
                    value="offset.empty() or (when.exists() and ((when in (&#39;C&#39; | &#39;CM&#39; | &#39;CD&#39; | &#39;CV&#39;)).not()))"/>
        <xpath value="not(exists(f:offset)) or exists(f:when)"/>
        <source value="Timing.repeat"/>
      </constraint>
      <constraint>
        <key value="tim-5"/>
        <severity value="error"/>
        <human value="period SHALL be a non-negative value"/>
        <expression value="period.exists() implies period &gt;= 0"/>
        <xpath value="f:period/@value &gt;= 0 or not(f:period/@value)"/>
        <source value="Timing.repeat"/>
      </constraint>
      <constraint>
        <key value="tim-6"/>
        <severity value="error"/>
        <human value="If there&#39;s a periodMax, there must be a period"/>
        <expression value="periodMax.empty() or period.exists()"/>
        <xpath value="not(exists(f:periodMax)) or exists(f:period)"/>
        <source value="Timing.repeat"/>
      </constraint>
      <constraint>
        <key value="tim-7"/>
        <severity value="error"/>
        <human value="If there&#39;s a durationMax, there must be a duration"/>
        <expression value="durationMax.empty() or duration.exists()"/>
        <xpath value="not(exists(f:durationMax)) or exists(f:duration)"/>
        <source value="Timing.repeat"/>
      </constraint>
      <constraint>
        <key value="tim-8"/>
        <severity value="error"/>
        <human value="If there&#39;s a countMax, there must be a count"/>
        <expression value="countMax.empty() or count.exists()"/>
        <xpath value="not(exists(f:countMax)) or exists(f:count)"/>
        <source value="Timing.repeat"/>
      </constraint>
      <constraint>
        <key value="tim-1"/>
        <severity value="error"/>
        <human
               value="if there&#39;s a duration, there needs to be duration units"/>
        <expression value="duration.empty() or durationUnit.exists()"/>
        <xpath value="not(exists(f:duration)) or exists(f:durationUnit)"/>
        <source value="Timing.repeat"/>
      </constraint>
      <constraint>
        <key value="tim-10"/>
        <severity value="error"/>
        <human
               value="If there&#39;s a timeOfDay, there cannot be be a when, or vice versa"/>
        <expression value="timeOfDay.empty() or when.empty()"/>
        <xpath value="not(exists(f:timeofDay)) or not(exists(f:when))"/>
        <source value="Timing.repeat"/>
      </constraint>
      <constraint>
        <key value="tim-2"/>
        <severity value="error"/>
        <human value="if there&#39;s a period, there needs to be period units"/>
        <expression value="period.empty() or periodUnit.exists()"/>
        <xpath value="not(exists(f:period)) or exists(f:periodUnit)"/>
        <source value="Timing.repeat"/>
      </constraint>
      <constraint>
        <key value="tim-4"/>
        <severity value="error"/>
        <human value="duration SHALL be a non-negative value"/>
        <expression value="duration.exists() implies duration &gt;= 0"/>
        <xpath value="f:duration/@value &gt;= 0 or not(f:duration/@value)"/>
        <source value="Timing.repeat"/>
      </constraint>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="Implies PIVL or EIVL"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.id">
      <path value="ActivityDefinition.dosage.timing.repeat.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.extension">
      <path value="ActivityDefinition.dosage.timing.repeat.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.boundsRange">
      <path value="ActivityDefinition.dosage.timing.repeat.boundsRange"/>
      <short value="Length/Range of lengths, or (Start and/or end) limits"/>
      <definition
                  value="Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.bounds[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Range"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="IVL(TS) used in a QSI"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.count">
      <path value="ActivityDefinition.dosage.timing.repeat.count"/>
      <short value="Number of times to repeat"/>
      <definition value="A total count of the desired number of repetitions."/>
      <comment
               value="If you have both bounds and count, then this should be understood as within the bounds period, until count times happens."/>
      <requirements
                    value="Repetitions may be limited by end time or total occurrences."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.count"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="integer"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.count"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.countMax">
      <path value="ActivityDefinition.dosage.timing.repeat.countMax"/>
      <short value="Maximum number of times to repeat"/>
      <definition
                  value="A maximum value for the count of the desired repetitions (e.g. do something 6-8 times)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.countMax"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="integer"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.count"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.duration">
      <path value="ActivityDefinition.dosage.timing.repeat.duration"/>
      <short value="How long when it happens"/>
      <definition value="How long this thing happens for when it happens."/>
      <comment
               value="For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it&#39;s part of the timing specification (e.g. exercise)."/>
      <requirements
                    value="Some activities are not instantaneous and need to be maintained for a period of time."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.duration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="decimal"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.phase"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.durationMax">
      <path value="ActivityDefinition.dosage.timing.repeat.durationMax"/>
      <short value="How long when it happens (Max)"/>
      <definition
                  value="The upper limit of how long this thing happens for when it happens."/>
      <comment
               value="For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it&#39;s part of the timing specification (e.g. exercise)."/>
      <requirements
                    value="Some activities are not instantaneous and need to be maintained for a period of time."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.durationMax"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="decimal"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.phase"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.durationUnit">
      <path value="ActivityDefinition.dosage.timing.repeat.durationUnit"/>
      <short value="s | min | h | d | wk | mo | a - unit of time (UCUM)"/>
      <definition value="The units of time for the duration, in UCUM units."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.durationUnit"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="UnitsOfTime"/>
        </extension>
        <strength value="required"/>
        <description value="A unit of time (units from UCUM)."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/units-of-time"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.phase.unit"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.frequency">
      <path value="ActivityDefinition.dosage.timing.repeat.frequency"/>
      <short value="Event occurs frequency times per period"/>
      <definition
                  value="The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.frequency"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="integer"/>
      </type>
      <defaultValueInteger value="1"/>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.phase"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.frequencyMax">
      <path value="ActivityDefinition.dosage.timing.repeat.frequencyMax"/>
      <short value="Event occurs up to frequencyMax times per period"/>
      <definition
                  value="If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.frequencyMax"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="integer"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.phase"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.period">
      <path value="ActivityDefinition.dosage.timing.repeat.period"/>
      <short value="Event occurs frequency times per period"/>
      <definition
                  value="Indicates the duration of time over which repetitions are to occur; e.g. to express &quot;3 times per day&quot;, 3 would be the frequency and &quot;1 day&quot; would be the period."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.period"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="decimal"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.phase"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.periodMax">
      <path value="ActivityDefinition.dosage.timing.repeat.periodMax"/>
      <short value="Upper limit of period (3-4 hours)"/>
      <definition
                  value="If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as &quot;do this once every 3-5 days."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.periodMax"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="decimal"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.phase"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.periodUnit">
      <path value="ActivityDefinition.dosage.timing.repeat.periodUnit"/>
      <short value="s | min | h | d | wk | mo | a - unit of time (UCUM)"/>
      <definition value="The units of time for the period in UCUM units."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Timing.repeat.periodUnit"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="UnitsOfTime"/>
        </extension>
        <strength value="required"/>
        <description value="A unit of time (units from UCUM)."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/units-of-time"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="PIVL.phase.unit"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.dayOfWeek">
      <path value="ActivityDefinition.dosage.timing.repeat.dayOfWeek"/>
      <short value="mon | tue | wed | thu | fri | sat | sun"/>
      <definition
                  value="If one or more days of week is provided, then the action happens only on the specified day(s)."/>
      <comment
               value="If no days are specified, the action is assumed to happen every day as otherwise specified. The elements frequency and period cannot be used as well as dayOfWeek."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Timing.repeat.dayOfWeek"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DayOfWeek"/>
        </extension>
        <strength value="required"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/days-of-week"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.timeOfDay">
      <path value="ActivityDefinition.dosage.timing.repeat.timeOfDay"/>
      <short value="Time of day for action"/>
      <definition value="Specified time of day for action to take place."/>
      <comment
               value="When time of day is specified, it is inferred that the action happens every day (as filtered by dayofWeek) on the specified times. The elements when, frequency and period cannot be used as well as timeOfDay."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Timing.repeat.timeOfDay"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="time"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.when">
      <path value="ActivityDefinition.dosage.timing.repeat.when"/>
      <short value="Regular life events the event is tied to"/>
      <definition
                  value="Real world events that the occurrence of the event should be tied to."/>
      <comment
               value="When more than one event is listed, the event is tied to the union of the specified events."/>
      <requirements
                    value="Timings are frequently determined by occurrences such as waking, eating and sleep."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Timing.repeat.when"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EventTiming"/>
        </extension>
        <strength value="required"/>
        <description value="Real world event that the relating to the schedule."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/event-timing"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="EIVL.event"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.offset">
      <path value="ActivityDefinition.dosage.timing.repeat.offset"/>
      <short value="Minutes from event (before or after)"/>
      <definition
                  value="The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Timing.repeat.offset"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="unsignedInt"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="EIVL.offset"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing.code">
      <path value="ActivityDefinition.dosage.timing.code"/>
      <short value="BID | TID | QID | AM | PM | QD | QOD | Q4H | Q6H +"/>
      <definition
                  value="A code for the timing schedule. Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code)."/>
      <comment
               value="BID etc are defined as &#39;at institutionally specified times&#39;. For example, an institution may choose that BID is &quot;always at 7am and 6pm&quot;.  If it is inappropriate for this choice to be made, the code BID should not be used. Instead, a distinct organization-specific code should be used in place of the HL7-defined BID code and/or the a structured representation should be used (in this case, specifying the two event times)."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Timing.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TimingAbbreviation"/>
        </extension>
        <strength value="preferred"/>
        <description value="Code for a known / defined timing pattern."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/timing-abbreviation"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="QSC.code"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.asNeeded[x]">
      <path value="ActivityDefinition.dosage.asNeeded[x]"/>
      <short value="Take &quot;as needed&quot; (for x)"/>
      <definition
                  value="Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept)."/>
      <comment
               value="Can express &quot;as needed&quot; without a reason by setting the Boolean = True.  In this case the CodeableConcept is not populated.  Or you can express &quot;as needed&quot; with a reason by including the CodeableConcept.  In this case the Boolean is assumed to be True.  If you set the Boolean to False, then the dose is given according to the schedule and is not &quot;prn&quot; or &quot;as needed&quot;."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Dosage.asNeeded[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MedicationAsNeededReason"/>
        </extension>
        <strength value="example"/>
        <description
                     value="A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example &quot;pain&quot;, &quot;30 minutes prior to sexual intercourse&quot;, &quot;on flare-up&quot; etc."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/medication-as-needed-reason"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map
             value=".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code=&quot;as needed&quot;].value=boolean or codable concept"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.site">
      <path value="ActivityDefinition.dosage.site"/>
      <short value="Body site to administer to"/>
      <definition value="Body site to administer to."/>
      <comment
               value="If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [body-site-instance](extension-body-site-instance.html).  May be a summary code, or a reference to a very precise definition of the location, or both."/>
      <requirements
                    value="A coded specification of the anatomic site where the medication first enters the body."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Dosage.site"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MedicationAdministrationSite"/>
        </extension>
        <strength value="example"/>
        <description
                     value="A coded concept describing the site location the medicine enters into or onto the body."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/approach-site-codes"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".approachSiteCode"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.route">
      <path value="ActivityDefinition.dosage.route"/>
      <short value="How drug should enter body"/>
      <definition value="How drug should enter body."/>
      <requirements
                    value="A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient&#39;s body."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Dosage.route"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RouteOfAdministration"/>
        </extension>
        <strength value="example"/>
        <description
                     value="A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/route-codes"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".routeCode"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.method">
      <path value="ActivityDefinition.dosage.method"/>
      <short value="Technique for administering medication"/>
      <definition value="Technique for administering medication."/>
      <comment value="Only populated for IV push and IV continuous infusion."/>
      <requirements
                    value="A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections.  For examples, Slow Push; Deep IV."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Dosage.method"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <binding>
        <strength value="required"/>
        <description
                     value="Specifies the method of administration for an IV medication"/>
        <valueSetReference>
          <reference
                     value="http://nccn.org/fhir/ValueSet/iv-administration-methods"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".doseQuantity"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.dose[x]">
      <path value="ActivityDefinition.dosage.dose[x]"/>
      <short value="Amount of medication per dose"/>
      <definition value="Amount of medication per dose."/>
      <comment
               value="How to declare an extension that can appear on either doseQuanityt OR doseRange?"/>
      <requirements
                    value="The amount of therapeutic or other substance given at one administration event."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Dosage.dose[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Range"/>
      </type>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".doseQuantity"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.maxDosePerPeriod">
      <path value="ActivityDefinition.dosage.maxDosePerPeriod"/>
      <short value="Upper limit on medication per unit of time"/>
      <definition value="Upper limit on medication per unit of time."/>
      <comment
               value="This is intended for use as an adjunct to the dosage when there is an upper cap.  For example &quot;2 tablets every 4 hours to a maximum of 8/day&quot;."/>
      <requirements
                    value="The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Dosage.maxDosePerPeriod"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Ratio"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".maxDoseQuantity"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.maxDosePerAdministration">
      <path value="ActivityDefinition.dosage.maxDosePerAdministration"/>
      <short value="Upper limit on medication per administration"/>
      <definition value="Upper limit on medication per administration."/>
      <comment
               value="This is intended for use as an adjunct to the dosage when there is an upper cap.  For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg."/>
      <requirements
                    value="The maximum total quantity of a therapeutic substance that may be administered to a subject per administration."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Dosage.maxDosePerAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="not supported"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.maxDosePerLifetime">
      <path value="ActivityDefinition.dosage.maxDosePerLifetime"/>
      <short value="Upper limit on medication per lifetime of the patient"/>
      <definition value="Upper limit on medication per lifetime of the patient."/>
      <requirements
                    value="The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Dosage.maxDosePerLifetime"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="not supported"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.rate[x]">
      <path value="ActivityDefinition.dosage.rate[x]"/>
      <short value="Amount of medication per unit of time"/>
      <definition value="Amount of medication per unit of time."/>
      <comment
               value="It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate."/>
      <requirements
                    value="Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn&#39;t imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Dosage.rate[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Ratio"/>
      </type>
      <type>
        <code value="Range"/>
      </type>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mustSupport value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".rateQuantity"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.bodySite">
      <path value="ActivityDefinition.bodySite"/>
      <short value="What part of body to perform on"/>
      <definition
                  value="Indicates the sites on the subject&#39;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 ProcedureRequest.type."/>
      <requirements
                    value="Knowing where the procedure is made is important for tracking if multiple sites are possible."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.bodySite"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport 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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/body-site"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="workflow"/>
        <map value="Procedure.targetBodySite"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="targetSiteCode"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="ActivityDefinition.transform"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/StructureMap"/>
      </type>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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&#39;s weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the intent resource that would contain the result."/>
      <min value="0"/>
      <max value="0"/>
      <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"/>
        <expression value="children().count() &gt; id.count()"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <mustSupport value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dynamicValue.id">
      <path value="ActivityDefinition.dynamicValue.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dynamicValue.modifierExtension">
      <path value="ActivityDefinition.dynamicValue.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dynamicValue.description">
      <path value="ActivityDefinition.dynamicValue.description"/>
      <short value="Natural language description of the dynamic value"/>
      <definition
                  value="A brief, natural language description of the intended semantics of the dynamic value."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ActivityDefinition.dynamicValue.description"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.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."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ActivityDefinition.dynamicValue.path"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dynamicValue.language">
      <path value="ActivityDefinition.dynamicValue.language"/>
      <short value="Language of the expression"/>
      <definition value="The media type of the language for the expression."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ActivityDefinition.dynamicValue.language"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.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="0"/>
      <max value="1"/>
      <base>
        <path value="ActivityDefinition.dynamicValue.expression"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
  </snapshot>
  <differential>
    <element id="ActivityDefinition:regimenentrytemplate">
      <path value="ActivityDefinition"/>
      <sliceName value="regimenEntryTemplate"/>
      <short value="NCCN Order Template Profile"/>
      <definition
                  value="The NCCN Order Template Profile is based upon the core FHIR PlanDefinition Resource and designed to improve the safety and effectiveness of cancer treatment protocols."/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.id">
      <path value="ActivityDefinition.id"/>
      <min value="1"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta">
      <path value="ActivityDefinition.meta"/>
      <min value="1"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.id">
      <path value="ActivityDefinition.meta.id"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.extension">
      <path value="ActivityDefinition.meta.extension"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.versionId">
      <path value="ActivityDefinition.meta.versionId"/>
      <short value="The version of this order template"/>
      <definition
                  value="On the NCCN FHIR server, this will always be in a format like [external version].[internal version]. The external version number is incremented each time the template is duplicated into a new version. The internal version number will increment with each save. Only published versions will be available from the API."/>
      <comment
               value="This version number can be used for finding and retrieving specific versions of an OrderTemplate via the API. However, data consumers should use PlanDefinition.version as the primary source of version information because FHIR servers may override the Meta.versionId when a resource is copied."/>
      <min value="0"/>
      <max value="0"/>
      <type>
        <code value="id"/>
      </type>
      <example>
        <label value="General"/>
        <valueId value="1.1000000000000001"/>
      </example>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.lastUpdated">
      <path value="ActivityDefinition.meta.lastUpdated"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.profile">
      <path value="ActivityDefinition.meta.profile"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <fixedUri value="http://nccn.org/fhir/StructureDefinition/regimen-entry"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.security">
      <path value="ActivityDefinition.meta.security"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.meta.tag">
      <path value="ActivityDefinition.meta.tag"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.implicitRules">
      <path value="ActivityDefinition.implicitRules"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.language">
      <path value="ActivityDefinition.language"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.text">
      <path value="ActivityDefinition.text"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.contained">
      <path value="ActivityDefinition.contained"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.extension">
      <path value="ActivityDefinition.extension"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.modifierExtension">
      <path value="ActivityDefinition.modifierExtension"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="true"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.url">
      <path value="ActivityDefinition.url"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.identifier">
      <path value="ActivityDefinition.identifier"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.version">
      <path value="ActivityDefinition.version"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.name">
      <path value="ActivityDefinition.name"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.title">
      <path value="ActivityDefinition.title"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.status">
      <path value="ActivityDefinition.status"/>
      <short value="&quot;active&quot; if the template is currently published"/>
      <min value="1"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.experimental">
      <path value="ActivityDefinition.experimental"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.date">
      <path value="ActivityDefinition.date"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.publisher">
      <path value="ActivityDefinition.publisher"/>
      <min value="0"/>
      <max value="0"/>
      <type>
        <code value="string"/>
      </type>
      <fixedString value="National Comprehensive Cancer Network"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.description">
      <path value="ActivityDefinition.description"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.purpose">
      <path value="ActivityDefinition.purpose"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.usage">
      <path value="ActivityDefinition.usage"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.approvalDate">
      <path value="ActivityDefinition.approvalDate"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.lastReviewDate">
      <path value="ActivityDefinition.lastReviewDate"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.effectivePeriod">
      <path value="ActivityDefinition.effectivePeriod"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.useContext">
      <path value="ActivityDefinition.useContext"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.jurisdiction">
      <path value="ActivityDefinition.jurisdiction"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.topic">
      <path value="ActivityDefinition.topic"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.contributor">
      <path value="ActivityDefinition.contributor"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.contact">
      <path value="ActivityDefinition.contact"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.copyright">
      <path value="ActivityDefinition.copyright"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.relatedArtifact">
      <path value="ActivityDefinition.relatedArtifact"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.library">
      <path value="ActivityDefinition.library"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.kind">
      <path value="ActivityDefinition.kind"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <fixedCode value="MedicationRequest"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.code">
      <path value="ActivityDefinition.code"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.timing[x]">
      <path value="ActivityDefinition.timing[x]"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.location">
      <path value="ActivityDefinition.location"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.participant">
      <path value="ActivityDefinition.participant"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.productCodeableConcept">
      <path value="ActivityDefinition.productCodeableConcept"/>
      <alias value="agent"/>
      <alias value="medication"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="false"/>
      <binding>
        <strength value="required"/>
        <description
                     value="Concepts from RxNorm with a term type of IN, PIN, or MIN"/>
        <valueSetReference>
          <reference value="http://nccn.org/fhir/ValueSet/rxnorm-ingredients"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.quantity">
      <path value="ActivityDefinition.quantity"/>
      <short value="regimen options"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage">
      <path value="ActivityDefinition.dosage"/>
      <comment
               value="In the current version of the NCCN Chemotherapy Order Template Tool, if the recommended dosing changes over time (e.g. dose titration), each dosage will be listed in its own ActivityDefinition."/>
      <min value="1"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.id">
      <path value="ActivityDefinition.dosage.id"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.extension:isfullystructured">
      <path value="ActivityDefinition.dosage.extension"/>
      <sliceName value="isFullyStructured"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Extension"/>
        <profile
                 value="http://nccn.org/fhir/StructureDefinition/fullyStructured"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.sequence">
      <path value="ActivityDefinition.dosage.sequence"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.text">
      <path value="ActivityDefinition.dosage.text"/>
      <min value="1"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.additionalInstruction">
      <path value="ActivityDefinition.dosage.additionalInstruction"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.patientInstructions">
      <path value="ActivityDefinition.dosage.patientInstructions"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing">
      <path value="ActivityDefinition.dosage.timing"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing.id">
      <path value="ActivityDefinition.dosage.timing.id"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.extension:daysofcycle">
      <path value="ActivityDefinition.dosage.timing.extension"/>
      <sliceName value="daysOfCycle"/>
      <comment value="Consider changing to the core extension in the future."/>
      <type>
        <code value="Extension"/>
        <profile value="http://nccn.org/fhir/StructureDefinition/daysOfCycle"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing.event">
      <path value="ActivityDefinition.dosage.timing.event"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat">
      <path value="ActivityDefinition.dosage.timing.repeat"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.boundsRange">
      <path value="ActivityDefinition.dosage.timing.repeat.boundsRange"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Range"/>
      </type>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.count">
      <path value="ActivityDefinition.dosage.timing.repeat.count"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.countMax">
      <path value="ActivityDefinition.dosage.timing.repeat.countMax"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.duration">
      <path value="ActivityDefinition.dosage.timing.repeat.duration"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.durationMax">
      <path value="ActivityDefinition.dosage.timing.repeat.durationMax"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.durationUnit">
      <path value="ActivityDefinition.dosage.timing.repeat.durationUnit"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.frequency">
      <path value="ActivityDefinition.dosage.timing.repeat.frequency"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.frequencyMax">
      <path value="ActivityDefinition.dosage.timing.repeat.frequencyMax"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.period">
      <path value="ActivityDefinition.dosage.timing.repeat.period"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.periodMax">
      <path value="ActivityDefinition.dosage.timing.repeat.periodMax"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.periodUnit">
      <path value="ActivityDefinition.dosage.timing.repeat.periodUnit"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.dayOfWeek">
      <path value="ActivityDefinition.dosage.timing.repeat.dayOfWeek"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.timeOfDay">
      <path value="ActivityDefinition.dosage.timing.repeat.timeOfDay"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.when">
      <path value="ActivityDefinition.dosage.timing.repeat.when"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.timing.repeat.offset">
      <path value="ActivityDefinition.dosage.timing.repeat.offset"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.timing.code">
      <path value="ActivityDefinition.dosage.timing.code"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.asNeeded[x]">
      <path value="ActivityDefinition.dosage.asNeeded[x]"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.site">
      <path value="ActivityDefinition.dosage.site"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.route">
      <path value="ActivityDefinition.dosage.route"/>
      <min value="1"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.method">
      <path value="ActivityDefinition.dosage.method"/>
      <comment value="Only populated for IV push and IV continuous infusion."/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
      <binding>
        <strength value="required"/>
        <description
                     value="Specifies the method of administration for an IV medication"/>
        <valueSetReference>
          <reference
                     value="http://nccn.org/fhir/ValueSet/iv-administration-methods"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.dose[x]">
      <path value="ActivityDefinition.dosage.dose[x]"/>
      <comment
               value="How to declare an extension that can appear on either doseQuanityt OR doseRange?"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.maxDosePerPeriod">
      <path value="ActivityDefinition.dosage.maxDosePerPeriod"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.maxDosePerAdministration">
      <path value="ActivityDefinition.dosage.maxDosePerAdministration"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element
             id="ActivityDefinition:regimenentrytemplate.dosage.maxDosePerLifetime">
      <path value="ActivityDefinition.dosage.maxDosePerLifetime"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dosage.rate[x]">
      <path value="ActivityDefinition.dosage.rate[x]"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.bodySite">
      <path value="ActivityDefinition.bodySite"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.transform">
      <path value="ActivityDefinition.transform"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
    <element id="ActivityDefinition:regimenentrytemplate.dynamicValue">
      <path value="ActivityDefinition.dynamicValue"/>
      <min value="0"/>
      <max value="0"/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
    </element>
  </differential>
</StructureDefinition>