<Bundle xmlns="http://hl7.org/fhir">
  <id value="dataelements" />
  <meta>
    <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
  </meta>
  <type value="collection" />
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/date" />
    <resource>
      <DataElement>
        <id value="date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="date">
          <path value="date" />
          <short value="Primitive Type date" />
          <definition value="A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date.  Dates SHALL be valid dates." />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/date.id" />
    <resource>
      <DataElement>
        <id value="date.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/date.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="date.id">
          <path value="date.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/date.value" />
    <resource>
      <DataElement>
        <id value="date.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/date.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="date.value">
          <path value="date.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for date" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex">
              <valueString value="-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?" />
            </extension>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="string" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date" />
              </extension>
            </code>
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/dateTime" />
    <resource>
      <DataElement>
        <id value="dateTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/dateTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="dateTime">
          <path value="dateTime" />
          <short value="Primitive Type dateTime" />
          <definition value="A date, date-time or partial date (e.g. just year or year + month).  If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored.                 Dates SHALL be valid dates." />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/dateTime.id" />
    <resource>
      <DataElement>
        <id value="dateTime.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/dateTime.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="dateTime.id">
          <path value="dateTime.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/dateTime.value" />
    <resource>
      <DataElement>
        <id value="dateTime.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/dateTime.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="dateTime.value">
          <path value="dateTime.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for dateTime" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex">
              <valueString value="-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?" />
            </extension>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="string" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date OR xsd:dateTime" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date OR xsd:dateTime" />
              </extension>
            </code>
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/string" />
    <resource>
      <DataElement>
        <id value="string" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/string" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="string">
          <path value="string" />
          <short value="Primitive Type string" />
          <definition value="A sequence of Unicode characters" />
          <comment value="Note that FHIR strings may not exceed 1MB in size" />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/string.id" />
    <resource>
      <DataElement>
        <id value="string.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/string.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="string.id">
          <path value="string.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/string.value" />
    <resource>
      <DataElement>
        <id value="string.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/string.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="string.value">
          <path value="string.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for string" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="string" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:string" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:string" />
              </extension>
            </code>
          </type>
          <maxLength value="1048576" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/integer" />
    <resource>
      <DataElement>
        <id value="integer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/integer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="integer">
          <path value="integer" />
          <short value="Primitive Type integer" />
          <definition value="A whole number" />
          <comment value="32 bit number; for values larger than this, use decimal" />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/integer.id" />
    <resource>
      <DataElement>
        <id value="integer.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/integer.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="integer.id">
          <path value="integer.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/integer.value" />
    <resource>
      <DataElement>
        <id value="integer.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/integer.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="integer.value">
          <path value="integer.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for integer" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex">
              <valueString value="-?([0]|([1-9][0-9]*))" />
            </extension>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="number" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:int" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:int" />
              </extension>
            </code>
          </type>
          <minValueInteger value="-2147483648" />
          <maxValueInteger value="2147483647" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/uri" />
    <resource>
      <DataElement>
        <id value="uri" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/uri" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="uri">
          <path value="uri" />
          <short value="Primitive Type uri" />
          <definition value="String of characters used to identify a name or a resource" />
          <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/uri.id" />
    <resource>
      <DataElement>
        <id value="uri.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/uri.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="uri.id">
          <path value="uri.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/uri.value" />
    <resource>
      <DataElement>
        <id value="uri.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/uri.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="uri.value">
          <path value="uri.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for uri" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="string" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:anyURI" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:string" />
              </extension>
            </code>
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/instant" />
    <resource>
      <DataElement>
        <id value="instant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/instant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="instant">
          <path value="instant" />
          <short value="Primitive Type instant" />
          <definition value="An instant in time - known at least to the second" />
          <comment value="Note: This is intended for precisely observed times, typically system logs etc., and not human-reported times - for them, see date and dateTime below. Time zone is always required" />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/instant.id" />
    <resource>
      <DataElement>
        <id value="instant.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/instant.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="instant.id">
          <path value="instant.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/instant.value" />
    <resource>
      <DataElement>
        <id value="instant.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/instant.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="instant.value">
          <path value="instant.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for instant" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="string" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:dateTime" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:dateTime" />
              </extension>
            </code>
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/boolean" />
    <resource>
      <DataElement>
        <id value="boolean" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/boolean" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="boolean">
          <path value="boolean" />
          <short value="Primitive Type boolean" />
          <definition value="Value of &quot;true&quot; or &quot;false&quot;" />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/boolean.id" />
    <resource>
      <DataElement>
        <id value="boolean.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/boolean.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="boolean.id">
          <path value="boolean.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/boolean.value" />
    <resource>
      <DataElement>
        <id value="boolean.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/boolean.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="boolean.value">
          <path value="boolean.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for boolean" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="boolean" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:boolean" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:boolean" />
              </extension>
            </code>
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/base64Binary" />
    <resource>
      <DataElement>
        <id value="base64Binary" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/base64Binary" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="base64Binary">
          <path value="base64Binary" />
          <short value="Primitive Type base64Binary" />
          <definition value="A stream of bytes" />
          <comment value="A stream of bytes, base64 encoded" />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/base64Binary.id" />
    <resource>
      <DataElement>
        <id value="base64Binary.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/base64Binary.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="base64Binary.id">
          <path value="base64Binary.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/base64Binary.value" />
    <resource>
      <DataElement>
        <id value="base64Binary.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/base64Binary.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="base64Binary.value">
          <path value="base64Binary.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for base64Binary" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="string" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:base64Binary" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:base64Binary" />
              </extension>
            </code>
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/time" />
    <resource>
      <DataElement>
        <id value="time" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/time" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="time">
          <path value="time" />
          <short value="Primitive Type time" />
          <definition value="A time during the day, with no date specified" />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/time.id" />
    <resource>
      <DataElement>
        <id value="time.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/time.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="time.id">
          <path value="time.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/time.value" />
    <resource>
      <DataElement>
        <id value="time.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/time.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="time.value">
          <path value="time.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for time" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex">
              <valueString value="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?" />
            </extension>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="string" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:time" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:time" />
              </extension>
            </code>
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/decimal" />
    <resource>
      <DataElement>
        <id value="decimal" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/decimal" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="decimal">
          <path value="decimal" />
          <short value="Primitive Type decimal" />
          <definition value="A rational number with implicit precision" />
          <comment value="Do not use a IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)" />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/decimal.id" />
    <resource>
      <DataElement>
        <id value="decimal.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/decimal.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="decimal.id">
          <path value="decimal.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/decimal.value" />
    <resource>
      <DataElement>
        <id value="decimal.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/decimal.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="decimal.value">
          <path value="decimal.value" />
          <representation value="xmlAttr" />
          <short value="Primitive value for decimal" />
          <definition value="The actual value" />
          <min value="0" />
          <max value="1" />
          <type>
            <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex">
              <valueString value="-?([0]|([1-9][0-9]*))(\.[0-9]+)?" />
            </extension>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="number" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xsd:decimal" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="xsd:decimal" />
              </extension>
            </code>
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/xhtml" />
    <resource>
      <DataElement>
        <id value="xhtml" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/xhtml" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="xhtml">
          <path value="xhtml" />
          <short value="Primitive Type xhtml" />
          <definition value="XHTML" />
          <min value="0" />
          <max value="*" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/xhtml.id" />
    <resource>
      <DataElement>
        <id value="xhtml.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/xhtml.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="xhtml.id">
          <path value="xhtml.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)" />
          <min value="0" />
          <max value="1" />
          <base>
            <path value="Element.id" />
            <min value="0" />
            <max value="1" />
          </base>
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/xhtml.value" />
    <resource>
      <DataElement>
        <id value="xhtml.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/xhtml.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="xhtml.value">
          <path value="xhtml.value" />
          <representation value="xhtml" />
          <short value="Actual xhtml" />
          <definition value="Actual xhtml" />
          <min value="1" />
          <max value="1" />
          <type>
            <code>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
                <valueString value="string" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
                <valueString value="xhtml:div" />
              </extension>
              <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
                <valueString value="string" />
              </extension>
            </code>
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Reference" />
    <resource>
      <DataElement>
        <id value="Reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Reference">
          <path value="Reference" />
          <short value="A reference from one resource to another" />
          <definition value="A reference from one resource to another." />
          <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="ref-1" />
            <severity value="error" />
            <human value="SHALL have a contained resource if a local reference is provided" />
            <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
            <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Reference.reference" />
    <resource>
      <DataElement>
        <id value="Reference.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Reference.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Reference.reference">
          <path value="Reference.reference" />
          <short value="Literal reference, Relative, internal or absolute URL" />
          <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." />
          <comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure &quot;/[type]/[id]&quot; then it should be assumed that the reference is to a FHIR RESTful server." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="ref-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Reference.identifier" />
    <resource>
      <DataElement>
        <id value="Reference.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Reference.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Reference.identifier">
          <path value="Reference.identifier" />
          <short value="Logical reference, when literal reference is not known" />
          <definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." />
          <comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. &#xA;&#xA;When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference&#xA;&#xA;Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Reference.display" />
    <resource>
      <DataElement>
        <id value="Reference.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Reference.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Reference.display">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="Reference.display" />
          <short value="Text alternative for the resource" />
          <definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
          <comment value="This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Quantity" />
    <resource>
      <DataElement>
        <id value="Quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Quantity">
          <path value="Quantity" />
          <short value="A measured or measurable amount" />
          <definition value="A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies." />
          <comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="qty-3" />
            <severity value="error" />
            <human value="If a code for the unit is present, the system SHALL also be present" />
            <expression value="code.empty() or system.exists()" />
            <xpath value="not(exists(f:code)) or exists(f:system)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="SN (see also Range) or CQ" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ, IVL&lt;PQ&gt;, MO, CO, depending on the values" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Quantity.value" />
    <resource>
      <DataElement>
        <id value="Quantity.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Quantity.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Quantity.value">
          <path value="Quantity.value" />
          <short value="Numerical value (with implicit precision)" />
          <definition value="The value of the measured amount. The value includes an implicit precision in the presentation of the value." />
          <comment value="The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)." />
          <requirements value="Precision is handled implicitly in almost all cases of measurement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SN.2  / CQ - N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Quantity.comparator" />
    <resource>
      <DataElement>
        <id value="Quantity.comparator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Quantity.comparator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Quantity.comparator">
          <path value="Quantity.comparator" />
          <short value="&lt; | &lt;= | &gt;= | &gt; - how to understand the value" />
          <definition value="How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is &quot;&lt;&quot; , then the real value is &lt; stated value." />
          <comment value="This is labeled as &quot;Is Modifier&quot; because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value." />
          <requirements value="Need a framework for handling measures where the value is &lt;5ug/L or &gt;400mg/L due to the limitations of measuring methodology." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <meaningWhenMissing value="If there is no comparator, then there is no modification of the value" />
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuantityComparator" />
            </extension>
            <strength value="required" />
            <description value="How the Quantity should be understood and represented." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/quantity-comparator" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="SN.1  / CQ.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="IVL properties" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Quantity.unit" />
    <resource>
      <DataElement>
        <id value="Quantity.unit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Quantity.unit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Quantity.unit">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="Quantity.unit" />
          <short value="Unit representation" />
          <definition value="A human-readable form of the unit." />
          <requirements value="There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="(see OBX.6 etc.) / CQ.2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ.unit" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Quantity.system" />
    <resource>
      <DataElement>
        <id value="Quantity.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Quantity.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Quantity.system">
          <path value="Quantity.system" />
          <short value="System that defines coded unit form" />
          <definition value="The identification of the system that provides the coded form of the unit." />
          <requirements value="Need to know the system that defines the coded form of the unit." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <condition value="qty-3" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="(see OBX.6 etc.) / CQ.2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="CO.codeSystem, PQ.translation.codeSystem" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Quantity.code" />
    <resource>
      <DataElement>
        <id value="Quantity.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Quantity.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Quantity.code">
          <path value="Quantity.code" />
          <short value="Coded form of the unit" />
          <definition value="A computer processable form of the unit in some unit representation system." />
          <comment value="The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system." />
          <requirements value="Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="(see OBX.6 etc.) / CQ.2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ.code, MO.currency, PQ.translation.code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Period" />
    <resource>
      <DataElement>
        <id value="Period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Period">
          <path value="Period" />
          <short value="Time range defined by start and end date/time" />
          <definition value="A time period defined by a start and end date and optionally time." />
          <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. &quot;the patient was an inpatient of the hospital for this time range&quot;) or one value from the range applies (e.g. &quot;give to the patient between these two times&quot;). If duration is required, specify the type as Interval|Duration." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="per-1" />
            <severity value="error" />
            <human value="If present, start SHALL have a lower value than end" />
            <expression value="start.empty() or end.empty() or (start &lt;= end)" />
            <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value &lt;= f:end/@value)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="DR" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="IVL&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;] or URG&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Period.start" />
    <resource>
      <DataElement>
        <id value="Period.start" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Period.start" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Period.start">
          <path value="Period.start" />
          <short value="Starting time with inclusive boundary" />
          <definition value="The start of the period. The boundary is inclusive." />
          <comment value="If the low element is missing, the meaning is that the low boundary is not known." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <condition value="per-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="DR.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./low" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Period.end" />
    <resource>
      <DataElement>
        <id value="Period.end" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Period.end" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Period.end">
          <path value="Period.end" />
          <short value="End time with inclusive boundary, if not ongoing" />
          <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." />
          <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" />
          <condition value="per-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="DR.2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./high" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Attachment" />
    <resource>
      <DataElement>
        <id value="Attachment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Attachment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Attachment">
          <path value="Attachment" />
          <short value="Content in a format defined elsewhere" />
          <definition value="For referring to data content defined in other formats." />
          <comment value="When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as &quot;Attachment&quot;." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="att-1" />
            <severity value="error" />
            <human value="It the Attachment has data, it SHALL have a contentType" />
            <expression value="data.empty() or contentType.exists()" />
            <xpath value="not(exists(f:data)) or exists(f:contentType)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ED/RP" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="ED" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Attachment.contentType" />
    <resource>
      <DataElement>
        <id value="Attachment.contentType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Attachment.contentType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Attachment.contentType">
          <path value="Attachment.contentType" />
          <short value="Mime type of the content, with charset etc." />
          <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate." />
          <requirements value="Processors of the data need to be able to know how to interpret the data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <example>
            <label value="General" />
            <valueCode value="text/plain; charset=UTF-8, image/png" />
          </example>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MimeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The mime type of an attachment. Any valid mime type is allowed." />
            <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./mediaType, ./charset" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Attachment.language" />
    <resource>
      <DataElement>
        <id value="Attachment.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Attachment.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Attachment.language">
          <path value="Attachment.language" />
          <short value="Human language of the content (BCP-47)" />
          <definition value="The human language of the content. The value can be any valid value according to BCP 47." />
          <requirements value="Users need to be able to choose between the languages in a set of attachments." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <example>
            <label value="General" />
            <valueCode value="en-AU" />
          </example>
          <isSummary value="true" />
          <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>
          <mapping>
            <identity value="rim" />
            <map value="./language" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Attachment.data" />
    <resource>
      <DataElement>
        <id value="Attachment.data" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Attachment.data" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Attachment.data">
          <path value="Attachment.data" />
          <short value="Data inline, base64ed" />
          <definition value="The actual data of the attachment - a sequence of bytes. In XML, represented using base64." />
          <comment value="The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON." />
          <requirements value="The data needs to able to be transmitted inline." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="ED.5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./data" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Attachment.url" />
    <resource>
      <DataElement>
        <id value="Attachment.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Attachment.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Attachment.url">
          <path value="Attachment.url" />
          <short value="Uri where the data can be found" />
          <definition value="An alternative location where the data can be accessed." />
          <comment value="If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data." />
          <requirements value="The data needs to be transmitted by reference." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <example>
            <label value="General" />
            <valueUri value="http://www.acme.com/logo-small.png" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./reference/literal" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Attachment.size" />
    <resource>
      <DataElement>
        <id value="Attachment.size" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Attachment.size" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Attachment.size">
          <path value="Attachment.size" />
          <short value="Number of bytes of content (if url provided)" />
          <definition value="The number of bytes of data that make up this attachment (before base64 encoding, if that is done)." />
          <comment value="The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference." />
          <requirements value="Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (needs data type R3 proposal)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Attachment.hash" />
    <resource>
      <DataElement>
        <id value="Attachment.hash" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Attachment.hash" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Attachment.hash">
          <path value="Attachment.hash" />
          <short value="Hash of the data (sha-1, base64ed)" />
          <definition value="The calculated hash of the data using SHA-1. Represented using base64." />
          <comment value="The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded." />
          <requirements value="Included so that applications can verify that the contents of a location have not changed and so that a signature of the content can implicitly sign the content of an image without having to include the data in the instance or reference the url in the signature." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm=&quot;SHA-1&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Attachment.title" />
    <resource>
      <DataElement>
        <id value="Attachment.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Attachment.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Attachment.title">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="Attachment.title" />
          <short value="Label to display in place of the data" />
          <definition value="A label or set of text to display in place of the data." />
          <requirements value="Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <example>
            <label value="General" />
            <valueString value="Official Corporate Logo" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./title/data" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Attachment.creation" />
    <resource>
      <DataElement>
        <id value="Attachment.creation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Attachment.creation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Attachment.creation">
          <path value="Attachment.creation" />
          <short value="Date attachment was first created" />
          <definition value="The date that the attachment was first created." />
          <requirements value="This is often tracked as an integrity issue for use of the attachment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (needs data type R3 proposal)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Duration" />
    <resource>
      <DataElement>
        <id value="Duration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Duration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Duration">
          <path value="Duration" />
          <short value="A length of time" />
          <definition value="A length of time." />
          <comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator." />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="qty-3" />
            <severity value="error" />
            <human value="If a code for the unit is present, the system SHALL also be present" />
            <expression value="code.empty() or system.exists()" />
            <xpath value="not(exists(f:code)) or exists(f:system)" />
            <source value="Quantity" />
          </constraint>
          <constraint>
            <key value="drt-1" />
            <severity value="error" />
            <human value="There SHALL be a code if there is a value and it SHALL be an expression of time.  If system is present, it SHALL be UCUM." />
            <expression value="code.exists() implies ((system = %ucum) and value.exists())" />
            <xpath value="(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org')" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="SN (see also Range) or CQ" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ, IVL&lt;PQ&gt;, MO, CO, depending on the values" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ, IVL&lt;PQ&gt; depending on the values" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Count" />
    <resource>
      <DataElement>
        <id value="Count" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Count" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Count">
          <path value="Count" />
          <short value="A measured or measurable amount" />
          <definition value="A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies." />
          <comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator." />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="qty-3" />
            <severity value="error" />
            <human value="If a code for the unit is present, the system SHALL also be present" />
            <expression value="code.empty() or system.exists()" />
            <xpath value="not(exists(f:code)) or exists(f:system)" />
            <source value="Quantity" />
          </constraint>
          <constraint>
            <key value="cnt-3" />
            <severity value="error" />
            <human value="There SHALL be a code with a value of &quot;1&quot; if there is a value and it SHALL be an expression of length.  If system is present, it SHALL be UCUM.  If present, the value SHALL a whole number." />
            <expression value="(code or value.empty()) and (system.empty() or system = %ucum) and (code.empty() or code = '1') and (value.empty() or value.toString().contains('.').not())" />
            <xpath value="(f:code or not(f:value)) and (not(exists(f:system)) or (f:system/@value='http://unitsofmeasure.org' and f:code/@value='1')) and not(contains(f:value/@value, '.'))" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="SN (see also Range) or CQ" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ, IVL&lt;PQ&gt;, MO, CO, depending on the values" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Range" />
    <resource>
      <DataElement>
        <id value="Range" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Range" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Range">
          <path value="Range" />
          <short value="Set of values bounded by low and high" />
          <definition value="A set of ordered Quantities defined by a low and high limit." />
          <comment value="The stated low and high value are assumed to have arbitrarily high precision when it comes to determining which values are in the range. I.e. 1.99 is not in the range 2 -&gt; 3." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="rng-2" />
            <severity value="error" />
            <human value="If present, low SHALL have a lower value than high" />
            <expression value="low.empty() or high.empty() or (low &lt;= high)" />
            <xpath value="not(exists(f:low/f:value/@value)) or not(exists(f:high/f:value/@value)) or (number(f:low/f:value/@value) &lt;= number(f:high/f:value/@value))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="NR and also possibly SN (but see also quantity)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="IVL&lt;QTY[not(type=&quot;TS&quot;)]&gt; [lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;]or URG&lt;QTY[not(type=&quot;TS&quot;)]&gt;" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Range.low" />
    <resource>
      <DataElement>
        <id value="Range.low" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Range.low" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Range.low">
          <path value="Range.low" />
          <short value="Low limit" />
          <definition value="The low limit. The boundary is inclusive." />
          <comment value="If the low element is missing, the low boundary is not known." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <condition value="rng-2" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="NR.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./low" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Range.high" />
    <resource>
      <DataElement>
        <id value="Range.high" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Range.high" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Range.high">
          <path value="Range.high" />
          <short value="High limit" />
          <definition value="The high limit. The boundary is inclusive." />
          <comment value="If the high element is missing, the high boundary is not known." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <condition value="rng-2" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="NR.2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./high" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Annotation" />
    <resource>
      <DataElement>
        <id value="Annotation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Annotation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Annotation">
          <path value="Annotation" />
          <short value="Text node with attribution" />
          <definition value="A  text note which also  contains information about who made the statement and when." />
          <comment value="For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time.  This element may need to be included in narrative because of the potential for modifying information.  *Annotations SHOULD NOT* be used to communicate &quot;modifying&quot; information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible)." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Annotation.authorX" />
    <resource>
      <DataElement>
        <id value="Annotation.authorX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Annotation.authorX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Annotation.author[x]">
          <path value="Annotation.author[x]" />
          <short value="Individual responsible for the annotation" />
          <definition value="The individual responsible for making the annotation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act.participant[typeCode=AUT].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Annotation.time" />
    <resource>
      <DataElement>
        <id value="Annotation.time" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Annotation.time" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Annotation.time">
          <path value="Annotation.time" />
          <short value="When the annotation was made" />
          <definition value="Indicates when this particular annotation was made." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act.effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Annotation.text" />
    <resource>
      <DataElement>
        <id value="Annotation.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Annotation.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Annotation.text">
          <path value="Annotation.text" />
          <short value="The annotation  - text content" />
          <definition value="The text of the annotation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act.text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Money" />
    <resource>
      <DataElement>
        <id value="Money" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Money" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Money">
          <path value="Money" />
          <short value="An amount of economic utility in some recognized currency" />
          <definition value="An amount of economic utility in some recognized currency." />
          <comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator." />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="qty-3" />
            <severity value="error" />
            <human value="If a code for the unit is present, the system SHALL also be present" />
            <expression value="code.empty() or system.exists()" />
            <xpath value="not(exists(f:code)) or exists(f:system)" />
            <source value="Quantity" />
          </constraint>
          <constraint>
            <key value="mny-1" />
            <severity value="error" />
            <human value="There SHALL be a code if there is a value and it SHALL be an expression of currency.  If system is present, it SHALL be ISO 4217 (system = &quot;urn:iso:std:iso:4217&quot; - currency)." />
            <expression value="(code or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')" />
            <xpath value="(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='urn:iso:std:iso:4217')" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="SN (see also Range) or CQ" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ, IVL&lt;PQ&gt;, MO, CO, depending on the values" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="MO" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Identifier" />
    <resource>
      <DataElement>
        <id value="Identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Identifier">
          <path value="Identifier" />
          <short value="An identifier intended for computation" />
          <definition value="A technical identifier - identifies some entity uniquely and unambiguously." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="Identifier" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Identifier.use" />
    <resource>
      <DataElement>
        <id value="Identifier.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Identifier.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Identifier.use">
          <path value="Identifier.use" />
          <short value="usual | official | temp | secondary (If known)" />
          <definition value="The purpose of this identifier." />
          <comment value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary." />
          <requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IdentifierUse" />
            </extension>
            <strength value="required" />
            <description value="Identifies the purpose for this identifier, if known ." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/identifier-use" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role.code or implied by context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Identifier.type" />
    <resource>
      <DataElement>
        <id value="Identifier.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Identifier.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Identifier.type">
          <path value="Identifier.type" />
          <short value="Description of identifier" />
          <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." />
          <comment value="This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. &#xA;&#xA;Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type." />
          <requirements value="Allows users to make use of identifiers when the identifier system is not known." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IdentifierType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="extensible" />
            <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/identifier-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="CX.5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role.code or implied by context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Identifier.system" />
    <resource>
      <DataElement>
        <id value="Identifier.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Identifier.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Identifier.system">
          <path value="Identifier.system" />
          <short value="The namespace for the identifier value" />
          <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
          <requirements value="There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <example>
            <label value="General" />
            <valueUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="CX.4 / EI-2-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="II.root or Role.id.root" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./IdentifierType" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Identifier.value" />
    <resource>
      <DataElement>
        <id value="Identifier.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Identifier.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Identifier.value">
          <path value="Identifier.value" />
          <short value="The value that is unique" />
          <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
          <comment value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <example>
            <label value="General" />
            <valueString value="123456" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="CX.1 / EI.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Identifier.period" />
    <resource>
      <DataElement>
        <id value="Identifier.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Identifier.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Identifier.period">
          <path value="Identifier.period" />
          <short value="Time period when id is/was valid for use" />
          <definition value="Time period during which identifier is/was valid for use." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="CX.7 + CX.8" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role.effectiveTime or implied by context" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./StartDate and ./EndDate" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Identifier.assigner" />
    <resource>
      <DataElement>
        <id value="Identifier.assigner" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Identifier.assigner" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Identifier.assigner">
          <path value="Identifier.assigner" />
          <short value="Organization that issued id (may be just text)" />
          <definition value="Organization that issued/manages the identifier." />
          <comment value="The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="CX.4 / (CX.4,CX.9,CX.10)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./IdentifierIssuingAuthority" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coding" />
    <resource>
      <DataElement>
        <id value="Coding" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coding" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coding">
          <path value="Coding" />
          <short value="A reference to a code defined by a terminology system" />
          <definition value="A reference to a code defined by a terminology system." />
          <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="CV" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coding.system" />
    <resource>
      <DataElement>
        <id value="Coding.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coding.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coding.system">
          <path value="Coding.system" />
          <short value="Identity of the terminology system" />
          <definition value="The identification of the code system that defines the meaning of the symbol in the code." />
          <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously." />
          <requirements value="Need to be unambiguous about the source of the definition of the symbol." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="C*E.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./codeSystem" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coding.version" />
    <resource>
      <DataElement>
        <id value="Coding.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coding.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coding.version">
          <path value="Coding.version" />
          <short value="Version of the system - if relevant" />
          <definition value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." />
          <comment value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="C*E.7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./codeSystemVersion" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coding.code" />
    <resource>
      <DataElement>
        <id value="Coding.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coding.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coding.code">
          <path value="Coding.code" />
          <short value="Symbol in syntax defined by the system" />
          <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)." />
          <requirements value="Need to refer to a particular code in the system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="C*E.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./code" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coding.display" />
    <resource>
      <DataElement>
        <id value="Coding.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coding.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coding.display">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="Coding.display" />
          <short value="Representation defined by the system" />
          <definition value="A representation of the meaning of the code in the system, following the rules of the system." />
          <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="C*E.2 - but note this is not well followed" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="CV.displayName" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coding.userSelected" />
    <resource>
      <DataElement>
        <id value="Coding.userSelected" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coding.userSelected" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coding.userSelected">
          <path value="Coding.userSelected" />
          <short value="If this coding was chosen directly by the user" />
          <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." />
          <comment value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely." />
          <requirements value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Sometimes implied by being first" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="CD.codingRationale" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Signature" />
    <resource>
      <DataElement>
        <id value="Signature" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Signature" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Signature">
          <path value="Signature" />
          <short value="A digital Signature - XML DigSig, JWT, Graphical image of signature, etc." />
          <definition value="A digital signature along with supporting context. The signature may be electronic/cryptographic in nature, or a graphical image representing a hand-written signature, or a signature process. Different signature approaches have different utilities." />
          <comment value="The elements of the Signature Resource are for ease of access of these elements. Foro digital signatures (Xml DigSig, JWT), the non-repudiation proof comes from the Signature  validation, which includes validation of the referenced objects (e.g. Resources) (a.k.a., Content) in the XML-Signature Detached form." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Signature.type" />
    <resource>
      <DataElement>
        <id value="Signature.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Signature.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Signature.type">
          <path value="Signature.type" />
          <short value="Indication of the reason the entity signed the object(s)" />
          <definition value="An indication of the reason that the entity signed this document. This may be explicitly included as part of the signature information and can be used when determining accountability for various actions concerning the document." />
          <comment value="Examples include attesting to: authorship, correct transcription, and witness of specific event. Also known as a &amp;quot;Commitment Type Indication&amp;quot;." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SignatureType" />
            </extension>
            <strength value="preferred" />
            <description value="An indication of the reason that an entity signed the object" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/signature-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Signature.when" />
    <resource>
      <DataElement>
        <id value="Signature.when" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Signature.when" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Signature.when">
          <path value="Signature.when" />
          <short value="When the signature was created" />
          <definition value="When the digital signature was signed." />
          <comment value="This should agree with the information in the signature." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Signature.whoX" />
    <resource>
      <DataElement>
        <id value="Signature.whoX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Signature.whoX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Signature.who[x]">
          <path value="Signature.who[x]" />
          <short value="Who signed" />
          <definition value="A reference to an application-usable description of the identity that signed  (e.g. the signature used their private key)." />
          <comment value="This should agree with the information in the signature." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Signature.onBehalfOfX" />
    <resource>
      <DataElement>
        <id value="Signature.onBehalfOfX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Signature.onBehalfOfX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Signature.onBehalfOf[x]">
          <path value="Signature.onBehalfOf[x]" />
          <short value="The party represented" />
          <definition value="A reference to an application-usable description of the identity that is represented by the signature." />
          <comment value="The party that can't sign. For example a child." />
          <requirements value="used when the signature is on behalf of a non-signer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Signature.contentType" />
    <resource>
      <DataElement>
        <id value="Signature.contentType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Signature.contentType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Signature.contentType">
          <path value="Signature.contentType" />
          <short value="The technical format of the signature" />
          <definition value="A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jwt for JWT, and image/* for a graphical image of a signature, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MimeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The mime type of an attachment. Any valid mime type is allowed." />
            <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Signature.blob" />
    <resource>
      <DataElement>
        <id value="Signature.blob" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Signature.blob" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Signature.blob">
          <path value="Signature.blob" />
          <short value="The actual signature content (XML DigSig. JWT, picture, etc.)" />
          <definition value="The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty." />
          <comment value="Where the signature type is an XML DigSig, the signed content is a FHIR Resource(s), the signature is of the XML form of the Resource(s) using  XML-Signature (XMLDIG) &quot;Detached Signature&quot; form." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SampledData" />
    <resource>
      <DataElement>
        <id value="SampledData" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SampledData" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SampledData">
          <path value="SampledData" />
          <short value="A series of measurements taken by a device" />
          <definition value="A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data." />
          <comment value="The data is not interpretable without at least origin, period, and dimensions, but these are optional to allow a separation between the template of measurement and the actual measurement, such as between DeviceCapabilities and DeviceLog.  When providing a summary view (for example with Observation.value[x]) SampledData should be represented with a brief display text such as &quot;Sampled Data&quot;." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A (but see section 7.14 in v2.7)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="SLIST + GLIST" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SampledData.origin" />
    <resource>
      <DataElement>
        <id value="SampledData.origin" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SampledData.origin" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SampledData.origin">
          <path value="SampledData.origin" />
          <short value="Zero value and units" />
          <definition value="The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="SLIST.origin" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SampledData.period" />
    <resource>
      <DataElement>
        <id value="SampledData.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SampledData.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SampledData.period">
          <path value="SampledData.period" />
          <short value="Number of milliseconds between samples" />
          <definition value="The length of time between sampling times, measured in milliseconds." />
          <comment value="This is usually a whole number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="GLIST.increment" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SampledData.factor" />
    <resource>
      <DataElement>
        <id value="SampledData.factor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SampledData.factor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SampledData.factor">
          <path value="SampledData.factor" />
          <short value="Multiply data by this before adding to origin" />
          <definition value="A correction factor that is applied to the sampled data points before they are added to the origin." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <defaultValueDecimal value="1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="SLIST.factor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SampledData.lowerLimit" />
    <resource>
      <DataElement>
        <id value="SampledData.lowerLimit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SampledData.lowerLimit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SampledData.lowerLimit">
          <path value="SampledData.lowerLimit" />
          <short value="Lower limit of detection" />
          <definition value="The lower limit of detection of the measured points. This is needed if any of the data points have the value &quot;L&quot; (lower than detection limit)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (use SLIST.digits.nullFlavor)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SampledData.upperLimit" />
    <resource>
      <DataElement>
        <id value="SampledData.upperLimit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SampledData.upperLimit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SampledData.upperLimit">
          <path value="SampledData.upperLimit" />
          <short value="Upper limit of detection" />
          <definition value="The upper limit of detection of the measured points. This is needed if any of the data points have the value &quot;U&quot; (higher than detection limit)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (use SLIST.digits.nullFlavor)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SampledData.dimensions" />
    <resource>
      <DataElement>
        <id value="SampledData.dimensions" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SampledData.dimensions" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SampledData.dimensions">
          <path value="SampledData.dimensions" />
          <short value="Number of sample points at each time point" />
          <definition value="The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once." />
          <comment value="If there is more than one dimension, the code for the type of data will define the meaning of the dimensions (typically ECG data)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (fixed to 1)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SampledData.data" />
    <resource>
      <DataElement>
        <id value="SampledData.data" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SampledData.data" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SampledData.data">
          <path value="SampledData.data" />
          <short value="Decimal values with spaces, or &quot;E&quot; | &quot;U&quot; | &quot;L&quot;" />
          <definition value="A series of data points which are decimal values separated by a single space (character u20). The special values &quot;E&quot; (error), &quot;L&quot; (below detection limit) and &quot;U&quot; (above detection limit) can also be used in place of a decimal value." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="SLIST.digits" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Ratio" />
    <resource>
      <DataElement>
        <id value="Ratio" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Ratio" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Ratio">
          <path value="Ratio" />
          <short value="A ratio of two Quantity values - a numerator and a denominator" />
          <definition value="A relationship of two Quantity values - expressed as a numerator and a denominator." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="rat-1" />
            <severity value="error" />
            <human value="Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present" />
            <expression value="(numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())" />
            <xpath value="(count(f:numerator) = count(f:denominator)) and ((count(f:numerator) &gt; 0) or (count(f:extension) &gt; 0))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="RTO" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Ratio.numerator" />
    <resource>
      <DataElement>
        <id value="Ratio.numerator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Ratio.numerator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Ratio.numerator">
          <path value="Ratio.numerator" />
          <short value="Numerator value" />
          <definition value="The value of the numerator." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".numerator" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Ratio.denominator" />
    <resource>
      <DataElement>
        <id value="Ratio.denominator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Ratio.denominator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Ratio.denominator">
          <path value="Ratio.denominator" />
          <short value="Denominator value" />
          <definition value="The value of the denominator." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".denominator" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Distance" />
    <resource>
      <DataElement>
        <id value="Distance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Distance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Distance">
          <path value="Distance" />
          <short value="A length - a value with a unit that is a physical distance" />
          <definition value="A length - a value with a unit that is a physical distance." />
          <comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator." />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="qty-3" />
            <severity value="error" />
            <human value="If a code for the unit is present, the system SHALL also be present" />
            <expression value="code.empty() or system.exists()" />
            <xpath value="not(exists(f:code)) or exists(f:system)" />
            <source value="Quantity" />
          </constraint>
          <constraint>
            <key value="dis-1" />
            <severity value="error" />
            <human value="There SHALL be a code if there is a value and it SHALL be an expression of length.  If system is present, it SHALL be UCUM." />
            <expression value="(code or value.empty()) and (system.empty() or system = %ucum)" />
            <xpath value="(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org')" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="SN (see also Range) or CQ" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ, IVL&lt;PQ&gt;, MO, CO, depending on the values" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Age" />
    <resource>
      <DataElement>
        <id value="Age" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Age" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Age">
          <path value="Age" />
          <short value="A duration of time during which an organism (or a process) has existed" />
          <definition value="A duration of time during which an organism (or a process) has existed." />
          <comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator." />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="qty-3" />
            <severity value="error" />
            <human value="If a code for the unit is present, the system SHALL also be present" />
            <expression value="code.empty() or system.exists()" />
            <xpath value="not(exists(f:code)) or exists(f:system)" />
            <source value="Quantity" />
          </constraint>
          <constraint>
            <key value="age-1" />
            <severity value="error" />
            <human value="There SHALL be a code if there is a value and it SHALL be an expression of time.  If system is present, it SHALL be UCUM.  If value is present, it SHALL be positive." />
            <expression value="(code or value.empty()) and (system.empty() or system = %ucum) and (value.empty() or value &gt; 0)" />
            <xpath value="(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org') and (not(f:value/@value) or f:value/@value &gt;=0)" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="SN (see also Range) or CQ" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ, IVL&lt;PQ&gt;, MO, CO, depending on the values" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="PQ" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeableConcept" />
    <resource>
      <DataElement>
        <id value="CodeableConcept" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeableConcept" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeableConcept">
          <path value="CodeableConcept" />
          <short value="Concept - reference to a terminology or just  text" />
          <definition value="A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text." />
          <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="CE/CNE/CWE" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="CD" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeableConcept.coding" />
    <resource>
      <DataElement>
        <id value="CodeableConcept.coding" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeableConcept.coding" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeableConcept.coding">
          <path value="CodeableConcept.coding" />
          <short value="Code defined by a terminology system" />
          <definition value="A reference to a code defined by a terminology system." />
          <comment value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." />
          <requirements value="Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="C*E.1-8, C*E.10-22" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="union(., ./translation)" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeableConcept.text" />
    <resource>
      <DataElement>
        <id value="CodeableConcept.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeableConcept.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeableConcept.text">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="CodeableConcept.text" />
          <short value="Plain text representation of the concept" />
          <definition value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user." />
          <comment value="Very often the text is the same as a displayName of one of the codings." />
          <requirements value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="C*E.9. But note many systems use C*E.2 for this" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./originalText[mediaType/code=&quot;text/plain&quot;]/data" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Meta" />
    <resource>
      <DataElement>
        <id value="Meta" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Meta" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Meta">
          <path value="Meta" />
          <short value="Metadata about a resource" />
          <definition value="The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Meta.versionId" />
    <resource>
      <DataElement>
        <id value="Meta.versionId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Meta.versionId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Meta.versionId">
          <path value="Meta.versionId" />
          <short value="Version specific identifier" />
          <definition value="The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted." />
          <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Meta.lastUpdated" />
    <resource>
      <DataElement>
        <id value="Meta.lastUpdated" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Meta.lastUpdated" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Meta.lastUpdated">
          <path value="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="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Meta.profile" />
    <resource>
      <DataElement>
        <id value="Meta.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Meta.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Meta.profile">
          <path value="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="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Meta.security" />
    <resource>
      <DataElement>
        <id value="Meta.security" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Meta.security" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Meta.security">
          <path value="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="*" />
          <type>
            <code value="Coding" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Meta.tag" />
    <resource>
      <DataElement>
        <id value="Meta.tag" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Meta.tag" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Meta.tag">
          <path value="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="*" />
          <type>
            <code value="Coding" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address" />
    <resource>
      <DataElement>
        <id value="Address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address">
          <path value="Address" />
          <short value="An address expressed using postal conventions (as opposed to GPS or other location definition formats)" />
          <definition value="An address expressed using postal conventions (as opposed to GPS or other location definition formats).  This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery.  There are a variety of postal address formats defined around the world." />
          <comment value="Note: address is for postal addresses, not physical locations." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="XAD" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="AD" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="Address" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.use" />
    <resource>
      <DataElement>
        <id value="Address.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.use">
          <path value="Address.use" />
          <short value="home | work | temp | old - purpose of this address" />
          <definition value="The purpose of this address." />
          <comment value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old." />
          <requirements value="Allows an appropriate address to be chosen from a list of many." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <example>
            <label value="General" />
            <valueCode value="home" />
          </example>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AddressUse" />
            </extension>
            <strength value="required" />
            <description value="The use of an address" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/address-use" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="XAD.7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./use)" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./AddressPurpose" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.type" />
    <resource>
      <DataElement>
        <id value="Address.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.type">
          <path value="Address.type" />
          <short value="postal | physical | both" />
          <definition value="Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <example>
            <label value="General" />
            <valueCode value="both" />
          </example>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AddressType" />
            </extension>
            <strength value="required" />
            <description value="The type of an address (physical / postal)" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/address-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="XAD.18" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./use)" />
          </mapping>
          <mapping>
            <identity value="vcard" />
            <map value="address type parameter" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.text" />
    <resource>
      <DataElement>
        <id value="Address.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.text">
          <path value="Address.text" />
          <short value="Text representation of the address" />
          <definition value="A full text representation of the address." />
          <comment value="Can provide both a text representation and parts." />
          <requirements value="A renderable, unencoded form." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <example>
            <label value="General" />
            <valueString value="137 Nowhere Street, Erewhon 9132" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./formatted" />
          </mapping>
          <mapping>
            <identity value="vcard" />
            <map value="address label parameter" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.line" />
    <resource>
      <DataElement>
        <id value="Address.line" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.line" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.line">
          <path value="Address.line" />
          <short value="Street name, number, direction &amp; P.O. Box etc." />
          <definition value="This component contains the house number, apartment number, street name, street direction,  P.O. Box number, delivery hints, and similar address information." />
          <requirements value="home | work | temp | old - purpose of this address." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <orderMeaning value="The order in which lines should appear in an address label" />
          <example>
            <label value="General" />
            <valueString value="137 Nowhere Street" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="AD.part[parttype = AL]" />
          </mapping>
          <mapping>
            <identity value="vcard" />
            <map value="street" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./StreetAddress (newline delimitted)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.city" />
    <resource>
      <DataElement>
        <id value="Address.city" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.city" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.city">
          <path value="Address.city" />
          <short value="Name of city, town etc." />
          <definition value="The name of the city, town, village or other community or delivery center." />
          <alias value="Municpality" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <example>
            <label value="General" />
            <valueString value="Erewhon" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XAD.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="AD.part[parttype = CTY]" />
          </mapping>
          <mapping>
            <identity value="vcard" />
            <map value="locality" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Jurisdiction" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.district" />
    <resource>
      <DataElement>
        <id value="Address.district" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.district" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.district">
          <path value="Address.district" />
          <short value="District name (aka county)" />
          <definition value="The name of the administrative area (county)." />
          <comment value="District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead." />
          <alias value="County" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <example>
            <label value="General" />
            <valueString value="Madison" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XAD.9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="AD.part[parttype = CNT | CPA]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.state" />
    <resource>
      <DataElement>
        <id value="Address.state" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.state" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.state">
          <path value="Address.state" />
          <short value="Sub-unit of country (abbreviations ok)" />
          <definition value="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." />
          <alias value="Province" />
          <alias value="Territory" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XAD.4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="AD.part[parttype = STA]" />
          </mapping>
          <mapping>
            <identity value="vcard" />
            <map value="region" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Region" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.postalCode" />
    <resource>
      <DataElement>
        <id value="Address.postalCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.postalCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.postalCode">
          <path value="Address.postalCode" />
          <short value="Postal code for area" />
          <definition value="A postal code designating a region defined by the postal service." />
          <alias value="Zip" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <example>
            <label value="General" />
            <valueString value="9132" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XAD.5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="AD.part[parttype = ZIP]" />
          </mapping>
          <mapping>
            <identity value="vcard" />
            <map value="code" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./PostalIdentificationCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.country" />
    <resource>
      <DataElement>
        <id value="Address.country" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.country" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.country">
          <path value="Address.country" />
          <short value="Country (e.g. can be ISO 3166 2 or 3 letter code)" />
          <definition value="Country - a nation as commonly understood or generally accepted." />
          <comment value="ISO 3166 3 letter codes can be used in place of a full country name." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XAD.6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="AD.part[parttype = CNT]" />
          </mapping>
          <mapping>
            <identity value="vcard" />
            <map value="country" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Country" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Address.period" />
    <resource>
      <DataElement>
        <id value="Address.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Address.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Address.period">
          <path value="Address.period" />
          <short value="Time period when address was/is in use" />
          <definition value="Time period when address was/is in use." />
          <requirements value="Allows addresses to be placed in historical context." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <example>
            <label value="General" />
            <valuePeriod>
              <start value="2010-03-23" />
              <end value="2010-07-01" />
            </valuePeriod>
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XAD.12 / XAD.13 + XAD.14" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./usablePeriod[type=&quot;IVL&lt;TS&gt;&quot;]" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./StartDate and ./EndDate" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TriggerDefinition" />
    <resource>
      <DataElement>
        <id value="TriggerDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TriggerDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TriggerDefinition">
          <path value="TriggerDefinition" />
          <short value="Defines an expected trigger for a module" />
          <definition value="A description of a triggering event." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TriggerDefinition.type" />
    <resource>
      <DataElement>
        <id value="TriggerDefinition.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TriggerDefinition.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TriggerDefinition.type">
          <path value="TriggerDefinition.type" />
          <short value="named-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended" />
          <definition value="The type of triggering event." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TriggerType" />
            </extension>
            <strength value="required" />
            <description value="The type of trigger" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/trigger-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TriggerDefinition.eventName" />
    <resource>
      <DataElement>
        <id value="TriggerDefinition.eventName" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TriggerDefinition.eventName" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TriggerDefinition.eventName">
          <path value="TriggerDefinition.eventName" />
          <short value="Triggering event name" />
          <definition value="The name of the event (if this is a named-event trigger)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TriggerDefinition.eventTimingX" />
    <resource>
      <DataElement>
        <id value="TriggerDefinition.eventTimingX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TriggerDefinition.eventTimingX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TriggerDefinition.eventTiming[x]">
          <path value="TriggerDefinition.eventTiming[x]" />
          <short value="Timing of the event" />
          <definition value="The timing of the event (if this is a period trigger)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Schedule" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TriggerDefinition.eventData" />
    <resource>
      <DataElement>
        <id value="TriggerDefinition.eventData" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TriggerDefinition.eventData" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TriggerDefinition.eventData">
          <path value="TriggerDefinition.eventData" />
          <short value="Triggering data of the event" />
          <definition value="The triggering data of the event (if this is a data trigger)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="DataRequirement" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contributor" />
    <resource>
      <DataElement>
        <id value="Contributor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contributor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contributor">
          <path value="Contributor" />
          <short value="Contributor information" />
          <definition value="A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contributor.type" />
    <resource>
      <DataElement>
        <id value="Contributor.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contributor.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contributor.type">
          <path value="Contributor.type" />
          <short value="author | editor | reviewer | endorser" />
          <definition value="The type of contributor." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContributorType" />
            </extension>
            <strength value="required" />
            <description value="The type of contributor" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contributor-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contributor.name" />
    <resource>
      <DataElement>
        <id value="Contributor.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contributor.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contributor.name">
          <path value="Contributor.name" />
          <short value="Who contributed the content" />
          <definition value="The name of the individual or organization responsible for the contribution." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contributor.contact" />
    <resource>
      <DataElement>
        <id value="Contributor.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contributor.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contributor.contact">
          <path value="Contributor.contact" />
          <short value="Contact details of the contributor" />
          <definition value="Contact details to assist a user in finding and communicating with the contributor." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement" />
    <resource>
      <DataElement>
        <id value="DataRequirement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement">
          <path value="DataRequirement" />
          <short value="Describes a required data item" />
          <definition value="Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.type" />
    <resource>
      <DataElement>
        <id value="DataRequirement.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.type">
          <path value="DataRequirement.type" />
          <short value="The type of the required data" />
          <definition value="The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRAllTypes" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Either an abstract type, a resource or a data type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/all-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.profile" />
    <resource>
      <DataElement>
        <id value="DataRequirement.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.profile">
          <path value="DataRequirement.profile" />
          <short value="The profile of the required data" />
          <definition value="The profile of the required data, specified as the uri of the profile definition." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.mustSupport" />
    <resource>
      <DataElement>
        <id value="DataRequirement.mustSupport" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.mustSupport" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.mustSupport">
          <path value="DataRequirement.mustSupport" />
          <short value="Indicates that specific structure elements are referenced by the knowledge module" />
          <definition value="Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available. Note that the value for this element can be a path to allow references to nested elements. In that case, all the elements along the path must be supported." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter" />
    <resource>
      <DataElement>
        <id value="DataRequirement.codeFilter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.codeFilter">
          <path value="DataRequirement.codeFilter" />
          <short value="What codes are expected" />
          <definition value="Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.path" />
    <resource>
      <DataElement>
        <id value="DataRequirement.codeFilter.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.codeFilter.path">
          <path value="DataRequirement.codeFilter.path" />
          <short value="The code-valued attribute of the filter" />
          <definition value="The code-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type code, Coding, or CodeableConcept." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.valueSetX" />
    <resource>
      <DataElement>
        <id value="DataRequirement.codeFilter.valueSetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.valueSetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.codeFilter.valueSet[x]">
          <path value="DataRequirement.codeFilter.valueSet[x]" />
          <short value="Valueset for the filter" />
          <definition value="The valueset for the code filter. The valueSet and value elements are exclusive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.valueCode" />
    <resource>
      <DataElement>
        <id value="DataRequirement.codeFilter.valueCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.valueCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.codeFilter.valueCode">
          <path value="DataRequirement.codeFilter.valueCode" />
          <short value="What code is expected" />
          <definition value="The codes for the code filter. Only one of valueSet, valueCode, valueCoding, or valueCodeableConcept may be specified. If values are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.valueCoding" />
    <resource>
      <DataElement>
        <id value="DataRequirement.codeFilter.valueCoding" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.valueCoding" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.codeFilter.valueCoding">
          <path value="DataRequirement.codeFilter.valueCoding" />
          <short value="What Coding is expected" />
          <definition value="The Codings for the code filter. Only one of valueSet, valueCode, valueConding, or valueCodeableConcept may be specified. If values are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified Codings." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.valueCodeableConcept" />
    <resource>
      <DataElement>
        <id value="DataRequirement.codeFilter.valueCodeableConcept" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.codeFilter.valueCodeableConcept" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.codeFilter.valueCodeableConcept">
          <path value="DataRequirement.codeFilter.valueCodeableConcept" />
          <short value="What CodeableConcept is expected" />
          <definition value="The CodeableConcepts for the code filter. Only one of valueSet, valueCode, valueConding, or valueCodeableConcept may be specified. If values are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified CodeableConcepts." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.dateFilter" />
    <resource>
      <DataElement>
        <id value="DataRequirement.dateFilter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.dateFilter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.dateFilter">
          <path value="DataRequirement.dateFilter" />
          <short value="What dates/date ranges are expected" />
          <definition value="Date filters specify additional constraints on the data in terms of the applicable date range for specific elements." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.dateFilter.path" />
    <resource>
      <DataElement>
        <id value="DataRequirement.dateFilter.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.dateFilter.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.dateFilter.path">
          <path value="DataRequirement.dateFilter.path" />
          <short value="The date-valued attribute of the filter" />
          <definition value="The date-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type dateTime, Period, Schedule, or Timing." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataRequirement.dateFilter.valueX" />
    <resource>
      <DataElement>
        <id value="DataRequirement.dateFilter.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataRequirement.dateFilter.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataRequirement.dateFilter.value[x]">
          <path value="DataRequirement.dateFilter.value[x]" />
          <short value="The value of the filter, as a Period, DateTime, or Duration value" />
          <definition value="The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration from now." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage" />
    <resource>
      <DataElement>
        <id value="Dosage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage">
          <path value="Dosage" />
          <short value="How the medication is/was taken or should be taken" />
          <definition value="Indicates how the medication is/was taken or should be taken by the patient." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.sequence" />
    <resource>
      <DataElement>
        <id value="Dosage.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.sequence">
          <path value="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="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.text" />
    <resource>
      <DataElement>
        <id value="Dosage.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.text">
          <path value="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="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.additionalInstruction" />
    <resource>
      <DataElement>
        <id value="Dosage.additionalInstruction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.additionalInstruction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.additionalInstruction">
          <path value="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="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.patientInstruction" />
    <resource>
      <DataElement>
        <id value="Dosage.patientInstruction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.patientInstruction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.patientInstruction">
          <path value="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" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.timing" />
    <resource>
      <DataElement>
        <id value="Dosage.timing" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.timing" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.timing">
          <path value="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'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" />
          <type>
            <code value="Timing" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.asNeededX" />
    <resource>
      <DataElement>
        <id value="Dosage.asNeededX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.asNeededX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.asNeeded[x]">
          <path value="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="1" />
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.site" />
    <resource>
      <DataElement>
        <id value="Dosage.site" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.site" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.site">
          <path value="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="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.route" />
    <resource>
      <DataElement>
        <id value="Dosage.route" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.route" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.route">
          <path value="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's body." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.method" />
    <resource>
      <DataElement>
        <id value="Dosage.method" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.method" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.method">
          <path value="Dosage.method" />
          <short value="Technique for administering medication" />
          <definition value="Technique for administering medication." />
          <comment value="Terminologies used often pre-coordinate this term with the route and or form of administration." />
          <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" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationAdministrationMethod" />
            </extension>
            <strength value="example" />
            <description value="A coded concept describing the technique by which the medicine is administered." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/administration-method-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".doseQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.doseX" />
    <resource>
      <DataElement>
        <id value="Dosage.doseX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.doseX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.dose[x]">
          <path value="Dosage.dose[x]" />
          <short value="Amount of medication per dose" />
          <definition value="Amount of medication per dose." />
          <comment value="Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours." />
          <requirements value="The amount of therapeutic or other substance given at one administration event." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".doseQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.maxDosePerPeriod" />
    <resource>
      <DataElement>
        <id value="Dosage.maxDosePerPeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.maxDosePerPeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.maxDosePerPeriod">
          <path value="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="1" />
          <type>
            <code value="Ratio" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".maxDoseQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.maxDosePerAdministration" />
    <resource>
      <DataElement>
        <id value="Dosage.maxDosePerAdministration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.maxDosePerAdministration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.maxDosePerAdministration">
          <path value="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" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="not supported" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.maxDosePerLifetime" />
    <resource>
      <DataElement>
        <id value="Dosage.maxDosePerLifetime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.maxDosePerLifetime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.maxDosePerLifetime">
          <path value="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="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="not supported" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Dosage.rateX" />
    <resource>
      <DataElement>
        <id value="Dosage.rateX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Dosage.rateX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Dosage.rate[x]">
          <path value="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'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" />
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".rateQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedArtifact" />
    <resource>
      <DataElement>
        <id value="RelatedArtifact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedArtifact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedArtifact">
          <path value="RelatedArtifact" />
          <short value="Related artifacts for a knowledge resource" />
          <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 knowledge resource, but not both." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedArtifact.type" />
    <resource>
      <DataElement>
        <id value="RelatedArtifact.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedArtifact.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedArtifact.type">
          <path value="RelatedArtifact.type" />
          <short value="documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of" />
          <definition value="The type of relationship to the related artifact." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RelatedArtifactType" />
            </extension>
            <strength value="required" />
            <description value="The type of relationship to the related artifact" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/related-artifact-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedArtifact.display" />
    <resource>
      <DataElement>
        <id value="RelatedArtifact.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedArtifact.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedArtifact.display">
          <path value="RelatedArtifact.display" />
          <short value="Brief description of the related artifact" />
          <definition value="A brief description of the document or knowledge resource being referenced, suitable for display to a consumer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedArtifact.citation" />
    <resource>
      <DataElement>
        <id value="RelatedArtifact.citation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedArtifact.citation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedArtifact.citation">
          <path value="RelatedArtifact.citation" />
          <short value="Bibliographic citation for the artifact" />
          <definition value="A bibliographic citation for the related artifact. This text SHOULD be formatted according to an accepted citation format." />
          <comment value="Additional structured information about citations should be captured as extensions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedArtifact.url" />
    <resource>
      <DataElement>
        <id value="RelatedArtifact.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedArtifact.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedArtifact.url">
          <path value="RelatedArtifact.url" />
          <short value="Where the artifact can be accessed" />
          <definition value="A url for the artifact that can be followed to access the actual content." />
          <comment value="If a document or resource element is present, this element SHALL NOT be provided (use the url or reference in the Attachment or resource reference)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedArtifact.document" />
    <resource>
      <DataElement>
        <id value="RelatedArtifact.document" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedArtifact.document" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedArtifact.document">
          <path value="RelatedArtifact.document" />
          <short value="What document is being referenced" />
          <definition value="The document being referenced, represented as an attachment. This is exclusive with the resource element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedArtifact.resource" />
    <resource>
      <DataElement>
        <id value="RelatedArtifact.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedArtifact.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedArtifact.resource">
          <path value="RelatedArtifact.resource" />
          <short value="What resource is being referenced" />
          <definition value="The related resource, such as a library, value set, profile, or other knowledge resource." />
          <comment value="If the type is predecessor, this is a reference to the succeeding knowledge resource. If the type is successor, this is a reference to the prior knowledge resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ContactDetail" />
    <resource>
      <DataElement>
        <id value="ContactDetail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ContactDetail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ContactDetail">
          <path value="ContactDetail" />
          <short value="Contact information" />
          <definition value="Specifies contact information for a person or organization." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ContactDetail.name" />
    <resource>
      <DataElement>
        <id value="ContactDetail.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ContactDetail.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ContactDetail.name">
          <path value="ContactDetail.name" />
          <short value="Name of an individual to contact" />
          <definition value="The name of an individual to contact." />
          <comment value="If there is no named individual, the telecom information is for the organization as a whole." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ContactDetail.telecom" />
    <resource>
      <DataElement>
        <id value="ContactDetail.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ContactDetail.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ContactDetail.telecom">
          <path value="ContactDetail.telecom" />
          <short value="Contact details for individual or organization" />
          <definition value="The contact details for the individual (if a name was provided) or the organization." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HumanName" />
    <resource>
      <DataElement>
        <id value="HumanName" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HumanName" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HumanName">
          <path value="HumanName" />
          <short value="Name of a human - parts and usage" />
          <definition value="A human's name with the ability to identify parts and usage." />
          <comment value="Names may be changed, or repudiated, or people may have different names in different contexts. Names may be divided into parts of different type that have variable significance depending on context, though the division into parts does not always matter. With personal names, the different parts may or may not be imbued with some implicit meaning; various cultures associate different importance with the name parts and the degree to which systems must care about name parts around the world varies widely." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="XPN" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="EN (actually, PN)" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="ProviderName" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HumanName.use" />
    <resource>
      <DataElement>
        <id value="HumanName.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HumanName.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HumanName.use">
          <path value="HumanName.use" />
          <short value="usual | official | temp | nickname | anonymous | old | maiden" />
          <definition value="Identifies the purpose for this name." />
          <comment value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old." />
          <requirements value="Allows the appropriate name for a particular context of use to be selected from among a set of names." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NameUse" />
            </extension>
            <strength value="required" />
            <description value="The use of a human name" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/name-use" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="XPN.7, but often indicated by which field contains the name" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./use)" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./NamePurpose" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HumanName.text" />
    <resource>
      <DataElement>
        <id value="HumanName.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HumanName.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HumanName.text">
          <path value="HumanName.text" />
          <short value="Text representation of the full name" />
          <definition value="A full text representation of the name." />
          <comment value="Can provide both a text representation and structured parts." />
          <requirements value="A renderable, unencoded form." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="implied by XPN.11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./formatted" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HumanName.family" />
    <resource>
      <DataElement>
        <id value="HumanName.family" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HumanName.family" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HumanName.family">
          <path value="HumanName.family" />
          <short value="Family name (often called 'Surname')" />
          <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." />
          <comment value="Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures)." />
          <alias value="surname" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XPN.1/FN.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./part[partType = FAM]" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./FamilyName" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HumanName.given" />
    <resource>
      <DataElement>
        <id value="HumanName.given" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HumanName.given" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HumanName.given">
          <path value="HumanName.given" />
          <short value="Given names (not always 'first'). Includes middle names" />
          <definition value="Given name." />
          <comment value="If only initials are recorded, they may be used in place of the full name.  Not called &quot;first name&quot; since given names do not always come first." />
          <alias value="first name" />
          <alias value="middle name" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <orderMeaning value="Given Names appear in the correct order for presenting the name" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XPN.2 + XPN.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./part[partType = GIV]" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./GivenNames" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HumanName.prefix" />
    <resource>
      <DataElement>
        <id value="HumanName.prefix" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HumanName.prefix" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HumanName.prefix">
          <path value="HumanName.prefix" />
          <short value="Parts that come before the name" />
          <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <orderMeaning value="Prefixes appear in the correct order for presenting the name" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XPN.5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./part[partType = PFX]" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./TitleCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HumanName.suffix" />
    <resource>
      <DataElement>
        <id value="HumanName.suffix" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HumanName.suffix" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HumanName.suffix">
          <path value="HumanName.suffix" />
          <short value="Parts that come after the name" />
          <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <orderMeaning value="Suffixes appear in the correct order for presenting the name" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XPN/4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./part[partType = SFX]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HumanName.period" />
    <resource>
      <DataElement>
        <id value="HumanName.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HumanName.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HumanName.period">
          <path value="HumanName.period" />
          <short value="Time period when name was/is in use" />
          <definition value="Indicates the period of time when this name was valid for the named person." />
          <requirements value="Allows names to be placed in historical context." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XPN.13 + XPN.14" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./usablePeriod[type=&quot;IVL&lt;TS&gt;&quot;]" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./StartDate and ./EndDate" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ContactPoint" />
    <resource>
      <DataElement>
        <id value="ContactPoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ContactPoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ContactPoint">
          <path value="ContactPoint" />
          <short value="Details of a Technology mediated contact point (phone, fax, email, etc.)" />
          <definition value="Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="cpt-2" />
            <severity value="error" />
            <human value="A system is required if a value is provided." />
            <expression value="value.empty() or system.exists()" />
            <xpath value="not(exists(f:value)) or exists(f:system)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="XTN" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="TEL" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="ContactPoint" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ContactPoint.system" />
    <resource>
      <DataElement>
        <id value="ContactPoint.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ContactPoint.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ContactPoint.system">
          <path value="ContactPoint.system" />
          <short value="phone | fax | email | pager | url | sms | other" />
          <definition value="Telecommunications form for contact point - what communications system is required to make use of the contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="cpt-2" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContactPointSystem" />
            </extension>
            <strength value="required" />
            <description value="Telecommunications form for contact point" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contact-point-system" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="XTN.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./scheme" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./ContactPointType" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ContactPoint.value" />
    <resource>
      <DataElement>
        <id value="ContactPoint.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ContactPoint.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ContactPoint.value">
          <path value="ContactPoint.value" />
          <short value="The actual contact point details" />
          <definition value="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)." />
          <comment value="Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value." />
          <requirements value="Need to support legacy numbers that are not in a tightly controlled format." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XTN.1 (or XTN.12)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./url" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ContactPoint.use" />
    <resource>
      <DataElement>
        <id value="ContactPoint.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ContactPoint.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ContactPoint.use">
          <path value="ContactPoint.use" />
          <short value="home | work | temp | old | mobile - purpose of this contact point" />
          <definition value="Identifies the purpose for the contact point." />
          <comment value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old." />
          <requirements value="Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContactPointUse" />
            </extension>
            <strength value="required" />
            <description value="Use of contact point" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contact-point-use" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="XTN.2 - but often indicated by field" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./use)" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./ContactPointPurpose" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ContactPoint.rank" />
    <resource>
      <DataElement>
        <id value="ContactPoint.rank" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ContactPoint.rank" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ContactPoint.rank">
          <path value="ContactPoint.rank" />
          <short value="Specify preferred order of use (1 = highest)" />
          <definition value="Specifies a preferred order in which to use a set of contacts. Contacts are ranked with lower values coming before higher values." />
          <comment value="Note that rank does not necessarily follow the order in which the contacts are represented in the instance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ContactPoint.period" />
    <resource>
      <DataElement>
        <id value="ContactPoint.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ContactPoint.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ContactPoint.period">
          <path value="ContactPoint.period" />
          <short value="Time period when the contact point was/is in use" />
          <definition value="Time period when the contact point was/is in use." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./usablePeriod[type=&quot;IVL&lt;TS&gt;&quot;]" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./StartDate and ./EndDate" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/UsageContext" />
    <resource>
      <DataElement>
        <id value="UsageContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/UsageContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="UsageContext">
          <path value="UsageContext" />
          <short value="Describes the context of use for a conformance or knowledge resource" />
          <definition value="Specifies clinical/business/etc metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/UsageContext.code" />
    <resource>
      <DataElement>
        <id value="UsageContext.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/UsageContext.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="UsageContext.code">
          <path value="UsageContext.code" />
          <short value="Type of context being specified" />
          <definition value="A code that identifies the type of context being specified by this usage context." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="UsageContextType" />
            </extension>
            <strength value="extensible" />
            <description value="A code that specifies a type of context being specified by a usage context" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/usage-context-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/UsageContext.valueX" />
    <resource>
      <DataElement>
        <id value="UsageContext.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/UsageContext.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="UsageContext.value[x]">
          <path value="UsageContext.value[x]" />
          <short value="Value that defines the context" />
          <definition value="A value that defines the context specified in this context of use. The interpretation of the value is defined by the code." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="UsageContextValue" />
            </extension>
            <strength value="example" />
            <description value="A code that defines the specific value for the context being specified" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/use-context" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing" />
    <resource>
      <DataElement>
        <id value="Timing" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing">
          <path value="Timing" />
          <short value="A timing schedule that specifies an event that may occur multiple times" />
          <definition value="Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out." />
          <comment value="A timing schedule can be either a list of events - intervals on which the event occurs, or a single event with repeating criteria or just repeating criteria with no actual event.  When both event and a repeating specification are provided, the list of events should be understood as an interpretation of the information in the repeat structure." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="QSET&lt;TS&gt; (GTS)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.event" />
    <resource>
      <DataElement>
        <id value="Timing.event" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.event" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.event">
          <path value="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="*" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="QLIST&lt;TS&gt;" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat" />
    <resource>
      <DataElement>
        <id value="Timing.repeat" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat">
          <path value="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" />
          <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="hasValue() | (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's an offset, there must be a when (and not C, CM, CD, CV)" />
            <expression value="offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not()))" />
            <xpath value="not(exists(f:offset)) or exists(f:when)" />
          </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)" />
          </constraint>
          <constraint>
            <key value="tim-6" />
            <severity value="error" />
            <human value="If there'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)" />
          </constraint>
          <constraint>
            <key value="tim-7" />
            <severity value="error" />
            <human value="If there'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)" />
          </constraint>
          <constraint>
            <key value="tim-8" />
            <severity value="error" />
            <human value="If there'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)" />
          </constraint>
          <constraint>
            <key value="tim-1" />
            <severity value="error" />
            <human value="if there'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)" />
          </constraint>
          <constraint>
            <key value="tim-10" />
            <severity value="error" />
            <human value="If there'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))" />
          </constraint>
          <constraint>
            <key value="tim-2" />
            <severity value="error" />
            <human value="if there'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)" />
          </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)" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Implies PIVL or EIVL" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.boundsX" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.boundsX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.boundsX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.bounds[x]">
          <path value="Timing.repeat.bounds[x]" />
          <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" />
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="IVL(TS) used in a QSI" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.count" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.count" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.count" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.count">
          <path value="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" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="PIVL.count" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.countMax" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.countMax" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.countMax" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.countMax">
          <path value="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" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="PIVL.count" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.duration" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.duration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.duration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.duration">
          <path value="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'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" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="PIVL.phase" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.durationMax" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.durationMax" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.durationMax" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.durationMax">
          <path value="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'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" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="PIVL.phase" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.durationUnit" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.durationUnit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.durationUnit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.durationUnit">
          <path value="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" />
          <type>
            <code value="code" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.frequency" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.frequency" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.frequency" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.frequency">
          <path value="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" />
          <type>
            <code value="integer" />
          </type>
          <defaultValueInteger value="1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="PIVL.phase" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.frequencyMax" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.frequencyMax" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.frequencyMax" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.frequencyMax">
          <path value="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" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="PIVL.phase" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.period" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.period">
          <path value="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" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="PIVL.phase" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.periodMax" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.periodMax" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.periodMax" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.periodMax">
          <path value="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" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="PIVL.phase" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.periodUnit" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.periodUnit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.periodUnit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.periodUnit">
          <path value="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" />
          <type>
            <code value="code" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.dayOfWeek" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.dayOfWeek" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.dayOfWeek" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.dayOfWeek">
          <path value="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="*" />
          <type>
            <code value="code" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.timeOfDay" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.timeOfDay" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.timeOfDay" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.timeOfDay">
          <path value="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="*" />
          <type>
            <code value="time" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.when" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.when" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.when" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.when">
          <path value="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="*" />
          <type>
            <code value="code" />
          </type>
          <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 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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.repeat.offset" />
    <resource>
      <DataElement>
        <id value="Timing.repeat.offset" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.repeat.offset" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.repeat.offset">
          <path value="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="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="EIVL.offset" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Timing.code" />
    <resource>
      <DataElement>
        <id value="Timing.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Timing.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Timing.code">
          <path value="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 'at institutionally specified times'. 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="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition" />
    <resource>
      <DataElement>
        <id value="ElementDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition">
          <path value="ElementDefinition" />
          <short value="Definition of an element in a resource or extension" />
          <definition value="Captures constraints on each element within the resource, profile, or extension." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="eld-2" />
            <severity value="error" />
            <human value="Min &lt;= Max" />
            <expression value="min.empty() or max.empty() or (max = '*') or (min &lt;= max.toInteger())" />
            <xpath value="not(exists(f:min)) or not(exists(f:max)) or (not(f:max/@value) and not(f:min/@value)) or (f:max/@value = '*') or (number(f:max/@value) &gt;= f:min/@value)" />
          </constraint>
          <constraint>
            <key value="eld-5" />
            <severity value="error" />
            <human value="if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding" />
            <expression value="contentReference.empty() or (type.empty() and defaultValue.empty() and fixed.empty() and pattern.empty() and example.empty() and minValue.empty() and maxValue.empty() and maxLength.empty() and binding.empty())" />
            <xpath value="not(exists(f:contentReference) and (exists(f:type) or exists(f:*[starts-with(local-name(.), 'value')]) or exists(f:*[starts-with(local-name(.), 'defaultValue')])  or exists(f:*[starts-with(local-name(.), 'fixed')]) or exists(f:*[starts-with(local-name(.), 'pattern')]) or exists(f:*[starts-with(local-name(.), 'example')]) or exists(f:*[starts-with(local-name(.), 'f:minValue')]) or exists(f:*[starts-with(local-name(.), 'f:maxValue')]) or exists(f:maxLength) or exists(f:binding)))" />
          </constraint>
          <constraint>
            <key value="eld-7" />
            <severity value="error" />
            <human value="Pattern may only be specified if there is one type" />
            <expression value="pattern.empty() or (type.count() &lt;= 1)" />
            <xpath value="not(exists(f:*[starts-with(local-name(.), 'pattern')])) or (count(f:type)&lt;=1)" />
          </constraint>
          <constraint>
            <key value="eld-6" />
            <severity value="error" />
            <human value="Fixed value may only be specified if there is one type" />
            <expression value="fixed.empty() or (type.count()  &lt;= 1)" />
            <xpath value="not(exists(f:*[starts-with(local-name(.), 'fixed')])) or (count(f:type)&lt;=1)" />
          </constraint>
          <constraint>
            <key value="eld-11" />
            <severity value="error" />
            <human value="Binding can only be present for coded elements, string, and uri" />
            <expression value="binding.empty() or type.code.empty() or type.select((code = 'code') or (code = 'Coding') or (code='CodeableConcept') or (code = 'Quantity') or (code = 'Extension') or (code = 'string') or (code = 'uri')).exists()" />
            <xpath value="not(exists(f:binding)) or (count(f:type/f:code) = 0) or  f:type/f:code/@value=('code','Coding','CodeableConcept','Quantity','Extension', 'string', 'uri')" />
          </constraint>
          <constraint>
            <key value="eld-8" />
            <severity value="error" />
            <human value="Pattern and value are mutually exclusive" />
            <expression value="pattern.empty() or fixed.empty()" />
            <xpath value="not(exists(f:*[starts-with(local-name(.), 'pattern')])) or not(exists(f:*[starts-with(local-name(.), 'fixed')]))" />
          </constraint>
          <constraint>
            <key value="eld-14" />
            <severity value="error" />
            <human value="Constraints must be unique by key" />
            <expression value="constraint.select(key).isDistinct()" />
            <xpath value="count(f:constraint) = count(distinct-values(f:constraint/f:key/@value))" />
          </constraint>
          <constraint>
            <key value="eld-13" />
            <severity value="error" />
            <human value="Types must be unique by the combination of code and profile" />
            <expression value="type.select(code&amp;profile&amp;targetProfile).isDistinct()" />
            <xpath value="not(exists(for $type in f:type return $type/preceding-sibling::f:type[f:code/@value=$type/f:code/@value and f:profile/@value = $type/f:profile/@value]))" />
          </constraint>
          <constraint>
            <key value="eld-16" />
            <severity value="error" />
            <human value="sliceName must be composed of proper tokens separated by &quot;/&quot;" />
            <expression value="sliceName.empty() or sliceName.matches('^[a-zA-Z0-9\\/\\-\\_]+$')" />
            <xpath value="not(exists(f:sliceName/@value)) or matches(f:sliceName/@value, '^[a-zA-Z0-9\\/\\-\\_]+$')" />
          </constraint>
          <constraint>
            <key value="eld-15" />
            <severity value="error" />
            <human value="default value and meaningWhenMissing are mutually exclusive" />
            <expression value="defaultValue.empty() or meaningWhenMissing.empty()" />
            <xpath value="not(exists(f:*[starts-with(local-name(.), 'fixed')])) or not(exists(f:meaningWhenMissing))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="dex" />
            <map value="RetrieveMetadata response" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OM1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=OBS, moodCode=DEFN]" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="Data_Element" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.path" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.path">
          <path value="ElementDefinition.path" />
          <short value="Path of the element in the hierarchy of elements" />
          <definition value="The path identifies the element and is expressed as a &quot;.&quot;-separated list of ancestor elements, beginning with the name of the resource or extension." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="Name, Identifier &amp; Context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.representation" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.representation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.representation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.representation">
          <path value="ElementDefinition.representation" />
          <short value="xmlAttr | xmlText | typeAttr | cdaText | xhtml" />
          <definition value="Codes that define how this element is represented in instances, when the deviation varies from the normal case." />
          <comment value="In resources, this is rarely used except for special cases where the representation deviates from the normal, and can only be done in the base standard (and profiles must reproduce what the base standard does). This element is used quite commonly in Logical models when the logical models represent a specific serialization format (e.g. CDA, v2 etc)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PropertyRepresentation" />
            </extension>
            <strength value="required" />
            <description value="How a property is represented when serialized." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/property-representation" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.sliceName" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.sliceName" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.sliceName" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.sliceName">
          <path value="ElementDefinition.sliceName" />
          <short value="Name for this particular element (in a set of slices)" />
          <definition value="The name of this element definition slice, when slicing is working. The name must be a token with no dots or spaces. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element." />
          <comment value="The name SHALL be unique within the structure within the context of the constrained resource element.  (Though to avoid confusion, uniqueness across all elements is recommended.)." />
          <requirements value="May also be used for code generation purposes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.label" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.label" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.label" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.label">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.label" />
          <short value="Name for element to display with or prompt for element" />
          <definition value="A single preferred label which is the text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form." />
          <comment value="See also the extension (http://hl7.org/fhir/StructureDefinition/elementdefinition-question)[extension-elementdefinition-question.html]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./code/display" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.code" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.code">
          <path value="ElementDefinition.code" />
          <short value="Corresponding codes in terminologies" />
          <definition value="A code that has the same meaning as the element in a particular terminology." />
          <comment value="The concept SHALL be properly aligned with the data element definition and other constraints, as defined in the code system, including relationships, of any code listed here.  Where multiple codes exist in a terminology that could correspond to the data element, the most granular code(s) should be selected, so long as they are not more restrictive than the data element itself. The mappings may be used to provide more or less granular or structured equivalences in the code system." />
          <requirements value="Links the meaning of an element to an external terminology, and is very useful for searching and indexing." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ElementDefinitionCode" />
            </extension>
            <strength value="example" />
            <description value="Codes that indicate the meaning of a data element." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OM1.7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./code (root or translation)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Data_Element).data_element_concept.identifier" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="LOINC_NUM" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.slicing" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.slicing">
          <path value="ElementDefinition.slicing" />
          <short value="This element is sliced - slices follow" />
          <definition value="Indicates that the element is sliced into a set of alternative definitions (i.e. in a structure definition, there are multiple different constraints on a single element in the base resource). Slicing can be used in any resource that has cardinality ..* on the base resource, or any resource with a choice of types. The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)." />
          <comment value="The first element in the sequence, the one that carries the slicing, is the definition that applies to all the slices. This is based on the unconstrained element, but can apply any constraints as appropriate. This may include the common constraints on the children of the element." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="eld-1" />
            <severity value="error" />
            <human value="If there are no discriminators, there must be a definition" />
            <expression value="discriminator.exists() or description.exists()" />
            <xpath value="(f:discriminator) or (f:description)" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.discriminator" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.slicing.discriminator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.discriminator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.slicing.discriminator">
          <path value="ElementDefinition.slicing.discriminator" />
          <short value="Element values that are used to distinguish the slices" />
          <definition value="Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices." />
          <comment value="If there is no discriminator, the content is hard to process, so this should be avoided. If the base element has a cardinality of ..1, and there is a choice of types, the discriminator must be &quot;@type&quot;." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.discriminator.type" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.slicing.discriminator.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.discriminator.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.slicing.discriminator.type">
          <path value="ElementDefinition.slicing.discriminator.type" />
          <short value="value | exists | pattern | type | profile" />
          <definition value="How the element value is interpreted when discrimination is evaluated." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiscriminatorType" />
            </extension>
            <strength value="required" />
            <description value="How an element value is interpreted when discrimination is evaluated" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/discriminator-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.discriminator.path" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.slicing.discriminator.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.discriminator.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.slicing.discriminator.path">
          <path value="ElementDefinition.slicing.discriminator.path" />
          <short value="Path to element value" />
          <definition value="A FHIRPath expression, using a restricted subset of FHIRPath, that is used to identify the element on which discrimination is based." />
          <comment value="The only FHIRPath functions that are allowed are resolve(), and extension(url)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.description" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.slicing.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.slicing.description">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.slicing.description" />
          <short value="Text description of how slicing works (or not)" />
          <definition value="A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated." />
          <comment value="If it's really not possible to differentiate them, the design should be re-evaluated to make the content usable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="eld-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.ordered" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.slicing.ordered" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.ordered" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.slicing.ordered">
          <path value="ElementDefinition.slicing.ordered" />
          <short value="If elements must be in same order as slices" />
          <definition value="If the matching elements have to occur in the same order as defined in the profile." />
          <comment value="Order should only be required when it is a pressing concern for presentation. Profile authors should consider making the order a feature of the rules about the narrative, not the rules about the data - requiring ordered data makes the profile much less re-usable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.rules" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.slicing.rules" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.slicing.rules" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.slicing.rules">
          <path value="ElementDefinition.slicing.rules" />
          <short value="closed | open | openAtEnd" />
          <definition value="Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end." />
          <comment value="Allowing additional elements makes for a much for flexible template - it's open for use in wider contexts, but also means that the content of the resource is not closed, and applications have to decide how to handle content not described by the profile." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SlicingRules" />
            </extension>
            <strength value="required" />
            <description value="How slices are interpreted when evaluating an instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-slicing-rules" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.short" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.short" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.short" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.short">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.short" />
          <short value="Concise definition for space-constrained presentation" />
          <definition value="A concise description of what this element means (e.g. for use in autogenerated summaries)." />
          <comment value="May change the term to provide language more appropriate to the context of the profile or to reflect slicing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.definition" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.definition">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.definition" />
          <short value="Full formal definition as narrative text" />
          <definition value="Provides a complete explanation of the meaning of the data element for human readability.  For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource." />
          <comment value="It is easy for a different definition to change the meaning of an element and this can have nasty downstream consequences. Please be careful when providing definitions." />
          <requirements value="To allow a user to state the usage of an element in a particular context." />
          <alias value="Description" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OM1.6, OM1.41" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./text" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Designatable_Item).definition.text  acceptability=preferred in default context" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="TERM DEFINITION/DESCRIPTION(S)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.comment" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.comment">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.comment" />
          <short value="Comments about the use of this element" />
          <definition value="Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc." />
          <comment value="If it is possible to capture usage rules using constraints, that mechanism should be used in preference to this element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="NTE, OM1.32, OM1.33, OM1.39" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./inboundRelationship[typeCode=SUBJ]/source[classCode=LIST, moodCode=EVN]/code" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Administered_Item).explanatory_comment" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="COMMENTS" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.requirements" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.requirements" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.requirements" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.requirements">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.requirements" />
          <short value="Why this resource has been created" />
          <definition value="This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element." />
          <comment value="This element does not describe the usage of the element (that's done in comments), rather it's for traceability of *why* the element is either needed or why the constraints exist as they do.  This may be used to point to source materials or specifications that drove the structure of this data element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./inboundRelationship[typeCode=META]/source[classCode=ACT, moodCode=EVN, isCriterionInd=true]/reasonCode/originalText" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Registered_item).document_reference[document_type=requirements].notation" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="R/O/C" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.alias" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.alias" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.alias" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.alias">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.alias" />
          <short value="Other names" />
          <definition value="Identifies additional names by which this element might also be known." />
          <requirements value="Allows for better easier recognition of the element by multiple communities, including international communities." />
          <alias value="synonym" />
          <alias value="other name" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OM1.8, OM1.52" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Not currently expressible" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Designatable_Item).designation.sign  acceptability!=preferred or context is other than default" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="RELATED NAMES (only some of these apply)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.min" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.min" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.min" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.min">
          <path value="ElementDefinition.min" />
          <short value="Minimum Cardinality" />
          <definition value="The minimum number of times this element SHALL appear in the instance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <condition value="eld-2" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="Minimum  size of  data element  values?" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.max" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.max" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.max" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.max">
          <path value="ElementDefinition.max" />
          <short value="Maximum Cardinality (a number or *)" />
          <definition value="The maximum number of times this element is permitted to appear in the instance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="eld-3" />
          <condition value="eld-2" />
          <constraint>
            <key value="eld-3" />
            <severity value="error" />
            <human value="Max SHALL be a number or &quot;*&quot;" />
            <expression value="empty() or ($this = '*') or (toInteger() &gt;= 0)" />
            <xpath value="@value='*' or (normalize-space(@value)!='' and normalize-space(translate(@value, '0123456789',''))='')" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OMC.10" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="Maximum  size of  data element  values?" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.base" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.base" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.base" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.base">
          <path value="ElementDefinition.base" />
          <short value="Base definition information for tools" />
          <definition value="Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. This information is provided when the element definition is not the original definition of an element - i.g. either in a constraint on another type, or for elements from a super type in a snap shot." />
          <comment value="The base information does not carry any information that could not be determined from the path and related profiles, but making this determination requires both that the related profiles are available, and that the algorithm to determine them be available. So they are deformalised into this location for tooling convenience, and to ensure that the base information is available without dependencies." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.base.path" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.base.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.base.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.base.path">
          <path value="ElementDefinition.base.path" />
          <short value="Path that identifies the base element" />
          <definition value="The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [StructureDefinition](structuredefinition.html#) without a StructureDefinition.base." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.base.min" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.base.min" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.base.min" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.base.min">
          <path value="ElementDefinition.base.min" />
          <short value="Min cardinality of the base element" />
          <definition value="Minimum cardinality of the base element identified by the path." />
          <comment value="This is provided for consistency with max, and may affect code generation of mandatory elements of the base resource are generated differently (some reference implementations have done this)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.base.max" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.base.max" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.base.max" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.base.max">
          <path value="ElementDefinition.base.max" />
          <short value="Max cardinality of the base element" />
          <definition value="Maximum cardinality of the base element identified by the path." />
          <comment value="This is provided to code generation, since the serialization representation in JSON differs depending on whether the base element has max &gt; 1. Also, some forms of code generation may differ." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.contentReference" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.contentReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.contentReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.contentReference">
          <path value="ElementDefinition.contentReference" />
          <short value="Reference to definition of content for the element" />
          <definition value="Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <condition value="eld-5" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.type" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.type">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="TypeRef" />
          </extension>
          <path value="ElementDefinition.type" />
          <short value="Data type and Profile for this element" />
          <definition value="The data type or resource that the value of this element is permitted to be." />
          <comment value="The Type of the element can be left blank in a differential constraint, in which case the type is inherited from the resource. Abstract types are not permitted to appear as a type when multiple types are listed.  (I.e. Abstract types cannot be part of a choice)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Element" />
          </type>
          <condition value="eld-13" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="eld-4" />
            <severity value="error" />
            <human value="Aggregation may only be specified if one of the allowed types for the element is a resource" />
            <expression value="aggregation.empty() or (code = 'Reference')" />
            <xpath value="not(exists(f:aggregation)) or exists(f:code[@value = 'Reference'])" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="dex" />
            <map value="valueDomain.dataType" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OM1.3, OMC.9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value=".domain.data+Q14type" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="HL7_V2_DATATYPE (translation required), HL7_V3_DATATYPE (translation required)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.type.code" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.type.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.type.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.type.code">
          <path value="ElementDefinition.type.code" />
          <short value="Data type or Resource (reference to definition)" />
          <definition value="URL of Data type or Resource that is a(or the) type used for this element. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition e.g. &quot;string&quot; is a reference to http://hl7.org/fhir/StructureDefinition/string. Absolute URLs are only allowed in logical models." />
          <comment value="If the element is a reference to another resource, this element contains &quot;Reference&quot;, and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient). There would be one pair of type/code for each allowed target resource type." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRDefinedTypeExt" />
            </extension>
            <strength value="extensible" />
            <description value="Either a resource or a data type, including logical model types" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/defined-types" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OM1.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value=".domain.data+Q14type" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="HL7_V2_DATATYPE (translation required), HL7_V3_DATATYPE (translation required)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.type.profile" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.type.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.type.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.type.profile">
          <path value="ElementDefinition.type.profile" />
          <short value="Profile (StructureDefinition) to apply (or IG)" />
          <definition value="Identifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to. Can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.type.targetProfile" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.type.targetProfile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.type.targetProfile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.type.targetProfile">
          <path value="ElementDefinition.type.targetProfile" />
          <short value="Profile (StructureDefinition) to apply to reference target (or IG)" />
          <definition value="Identifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to. Can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.type.aggregation" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.type.aggregation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.type.aggregation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.type.aggregation">
          <path value="ElementDefinition.type.aggregation" />
          <short value="contained | referenced | bundled - how aggregated" />
          <definition value="If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <condition value="eld-4" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AggregationMode" />
            </extension>
            <strength value="required" />
            <description value="How resource references can be aggregated." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-aggregation-mode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.type.versioning" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.type.versioning" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.type.versioning" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.type.versioning">
          <path value="ElementDefinition.type.versioning" />
          <short value="either | independent | specific" />
          <definition value="Whether this reference needs to be version specific or version independent, or whether either can be used." />
          <comment value="The base specification never makes a rule as to which form is allowed, but implementation guides may do this." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <defaultValueCode value="either" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferenceVersionRules" />
            </extension>
            <strength value="required" />
            <description value="Whether a reference needs to be version specific or version independent, or whether either can be used" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/reference-version-rules" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.defaultValueX" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.defaultValueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.defaultValueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.defaultValue[x]">
          <path value="ElementDefinition.defaultValue[x]" />
          <short value="Specified value if missing from instance" />
          <definition value="The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false')." />
          <comment value="Default values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. Specifying a default value means that the property can never been unknown - it must always have a value. Further, the default value can never be changed. For these reasons, default values are (and should be) used extremely sparingly." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="markdown" />
          </type>
          <type>
            <code value="oid" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Annotation" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="ContactPoint" />
          </type>
          <type>
            <code value="Count" />
          </type>
          <type>
            <code value="Distance" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="HumanName" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Money" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Reference" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Signature" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Meta" />
          </type>
          <condition value="eld-15" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.meaningWhenMissing" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.meaningWhenMissing" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.meaningWhenMissing" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.meaningWhenMissing">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.meaningWhenMissing" />
          <short value="Implicit meaning when this element is missing" />
          <definition value="The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'." />
          <comment value="Implicit meanings for missing values can only be specified on a resource, data type, or extension definition, and never in a profile that applies to one of these. An implicit meaning for a missing value can never be changed, and specifying one has the consequence that constraining its use in profiles eliminates use cases as possibilities, not merely moving them out of scope." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <condition value="eld-15" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.orderMeaning" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.orderMeaning" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.orderMeaning" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.orderMeaning">
          <path value="ElementDefinition.orderMeaning" />
          <short value="What the order of the elements means" />
          <definition value="If present, indicates that the order of the repeating element has meaning and describes what that meaning is.  If absent, it means that the order of the element has no meaning." />
          <comment value="This element can only be asserted on repeating elements and can only be introduced when defining resources or data types.  It can be further refined profiled elements but if absent in the base type, a profile cannot assert meaning." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.fixedX" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.fixedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.fixedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.fixed[x]">
          <path value="ElementDefinition.fixed[x]" />
          <short value="Value must be exactly this" />
          <definition value="Specifies a value that SHALL be exactly the value  for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing." />
          <comment value="This is not recommended for Coding and CodeableConcept since these often have highly contextual properties such as version or display." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="markdown" />
          </type>
          <type>
            <code value="oid" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Annotation" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="ContactPoint" />
          </type>
          <type>
            <code value="Count" />
          </type>
          <type>
            <code value="Distance" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="HumanName" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Money" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Reference" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Signature" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Meta" />
          </type>
          <condition value="eld-5" />
          <condition value="eld-6" />
          <condition value="eld-8" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="N/A (only relevant when constraining, which 11179 doesn't do)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.patternX" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.patternX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.patternX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.pattern[x]">
          <path value="ElementDefinition.pattern[x]" />
          <short value="Value must have at least these property values" />
          <definition value="Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example.  The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.)." />
          <comment value="Mostly used for fixing values of CodeableConcept. At present, pattern[x] is not recommended as a basis for slicing while issues related to this are investigated during the STU period." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="markdown" />
          </type>
          <type>
            <code value="oid" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Annotation" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="ContactPoint" />
          </type>
          <type>
            <code value="Count" />
          </type>
          <type>
            <code value="Distance" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="HumanName" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Money" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Reference" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Signature" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Meta" />
          </type>
          <condition value="eld-5" />
          <condition value="eld-7" />
          <condition value="eld-8" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.example" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.example" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.example" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.example">
          <path value="ElementDefinition.example" />
          <short value="Example value (as defined for type)" />
          <definition value="A sample value for this element demonstrating the type of information that would typically be found in the element." />
          <comment value="Examples will most commonly be present for data where it's not implicitly obvious from either the data type or value set what the values might be.  (I.e. Example values for dates or quantities would generally be unnecessary.)  If the example value is fully populated, the publication tool can generate an instance automatically." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.example.label" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.example.label" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.example.label" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.example.label">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.example.label" />
          <short value="Describes the purpose of this example" />
          <definition value="Describes the purpose of this example amoung the set of examples." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.example.valueX" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.example.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.example.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.example.value[x]">
          <path value="ElementDefinition.example.value[x]" />
          <short value="Value of Example (one of allowed types)" />
          <definition value="The actual value for the element, which must be one of the types allowed for this element." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="markdown" />
          </type>
          <type>
            <code value="oid" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Annotation" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="ContactPoint" />
          </type>
          <type>
            <code value="Count" />
          </type>
          <type>
            <code value="Distance" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="HumanName" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Money" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Reference" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Signature" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Meta" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value=".example" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="EXMPL_ANSWERS" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.minValueX" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.minValueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.minValueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.minValue[x]">
          <path value="ElementDefinition.minValue[x]" />
          <short value="Minimum Allowed Value (for some types)" />
          <definition value="The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity." />
          <comment value="Except for date/date/instant, the type of the minValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of minValue[x] SHALL be either the same, or a a [Duration](datatypes.html#duration) which specifies a relative time limit to the current time. The duration value is positive, and is subtracted from the current clock to determine the minimum allowable value.   A minimum value for a Quantity is interpreted as an canonical minimum - e.g. you cannot provide 100mg if the minimum value is 10g." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.maxValueX" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.maxValueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.maxValueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.maxValue[x]">
          <path value="ElementDefinition.maxValue[x]" />
          <short value="Maximum Allowed Value (for some types)" />
          <definition value="The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity." />
          <comment value="Except for date/date/instant, the type of the maxValue[x] SHALL be the same as the specified type of the element. For the date/dateTime/instant values, the type of maxValue[x] SHALL be either the same, or a a [Duration](datatypes.html#duration) which specifies a relative time limit to the current time. The duration value is positive, and is added to the current clock to determine the maximum allowable value.   A maximum value for a Quantity is interpreted as an canonical maximum - e.g. you cannot provide 10g if the maximum value is 50mg." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.maxLength" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.maxLength" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.maxLength" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.maxLength">
          <path value="ElementDefinition.maxLength" />
          <short value="Max length for strings" />
          <definition value="Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element." />
          <comment value="Receivers are not required to reject instances that exceed the maximum length.  The full length could be stored.  In some cases, data might be truncated, though truncation should be undertaken with care and an understanding of the consequences of doing so. If not specified, there is no conformance expectation for length support." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OMC.12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value=".domain.maximum_character_quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.condition" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.condition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.condition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.condition">
          <path value="ElementDefinition.condition" />
          <short value="Reference to invariant about presence" />
          <definition value="A reference to an invariant that may make additional statements about the cardinality or value in the instance." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.constraint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.constraint">
          <path value="ElementDefinition.constraint" />
          <short value="Condition that must evaluate to true" />
          <definition value="Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance." />
          <comment value="Constraints should be declared on the &quot;context&quot; element - the lowest element in the hierarchy that is common to all nodes referenced by the constraint." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="??" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.key" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.constraint.key" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.key" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.constraint.key">
          <path value="ElementDefinition.constraint.key" />
          <short value="Target of 'condition' reference above" />
          <definition value="Allows identification of which elements have their cardinalities impacted by the constraint.  Will not be referenced for constraints that do not affect cardinality." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <condition value="eld-14" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.requirements" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.constraint.requirements" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.requirements" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.constraint.requirements">
          <path value="ElementDefinition.constraint.requirements" />
          <short value="Why this constraint is necessary or appropriate" />
          <definition value="Description of why this constraint is necessary or appropriate." />
          <comment value="To be used if the reason for the constraint may not be intuitive to all implementers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.severity" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.constraint.severity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.severity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.constraint.severity">
          <path value="ElementDefinition.constraint.severity" />
          <short value="error | warning" />
          <definition value="Identifies the impact constraint violation has on the conformance of the instance." />
          <comment value="This allows constraints to be asserted as &quot;shall&quot; (error) and &quot;should&quot; (warning)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConstraintSeverity" />
            </extension>
            <strength value="required" />
            <description value="SHALL applications comply with this constraint?" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/constraint-severity" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.human" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.constraint.human" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.human" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.constraint.human">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.constraint.human" />
          <short value="Human description of constraint" />
          <definition value="Text that can be used to describe the constraint in messages identifying that the constraint has been violated." />
          <comment value="Should be expressed in business terms as much as possible." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.expression" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.constraint.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.constraint.expression">
          <path value="ElementDefinition.constraint.expression" />
          <short value="FHIRPath expression of constraint" />
          <definition value="A [FHIRPath](http://hl7.org/fluentpath) expression of constraint that can be executed to see if this constraint is met." />
          <requirements value="Used by validation tooling tests of the validity of the resource." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.xpath" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.constraint.xpath" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.xpath" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.constraint.xpath">
          <path value="ElementDefinition.constraint.xpath" />
          <short value="XPath expression of constraint" />
          <definition value="An XPath expression of constraint that can be executed to see if this constraint is met." />
          <comment value="Elements SHALL use &quot;f&quot; as the namespace prefix for the FHIR namespace, and &quot;x&quot; for the xhtml namespace, and SHALL NOT use any other prefixes. &#xA;&#xA;Note: we are considering deprecating the xpath element. Implementer feedback is welcome." />
          <requirements value="Used in Schematron tests of the validity of the resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.source" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.constraint.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.constraint.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.constraint.source">
          <path value="ElementDefinition.constraint.source" />
          <short value="Reference to original source of constraint" />
          <definition value="A reference to the original source of the constraint, for traceability purposes." />
          <comment value="This is used when, e.g. rendering, where it is not useful to present inherited constraints when rendering the snapshot." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.mustSupport" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.mustSupport" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.mustSupport" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.mustSupport">
          <path value="ElementDefinition.mustSupport" />
          <short value="If the element must supported" />
          <definition value="If true, implementations that produce or consume resources SHALL provide &quot;support&quot; for the element in some meaningful way.  If false, the element may be ignored and not supported." />
          <comment value="&quot;Something useful&quot; is context dependent and impossible to describe in the base FHIR specification. For this reason, tue mustSupport flag is never set to true by the FHIR specification itself - it is only set to true in profiles. &#xA;&#xA;This is done in [Resource Profiles](profiling.html#mustsupport), where the profile labels an element as mustSupport=true. When a profile does this, it SHALL also make clear exactly what kind of &quot;support&quot; is required, as this can mean many things.&#xA;&#xA;Note that an element that has the property IsModifier is not necessarily a &quot;key&quot; element (e.g. one of the important elements to make use of the resource), nor is it automatically mustSupport - however both of these things are more likely to be true for IsModifier elements than for other elements." />
          <requirements value="Allows a profile to set expectations for system capabilities beyond merely respecting cardinality constraints." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="??" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.isModifier" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.isModifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.isModifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.isModifier">
          <path value="ElementDefinition.isModifier" />
          <short value="If this modifies the meaning of other elements" />
          <definition value="If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system." />
          <comment value="Only the definition of an element can set IsModifier true - either the specification itself or where an extension is originally defined. Once set, it cannot be changed in derived profiles. An element/extension that has isModifier=true SHOULD also have a minimum cardinality of 1, so that there is no lack of clarity about what to do if it is missing. If it can be missing, the definition SHALL make the meaning of a missing element clear." />
          <requirements value="Allows elements to be introduced into a specification that can't safely be ignored by applications that don't recognize them." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="??" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.isSummary" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.isSummary" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.isSummary" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.isSummary">
          <path value="ElementDefinition.isSummary" />
          <short value="Include when _summary = true?" />
          <definition value="Whether the element should be included if a client requests a search with the parameter _summary=true." />
          <comment value="Some resources include a set of simple metadata, and some very large data. This element is used to reduce the quantity of data returned in searches. Note that servers may pre-cache summarized resources for optimal performance, so servers may not support per-profile use of the isSummary flag. When a request is made with _summary=true, serailisers only include elements marked as 'isSummary = true'. Other than Attachment.data, all data type properties are included in the summary form. Modifier elements or elements with minimum cardinality = 1 must be marked as summary elements." />
          <requirements value="Allow clients to search through large resources quickly." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="??" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.binding" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.binding" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.binding" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.binding">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ElementDefinitionBinding" />
          </extension>
          <path value="ElementDefinition.binding" />
          <short value="ValueSet details if this is coded" />
          <definition value="Binds to a value set if this element is coded (code, Coding, CodeableConcept, Quantity), or the data types (string, uri)." />
          <comment value="For a CodeableConcept, when no codes are allowed - only text, use a binding of strength &quot;required&quot; with a description explaining that no coded values are allowed and what sort of information to put in the &quot;text&quot; element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Element" />
          </type>
          <condition value="eld-11" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="eld-10" />
            <severity value="error" />
            <human value="provide either a reference or a description (or both)" />
            <expression value="valueSet.exists() or description.exists()" />
            <xpath value="(exists(f:valueSetUri) or exists(f:valueSetReference)) or exists(f:description)" />
          </constraint>
          <constraint>
            <key value="eld-12" />
            <severity value="error" />
            <human value="ValueSet as a URI SHALL start with http:// or https:// or urn:" />
            <expression value="valueSet.is(uri).not() or valueSet.as(uri).startsWith('http:') or valueSet.as(uri).startsWith('https') or valueSet.as(uri).startsWith('urn:')" />
            <xpath value="not(exists(f:valueSetUri)) or (starts-with(string(f:valueSetUri/@value), 'http:') or starts-with(string(f:valueSetUri/@value), 'https:') or starts-with(string(f:valueSetUri/@value), 'urn:'))" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OM3, OMC.11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value=".domain" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="ANSWER LIST, NORMATIVE ANSWER LIST" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.binding.strength" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.binding.strength" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.binding.strength" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.binding.strength">
          <path value="ElementDefinition.binding.strength" />
          <short value="required | extensible | preferred | example" />
          <definition value="Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances." />
          <comment value="For further discussion, see [Using Terminologies](terminologies.html)." />
          <alias value="conformance" />
          <alias value="extensibility" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BindingStrength" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Indication of the degree of conformance expectations associated with a binding." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/binding-strength" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.binding.description" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.binding.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.binding.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.binding.description">
          <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true" />
          </extension>
          <path value="ElementDefinition.binding.description" />
          <short value="Human explanation of the value set" />
          <definition value="Describes the intended use of this particular set of codes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="eld-10" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value=".domain.description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.binding.valueSetX" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.binding.valueSetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.binding.valueSetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.binding.valueSet[x]">
          <path value="ElementDefinition.binding.valueSet[x]" />
          <short value="Source of value set" />
          <definition value="Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used. If the binding refers to an explicit value set - the normal case - then use a Reference(ValueSet) preferably containing the canonical URL for the value set. If the reference is to an implicit value set - usually, an IETF RFC that defines a grammar, such as mime types - then use a uri." />
          <comment value="For value sets with a referenceResource, the display can contain the value set description.  The reference may be version-specific or not." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
          </type>
          <condition value="eld-10" />
          <condition value="eld-12" />
          <isSummary value="true" />
          <mapping>
            <identity value="dex" />
            <map value="valueDomain.valueSet" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="points to explicit list or expression that evaluates to list of (Enumerated_Value_Domain).member" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="CODE_TABLE" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.mapping" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.mapping">
          <path value="ElementDefinition.mapping" />
          <short value="Map element to another set of definitions" />
          <definition value="Identifies a concept from an external specification that roughly corresponds to this element." />
          <comment value="Mappings are not necessarily specific enough for safe translation." />
          <requirements value="Provides guidance to implementers familiar with or converting content from other specifications." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="dex" />
            <map value="mappingSpecification" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="Registered_item).document_reference[document_type=mapping]  Also, .meaning linkage to Data_Element_Concept is done as a mapping to a reference model.  (Data_Element_Concepts are all defined in some sort of reference model, be that Object_Class and Property or some other mechanism)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping.identity" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.mapping.identity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping.identity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.mapping.identity">
          <path value="ElementDefinition.mapping.identity" />
          <short value="Reference to mapping declaration" />
          <definition value="An internal reference to the definition of a mapping." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping.language" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.mapping.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.mapping.language">
          <path value="ElementDefinition.mapping.language" />
          <short value="Computable language of mapping" />
          <definition value="Identifies the computable language in which mapping.map is expressed." />
          <comment value="If omitted, then there can be no expectation of computational interpretation of the mapping." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MimeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The mime type of an attachment. Any valid mime type is allowed." />
            <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping.map" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.mapping.map" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping.map" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.mapping.map">
          <path value="ElementDefinition.mapping.map" />
          <short value="Details of the mapping" />
          <definition value="Expresses what part of the target specification corresponds to this element." />
          <comment value="For most mappings, the syntax is undefined.  Syntax will be provided for mappings to the RIM.  Multiple mappings may be possible and may include constraints on other resource elements that identify when a particular mapping applies." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="ObjectClass, Property (this is one possible data model that can be mapped to - the uri would identify the data model  mappingSpecification.mappingScript" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping.comment" />
    <resource>
      <DataElement>
        <id value="ElementDefinition.mapping.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ElementDefinition.mapping.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ElementDefinition.mapping.comment">
          <path value="ElementDefinition.mapping.comment" />
          <short value="Comments about the mapping or its use" />
          <definition value="Comments that provide information about the mapping or its use." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF territory)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ParameterDefinition" />
    <resource>
      <DataElement>
        <id value="ParameterDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ParameterDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ParameterDefinition">
          <path value="ParameterDefinition" />
          <short value="Definition of a parameter to a module" />
          <definition value="The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ParameterDefinition.name" />
    <resource>
      <DataElement>
        <id value="ParameterDefinition.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ParameterDefinition.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ParameterDefinition.name">
          <path value="ParameterDefinition.name" />
          <short value="Name used to access the parameter value" />
          <definition value="The name of the parameter used to allow access to the value of the parameter in evaluation contexts." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ParameterDefinition.use" />
    <resource>
      <DataElement>
        <id value="ParameterDefinition.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ParameterDefinition.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ParameterDefinition.use">
          <path value="ParameterDefinition.use" />
          <short value="in | out" />
          <definition value="Whether the parameter is input or output for the module." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ParameterUse" />
            </extension>
            <strength value="required" />
            <description value="Whether the parameter is input or output" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/operation-parameter-use" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ParameterDefinition.min" />
    <resource>
      <DataElement>
        <id value="ParameterDefinition.min" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ParameterDefinition.min" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ParameterDefinition.min">
          <path value="ParameterDefinition.min" />
          <short value="Minimum cardinality" />
          <definition value="The minimum number of times this parameter SHALL appear in the request or response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ParameterDefinition.max" />
    <resource>
      <DataElement>
        <id value="ParameterDefinition.max" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ParameterDefinition.max" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ParameterDefinition.max">
          <path value="ParameterDefinition.max" />
          <short value="Maximum cardinality (a number of *)" />
          <definition value="The maximum number of times this element is permitted to appear in the request or response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ParameterDefinition.documentation" />
    <resource>
      <DataElement>
        <id value="ParameterDefinition.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ParameterDefinition.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ParameterDefinition.documentation">
          <path value="ParameterDefinition.documentation" />
          <short value="A brief description of the parameter" />
          <definition value="A brief discussion of what the parameter is for and how it is used by the module." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ParameterDefinition.type" />
    <resource>
      <DataElement>
        <id value="ParameterDefinition.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ParameterDefinition.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ParameterDefinition.type">
          <path value="ParameterDefinition.type" />
          <short value="What type of value" />
          <definition value="The type of the parameter." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRAllTypes" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Either an abstract type, a resource or a data type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/all-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ParameterDefinition.profile" />
    <resource>
      <DataElement>
        <id value="ParameterDefinition.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ParameterDefinition.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ParameterDefinition.profile">
          <path value="ParameterDefinition.profile" />
          <short value="What profile the value is expected to be" />
          <definition value="If specified, this indicates a profile that the input data must conform to, or that the output data will conform to." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Extension" />
    <resource>
      <DataElement>
        <id value="Extension" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Extension" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Extension">
          <path value="Extension" />
          <short value="Optional Extensions Element" />
          <definition value="Optional Extension Element - found in all resources." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (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(.), 'value')])" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Extension.url" />
    <resource>
      <DataElement>
        <id value="Extension.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Extension.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Extension.url">
          <path value="Extension.url" />
          <representation value="xmlAttr" />
          <short value="identifies the meaning of the extension" />
          <definition value="Source of the definition for the extension code - a logical name or a URL." />
          <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Extension.valueX" />
    <resource>
      <DataElement>
        <id value="Extension.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Extension.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Extension.value[x]">
          <path value="Extension.value[x]" />
          <short value="Value of extension" />
          <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="markdown" />
          </type>
          <type>
            <code value="oid" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Annotation" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="ContactPoint" />
          </type>
          <type>
            <code value="Count" />
          </type>
          <type>
            <code value="Distance" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="HumanName" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Money" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Reference" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Signature" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Meta" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BackboneElement" />
    <resource>
      <DataElement>
        <id value="BackboneElement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BackboneElement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BackboneElement">
          <path value="BackboneElement" />
          <short value="Base for elements defined inside a resource" />
          <definition value="Base definition for all elements that are defined inside a resource - but not those in a data type." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BackboneElement.modifierExtension" />
    <resource>
      <DataElement>
        <id value="BackboneElement.modifierExtension" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BackboneElement.modifierExtension" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BackboneElement.modifierExtension">
          <path value="BackboneElement.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="*" />
          <type>
            <code value="Extension" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Narrative" />
    <resource>
      <DataElement>
        <id value="Narrative" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Narrative" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Narrative">
          <path value="Narrative" />
          <short value="A human-readable formatted text, including images" />
          <definition value="A human-readable formatted text, including images." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Narrative.status" />
    <resource>
      <DataElement>
        <id value="Narrative.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Narrative.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Narrative.status">
          <path value="Narrative.status" />
          <short value="generated | extensions | additional | empty" />
          <definition value="The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NarrativeStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of a resource narrative" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/narrative-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Narrative.div" />
    <resource>
      <DataElement>
        <id value="Narrative.div" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Narrative.div" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Narrative.div">
          <path value="Narrative.div" />
          <short value="Limited xhtml content" />
          <definition value="The actual narrative content, a stripped down version of XHTML." />
          <comment value="The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, &lt;a&gt; elements (either name or href), images and internally contained stylesheets. The XHTML content may not contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="xhtml" />
          </type>
          <constraint>
            <key value="txt-1" />
            <severity value="error" />
            <human value="The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, &lt;a&gt; elements (either name or href), images and internally contained style attributes" />
            <expression value="htmlchecks()" />
            <xpath value="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])" />
          </constraint>
          <constraint>
            <key value="txt-2" />
            <severity value="error" />
            <human value="The narrative SHALL have some non-whitespace content" />
            <expression value="htmlchecks()" />
            <xpath value="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Element" />
    <resource>
      <DataElement>
        <id value="Element" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Element" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Element">
          <path value="Element" />
          <short value="Base for all elements" />
          <definition value="Base definition for all elements in a resource." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Element.id" />
    <resource>
      <DataElement>
        <id value="Element.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Element.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Element.id">
          <path value="Element.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" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Element.extension" />
    <resource>
      <DataElement>
        <id value="Element.extension" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Element.extension" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Element.extension">
          <path value="Element.extension" />
          <slicing>
            <discriminator>
              <type value="value" />
              <path value="url" />
            </discriminator>
            <description value="Extensions are always sliced by (at least) url" />
            <rules value="open" />
          </slicing>
          <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="*" />
          <type>
            <code value="Extension" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DomainResource" />
    <resource>
      <DataElement>
        <id value="DomainResource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DomainResource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DomainResource">
          <path value="DomainResource" />
          <short value="A resource with narrative, extensions, and contained resources" />
          <definition value="A resource that includes narrative, extensions, and contained resources." />
          <min value="0" />
          <max value="*" />
          <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)" />
          </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)" />
          </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))" />
          </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(('#'+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('#', $id))]))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DomainResource.text" />
    <resource>
      <DataElement>
        <id value="DomainResource.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DomainResource.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DomainResource.text">
          <path value="DomainResource.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="1" />
          <type>
            <code value="Narrative" />
          </type>
          <condition value="dom-1" />
          <mapping>
            <identity value="rim" />
            <map value="Act.text?" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DomainResource.contained" />
    <resource>
      <DataElement>
        <id value="DomainResource.contained" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DomainResource.contained" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DomainResource.contained">
          <path value="DomainResource.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="*" />
          <type>
            <code value="Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DomainResource.extension" />
    <resource>
      <DataElement>
        <id value="DomainResource.extension" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DomainResource.extension" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DomainResource.extension">
          <path value="DomainResource.extension" />
          <slicing>
            <discriminator>
              <type value="value" />
              <path value="url" />
            </discriminator>
            <description value="Extensions are always sliced by (at least) url" />
            <rules value="open" />
          </slicing>
          <short value="Additional Content defined by implementations" />
          <definition value="May be used to represent additional information that is not part of the basic definition of the resource. 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="*" />
          <type>
            <code value="Extension" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DomainResource.modifierExtension" />
    <resource>
      <DataElement>
        <id value="DomainResource.modifierExtension" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DomainResource.modifierExtension" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DomainResource.modifierExtension">
          <path value="DomainResource.modifierExtension" />
          <slicing>
            <discriminator>
              <type value="value" />
              <path value="url" />
            </discriminator>
            <description value="Extensions are always sliced by (at least) url" />
            <rules value="open" />
          </slicing>
          <short value="Extensions that cannot be ignored" />
          <definition value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. 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" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Extension" />
          </type>
          <isModifier value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Parameters" />
    <resource>
      <DataElement>
        <id value="Parameters" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Parameters" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Parameters">
          <path value="Parameters" />
          <short value="Operation Request or Response" />
          <definition value="This special resource type is used to represent an operation request and response (operations.html). It has no other use, and there is no RESTful endpoint associated with it." />
          <comment value="The parameters that may be used are defined by the OperationDefinition resource." />
          <min value="0" />
          <max value="*" />
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.exchange" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Parameters.parameter" />
    <resource>
      <DataElement>
        <id value="Parameters.parameter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Parameters.parameter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Parameters.parameter">
          <path value="Parameters.parameter" />
          <short value="Operation Parameter" />
          <definition value="A parameter passed to or received from the operation." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="inv-1" />
            <severity value="error" />
            <human value="A parameter must have only one of (value, resource, part)" />
            <expression value="(part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))" />
            <xpath value="exists(f:value) or exists(f:resource) and not(exists(f:value) and exists(f:resource))" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Parameters.parameter.name" />
    <resource>
      <DataElement>
        <id value="Parameters.parameter.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Parameters.parameter.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Parameters.parameter.name">
          <path value="Parameters.parameter.name" />
          <short value="Name from the definition" />
          <definition value="The name of the parameter (reference to the operation definition)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Parameters.parameter.valueX" />
    <resource>
      <DataElement>
        <id value="Parameters.parameter.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Parameters.parameter.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Parameters.parameter.value[x]">
          <path value="Parameters.parameter.value[x]" />
          <short value="If parameter is a data type" />
          <definition value="If the parameter is a data type." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="markdown" />
          </type>
          <type>
            <code value="oid" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Annotation" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="ContactPoint" />
          </type>
          <type>
            <code value="Count" />
          </type>
          <type>
            <code value="Distance" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="HumanName" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Money" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Reference" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Signature" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Meta" />
          </type>
          <condition value="inv-1" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Parameters.parameter.resource" />
    <resource>
      <DataElement>
        <id value="Parameters.parameter.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Parameters.parameter.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Parameters.parameter.resource">
          <path value="Parameters.parameter.resource" />
          <short value="If parameter is a whole resource" />
          <definition value="If the parameter is a whole resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Resource" />
          </type>
          <condition value="inv-1" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Parameters.parameter.part" />
    <resource>
      <DataElement>
        <id value="Parameters.parameter.part" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Parameters.parameter.part" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Parameters.parameter.part">
          <path value="Parameters.parameter.part" />
          <short value="Named part of a multi-part parameter" />
          <definition value="A named part of a multi-part parameter." />
          <comment value="Only one level of nested parameters is allowed." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#Parameters.parameter" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Resource" />
    <resource>
      <DataElement>
        <id value="Resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Resource">
          <path value="Resource" />
          <short value="Base Resource" />
          <definition value="This is the base resource type for everything." />
          <min value="0" />
          <max value="*" />
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Resource.id" />
    <resource>
      <DataElement>
        <id value="Resource.id" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Resource.id" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Resource.id">
          <path value="Resource.id" />
          <short value="Logical id of this artifact" />
          <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." />
          <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Resource.meta" />
    <resource>
      <DataElement>
        <id value="Resource.meta" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Resource.meta" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Resource.meta">
          <path value="Resource.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="0" />
          <max value="1" />
          <type>
            <code value="Meta" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Resource.implicitRules" />
    <resource>
      <DataElement>
        <id value="Resource.implicitRules" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Resource.implicitRules" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Resource.implicitRules">
          <path value="Resource.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. &#xA;&#xA;This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Resource.language" />
    <resource>
      <DataElement>
        <id value="Resource.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Resource.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Resource.language">
          <path value="Resource.language" />
          <short value="Language of the resource content" />
          <definition value="The base language in which the resource is written." />
          <comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment" />
    <resource>
      <DataElement>
        <id value="Appointment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment">
          <path value="Appointment" />
          <short value="A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)" />
          <definition value="A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="app-3" />
            <severity value="error" />
            <human value="Only proposed or cancelled appointments can be missing start/end dates" />
            <expression value="(start.exists() and end.exists()) or (status in ('proposed' | 'cancelled'))" />
            <xpath value="((exists(f:start) and exists(f:end)) or (f:status/@value='proposed') or (f:status/@value='cancelled'))" />
          </constraint>
          <constraint>
            <key value="app-2" />
            <severity value="error" />
            <human value="Either start and end are specified, or neither" />
            <expression value="start.empty() xor end.exists()" />
            <xpath value="((exists(f:start) and exists(f:end)) or (not(exists(f:start)) and not(exists(f:end))))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[@moodCode &lt;= 'INT']" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="VEVENT" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.scheduling" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.identifier" />
    <resource>
      <DataElement>
        <id value="Appointment.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.identifier">
          <path value="Appointment.identifier" />
          <short value="External Ids for this item" />
          <definition value="This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SCH-1, SCH-2, ARQ-1, ARQ-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="UID" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.status" />
    <resource>
      <DataElement>
        <id value="Appointment.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.status">
          <path value="Appointment.status" />
          <short value="proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error" />
          <definition value="The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status." />
          <comment value="If the Appointment's status is &quot;cancelled&quot; then all participants are expected to have their calendars released for the appointment period, and as such any Slots that were marked as BUSY can be re-set to FREE.&#xA;&#xA;This element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AppointmentStatus" />
            </extension>
            <strength value="required" />
            <description value="The free/busy status of an appointment." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/appointmentstatus" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="SCH-25" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.serviceCategory" />
    <resource>
      <DataElement>
        <id value="Appointment.serviceCategory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.serviceCategory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.serviceCategory">
          <path value="Appointment.serviceCategory" />
          <short value="A broad categorisation of the service that is to be performed during this appointment" />
          <definition value="A broad categorisation of the service that is to be performed during this appointment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-category" />
            </extension>
            <strength value="example" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a, might be inferred from the ServiceDeliveryLocation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.serviceType" />
    <resource>
      <DataElement>
        <id value="Appointment.serviceType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.serviceType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.serviceType">
          <path value="Appointment.serviceType" />
          <short value="The specific service that is to be performed during this appointment" />
          <definition value="The specific service that is to be performed during this appointment." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-type" />
            </extension>
            <strength value="example" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a, might be inferred from the ServiceDeliveryLocation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.specialty" />
    <resource>
      <DataElement>
        <id value="Appointment.specialty" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.specialty" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.specialty">
          <path value="Appointment.specialty" />
          <short value="The specialty of a practitioner that would be required to perform the service requested in this appointment" />
          <definition value="The specialty of a practitioner that would be required to perform the service requested in this appointment." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="specialty" />
            </extension>
            <strength value="preferred" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-practice-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".performer.AssignedPerson.code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.appointmentType" />
    <resource>
      <DataElement>
        <id value="Appointment.appointmentType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.appointmentType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.appointmentType">
          <path value="Appointment.appointmentType" />
          <short value="The style of appointment or patient that has been booked in the slot (not service type)" />
          <definition value="The style of appointment or patient that has been booked in the slot (not service type)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="appointment-type" />
            </extension>
            <strength value="preferred" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v2-0276" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="ARQ-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.reason" />
    <resource>
      <DataElement>
        <id value="Appointment.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.reason">
          <path value="Appointment.reason" />
          <short value="Reason this appointment is scheduled" />
          <definition value="The reason that this appointment is being scheduled. This is more clinical than administrative." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ApptReason" />
            </extension>
            <strength value="preferred" />
            <description value="The Reason for the appointment to take place." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="AIS-3, SCH-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.indication" />
    <resource>
      <DataElement>
        <id value="Appointment.indication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.indication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.indication">
          <path value="Appointment.indication" />
          <short value="Reason the appointment is to takes place (resource)" />
          <definition value="Reason the appointment has been scheduled to take place, as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[@typeCode = 'RSON'].observation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.priority" />
    <resource>
      <DataElement>
        <id value="Appointment.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.priority">
          <path value="Appointment.priority" />
          <short value="Used to make informed decisions if needing to re-prioritize" />
          <definition value="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority)." />
          <comment value="Seeking implementer feedback on this property and how interoperable it is.&#xD;&#xD;Using an extension to record a codeableconcept for named values may be tested at a future connectathon." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="ARQ-12, SCH-11.6 / TQ1-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".priorityCode" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="PRIORITY" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.description" />
    <resource>
      <DataElement>
        <id value="Appointment.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.description">
          <path value="Appointment.description" />
          <short value="Shown on a subject line in a meeting request, or appointment list" />
          <definition value="The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="NTE-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="DESCRIPTION" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.supportingInformation" />
    <resource>
      <DataElement>
        <id value="Appointment.supportingInformation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.supportingInformation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.supportingInformation">
          <path value="Appointment.supportingInformation" />
          <short value="Additional information to support the appointment" />
          <definition value="Additional information to support the appointment provided when making the appointment." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[@typeCode = 'SPRT'].observation" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.start" />
    <resource>
      <DataElement>
        <id value="Appointment.start" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.start" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.start">
          <path value="Appointment.start" />
          <short value="When appointment is to take place" />
          <definition value="Date/Time that the appointment is to take place." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ARQ-11.1, SCH-11.4 / TQ1-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime.low" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.end" />
    <resource>
      <DataElement>
        <id value="Appointment.end" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.end" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.end">
          <path value="Appointment.end" />
          <short value="When appointment is to conclude" />
          <definition value="Date/Time that the appointment is to conclude." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SCH-11.5 / TQ1-8/ calculated based on the start and the duration which is in ARQ-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime.high" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.minutesDuration" />
    <resource>
      <DataElement>
        <id value="Appointment.minutesDuration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.minutesDuration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.minutesDuration">
          <path value="Appointment.minutesDuration" />
          <short value="Can be less than start/end (e.g. estimate)" />
          <definition value="Number of minutes that the appointment is to take. This can be less than the duration between the start and end times (where actual time of appointment is only an estimate or is a planned appointment request)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')].width" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.slot" />
    <resource>
      <DataElement>
        <id value="Appointment.slot" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.slot" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.slot">
          <path value="Appointment.slot" />
          <short value="The slots that this appointment is filling" />
          <definition value="The slots from the participants' schedules that will be filled by the appointment." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Slot" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[@typeCode = 'REFR'].act[@classCode = 'ACT'][@moodCode = 'SLOT']" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.created" />
    <resource>
      <DataElement>
        <id value="Appointment.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.created">
          <path value="Appointment.created" />
          <short value="The date that this appointment was initially created" />
          <definition value="The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment." />
          <comment value="This property is required for many use cases where the age of an appointment is considered in processing workflows for scheduling and billing of appointments." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".author.time" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.comment" />
    <resource>
      <DataElement>
        <id value="Appointment.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.comment">
          <path value="Appointment.comment" />
          <short value="Additional comments" />
          <definition value="Additional comments about the appointment." />
          <comment value="Additional text to aid in facilitating the appointment. For instance, a comment might be, &quot;patient should proceed immediately to infusion room upon arrival&quot;&#xD;&#xD;Where this is a planned appointment and the start/end dates are not set then this field can be used to provide additional guidance on the details of the appointment request, including any restrictions on when to book it." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="NTE-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="COMMENT" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.incomingReferral" />
    <resource>
      <DataElement>
        <id value="Appointment.incomingReferral" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.incomingReferral" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.incomingReferral">
          <path value="Appointment.incomingReferral" />
          <short value="The ReferralRequest provided as information to allocate to the Encounter" />
          <definition value="The referral request this appointment is allocated to assess (incoming referral)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[@typeCode = 'FLFS'].act[@classCode &lt; 'ActCareProvisionRequestType'][@moodCode = 'RQO']" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.participant" />
    <resource>
      <DataElement>
        <id value="Appointment.participant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.participant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.participant">
          <path value="Appointment.participant" />
          <short value="Participants involved in appointment" />
          <definition value="List of participants involved in the appointment." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="app-1" />
            <severity value="error" />
            <human value="Either the type or actor on the participant SHALL be specified" />
            <expression value="type.exists() or actor.exists()" />
            <xpath value="(exists(f:type) or exists(f:actor))" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="PID, AIP, AIG, AIL" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="performer | reusableDevice | subject | location" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="ATTENDEE component to be created" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.participant.type" />
    <resource>
      <DataElement>
        <id value="Appointment.participant.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.participant.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.participant.type">
          <path value="Appointment.participant.type" />
          <short value="Role of participant in the appointment" />
          <definition value="Role of participant in the appointment." />
          <comment value="The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.&#xD;&#xD;If the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.&#xD;&#xD;This value SHALL be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ParticipantType" />
            </extension>
            <strength value="extensible" />
            <description value="Role of participant in encounter." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-participant-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="AIP-4, AIG-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="(performer | reusableDevice | subject | location).@typeCode" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.participant.actor" />
    <resource>
      <DataElement>
        <id value="Appointment.participant.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.participant.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.participant.actor">
          <path value="Appointment.participant.actor" />
          <short value="Person, Location/HealthcareService or Device" />
          <definition value="A Person, Location/HealthcareService or Device that is participating in the appointment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3-Patient ID List | AIL-3 | AIG-3 | AIP-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="performer.person | reusableDevice.manufacturedDevice | subject.patient | location.serviceDeliveryLocation" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource) where the participant type is not &quot;information-only&quot;" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.participant.required" />
    <resource>
      <DataElement>
        <id value="Appointment.participant.required" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.participant.required" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.participant.required">
          <path value="Appointment.participant.required" />
          <short value="required | optional | information-only" />
          <definition value="Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ParticipantRequired" />
            </extension>
            <strength value="required" />
            <description value="Is the Participant required to attend the appointment." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/participantrequired" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="(performer | reusableDevice | subject | location).@performInd" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="ROLE=REQ-PARTICIPANT (roleparam)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.participant.status" />
    <resource>
      <DataElement>
        <id value="Appointment.participant.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.participant.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.participant.status">
          <path value="Appointment.participant.status" />
          <short value="accepted | declined | tentative | needs-action" />
          <definition value="Participation status of the actor." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ParticipationStatus" />
            </extension>
            <strength value="required" />
            <description value="The Participation status of an appointment." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/participationstatus" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="AIP-12, AIG-14" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="(performer | reusableDevice | subject | location).statusCode" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="ATTENDEE;CN=&quot;Brian Postlethwaite&quot;;RSVP=TRUE:mailto:BPostlethwaite@data.com (rsvpparam | partstatparam)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Appointment.requestedPeriod" />
    <resource>
      <DataElement>
        <id value="Appointment.requestedPeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Appointment.requestedPeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Appointment.requestedPeriod">
          <path value="Appointment.requestedPeriod" />
          <short value="Potential date/time interval(s) requested to allocate the appointment within" />
          <definition value="A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within. When using these values, the minutes duration should be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time." />
          <comment value="This does not introduce a capacity for recurring appointments." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="ARQ-11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest" />
    <resource>
      <DataElement>
        <id value="ReferralRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest">
          <path value="ReferralRequest" />
          <short value="A request for referral or transfer of care" />
          <definition value="Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organization." />
          <alias value="ReferralRequest TransferOfCare Request" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.careprovision" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.identifier" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.identifier">
          <path value="ReferralRequest.identifier" />
          <short value="Business identifier" />
          <definition value="Business identifier that uniquely identifies the referral/care transfer request instance." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="RF1-6 / RF1-11" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.definition" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.definition">
          <path value="ReferralRequest.definition" />
          <short value="Instantiates protocol or definition" />
          <definition value="A protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.basedOn" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.basedOn">
          <path value="ReferralRequest.basedOn" />
          <short value="Request fulfilled by this request" />
          <definition value="Indicates any plans, proposals or orders that this request is intended to satisfy - in whole or in part." />
          <alias value="fulfills" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.replaces" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.replaces" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.replaces" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.replaces">
          <path value="ReferralRequest.replaces" />
          <short value="Request(s) replaced by this request" />
          <definition value="Completed or terminated request(s) whose function is taken by this new request." />
          <comment value="The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing." />
          <requirements value="Allows tracing the continuation of a therapy or administrative process instantiated through multiple requests." />
          <alias value="supersedes" />
          <alias value="prior" />
          <alias value="renewed order" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RPLC].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.groupIdentifier" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.groupIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.groupIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.groupIdentifier">
          <path value="ReferralRequest.groupIdentifier" />
          <short value="Composite request this is part of" />
          <definition value="The business identifier of the logical &quot;grouping&quot; request/order that this referral is a part of." />
          <requirements value="Allows multiple orders to be collected as part of a single requisition." />
          <alias value="grouperId" />
          <alias value="requisition" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.status" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.status">
          <path value="ReferralRequest.status" />
          <short value="draft | active | suspended | cancelled | completed | entered-in-error | unknown" />
          <definition value="The status of the authorization/intention reflected by the referral request record." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <requirements value="Workflow status is handled by the Task resource." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferralRequestStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the referral." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RF1-1" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.intent" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.intent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.intent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.intent">
          <path value="ReferralRequest.intent" />
          <short value="proposal | plan | order" />
          <definition value="Distinguishes the &quot;level&quot; of authorization/demand implicit in this request." />
          <requirements value="The same resource structure is used when capturing proposals/recommendations, plans and actual requests." />
          <alias value="category" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferralCategory" />
            </extension>
            <strength value="required" />
            <description value="Codes identifying the stage lifecycle stage of a request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-intent" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.type" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.type">
          <path value="ReferralRequest.type" />
          <short value="Referral/Transition of care request type" />
          <definition value="An indication of the type of referral (or where applicable the type of transfer of care) request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferralType" />
            </extension>
            <strength value="example" />
            <description value="Codes for types of referral; e.g. consult, transfer, temporary transfer." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/referral-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RF1-10" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.priority" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.priority">
          <path value="ReferralRequest.priority" />
          <short value="Urgency of referral / transfer of care request" />
          <definition value="An indication of the urgency of referral (or where applicable the type of transfer of care) request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferralPriority" />
            </extension>
            <strength value="required" />
            <description value="Codes indicating the relative priority of the referral." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RF1-2" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.serviceRequested" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.serviceRequested" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.serviceRequested" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.serviceRequested">
          <path value="ReferralRequest.serviceRequested" />
          <short value="Actions requested as part of the referral" />
          <definition value="The service(s) that is/are requested to be provided to the patient.  For example: cardiac pacemaker insertion." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RequestedService" />
            </extension>
            <strength value="example" />
            <description value="Codes indicating the types of services that might be requested as part of a referral." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-practice-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PR1-3 / OBR-4" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.subject" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.subject">
          <path value="ReferralRequest.subject" />
          <short value="Patient referred to care or transfer" />
          <definition value="The patient who is the subject of a referral or transfer of care request." />
          <comment value="Referral of family, group or community is to be catered for by profiles." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.context" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.context">
          <path value="ReferralRequest.context" />
          <short value="Originating encounter" />
          <definition value="The encounter at which the request for referral or transfer of care is initiated." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PV1-19" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.occurrenceX" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.occurrenceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.occurrenceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.occurrence[x]">
          <path value="ReferralRequest.occurrence[x]" />
          <short value="When the service(s) requested in the referral should occur" />
          <definition value="The period of time within which the services identified in the referral/transfer of care is specified or required to occur." />
          <comment value="When the occurrenceDateTime is used, then it is indicating that the requested service must happen before the specified date." />
          <requirements value="Use cases: (1) to indicate that the requested service is not to happen before a specified date, and saving the start date in Period.start; (2) to indicate that the requested service must happen before a specified date, and saving the end date in Period.end; (3) to indicate that the requested service must happen during the specified dates (&quot;start&quot; and &quot;end&quot; values)." />
          <alias value="timing" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OBR-7/OBR-8" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.authoredOn" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.authoredOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.authoredOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.authoredOn">
          <path value="ReferralRequest.authoredOn" />
          <short value="Date of creation/activation" />
          <definition value="Date/DateTime of creation for draft requests and date of activation for active requests." />
          <alias value="createdOn" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="RF1-7 / RF1-9?" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.requester" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.requester" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.requester" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.requester">
          <path value="ReferralRequest.requester" />
          <short value="Who/what is requesting service" />
          <definition value="The individual who initiated the request and has responsibility for its activation." />
          <alias value="author" />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="rfr-1" />
            <severity value="error" />
            <human value="onBehalfOf can only be specified if agent is practitioner or device" />
            <expression value="(agent.resolve() is Device) or (agent.resolve() is Practitioner) or onBehalfOf.exists().not()" />
            <xpath value="contains(f:agent/f:reference/@value, '/Practitioner/') or contains(f:agent/f:reference/@value, '/Device/') or not(exists(f:onBehalfOf))" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.requester.agent" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.requester.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.requester.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.requester.agent">
          <path value="ReferralRequest.requester.agent" />
          <short value="Individual making the request" />
          <definition value="The device, practitioner, etc. who initiated the request." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.requester.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.requester.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.requester.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.requester.onBehalfOf">
          <path value="ReferralRequest.requester.onBehalfOf" />
          <short value="Organization agent is acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of." />
          <requirements value="Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when authoring the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <condition value="rfr-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.specialty" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.specialty" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.specialty" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.specialty">
          <path value="ReferralRequest.specialty" />
          <short value="The clinical specialty (discipline) that the referral is requested for" />
          <definition value="Indication of the clinical domain or discipline to which the referral or transfer of care request is sent.  For example: Cardiology Gastroenterology Diabetology." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isModifier value="false" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferralSpecialty" />
            </extension>
            <strength value="example" />
            <description value="Codes indicating the types of capability the referred to service provider must have." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/practitioner-specialty" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RF1-3" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.recipient" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.recipient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.recipient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.recipient">
          <path value="ReferralRequest.recipient" />
          <short value="Receiver of referral / transfer of care request" />
          <definition value="The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request." />
          <comment value="There will be a primary receiver. But the request can be received by any number of &quot;copied to&quot; providers or organizations." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.reasonCode" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.reasonCode">
          <path value="ReferralRequest.reasonCode" />
          <short value="Reason for referral / transfer of care request" />
          <definition value="Description of clinical condition indicating why referral/transfer of care is requested.  For example:  Pathological Anomalies, Disabled (physical or mental),  Behavioral Management." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isModifier value="false" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferralReason" />
            </extension>
            <strength value="example" />
            <description value="Codes indicating why the referral is being requested." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-findings" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RF1-10" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.reasonReference" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.reasonReference">
          <path value="ReferralRequest.reasonReference" />
          <short value="Why is service needed?" />
          <definition value="Indicates another resource whose existence justifies this request." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.description" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.description">
          <path value="ReferralRequest.description" />
          <short value="A textual description of the referral" />
          <definition value="The reason element gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isModifier value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.supportingInfo" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.supportingInfo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.supportingInfo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.supportingInfo">
          <path value="ReferralRequest.supportingInfo" />
          <short value="Additonal information to support referral or transfer of care request" />
          <definition value="Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care.  For example: Presenting problems/chief complaints Medical History Family History Alerts Allergy/Intolerance and Adverse Reactions Medications Observations/Assessments (may include cognitive and fundtional assessments) Diagnostic Reports Care Plan." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isModifier value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.note" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.note">
          <path value="ReferralRequest.note" />
          <short value="Comments made about referral request" />
          <definition value="Comments made about the referral request by any of the participants." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ReferralRequest.relevantHistory" />
    <resource>
      <DataElement>
        <id value="ReferralRequest.relevantHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ReferralRequest.relevantHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ReferralRequest.relevantHistory">
          <path value="ReferralRequest.relevantHistory" />
          <short value="Key events in history of request" />
          <definition value="Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource." />
          <comment value="This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude." />
          <alias value="eventHistory" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Provenance" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account" />
    <resource>
      <DataElement>
        <id value="Account" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account">
          <path value="Account" />
          <short value="Tracks balance, charges, for patient or cost center" />
          <definition value="A financial tool for tracking value accrued for a particular purpose.  In the healthcare field, used to track charges for a patient, cost centers, etc." />
          <alias value="Cost center" />
          <alias value="Record" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Account" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.support" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.identifier" />
    <resource>
      <DataElement>
        <id value="Account.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.identifier">
          <path value="Account.identifier" />
          <short value="Account number" />
          <definition value="Unique identifier used to reference the account.  May or may not be intended for human use (e.g. credit card number)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.status" />
    <resource>
      <DataElement>
        <id value="Account.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.status">
          <path value="Account.status" />
          <short value="active | inactive | entered-in-error" />
          <definition value="Indicates whether the account is presently used/usable or not." />
          <comment value="This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the Account as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AccountStatus" />
            </extension>
            <strength value="required" />
            <description value="Indicates whether the account is available to be used." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/account-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.type" />
    <resource>
      <DataElement>
        <id value="Account.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.type">
          <path value="Account.type" />
          <short value="E.g. patient, expense, depreciation" />
          <definition value="Categorizes the account for reporting and searching purposes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AccountType" />
            </extension>
            <strength value="example" />
            <description value="The usage type of this account, permits categorization of accounts." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/account-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.name" />
    <resource>
      <DataElement>
        <id value="Account.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.name">
          <path value="Account.name" />
          <short value="Human-readable label" />
          <definition value="Name used for the account when displaying it to humans in reports, etc." />
          <alias value="Title" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".title" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.subject" />
    <resource>
      <DataElement>
        <id value="Account.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.subject">
          <path value="Account.subject" />
          <short value="What is account tied to?" />
          <definition value="Identifies the patient, device, practitioner, location or other object the account is associated with." />
          <comment value="Accounts can be applied to non patients for tracking other non patient related activities, such as group services (patients not tracked, and costs charged to another body), or may not be allocated." />
          <alias value="target" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".subject" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.period" />
    <resource>
      <DataElement>
        <id value="Account.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.period">
          <path value="Account.period" />
          <short value="Transaction window" />
          <definition value="Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc." />
          <comment value="It is possible for transactions relevant to a coverage period to be posted to the account before or after the coverage period, however the services that are being charged for must be within this period." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".coverage.insurancePolicy.effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.active" />
    <resource>
      <DataElement>
        <id value="Account.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.active">
          <path value="Account.active" />
          <short value="Time window that transactions may be posted to this account" />
          <definition value="Indicates the period of time over which the account is allowed to have transactions posted to it.&#xA;This period may be different to the coveragePeriod which is the duration of time that services may occur." />
          <requirements value="Accounts are able to be active only during a specific period, and the dates to which charges should be able to be applied." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.balance" />
    <resource>
      <DataElement>
        <id value="Account.balance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.balance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.balance">
          <path value="Account.balance" />
          <short value="How much is in account?" />
          <definition value="Represents the sum of all credits less all debits associated with the account.  Might be positive, zero or negative." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".balanceAmt" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.coverage" />
    <resource>
      <DataElement>
        <id value="Account.coverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.coverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.coverage">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Coverage" />
          </extension>
          <path value="Account.coverage" />
          <short value="The party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account" />
          <definition value="The party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account." />
          <comment value="Typically this may be some form of insurance, internal charges, or self-pay.&#xA;&#xA;Local or jurisdicational business rules may determine which coverage covers which types of billable items charged to the account, and in which order.&#xA;Where the order is important, a local/jurisdicational extension may be defined to specify the order for the type of charge." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".coverage" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.coverage.coverage" />
    <resource>
      <DataElement>
        <id value="Account.coverage.coverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.coverage.coverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.coverage.coverage">
          <path value="Account.coverage.coverage" />
          <short value="The party(s) that are responsible for covering the payment of this account" />
          <definition value="The party(s) that are responsible for payment (or part of) of charges applied to this account (including self-pay).&#xA;&#xA;A coverage may only be resposible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Coverage" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".coverage.insurancePolicy.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.coverage.priority" />
    <resource>
      <DataElement>
        <id value="Account.coverage.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.coverage.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.coverage.priority">
          <path value="Account.coverage.priority" />
          <short value="The priority of the coverage in the context of this account" />
          <definition value="The priority of the coverage in the context of this account." />
          <comment value="It is common in some jurisdictions for there to be multiple coverages allocated to an account, and a sequence is required to order the settling of the account (often with insurance claiming)." />
          <alias value="coordination of benefit priority" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".coverage.sequenceNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.owner" />
    <resource>
      <DataElement>
        <id value="Account.owner" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.owner" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.owner">
          <path value="Account.owner" />
          <short value="Who is responsible?" />
          <definition value="Indicates the organization, department, etc. with responsibility for the account." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".holder" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.description" />
    <resource>
      <DataElement>
        <id value="Account.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.description">
          <path value="Account.description" />
          <short value="Explanation of purpose/use" />
          <definition value="Provides additional information about what the account tracks and how it is used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".subjectOf.observationEvent[code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.guarantor" />
    <resource>
      <DataElement>
        <id value="Account.guarantor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.guarantor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.guarantor">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Guarantor" />
          </extension>
          <path value="Account.guarantor" />
          <short value="Responsible for the account" />
          <definition value="Parties financially responsible for the account." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".holder.guarantorRole" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.guarantor.party" />
    <resource>
      <DataElement>
        <id value="Account.guarantor.party" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.guarantor.party" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.guarantor.party">
          <path value="Account.guarantor.party" />
          <short value="Responsible entity" />
          <definition value="The entity who is responsible." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".holder.guarantorRole[guarantorPerson|guarantorOrganization]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.guarantor.onHold" />
    <resource>
      <DataElement>
        <id value="Account.guarantor.onHold" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.guarantor.onHold" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.guarantor.onHold">
          <path value="Account.guarantor.onHold" />
          <short value="Credit or other hold applied" />
          <definition value="A guarantor may be placed on credit hold or otherwise have their role temporarily suspended." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".holder.guarantorRole.statusCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Account.guarantor.period" />
    <resource>
      <DataElement>
        <id value="Account.guarantor.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Account.guarantor.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Account.guarantor.period">
          <path value="Account.guarantor.period" />
          <short value="Guarrantee account during" />
          <definition value="The timeframe during which the guarantor accepts responsibility for the account." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".holder.guarantorRole.effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest" />
    <resource>
      <DataElement>
        <id value="DocumentManifest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest">
          <path value="DocumentManifest" />
          <short value="A list that defines a set of documents" />
          <definition value="A collection of documents compiled for a purpose together with metadata that applies to the collection." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[classCode=FOLDER, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.documents" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.masterIdentifier" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.masterIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.masterIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.masterIdentifier">
          <path value="DocumentManifest.masterIdentifier" />
          <short value="Unique Identifier for the set of documents" />
          <definition value="A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="id [need a list semantic to indicate order matters]" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet.uniqueId" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.identifier" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.identifier">
          <path value="DocumentManifest.identifier" />
          <short value="Other identifiers for the manifest" />
          <definition value="Other identifiers associated with the document manifest, including version independent  identifiers." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="TXA-16-Unique Document File Name?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id / .setId" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet.entryUUID" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.status" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.status">
          <path value="DocumentManifest.status" />
          <short value="current | superseded | entered-in-error" />
          <definition value="The status of this document manifest." />
          <comment value="This element is labeled as a modifier because the status contains the codes that mark the manifest as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentReferenceStatus" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The status of the document reference." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/document-reference-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.type" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.type">
          <path value="DocumentManifest.type" />
          <short value="Kind of document set" />
          <definition value="Specifies the kind of this set of documents (e.g. Patient Summary, Discharge Summary, Prescription, etc.). The type of a set of documents may be the same as one of the documents in it - especially if there is only one - but it may be wider." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentC80Type" />
            </extension>
            <strength value="preferred" />
            <description value="Precise type of clinical document." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-doc-typecodes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet.contentTypeCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.subject" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.subject">
          <path value="DocumentManifest.subject" />
          <short value="The subject of the set of documents" />
          <definition value="Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet.patientId" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.created" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.created">
          <path value="DocumentManifest.created" />
          <short value="When this document manifest created" />
          <definition value="When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated, etc.)." />
          <comment value="Creation time is used for tracking, organizing versions and searching. This is the creation time of the document set, not the documents on which it is based." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet.submissionTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.author" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.author">
          <path value="DocumentManifest.author" />
          <short value="Who and/or what authored the manifest" />
          <definition value="Identifies who is responsible for creating the manifest, and adding  documents to it." />
          <comment value="Not necessarily who did the actual data entry (i.e. typist) or who was the source (informant)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet.author" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.recipient" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.recipient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.recipient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.recipient">
          <path value="DocumentManifest.recipient" />
          <short value="Intended to get notified about this set of documents" />
          <definition value="A patient, practitioner, or organization for which this set of documents is intended." />
          <comment value="How the recipient receives the document set or is notified of it is up to the implementation. This element is just a statement of intent. If the recipient is a person, and it is not known whether the person is a patient or a practitioner, RelatedPerson would be the default choice." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=IRCP].role" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet.intendedRecipient" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.cause" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.source" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.source">
          <path value="DocumentManifest.source" />
          <short value="The source system/application/software" />
          <definition value="Identifies the source system, application, or software that produced the document manifest." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PFM].time" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet.sourceId" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.description" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.description">
          <path value="DocumentManifest.description" />
          <short value="Human-readable description (title)" />
          <definition value="Human-readable description of the source document. This is sometimes known as the &quot;title&quot;." />
          <comment value="What the document is about, rather than a terse summary of the document. It is commonly the case that records do not have a title and are collectively referred to by the display name of Record code (e.g. a &quot;consultation&quot; or &quot;progress note&quot;)." />
          <requirements value="Helps humans to assess whether the document is of interest." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".title" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet.title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.content" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.content" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.content" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.content">
          <path value="DocumentManifest.content" />
          <short value="The items included" />
          <definition value="The list of Documents included in the manifest." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.content.pX" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.content.pX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.content.pX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.content.p[x]">
          <path value="DocumentManifest.content.p[x]" />
          <short value="Contents of this set of documents" />
          <definition value="The list of references to document content, or Attachment that consist of the parts of this document manifest. Usually, these would be document references, but direct references to Media or Attachments are also allowed." />
          <comment value="The intended focus of the DocumentManifest is for the reference to target either DocumentReference or Media Resources, and most implementation guides will restrict to these resources. The reference is to &quot;Any&quot; to support EN 13606 usage, where an extract is DocumentManifest that references  List and Composition resources." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="SubmissionSet DocumentEntry(s)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.related" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.related" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.related" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.related">
          <path value="DocumentManifest.related" />
          <short value="Related things" />
          <definition value="Related identifiers or resources associated with the DocumentManifest." />
          <comment value="May be identifiers or resources that caused the DocumentManifest to be created." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.related.identifier" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.related.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.related.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.related.identifier">
          <path value="DocumentManifest.related.identifier" />
          <short value="Identifiers of things that are related" />
          <definition value="Related identifier to this DocumentManifest.  For example, Order numbers, accession numbers, XDW workflow numbers." />
          <comment value="If both identifier and ref elements are present they shall refer to the same thing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentManifest.related.ref" />
    <resource>
      <DataElement>
        <id value="DocumentManifest.related.ref" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentManifest.related.ref" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentManifest.related.ref">
          <path value="DocumentManifest.related.ref" />
          <short value="Related Resource" />
          <definition value="Related Resource to this DocumentManifest. For example, Order, ProcedureRequest,  Procedure, EligibilityRequest, etc." />
          <comment value="If both identifier and ref elements are present they shall refer to the same thing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition" />
    <resource>
      <DataElement>
        <id value="MessageDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition">
          <path value="MessageDefinition" />
          <short value="A resource that defines a type of message that can be exchanged between systems" />
          <definition value="Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted." />
          <comment value="This would be a MIF-level artifact." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.exchange" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.url" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.url">
          <path value="MessageDefinition.url" />
          <short value="Logical URI to reference this message definition (globally unique)" />
          <definition value="An absolute URI that is used to identify this message 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 message definition is (or will be) published. The URL SHOULD include the major version of the message 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the message definition to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.identifier" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.identifier">
          <path value="MessageDefinition.identifier" />
          <short value="Additional identifier for the message definition" />
          <definition value="A formal identifier that is used to identify this message definition when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this message definition outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.version" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.version">
          <path value="MessageDefinition.version" />
          <short value="Business version of the message definition" />
          <definition value="The identifier that is used to identify this version of the message definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the message definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different message definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the message definition with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.name" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.name">
          <path value="MessageDefinition.name" />
          <short value="Name for this message definition (computer friendly)" />
          <definition value="A natural language name identifying the message 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.title" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.title">
          <path value="MessageDefinition.title" />
          <short value="Name for this message definition (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the message definition." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.status" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.status">
          <path value="MessageDefinition.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this message definition. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of message definitions that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired message definition without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.experimental" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.experimental">
          <path value="MessageDefinition.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this message 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 message definition that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental message definition in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level message definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.date" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.date">
          <path value="MessageDefinition.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the message definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the message 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 message definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.publisher" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.publisher">
          <path value="MessageDefinition.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the message definition." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the message definition is the organization or individual primarily responsible for the maintenance and upkeep of the message 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 message definition. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the message definition.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.contact" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.contact">
          <path value="MessageDefinition.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.description" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.description">
          <path value="MessageDefinition.description" />
          <short value="Natural language description of the message definition" />
          <definition value="A free text natural language description of the message definition from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the message 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 message 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="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.useContext" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.useContext">
          <path value="MessageDefinition.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate message definition instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.jurisdiction" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.jurisdiction">
          <path value="MessageDefinition.jurisdiction" />
          <short value="Intended jurisdiction for message definition (if applicable)" />
          <definition value="A legal or geographic region in which the message definition is intended to be used." />
          <comment value="It may be possible for the message definition to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.purpose" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.purpose">
          <path value="MessageDefinition.purpose" />
          <short value="Why this message definition is defined" />
          <definition value="Explaination of why this message definition is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the message definition Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this message definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.copyright" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.copyright">
          <path value="MessageDefinition.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the message definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the message definition." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the message definition and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.base" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.base" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.base" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.base">
          <path value="MessageDefinition.base" />
          <short value="Definition this one is based on" />
          <definition value="The MessageDefinition that is the basis for the contents of this resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MessageDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.parent" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.parent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.parent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.parent">
          <path value="MessageDefinition.parent" />
          <short value="Protocol/workflow this is part of" />
          <definition value="Identifies a protocol or workflow that this MessageDefinition represents a step in." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.replaces" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.replaces" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.replaces" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.replaces">
          <path value="MessageDefinition.replaces" />
          <short value="Takes the place of" />
          <definition value="A MessageDefinition that is superseded by this definition." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MessageDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.event" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.event" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.event" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.event">
          <path value="MessageDefinition.event" />
          <short value="Event type" />
          <definition value="A coded identifier of a supported messaging event." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MessageEvent" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="One of the message events defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/message-events" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.category" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.category">
          <path value="MessageDefinition.category" />
          <short value="Consequence | Currency | Notification" />
          <definition value="The impact of the content of the message." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MessageSignificanceCategory" />
            </extension>
            <strength value="required" />
            <description value="The impact of the content of a message." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/message-significance-category" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.focus" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.focus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.focus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.focus">
          <path value="MessageDefinition.focus" />
          <short value="Resource(s) that are the subject of the event" />
          <definition value="Identifies the resource (or resources) that are being addressed by the event.  For example, the Encounter for an admit message or two Account records for a merge." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="md-1" />
            <severity value="error" />
            <human value="Max must be postive int or *" />
            <expression value="max='*' or (max.toInteger() &gt; 0)" />
            <xpath value="f:max/@value='*' or number(f:max/@value) &gt; 0" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.focus.code" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.focus.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.focus.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.focus.code">
          <path value="MessageDefinition.focus.code" />
          <short value="Type of resource" />
          <definition value="The kind of resource that must be the focus for this message." />
          <comment value="Multiple focuses addressing different resources may occasionally occur.  E.g. to link or unlink a resource from a particular account or encounter, etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.focus.profile" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.focus.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.focus.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.focus.profile">
          <path value="MessageDefinition.focus.profile" />
          <short value="Profile that must be adhered to by focus" />
          <definition value="A profile that reflects constraints for the focal resource (and potentially for related resources)." />
          <comment value="This should be present for most message definitions.  However, if the message focus is only a single resource and there is no need to include referenced resources or otherwise enforce the presence of particular elements, it can be omitted." />
          <requirements value="This profile allows setting boundaries for what content must appear within the message bundle vs. outside based on the declared aggregation constraints on referenced resources on this and related profiles." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.focus.min" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.focus.min" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.focus.min" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.focus.min">
          <path value="MessageDefinition.focus.min" />
          <short value="Minimum number of focuses of this type" />
          <definition value="Identifies the minimum number of resources of this type that must be pointed to by a message in order for it to be valid against this MessageDefinition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <defaultValueUnsignedInt value="0" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.focus.max" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.focus.max" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.focus.max" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.focus.max">
          <path value="MessageDefinition.focus.max" />
          <short value="Maximum number of focuses of this type" />
          <definition value="Identifies the maximum number of resources of this type that must be pointed to by a message in order for it to be valid against this MessageDefinition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="md-1" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.responseRequired" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.responseRequired" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.responseRequired" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.responseRequired">
          <path value="MessageDefinition.responseRequired" />
          <short value="Is a response required?" />
          <definition value="Indicates whether a response is required for this message." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.allowedResponse" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.allowedResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.allowedResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.allowedResponse">
          <path value="MessageDefinition.allowedResponse" />
          <short value="Responses to this message" />
          <definition value="Indicates what types of messages may be sent as an application-level response to this message." />
          <comment value="This indicates an application level response to &quot;close&quot; a transaction implicit in a particular request message.  To define a complete workflow scenario, look to the [[PlanDefinition]] resource which allows the definition of complex orchestrations, conditionality, etc." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.allowedResponse.message" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.allowedResponse.message" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.allowedResponse.message" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.allowedResponse.message">
          <path value="MessageDefinition.allowedResponse.message" />
          <short value="Reference to allowed message definition response" />
          <definition value="A reference to the message definition that must be adhered to by this supported response." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MessageDefinition" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageDefinition.allowedResponse.situation" />
    <resource>
      <DataElement>
        <id value="MessageDefinition.allowedResponse.situation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageDefinition.allowedResponse.situation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageDefinition.allowedResponse.situation">
          <path value="MessageDefinition.allowedResponse.situation" />
          <short value="When should this response be used" />
          <definition value="Provides a description of the circumstances in which this response should be used (as opposed to one of the alternative responses)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal" />
    <resource>
      <DataElement>
        <id value="Goal" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal">
          <path value="Goal" />
          <short value="Describes the intended objective(s) for a patient, group or organization" />
          <definition value="Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc." />
          <comment value="Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="GOL.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode&lt;=OBJ]." />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.careprovision" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.identifier" />
    <resource>
      <DataElement>
        <id value="Goal.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.identifier">
          <path value="Goal.identifier" />
          <short value="External Ids for this goal" />
          <definition value="This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." />
          <requirements value="Need to allow connection to a wider workflow." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.status" />
    <resource>
      <DataElement>
        <id value="Goal.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.status">
          <path value="Goal.status" />
          <short value="proposed | accepted | planned | in-progress | on-target | ahead-of-target | behind-target | sustaining | achieved | on-hold | cancelled | entered-in-error | rejected" />
          <definition value="Indicates whether the goal has been reached and is still considered relevant." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <requirements value="Allows measuring outcome and whether goal needs to be further tracked." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalStatus" />
            </extension>
            <strength value="required" />
            <description value="Indicates whether the goal has been met and is still being targeted" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/goal-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="GOL-18-goal life cycle status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode in-progress = active (classCode = OBJ) achieved = complete sustaining = active (classCode=OBJC) cancelled = aborted" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.category" />
    <resource>
      <DataElement>
        <id value="Goal.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.category">
          <path value="Goal.category" />
          <short value="E.g. Treatment, dietary, behavioral, etc." />
          <definition value="Indicates a category the goal falls within." />
          <requirements value="Allows goals to be filtered and sorted." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalCategory" />
            </extension>
            <strength value="example" />
            <description value="Codes for grouping and sorting goals" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/goal-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.priority" />
    <resource>
      <DataElement>
        <id value="Goal.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.priority">
          <path value="Goal.priority" />
          <short value="high-priority | medium-priority | low-priority" />
          <definition value="Identifies the mutually agreed level of importance associated with reaching/sustaining the goal." />
          <comment value="Extensions are available to track priorities as established by each participant (i.e. Priority from the patient's perspective, different practitioners' perspectives, family member's perspectives)&#xD;&#xD;The ordinal extension on Coding can be used to convey a numerically comparable ranking to priority.  (Keep in mind that different coding systems may use a &quot;low value=important&quot;." />
          <requirements value="Used for sorting and presenting goals." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalPriority" />
            </extension>
            <strength value="preferred" />
            <description value="The level of importance associated with a goal" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/goal-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".priorityCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.description" />
    <resource>
      <DataElement>
        <id value="Goal.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.description">
          <path value="Goal.description" />
          <short value="Code or text describing goal" />
          <definition value="Human-readable and/or coded description of a specific desired objective of care, such as &quot;control blood pressure&quot; or &quot;negotiate an obstacle course&quot; or &quot;dance with child at wedding&quot;." />
          <comment value="If no code is available, use CodeableConcept.text." />
          <requirements value="Without a description of what's trying to be achieved, element has no purpose." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalDescription" />
            </extension>
            <strength value="example" />
            <description value="Codes providing the details of a particular goal.  This will generally be system or implementation guide-specific.  In many systems, only the text element will be used." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-findings" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="GOL-3.2-goal ID.text" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.subject" />
    <resource>
      <DataElement>
        <id value="Goal.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.subject">
          <path value="Goal.subject" />
          <short value="Who this goal is intended for" />
          <definition value="Identifies the patient, group or organization for whom the goal is being established." />
          <requirements value="Subject is optional to support annonymized reporting." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3-patient ID list" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PAT].role[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.startX" />
    <resource>
      <DataElement>
        <id value="Goal.startX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.startX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.start[x]">
          <path value="Goal.start[x]" />
          <short value="When goal pursuit begins" />
          <definition value="The date or event after which the goal should begin being pursued." />
          <requirements value="Goals can be established prior to there being an intention to start pursuing them; e.g. Goals for post-surgical recovery established prior to surgery." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalStartEvent" />
            </extension>
            <strength value="example" />
            <description value="Codes describing events that can trigger the initiation of a goal" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/goal-start-event" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.target" />
    <resource>
      <DataElement>
        <id value="Goal.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.target">
          <path value="Goal.target" />
          <short value="Target outcome for the goal" />
          <definition value="Indicates what should be done by when." />
          <requirements value="Allows the progress of the goal to be monitored against an observation or due date." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="gol-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="gol-1" />
            <severity value="error" />
            <human value="Goal.target.measure is required if Goal.target.detail is populated" />
            <expression value="(detail.exists() and measure.exists()) or detail.exists().not()" />
            <xpath value="(exists(f:*[starts-with(local-name(.), 'detail')]) and exists(f:measure)) or not(exists(f:*[starts-with(local-name(.), 'detail')]))" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.target.measure" />
    <resource>
      <DataElement>
        <id value="Goal.target.measure" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.target.measure" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.target.measure">
          <path value="Goal.target.measure" />
          <short value="The parameter whose value is being tracked" />
          <definition value="The parameter whose value is being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="gol-1" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalTargetMeasure" />
            </extension>
            <strength value="example" />
            <description value="Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.target.detailX" />
    <resource>
      <DataElement>
        <id value="Goal.target.detailX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.target.detailX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.target.detail[x]">
          <path value="Goal.target.detail[x]" />
          <short value="The target value to be achieved" />
          <definition value="The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="gol-1" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalTargetDetail" />
            </extension>
            <strength value="example" />
            <description value="Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal." />
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.target.dueX" />
    <resource>
      <DataElement>
        <id value="Goal.target.dueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.target.dueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.target.due[x]">
          <path value="Goal.target.due[x]" />
          <short value="Reach goal on or before" />
          <definition value="Indicates either the date or the duration after start by which the goal should be met." />
          <requirements value="Identifies when the goal should be evaluated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.statusDate" />
    <resource>
      <DataElement>
        <id value="Goal.statusDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.statusDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.statusDate">
          <path value="Goal.statusDate" />
          <short value="When goal status took effect" />
          <definition value="Identifies when the current status.  I.e. When initially created, when achieved, when cancelled, etc." />
          <comment value="To see the date for past statuses, query history." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.statusReason" />
    <resource>
      <DataElement>
        <id value="Goal.statusReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.statusReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.statusReason">
          <path value="Goal.statusReason" />
          <short value="Reason for current status" />
          <definition value="Captures the reason for the current status." />
          <comment value="This will typically be captured for statuses such as rejected, on-hold or cancelled, but could be present for others." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.expressedBy" />
    <resource>
      <DataElement>
        <id value="Goal.expressedBy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.expressedBy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.expressedBy">
          <path value="Goal.expressedBy" />
          <short value="Who's responsible for creating Goal?" />
          <definition value="Indicates whose goal this is - patient goal, practitioner goal, etc." />
          <comment value="This is the individual reponsible for establishing the goal, not necessarily who recorded it.  (For that, use the Provenance resource.)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.addresses" />
    <resource>
      <DataElement>
        <id value="Goal.addresses" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.addresses" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.addresses">
          <path value="Goal.addresses" />
          <short value="Issues addressed by this goal" />
          <definition value="The identified conditions and other health record elements that are intended to be addressed by the goal." />
          <requirements value="Allows specific goals to explicitly linked to the concerns they're dealing with - makes the goal more understandable." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RiskAssessment" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=SUBJ].target[classCode=CONC]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.note" />
    <resource>
      <DataElement>
        <id value="Goal.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.note">
          <path value="Goal.note" />
          <short value="Comments about the goal" />
          <definition value="Any comments related to the goal." />
          <comment value="May be used for progress notes, concerns or other related information that doesn't actually describe the goal itself." />
          <requirements value="There's a need to capture information about the goal that doesn't actually describe the goal." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="GOL-16-goal evaluation + NTE?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.outcomeCode" />
    <resource>
      <DataElement>
        <id value="Goal.outcomeCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.outcomeCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.outcomeCode">
          <path value="Goal.outcomeCode" />
          <short value="What result was achieved regarding the goal?" />
          <definition value="Identifies the change (or lack of change) at the point when the status of the goal is assessed." />
          <comment value="Note that this should not duplicate the goal status." />
          <requirements value="Outcome tracking is a key aspect of care planning." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalOutcome" />
            </extension>
            <strength value="example" />
            <description value="The result of the goal; e.g. &quot;25% increase in shoulder mobility&quot;, &quot;Anxiety reduced to moderate levels&quot;.  &quot;15 kg weight loss sustained over 6 months&quot;" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-findings" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Goal.outcomeReference" />
    <resource>
      <DataElement>
        <id value="Goal.outcomeReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Goal.outcomeReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Goal.outcomeReference">
          <path value="Goal.outcomeReference" />
          <short value="Observation that resulted from goal" />
          <definition value="Details of what's changed (or not changed)." />
          <comment value="The goal outcome is independent of the outcome of the related activities.  For example, if the Goal is to achieve a target body weight of 150 lb and a care plan activity is defined to diet, then the care plan’s activity outcome could be calories consumed whereas goal outcome is an observation for the actual body weight measured." />
          <requirements value="Outcome tracking is a key aspect of care planning." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint" />
    <resource>
      <DataElement>
        <id value="Endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint">
          <path value="Endpoint" />
          <short value="The technical details of an endpoint that can be used for electronic services" />
          <definition value="The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.exchange" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.identifier" />
    <resource>
      <DataElement>
        <id value="Endpoint.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.identifier">
          <path value="Endpoint.identifier" />
          <short value="Identifies this endpoint across multiple systems" />
          <definition value="Identifier for the organization that is used to identify the endpoint across multiple disparate systems." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.status" />
    <resource>
      <DataElement>
        <id value="Endpoint.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.status">
          <path value="Endpoint.status" />
          <short value="active | suspended | error | off | entered-in-error | test" />
          <definition value="active | suspended | error | off | test." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the endpoint as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EndpointStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the endpoint" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/endpoint-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.connectionType" />
    <resource>
      <DataElement>
        <id value="Endpoint.connectionType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.connectionType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.connectionType">
          <path value="Endpoint.connectionType" />
          <short value="Protocol/Profile/Standard to be used with this endpoint connection" />
          <definition value="A coded value that represents the technical details of the usage of this endpoint, such as what WSDLs should be used in what way. (e.g. XDS.b/DICOM/cds-hook)." />
          <comment value="For additional connectivity details for the protocol, extensions will be used at this point, as in the XDS example." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="endpoint-contype" />
            </extension>
            <strength value="extensible" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/endpoint-connection-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.name" />
    <resource>
      <DataElement>
        <id value="Endpoint.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.name">
          <path value="Endpoint.name" />
          <short value="A name that this endpoint can be identified by" />
          <definition value="A friendly name that this endpoint can be referred to with." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.managingOrganization" />
    <resource>
      <DataElement>
        <id value="Endpoint.managingOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.managingOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.managingOrganization">
          <path value="Endpoint.managingOrganization" />
          <short value="Organization that manages this endpoint (may not be the organization that exposes the endpoint)" />
          <definition value="The organization that manages this endpoint (even if technically another organisation is hosting this in the cloud, it is the organisation associated with the data)." />
          <comment value="This property is not typically used when searching for Endpoint resources for usage. The typical usage is via the reference from an aplicable Organization/Location/Practitioner resource, which is where the context is provided. Multiple Locations may reference a single endpoint, and don't have to be within the same organization resource, but most likely within the same organizational hierarchy." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.contact" />
    <resource>
      <DataElement>
        <id value="Endpoint.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.contact">
          <path value="Endpoint.contact" />
          <short value="Contact details for source (e.g. troubleshooting)" />
          <definition value="Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.period" />
    <resource>
      <DataElement>
        <id value="Endpoint.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.period">
          <path value="Endpoint.period" />
          <short value="Interval the endpoint is expected to be operational" />
          <definition value="The interval during which the endpoint is expected to be operational." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.payloadType" />
    <resource>
      <DataElement>
        <id value="Endpoint.payloadType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.payloadType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.payloadType">
          <path value="Endpoint.payloadType" />
          <short value="The type of content that may be used at this endpoint (e.g. XDS Discharge summaries)" />
          <definition value="The payload type describes the acceptable content that can be communicated on the endpoint." />
          <comment value="The payloadFormat describes the serialization format of the data, where the payloadType indicates the specific document/schema that is being transferred; e.g. DischargeSummary or CarePlan." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PayloadType" />
            </extension>
            <strength value="example" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/endpoint-payload-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.payloadMimeType" />
    <resource>
      <DataElement>
        <id value="Endpoint.payloadMimeType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.payloadMimeType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.payloadMimeType">
          <path value="Endpoint.payloadMimeType" />
          <short value="Mimetype to send. If not specified, the content could be anything (including no payload, if the connectionType defined this)" />
          <definition value="The mime type to send the payload in - e.g. application/fhir+xml, application/fhir+json. If the mime type is not specified, then the sender could send any content (including no content depending on the connectionType)." />
          <comment value="Sending the payload has obvious security consequences. The server is responsible for ensuring that the content is appropriately secured." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MimeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The mime type of an attachment. Any valid mime type is allowed." />
            <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.address" />
    <resource>
      <DataElement>
        <id value="Endpoint.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.address">
          <path value="Endpoint.address" />
          <short value="The technical base address for connecting to this endpoint" />
          <definition value="The uri that describes the actual end-point to connect to." />
          <comment value="For rest-hook, and websocket, the end-point must be an http: or https: URL; for email, a mailto: url, for sms, a tel: url, and for message the endpoint can be in any form of url the server understands (usually, http: or mllp:). The URI is allowed to be relative; in which case, it is relative to the server end-point (since their may be more than one, clients should avoid using relative URIs)&#xA;&#xA;This address will be to the service base, without any parameters, or sub-services or resources tacked on.&#xA;&#xA;E.g. for a WADO-RS endpoint, the url should be &quot;https://pacs.hospital.org/wado-rs&quot;&#xA;&#xA;and not &quot;https://pacs.hospital.org/wado-rs/studies/1.2.250.1.59.40211.12345678.678910/series/1.2.250.1.59.40211.789001276.14556172.67789/instances/...&quot;." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Endpoint.header" />
    <resource>
      <DataElement>
        <id value="Endpoint.header" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Endpoint.header" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Endpoint.header">
          <path value="Endpoint.header" />
          <short value="Usage depends on the channel type" />
          <definition value="Additional headers / information to send as part of the notification." />
          <comment value="Exactly what these mean depend on the channel type. The can convey additional information to the recipient and/or meet security requirements." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentRequest" />
    <resource>
      <DataElement>
        <id value="EnrollmentRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentRequest">
          <path value="EnrollmentRequest" />
          <short value="Enrollment request" />
          <definition value="This resource provides the insurance enrollment details to the insurer regarding a specified coverage." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.support" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentRequest.identifier" />
    <resource>
      <DataElement>
        <id value="EnrollmentRequest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentRequest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentRequest.identifier">
          <path value="EnrollmentRequest.identifier" />
          <short value="Business Identifier" />
          <definition value="The Response business identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentRequest.status" />
    <resource>
      <DataElement>
        <id value="EnrollmentRequest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentRequest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentRequest.status">
          <path value="EnrollmentRequest.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the request as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EnrollmentRequestStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentRequest.created" />
    <resource>
      <DataElement>
        <id value="EnrollmentRequest.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentRequest.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentRequest.created">
          <path value="EnrollmentRequest.created" />
          <short value="Creation date" />
          <definition value="The date when this resource was created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentRequest.insurer" />
    <resource>
      <DataElement>
        <id value="EnrollmentRequest.insurer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentRequest.insurer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentRequest.insurer">
          <path value="EnrollmentRequest.insurer" />
          <short value="Target" />
          <definition value="The Insurer who is target  of the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentRequest.provider" />
    <resource>
      <DataElement>
        <id value="EnrollmentRequest.provider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentRequest.provider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentRequest.provider">
          <path value="EnrollmentRequest.provider" />
          <short value="Responsible practitioner" />
          <definition value="The practitioner who is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B01" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentRequest.organization" />
    <resource>
      <DataElement>
        <id value="EnrollmentRequest.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentRequest.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentRequest.organization">
          <path value="EnrollmentRequest.organization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentRequest.subject" />
    <resource>
      <DataElement>
        <id value="EnrollmentRequest.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentRequest.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentRequest.subject">
          <path value="EnrollmentRequest.subject" />
          <short value="The subject of the Products and Services" />
          <definition value="Patient Resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="C06,C07,C08, C05, C04" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentRequest.coverage" />
    <resource>
      <DataElement>
        <id value="EnrollmentRequest.coverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentRequest.coverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentRequest.coverage">
          <path value="EnrollmentRequest.coverage" />
          <short value="Insurance information" />
          <definition value="Reference to the program or plan identification, underwriter or payor." />
          <requirements value="Need to identify the issuer to target for processing and for coordination of benefit processing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Coverage" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent" />
    <resource>
      <DataElement>
        <id value="Consent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent">
          <path value="Consent" />
          <short value="A healthcare consumer's policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time" />
          <definition value="A record of a healthcare consumer’s policy choices, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time." />
          <comment value="Broadly, there are 3 key areas of consent for patients: Consent around sharing information (aka Privacy Consent Directive - Authorization to Collect, Use, or Disclose information), consent for specific treatment, or kinds of treatment, and general advance care directives." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="ppc-1" />
            <severity value="error" />
            <human value="Either a Policy or PolicyRule" />
            <expression value="policy.exists() or policyRule.exists()" />
            <xpath value="exists(f:policy) or exists(f:policyRule)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="FinancialConsent" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.information" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.identifier" />
    <resource>
      <DataElement>
        <id value="Consent.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.identifier">
          <path value="Consent.identifier" />
          <short value="Identifier for this record (external references)" />
          <definition value="Unique identifier for this copy of the Consent Statement." />
          <comment value="This identifier is identifies this copy of the consent. Where this identifier is also used elsewhere as the identifier for a consent record (e.g. a CDA consent document) then the consent details are expected to be the same." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <example>
            <label value="General" />
            <valueIdentifier>
              <system value="urn:ietf:rfc:3986" />
              <value value="Local eCMS identifier" />
            </valueIdentifier>
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.status" />
    <resource>
      <DataElement>
        <id value="Consent.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.status">
          <path value="Consent.status" />
          <short value="draft | proposed | active | rejected | inactive | entered-in-error" />
          <definition value="Indicates the current state of this consent." />
          <comment value="This element is labeled as a modifier because the status contains the codes rejected and entered-in-error that mark the Consent as not currently valid." />
          <requirements value="The Consent Directive that is pointed to might be in various lifecycle states, e.g., a revoked Consent Directive." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentState" />
            </extension>
            <strength value="required" />
            <description value="Indicates the state of the consent" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consent-state-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="HL7 Table 0498 - Consent Status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.category" />
    <resource>
      <DataElement>
        <id value="Consent.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.category">
          <path value="Consent.category" />
          <short value="Classification of the consent statement - for indexing/retrieval" />
          <definition value="A classification of the type of consents found in the statement. This element supports indexing and retrieval of consent statements." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentCategory" />
            </extension>
            <strength value="example" />
            <description value="A classification of the type of consents found in a consent statement" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consent-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="CNTRCT" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.patient" />
    <resource>
      <DataElement>
        <id value="Consent.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.patient">
          <path value="Consent.patient" />
          <short value="Who the consent applies to" />
          <definition value="The patient/healthcare consumer to whom this consent applies." />
          <comment value="Commonly, the patient the consent pertains to is the author, but for young and old people, it may be some other person." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.period" />
    <resource>
      <DataElement>
        <id value="Consent.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.period">
          <path value="Consent.period" />
          <short value="Period that this consent applies" />
          <definition value="Relevant time or time-period when this Consent is applicable." />
          <comment value="This can be a subset of the period of the original statement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <meaningWhenMissing value="all date ranges included" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="FinancialConsent activityTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.dateTime" />
    <resource>
      <DataElement>
        <id value="Consent.dateTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.dateTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.dateTime">
          <path value="Consent.dateTime" />
          <short value="When this Consent was created or indexed" />
          <definition value="When this  Consent was issued / created / indexed." />
          <comment value="This is not the time of the original consent, but the time that this statement was made or derived." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="FinancialConsent effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.consentingParty" />
    <resource>
      <DataElement>
        <id value="Consent.consentingParty" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.consentingParty" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.consentingParty">
          <path value="Consent.consentingParty" />
          <short value="Who is agreeing to the policy and exceptions" />
          <definition value="Either the Grantor, which is the entity responsible for granting the rights listed in a Consent Directive or the Grantee, which is the entity responsible for complying with the Consent Directive, including any obligations or limitations on authorizations and enforcement of prohibitions." />
          <comment value="Commonly, the patient the consent pertains to is the consentor, but particularly for young and old people, it may be some other person - e.g. a legal guardian." />
          <alias value="consentor" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.actor" />
    <resource>
      <DataElement>
        <id value="Consent.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.actor">
          <path value="Consent.actor" />
          <short value="Who|what controlled by this consent (or group, by role)" />
          <definition value="Who or what is controlled by this consent. Use group to identify a set of actors by some property they share (e.g. 'admitting officers')." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <meaningWhenMissing value="There is no specific actor associated with the consent" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.actor.role" />
    <resource>
      <DataElement>
        <id value="Consent.actor.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.actor.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.actor.role">
          <path value="Consent.actor.role" />
          <short value="How the actor is involved" />
          <definition value="How the individual is involved in the resources content that is described in the consent." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentActorRole" />
            </extension>
            <strength value="extensible" />
            <description value="How an actor is involved in the consent considerations" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/security-role-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.actor.reference" />
    <resource>
      <DataElement>
        <id value="Consent.actor.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.actor.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.actor.reference">
          <path value="Consent.actor.reference" />
          <short value="Resource for the actor (or group, by role)" />
          <definition value="The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. 'admitting officers')." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.action" />
    <resource>
      <DataElement>
        <id value="Consent.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.action">
          <path value="Consent.action" />
          <short value="Actions controlled by this consent" />
          <definition value="Actions controlled by this consent." />
          <comment value="Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is 'read'." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <meaningWhenMissing value="all actions" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentAction" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the consent action." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consent-action" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.organization" />
    <resource>
      <DataElement>
        <id value="Consent.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.organization">
          <path value="Consent.organization" />
          <short value="Custodian of the consent" />
          <definition value="The organization that manages the consent, and the framework within which it is executed." />
          <alias value="custodian" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.sourceX" />
    <resource>
      <DataElement>
        <id value="Consent.sourceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.sourceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.source[x]">
          <path value="Consent.source[x]" />
          <short value="Source from which this consent is taken" />
          <definition value="The source on which this consent statement is based. The source might be a scanned original paper form, or a reference to a consent that links back to such a source, a reference to a document repository (e.g. XDS) that stores the original consent document." />
          <comment value="The source can be contained inline (Attachment), referenced directly (Consent), referenced in a consent repository (DocumentReference), or simply by an identifier (Identifier), e.g. a CDA document id." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Consent" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.policy" />
    <resource>
      <DataElement>
        <id value="Consent.policy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.policy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.policy">
          <path value="Consent.policy" />
          <short value="Policies covered by this consent" />
          <definition value="The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.policy.authority" />
    <resource>
      <DataElement>
        <id value="Consent.policy.authority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.policy.authority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.policy.authority">
          <path value="Consent.policy.authority" />
          <short value="Enforcement source for policy" />
          <definition value="Entity or Organization having regulatory jurisdiction or accountability for  enforcing policies pertaining to Consent Directives." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <condition value="ppc-1" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.policy.uri" />
    <resource>
      <DataElement>
        <id value="Consent.policy.uri" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.policy.uri" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.policy.uri">
          <path value="Consent.policy.uri" />
          <short value="Specific policy covered by this consent" />
          <definition value="The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law." />
          <comment value="This element is for discoverability / documentation, and does not modify or qualify the policy rules." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <condition value="ppc-1" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.policyRule" />
    <resource>
      <DataElement>
        <id value="Consent.policyRule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.policyRule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.policyRule">
          <path value="Consent.policyRule" />
          <short value="Policy that this consents to" />
          <definition value="A referece to the specific computable policy." />
          <comment value="If the policy reference is not known, the resource cannot be processed. Where the reference is absent, there is no particular policy other than what is expressed directly in the consent resource." />
          <requirements value="Might be a unique identifier of a policy set in XACML, or other rules engine." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <condition value="ppc-1" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.securityLabel" />
    <resource>
      <DataElement>
        <id value="Consent.securityLabel" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.securityLabel" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.securityLabel">
          <path value="Consent.securityLabel" />
          <short value="Security Labels that define affected resources" />
          <definition value="A set of security labels that define which resources are controlled by this consent. If more than one label is specified, all resources must have all the specified labels." />
          <comment value="If the consent specifies a security label of &quot;R&quot; then it applies to all resources that are labeled &quot;R&quot; or lower. E.g. for Confidentiality, it's a high water mark. For other kinds of security labels, subsumption logic applies. Not all of the security labels make sense for use in this element (may define a narrower value set?)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.purpose" />
    <resource>
      <DataElement>
        <id value="Consent.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.purpose">
          <path value="Consent.purpose" />
          <short value="Context of activities for which the agreement is made" />
          <definition value="The context of the activities a user is taking - why the user is accessing the data - that are controlled by this consent." />
          <comment value="This element is for discoverability / documentation, and does not modify or qualify the policy (e.g. the policy itself describes the purposes for which it applies)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PurposeOfUse" />
            </extension>
            <strength value="extensible" />
            <description value="What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.dataPeriod" />
    <resource>
      <DataElement>
        <id value="Consent.dataPeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.dataPeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.dataPeriod">
          <path value="Consent.dataPeriod" />
          <short value="Timeframe for data controlled by this consent" />
          <definition value="Clinical or Operational Relevant period of time that bounds the data controlled by this consent." />
          <comment value="This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.data" />
    <resource>
      <DataElement>
        <id value="Consent.data" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.data" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.data">
          <path value="Consent.data" />
          <short value="Data controlled by this consent" />
          <definition value="The resources controlled by this consent, if specific resources are referenced." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <meaningWhenMissing value="all data" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.data.meaning" />
    <resource>
      <DataElement>
        <id value="Consent.data.meaning" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.data.meaning" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.data.meaning">
          <path value="Consent.data.meaning" />
          <short value="instance | related | dependents | authoredby" />
          <definition value="How the resource reference is interpreted when testing consent restrictions." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentDataMeaning" />
            </extension>
            <strength value="required" />
            <description value="How a resource reference is interpreted when testing consent restrictions" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consent-data-meaning" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.data.reference" />
    <resource>
      <DataElement>
        <id value="Consent.data.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.data.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.data.reference">
          <path value="Consent.data.reference" />
          <short value="The actual data reference" />
          <definition value="A reference to a specific resource that defines which resources are covered by this consent." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except" />
    <resource>
      <DataElement>
        <id value="Consent.except" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Except" />
          </extension>
          <path value="Consent.except" />
          <short value="Additional rule -  addition or removal of permissions" />
          <definition value="An exception to the base policy of this consent. An exception can be an addition or removal of access permissions." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.type" />
    <resource>
      <DataElement>
        <id value="Consent.except.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.type">
          <path value="Consent.except.type" />
          <short value="deny | permit" />
          <definition value="Action  to take - permit or deny - when the exception conditions are met." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentExceptType" />
            </extension>
            <strength value="required" />
            <description value="How an exception statement is applied, such as adding additional consent or removing consent" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consent-except-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.period" />
    <resource>
      <DataElement>
        <id value="Consent.except.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.period">
          <path value="Consent.except.period" />
          <short value="Timeframe for this exception" />
          <definition value="The timeframe in this exception is valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.actor" />
    <resource>
      <DataElement>
        <id value="Consent.except.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.actor">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ExceptActor" />
          </extension>
          <path value="Consent.except.actor" />
          <short value="Who|what controlled by this exception (or group, by role)" />
          <definition value="Who or what is controlled by this Exception. Use group to identify a set of actors by some property they share (e.g. 'admitting officers')." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <meaningWhenMissing value="There is no specific actor associated with the exception" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.actor.role" />
    <resource>
      <DataElement>
        <id value="Consent.except.actor.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.actor.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.actor.role">
          <path value="Consent.except.actor.role" />
          <short value="How the actor is involved" />
          <definition value="How the individual is involved in the resources content that is described in the exception." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentActorRole" />
            </extension>
            <strength value="extensible" />
            <description value="How an actor is involved in the consent considerations" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/security-role-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.actor.reference" />
    <resource>
      <DataElement>
        <id value="Consent.except.actor.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.actor.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.actor.reference">
          <path value="Consent.except.actor.reference" />
          <short value="Resource for the actor (or group, by role)" />
          <definition value="The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. 'admitting officers')." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.action" />
    <resource>
      <DataElement>
        <id value="Consent.except.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.action">
          <path value="Consent.except.action" />
          <short value="Actions controlled by this exception" />
          <definition value="Actions controlled by this Exception." />
          <comment value="Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is 'read'." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <meaningWhenMissing value="all actions" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentAction" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the consent action." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consent-action" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.securityLabel" />
    <resource>
      <DataElement>
        <id value="Consent.except.securityLabel" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.securityLabel" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.securityLabel">
          <path value="Consent.except.securityLabel" />
          <short value="Security Labels that define affected resources" />
          <definition value="A set of security labels that define which resources are controlled by this exception. If more than one label is specified, all resources must have all the specified labels." />
          <comment value="If the consent specifies a security label of &quot;R&quot; then it applies to all resources that are labeled &quot;R&quot; or lower. E.g. for Confidentiality, it's a high water mark. For other kinds of security labels, subsumption logic applies. Not all of the security labels make sense for use in this element (may define a narrower value set?)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.purpose" />
    <resource>
      <DataElement>
        <id value="Consent.except.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.purpose">
          <path value="Consent.except.purpose" />
          <short value="Context of activities covered by this exception" />
          <definition value="The context of the activities a user is taking - why the user is accessing the data - that are controlled by this exception." />
          <comment value="E.g. if the purpose is 'research', then the operational context must be research, in order for the consent to apply. Not all of the security labels make sense for use in this element (may define a narrower value set?)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PurposeOfUse" />
            </extension>
            <strength value="extensible" />
            <description value="What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.class" />
    <resource>
      <DataElement>
        <id value="Consent.except.class" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.class" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.class">
          <path value="Consent.except.class" />
          <short value="e.g. Resource Type, Profile, or CDA etc" />
          <definition value="The class of information covered by this exception. The type can be a FHIR resource type, a profile on a type, or a CDA document, or some other type that indicates what sort of information the consent relates to." />
          <comment value="Multiple types are or'ed together. The intention of the contentType element is that the codes refer to profiles or document types defined in a standard or an implementation guide somewhere." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentContentClass" />
            </extension>
            <strength value="extensible" />
            <description value="The class (type) of information a consent rule covers" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consent-content-class" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.code" />
    <resource>
      <DataElement>
        <id value="Consent.except.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.code">
          <path value="Consent.except.code" />
          <short value="e.g. LOINC or SNOMED CT code, etc in the content" />
          <definition value="If this code is found in an instance, then the exception applies." />
          <comment value="Typical use of this is a Document code with class = CDA." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentContentCode" />
            </extension>
            <strength value="example" />
            <description value="If this code is found in an instance, then the exception applies" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consent-content-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.dataPeriod" />
    <resource>
      <DataElement>
        <id value="Consent.except.dataPeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.dataPeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.dataPeriod">
          <path value="Consent.except.dataPeriod" />
          <short value="Timeframe for data controlled by this exception" />
          <definition value="Clinical or Operational Relevant period of time that bounds the data controlled by this exception." />
          <comment value="This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.data" />
    <resource>
      <DataElement>
        <id value="Consent.except.data" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.data" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.data">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ExceptData" />
          </extension>
          <path value="Consent.except.data" />
          <short value="Data controlled by this exception" />
          <definition value="The resources controlled by this exception, if specific resources are referenced." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <meaningWhenMissing value="all data" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.data.meaning" />
    <resource>
      <DataElement>
        <id value="Consent.except.data.meaning" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.data.meaning" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.data.meaning">
          <path value="Consent.except.data.meaning" />
          <short value="instance | related | dependents | authoredby" />
          <definition value="How the resource reference is interpreted when testing consent restrictions." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConsentDataMeaning" />
            </extension>
            <strength value="required" />
            <description value="How a resource reference is interpreted when testing consent restrictions" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consent-data-meaning" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Consent.except.data.reference" />
    <resource>
      <DataElement>
        <id value="Consent.except.data.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Consent.except.data.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Consent.except.data.reference">
          <path value="Consent.except.data.reference" />
          <short value="The actual data reference" />
          <definition value="A reference to a specific resource that defines which resources are covered by this consent." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement">
          <path value="CapabilityStatement" />
          <short value="A statement of system capabilities" />
          <definition value="A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation." />
          <min value="1" />
          <max value="1" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="cpb-8" />
            <severity value="error" />
            <human value="There can only be one REST declaration per mode." />
            <expression value="rest.select(mode).isDistinct()" />
            <xpath value="count(f:rest)=count(distinct-values(f:rest/f:mode/@value))" />
          </constraint>
          <constraint>
            <key value="cpb-7" />
            <severity value="error" />
            <human value="The set of documents must be unique by the combination of profile and mode." />
            <expression value="document.select(profile.reference&amp;mode).isDistinct()" />
            <xpath value="count(f:document[f:mode/@value='producer'])=count(distinct-values(f:document[f:mode/@value='producer']/f:profile/f:reference/@value)) and count(f:document[f:mode/@value='consumer'])=count(distinct-values(f:document[f:mode/@value='consumer']/f:profile/f:reference/@value))" />
          </constraint>
          <constraint>
            <key value="cpb-15" />
            <severity value="error" />
            <human value="Capability Statements of kind 'instance' do not have implementation elements." />
            <expression value="implementation.empty() or kind != 'capability'" />
            <xpath value="not(exists(f:implementation)) or (f:kind/@value != 'capability')" />
          </constraint>
          <constraint>
            <key value="cpb-3" />
            <severity value="error" />
            <human value="Messaging end-point is required (and is only permitted) when a statement is for an implementation." />
            <expression value="messaging.endpoint.empty() or kind = 'instance'" />
            <xpath value="not(exists(f:messaging/f:endpoint)) or f:kind/@value = 'instance'" />
          </constraint>
          <constraint>
            <key value="cpb-14" />
            <severity value="error" />
            <human value="Capability Statements of kind 'requirements' do not have software or implementation elements." />
            <expression value="(software.empty() and implementation.empty()) or kind != 'requirements'" />
            <xpath value="not(exists(f:software) or exists(f:implementation)) or (f:kind/@value != 'requirements')" />
          </constraint>
          <constraint>
            <key value="cpb-2" />
            <severity value="error" />
            <human value="A Capability Statement SHALL have at least one of description, software, or implementation element." />
            <expression value="(description.count() + software.count() + implementation.count()) &gt; 0" />
            <xpath value="count(f:software | f:implementation | f:description) &gt; 0" />
          </constraint>
          <constraint>
            <key value="cpb-1" />
            <severity value="error" />
            <human value="A Capability Statement SHALL have at least one of REST, messaging or document element." />
            <expression value="rest.exists() or messaging.exists() or document.exists()" />
            <xpath value="exists(f:rest) or exists(f:messaging) or exists(f:document)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.behavior" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.url" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.url">
          <path value="CapabilityStatement.url" />
          <short value="Logical URI to reference this capability statement (globally unique)" />
          <definition value="An absolute URI that is used to identify this capability statement 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 capability statement is (or will be) published. The URL SHOULD include the major version of the capability statement. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the capability statement to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.version" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.version">
          <path value="CapabilityStatement.version" />
          <short value="Business version of the capability statement" />
          <definition value="The identifier that is used to identify this version of the capability statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different capability statement instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the capability statement with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.name" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.name">
          <path value="CapabilityStatement.name" />
          <short value="Name for this capability statement (computer friendly)" />
          <definition value="A natural language name identifying the capability statement. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.title" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.title">
          <path value="CapabilityStatement.title" />
          <short value="Name for this capability statement (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the capability statement." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.status" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.status">
          <path value="CapabilityStatement.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this capability statement. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of capability statements that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired capability statement without due consideration. This is not intended for use with actual capability statements, but where capability statements are used to describe possible or desired systems." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.experimental" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.experimental">
          <path value="CapabilityStatement.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this capability statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of capability statement that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental capability statement in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level capability statement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.date" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.date">
          <path value="CapabilityStatement.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the capability statement was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the capability statement 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 capability statement. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.publisher" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.publisher">
          <path value="CapabilityStatement.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the capability statement." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the capability statement is the organization or individual primarily responsible for the maintenance and upkeep of the capability statement. 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 capability statement. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the capability statement.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.contact" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.contact">
          <path value="CapabilityStatement.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.description" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.description">
          <path value="CapabilityStatement.description" />
          <short value="Natural language description of the capability statement" />
          <definition value="A free text natural language description of the capability statement from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP." />
          <comment value="This description can be used to capture details such as why the capability statement 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 capability statement 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). This does not need to be populated if the description is adequately implied by the software or implementation details." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <condition value="cpb-2" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.useContext" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.useContext">
          <path value="CapabilityStatement.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate capability statement instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.jurisdiction" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.jurisdiction">
          <path value="CapabilityStatement.jurisdiction" />
          <short value="Intended jurisdiction for capability statement (if applicable)" />
          <definition value="A legal or geographic region in which the capability statement is intended to be used." />
          <comment value="It may be possible for the capability statement to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.purpose" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.purpose">
          <path value="CapabilityStatement.purpose" />
          <short value="Why this capability statement is defined" />
          <definition value="Explaination of why this capability statement is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the capability statement Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this capability statement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.copyright" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.copyright">
          <path value="CapabilityStatement.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the capability statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the capability statement and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.kind" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.kind" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.kind" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.kind">
          <path value="CapabilityStatement.kind" />
          <short value="instance | capability | requirements" />
          <definition value="The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase)." />
          <requirements value="Allow searching the 3 modes." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CapabilityStatementKind" />
            </extension>
            <strength value="required" />
            <description value="How a capability statement is intended to be used." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/capability-statement-kind" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.instantiates" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.instantiates" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.instantiates" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.instantiates">
          <path value="CapabilityStatement.instantiates" />
          <short value="Canonical URL of another capability statement this implements" />
          <definition value="Reference to a canonical URL of another CapabilityStatement that this software implements or uses. This capability statement is a published API description that corresponds to a business service. The rest of the capability statement does not need to repeat the details of the referenced resource, but can do so." />
          <comment value="HL7 defines the following Services: [Terminology Service](terminology-service.html).&#xA;&#xA;Many [Implementation Guides](http://fhir.org/guides/registry) define additional services." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.software" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.software" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.software" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.software">
          <path value="CapabilityStatement.software" />
          <short value="Software that is covered by this capability statement" />
          <definition value="Software that is covered by this capability statement.  It is used when the capability statement describes the capabilities of a particular software version, independent of an installation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="cpb-2" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.software.name" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.software.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.software.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.software.name">
          <path value="CapabilityStatement.software.name" />
          <short value="A name the software is known by" />
          <definition value="Name software is known by." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.software.version" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.software.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.software.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.software.version">
          <path value="CapabilityStatement.software.version" />
          <short value="Version covered by this statement" />
          <definition value="The version identifier for the software covered by this statement." />
          <comment value="If possible, a version should be specified, as statements are likely to be different for different versions of software." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.software.releaseDate" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.software.releaseDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.software.releaseDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.software.releaseDate">
          <path value="CapabilityStatement.software.releaseDate" />
          <short value="Date this version released" />
          <definition value="Date this version of the software was released." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.implementation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.implementation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.implementation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.implementation">
          <path value="CapabilityStatement.implementation" />
          <short value="If this describes a specific instance" />
          <definition value="Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="cpb-2" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.implementation.description" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.implementation.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.implementation.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.implementation.description">
          <path value="CapabilityStatement.implementation.description" />
          <short value="Describes this specific instance" />
          <definition value="Information about the specific installation that this capability statement relates to." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.implementation.url" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.implementation.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.implementation.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.implementation.url">
          <path value="CapabilityStatement.implementation.url" />
          <short value="Base URL for the installation" />
          <definition value="An absolute base URL for the implementation.  This forms the base for REST interfaces as well as the mailbox and document interfaces." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.fhirVersion" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.fhirVersion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.fhirVersion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.fhirVersion">
          <path value="CapabilityStatement.fhirVersion" />
          <short value="FHIR Version the system uses" />
          <definition value="The version of the FHIR specification on which this capability statement is based." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.acceptUnknown" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.acceptUnknown" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.acceptUnknown" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.acceptUnknown">
          <path value="CapabilityStatement.acceptUnknown" />
          <short value="no | extensions | elements | both" />
          <definition value="A code that indicates whether the application accepts unknown elements or extensions when reading resources." />
          <comment value="Unknown elements in a resource can only arise as later versions of the specification are published, because this is the only place where such elements can be defined. Hence accepting unknown elements is about inter-version compatibility.&#xA;&#xA;Applications are recommended to accept unknown extensions and elements ('both'), but this is not always possible." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="UnknownContentCode" />
            </extension>
            <strength value="required" />
            <description value="A code that indicates whether an application accepts unknown elements or extensions when reading resources." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/unknown-content-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.format" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.format" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.format" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.format">
          <path value="CapabilityStatement.format" />
          <short value="formats supported (xml | json | ttl | mime type)" />
          <definition value="A list of the formats supported by this implementation using their content types." />
          <comment value="&quot;xml&quot;, &quot;json&quot; and &quot;ttl&quot; are allowed, which describe the simple encodings described in the specification (and imply appropriate bundle support). Otherwise, mime types are legal here." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MimeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The mime type of an attachment. Any valid mime type is allowed." />
            <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.patchFormat" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.patchFormat" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.patchFormat" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.patchFormat">
          <path value="CapabilityStatement.patchFormat" />
          <short value="Patch formats supported" />
          <definition value="A list of the patch formats supported by this implementation using their content types." />
          <comment value="At present, the patch mime types application/json-patch+json and application/xml-patch+xml are legal. Generally, if a server supports PATCH, it would be expected to support the patch formats and match the formats it supports, but this is not always possible or necessary." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MimeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The mime type of an attachment. Any valid mime type is allowed." />
            <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.implementationGuide" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.implementationGuide" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.implementationGuide" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.implementationGuide">
          <path value="CapabilityStatement.implementationGuide" />
          <short value="Implementation guides supported" />
          <definition value="A list of implementation guides that the server does (or should) support in their entirety." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.profile" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.profile">
          <path value="CapabilityStatement.profile" />
          <short value="Profiles for use cases supported" />
          <definition value="A list of profiles that represent different use cases supported by the system. For a server, &quot;supported by the system&quot; means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses)." />
          <comment value="Supported profiles are different than the profiles that apply to a particular resource in rest.resource.profile. The resource profile is a general statement of what features of the resource are supported overall by the system - the sum total of the facilities it supports. A supported profile is a deeper statement about the functionality of the data and services provided by the server (or used by the client). A typical case is a laboratory system that produces a set of different reports - this is the list of types of data that it publishes. A key aspect of declaring profiles here is the question of how the client converts knowledge that the server publishes this data into working with the data; the client can inspect individual resources to determine whether they conform to a particular profile, but how does it find the ones that does? It does so by searching using the _profile parameter, so any resources listed here must be valid values for the _profile resource (using the identifier in the target profile).  Typically, supported profiles cross resource types to describe a network of related resources, so they are listed here rather than by resource. However, they do not need to describe more than one resource." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest">
          <path value="CapabilityStatement.rest" />
          <short value="If the endpoint is a RESTful one" />
          <definition value="A definition of the restful capabilities of the solution, if any." />
          <comment value="Multiple repetitions allow definition of both client and/or server behaviors or possibly behaviors under different configuration settings (for software or requirements statements)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="cpb-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="cpb-9" />
            <severity value="error" />
            <human value="A given resource can only be described once per RESTful mode." />
            <expression value="resource.select(type).isDistinct()" />
            <xpath value="count(f:resource)=count(distinct-values(f:resource/f:type/@value))" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.mode" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.mode">
          <path value="CapabilityStatement.rest.mode" />
          <short value="client | server" />
          <definition value="Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RestfulCapabilityMode" />
            </extension>
            <strength value="required" />
            <description value="The mode of a RESTful capability statement." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/restful-capability-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.documentation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.documentation">
          <path value="CapabilityStatement.rest.documentation" />
          <short value="General description of implementation" />
          <definition value="Information about the system's restful capabilities that apply across all applications, such as security." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.security" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.security">
          <path value="CapabilityStatement.rest.security" />
          <short value="Information about security of implementation" />
          <definition value="Information about security implementation from an interface perspective - what a client needs to know." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.cors" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.security.cors" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.cors" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.security.cors">
          <path value="CapabilityStatement.rest.security.cors" />
          <short value="Adds CORS Headers (http://enable-cors.org/)" />
          <definition value="Server adds CORS headers when responding to requests - this enables javascript applications to use the server." />
          <comment value="The easiest CORS headers to add are Access-Control-Allow-Origin: * &amp; Access-Control-Request-Method: GET, POST, PUT, DELETE. All servers SHOULD support CORS." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.service" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.security.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.security.service">
          <path value="CapabilityStatement.rest.security.service" />
          <short value="OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates" />
          <definition value="Types of security services that are supported/required by the system." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RestfulSecurityService" />
            </extension>
            <strength value="extensible" />
            <description value="Types of security services used with FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/restful-security-service" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.description" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.security.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.security.description">
          <path value="CapabilityStatement.rest.security.description" />
          <short value="General description of how security works" />
          <definition value="General description of how security works." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.certificate" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.security.certificate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.certificate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.security.certificate">
          <path value="CapabilityStatement.rest.security.certificate" />
          <short value="Certificates associated with security profiles" />
          <definition value="Certificates associated with security profiles." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.certificate.type" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.security.certificate.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.certificate.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.security.certificate.type">
          <path value="CapabilityStatement.rest.security.certificate.type" />
          <short value="Mime type for certificates" />
          <definition value="Mime type for a certificate." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MimeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The mime type of an attachment. Any valid mime type is allowed." />
            <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.certificate.blob" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.security.certificate.blob" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.security.certificate.blob" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.security.certificate.blob">
          <path value="CapabilityStatement.rest.security.certificate.blob" />
          <short value="Actual certificate" />
          <definition value="Actual certificate." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource">
          <path value="CapabilityStatement.rest.resource" />
          <short value="Resource served on the REST interface" />
          <definition value="A specification of the restful capabilities of the solution for a specific resource type." />
          <comment value="Max of one repetition per resource type." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="cpb-12" />
            <severity value="error" />
            <human value="Search parameter names must be unique in the context of a resource." />
            <expression value="searchParam.select(name).isDistinct()" />
            <xpath value="count(f:searchParam)=count(distinct-values(f:searchParam/f:name/@value))" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.type" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.type">
          <path value="CapabilityStatement.rest.resource.type" />
          <short value="A resource type that is supported" />
          <definition value="A type of resource exposed via the restful interface." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.profile" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.profile">
          <path value="CapabilityStatement.rest.resource.profile" />
          <short value="Base System profile for all uses of resource" />
          <definition value="A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses)." />
          <comment value="The profile applies to all  resources of this type - i.e. it is the superset of what is supported by the system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.documentation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.documentation">
          <path value="CapabilityStatement.rest.resource.documentation" />
          <short value="Additional information about the use of the resource type" />
          <definition value="Additional information about the resource type used by the system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.interaction" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.interaction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.interaction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.interaction">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ResourceInteraction" />
          </extension>
          <path value="CapabilityStatement.rest.resource.interaction" />
          <short value="What operations are supported?" />
          <definition value="Identifies a restful operation supported by the solution." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.interaction.code" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.interaction.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.interaction.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.interaction.code">
          <path value="CapabilityStatement.rest.resource.interaction.code" />
          <short value="read | vread | update | patch | delete | history-instance | history-type | create | search-type" />
          <definition value="Coded identifier of the operation, supported by the system resource." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TypeRestfulInteraction" />
            </extension>
            <strength value="required" />
            <description value="Operations supported by REST at the type or instance level." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/type-restful-interaction" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.interaction.documentation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.interaction.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.interaction.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.interaction.documentation">
          <path value="CapabilityStatement.rest.resource.interaction.documentation" />
          <short value="Anything special about operation behavior" />
          <definition value="Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'." />
          <requirements value="REST allows a degree of variability in the implementation of RESTful solutions that is useful for exchange partners to be aware of." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.versioning" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.versioning" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.versioning" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.versioning">
          <path value="CapabilityStatement.rest.resource.versioning" />
          <short value="no-version | versioned | versioned-update" />
          <definition value="This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API." />
          <comment value="If a server supports versionIds correctly, it SHOULD support vread too, but is not required to do so." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceVersionPolicy" />
            </extension>
            <strength value="required" />
            <description value="How the system supports versioning for a resource." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/versioning-policy" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.readHistory" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.readHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.readHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.readHistory">
          <path value="CapabilityStatement.rest.resource.readHistory" />
          <short value="Whether vRead can return past versions" />
          <definition value="A flag for whether the server is able to return past versions as part of the vRead operation." />
          <comment value="It is useful to support the vRead operation for current operations, even if past versions aren't available." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.updateCreate" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.updateCreate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.updateCreate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.updateCreate">
          <path value="CapabilityStatement.rest.resource.updateCreate" />
          <short value="If update can commit to a new identity" />
          <definition value="A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server." />
          <comment value="Allowing the clients to create new identities on the server means that the system administrator needs to have confidence that the clients do not create clashing identities between them. Obviously, if there is only one client, this won't happen. While creating identities on the client means that the clients need to be managed, it's much more convenient for many scenarios if such management can be put in place." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.conditionalCreate" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.conditionalCreate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.conditionalCreate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.conditionalCreate">
          <path value="CapabilityStatement.rest.resource.conditionalCreate" />
          <short value="If allows/uses conditional create" />
          <definition value="A flag that indicates that the server supports conditional create." />
          <comment value="Conditional Create is mainly appropriate for interface engine scripts converting from other formats, such as v2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.conditionalRead" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.conditionalRead" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.conditionalRead" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.conditionalRead">
          <path value="CapabilityStatement.rest.resource.conditionalRead" />
          <short value="not-supported | modified-since | not-match | full-support" />
          <definition value="A code that indicates how the server supports conditional read." />
          <comment value="Conditional Read is mainly appropriate for interface engine scripts converting from other formats, such as v2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionalReadStatus" />
            </extension>
            <strength value="required" />
            <description value="A code that indicates how the server supports conditional read." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/conditional-read-status" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.conditionalUpdate" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.conditionalUpdate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.conditionalUpdate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.conditionalUpdate">
          <path value="CapabilityStatement.rest.resource.conditionalUpdate" />
          <short value="If allows/uses conditional update" />
          <definition value="A flag that indicates that the server supports conditional update." />
          <comment value="Conditional Update is mainly appropriate for interface engine scripts converting from other formats, such as v2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.conditionalDelete" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.conditionalDelete" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.conditionalDelete" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.conditionalDelete">
          <path value="CapabilityStatement.rest.resource.conditionalDelete" />
          <short value="not-supported | single | multiple - how conditional delete is supported" />
          <definition value="A code that indicates how the server supports conditional delete." />
          <comment value="Conditional Delete is mainly appropriate for interface engine scripts converting from other formats, such as v2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionalDeleteStatus" />
            </extension>
            <strength value="required" />
            <description value="A code that indicates how the server supports conditional delete." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/conditional-delete-status" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.referencePolicy" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.referencePolicy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.referencePolicy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.referencePolicy">
          <path value="CapabilityStatement.rest.resource.referencePolicy" />
          <short value="literal | logical | resolves | enforced | local" />
          <definition value="A set of flags that defines how references are supported." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferenceHandlingPolicy" />
            </extension>
            <strength value="required" />
            <description value="A set of flags that defines how references are supported." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/reference-handling-policy" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchInclude" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.searchInclude" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchInclude" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.searchInclude">
          <path value="CapabilityStatement.rest.resource.searchInclude" />
          <short value="_include values supported by the server" />
          <definition value="A list of _include values supported by the server." />
          <comment value="If this list is empty, the server does not support includes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchRevInclude" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.searchRevInclude" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchRevInclude" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.searchRevInclude">
          <path value="CapabilityStatement.rest.resource.searchRevInclude" />
          <short value="_revinclude values supported by the server" />
          <definition value="A list of _revinclude (reverse include) values supported by the server." />
          <comment value="If this list is empty, the server does not support reverse includes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.searchParam" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.searchParam">
          <path value="CapabilityStatement.rest.resource.searchParam" />
          <short value="Search parameters supported by implementation" />
          <definition value="Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam.name" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.searchParam.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.searchParam.name">
          <path value="CapabilityStatement.rest.resource.searchParam.name" />
          <short value="Name of search parameter" />
          <definition value="The name of the search parameter used in the interface." />
          <comment value="Parameter names cannot overlap with standard parameter names, and standard parameters cannot be redefined." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam.definition" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.searchParam.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.searchParam.definition">
          <path value="CapabilityStatement.rest.resource.searchParam.definition" />
          <short value="Source of definition for parameter" />
          <definition value="An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [SearchParameter.url]())." />
          <comment value="This SHOULD be present, and matches refers to a SearchParameter by its canonical url. If systems wish to document their support for modifiers, comparators, target resource types, and chained parameters, they should do using a search parameter resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam.type" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.searchParam.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.searchParam.type">
          <path value="CapabilityStatement.rest.resource.searchParam.type" />
          <short value="number | date | string | token | reference | composite | quantity | uri" />
          <definition value="The type of value a search parameter refers to, and how the content is interpreted." />
          <comment value="While this can be looked up from the definition, it is included here as a convenience for systems that autogenerate a query interface based on the server capability statement.  It SHALL be the same as the type in the search parameter definition." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SearchParamType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Data types allowed to be used for search parameters." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/search-param-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam.documentation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.resource.searchParam.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.resource.searchParam.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.resource.searchParam.documentation">
          <path value="CapabilityStatement.rest.resource.searchParam.documentation" />
          <short value="Server-specific usage" />
          <definition value="This allows documentation of any distinct behaviors about how the search parameter is used.  For example, text matching algorithms." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.interaction" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.interaction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.interaction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.interaction">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SystemInteraction" />
          </extension>
          <path value="CapabilityStatement.rest.interaction" />
          <short value="What operations are supported?" />
          <definition value="A specification of restful operations supported by the system." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.interaction.code" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.interaction.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.interaction.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.interaction.code">
          <path value="CapabilityStatement.rest.interaction.code" />
          <short value="transaction | batch | search-system | history-system" />
          <definition value="A coded identifier of the operation, supported by the system." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SystemRestfulInteraction" />
            </extension>
            <strength value="required" />
            <description value="Operations supported by REST at the system level." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/system-restful-interaction" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.interaction.documentation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.interaction.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.interaction.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.interaction.documentation">
          <path value="CapabilityStatement.rest.interaction.documentation" />
          <short value="Anything special about operation behavior" />
          <definition value="Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.searchParam" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.searchParam" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.searchParam" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.searchParam">
          <path value="CapabilityStatement.rest.searchParam" />
          <short value="Search parameters for searching all resources" />
          <definition value="Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation." />
          <comment value="Typically, the only search parameters supported for all searchse are those that apply to all resources - tags, profiles, text search etc." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#CapabilityStatement.rest.resource.searchParam" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.operation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.operation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.operation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.operation">
          <path value="CapabilityStatement.rest.operation" />
          <short value="Definition of an operation or a custom query" />
          <definition value="Definition of an operation or a named query together with its parameters and their meaning and type." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.operation.name" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.operation.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.operation.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.operation.name">
          <path value="CapabilityStatement.rest.operation.name" />
          <short value="Name by which the operation/query is invoked" />
          <definition value="The name of the operation or query. For an operation, this is the name  prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called." />
          <comment value="The name here SHOULD be the same as the name in the definition, unless there is a name clash and the name cannot be used. The name does not include the &quot;$&quot; portion that is always included in the URL." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.operation.definition" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.operation.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.operation.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.operation.definition">
          <path value="CapabilityStatement.rest.operation.definition" />
          <short value="The defined operation/query" />
          <definition value="Where the formal definition can be found." />
          <comment value="This can be used to build an HTML form to invoke the operation, for instance." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.compartment" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.rest.compartment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.rest.compartment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.rest.compartment">
          <path value="CapabilityStatement.rest.compartment" />
          <short value="Compartments served/used by system" />
          <definition value="An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL ." />
          <comment value="At present, the only defined compartments are at [CompartmentDefinition](compartmentdefinition.html)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging">
          <path value="CapabilityStatement.messaging" />
          <short value="If messaging is supported" />
          <definition value="A description of the messaging capabilities of the solution." />
          <comment value="Multiple repetitions allow the documentation of multiple endpoints per solution." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="cpb-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="cpb-16" />
            <severity value="error" />
            <human value="A Capability Statement messaging element SHALL have either supportedMessage or event element, but not both." />
            <expression value="supportedMessage.empty() != event.empty()" />
            <xpath value="exists(f:supportedMessage) != exists(f:event)" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.endpoint" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.endpoint">
          <path value="CapabilityStatement.messaging.endpoint" />
          <short value="Where messages should be sent" />
          <definition value="An endpoint (network accessible address) to which messages and/or replies are to be sent." />
          <alias value="3" />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.endpoint.protocol" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.endpoint.protocol" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.endpoint.protocol" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.endpoint.protocol">
          <path value="CapabilityStatement.messaging.endpoint.protocol" />
          <short value="http | ftp | mllp +" />
          <definition value="A list of the messaging transport protocol(s) identifiers, supported by this endpoint." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MessageTransport" />
            </extension>
            <strength value="extensible" />
            <description value="The protocol used for message transport." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/message-transport" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.endpoint.address" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.endpoint.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.endpoint.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.endpoint.address">
          <path value="CapabilityStatement.messaging.endpoint.address" />
          <short value="Network address or identifier of the end-point" />
          <definition value="The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.reliableCache" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.reliableCache" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.reliableCache" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.reliableCache">
          <path value="CapabilityStatement.messaging.reliableCache" />
          <short value="Reliable Message Cache Length (min)" />
          <definition value="Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender)." />
          <comment value="If this value is missing then the application does not implement (receiver) or depend on (sender) reliable messaging." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.documentation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.documentation">
          <path value="CapabilityStatement.messaging.documentation" />
          <short value="Messaging interface behavior details" />
          <definition value="Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the capability statement.  For example, the process for becoming an authorized messaging exchange partner." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.supportedMessage" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.supportedMessage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.supportedMessage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.supportedMessage">
          <path value="CapabilityStatement.messaging.supportedMessage" />
          <short value="Messages supported by this system" />
          <definition value="References to message definitions for messages this system can send or receive." />
          <comment value="This is a proposed alternative to the messaging.event structure." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.supportedMessage.mode" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.supportedMessage.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.supportedMessage.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.supportedMessage.mode">
          <path value="CapabilityStatement.messaging.supportedMessage.mode" />
          <short value="sender | receiver" />
          <definition value="The mode of this event declaration - whether application is sender or receiver." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EventCapabilityMode" />
            </extension>
            <strength value="required" />
            <description value="The mode of a message capability statement." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/event-capability-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.supportedMessage.definition" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.supportedMessage.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.supportedMessage.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.supportedMessage.definition">
          <path value="CapabilityStatement.messaging.supportedMessage.definition" />
          <short value="Message supported by this system" />
          <definition value="Points to a message definition that identifies the messaging event, message structure, allowed responses, etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MessageDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.event" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.event">
          <path value="CapabilityStatement.messaging.event" />
          <short value="Declare support for this event" />
          <definition value="A description of the solution's support for an event at this end-point." />
          <comment value="The same event may be listed up to two times - once as sender and once as receiver." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.code" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.event.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.event.code">
          <path value="CapabilityStatement.messaging.event.code" />
          <short value="Event type" />
          <definition value="A coded identifier of a supported messaging event." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MessageEvent" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="One of the message events defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/message-events" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.category" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.event.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.event.category">
          <path value="CapabilityStatement.messaging.event.category" />
          <short value="Consequence | Currency | Notification" />
          <definition value="The impact of the content of the message." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MessageSignificanceCategory" />
            </extension>
            <strength value="required" />
            <description value="The impact of the content of a message." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/message-significance-category" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.mode" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.event.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.event.mode">
          <path value="CapabilityStatement.messaging.event.mode" />
          <short value="sender | receiver" />
          <definition value="The mode of this event declaration - whether an application is a sender or receiver." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EventCapabilityMode" />
            </extension>
            <strength value="required" />
            <description value="The mode of a message capability statement." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/event-capability-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.focus" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.event.focus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.focus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.event.focus">
          <path value="CapabilityStatement.messaging.event.focus" />
          <short value="Resource that's focus of message" />
          <definition value="A resource associated with the event.  This is the resource that defines the event." />
          <comment value="This SHALL be provided if the event type supports multiple different resource types." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.request" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.event.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.event.request">
          <path value="CapabilityStatement.messaging.event.request" />
          <short value="Profile that describes the request" />
          <definition value="Information about the request for this event." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.response" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.event.response" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.response" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.event.response">
          <path value="CapabilityStatement.messaging.event.response" />
          <short value="Profile that describes the response" />
          <definition value="Information about the response for this event." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.documentation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.messaging.event.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.messaging.event.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.messaging.event.documentation">
          <path value="CapabilityStatement.messaging.event.documentation" />
          <short value="Endpoint-specific event documentation" />
          <definition value="Guidance on how this event is handled, such as internal system trigger points, business rules, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.document" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.document" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.document" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.document">
          <path value="CapabilityStatement.document" />
          <short value="Document definition" />
          <definition value="A document definition." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="cpb-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.document.mode" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.document.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.document.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.document.mode">
          <path value="CapabilityStatement.document.mode" />
          <short value="producer | consumer" />
          <definition value="Mode of this document declaration - whether an application is a producer or consumer." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentMode" />
            </extension>
            <strength value="required" />
            <description value="Whether the application produces or consumes documents." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/document-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.document.documentation" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.document.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.document.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.document.documentation">
          <path value="CapabilityStatement.document.documentation" />
          <short value="Description of document support" />
          <definition value="A description of how the application supports or uses the specified document profile.  For example, when documents are created, what action is taken with consumed documents, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CapabilityStatement.document.profile" />
    <resource>
      <DataElement>
        <id value="CapabilityStatement.document.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CapabilityStatement.document.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CapabilityStatement.document.profile">
          <path value="CapabilityStatement.document.profile" />
          <short value="Constraint on a resource used in the document" />
          <definition value="A constraint on a resource used in the document." />
          <comment value="The first resource is the document resource." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication" />
    <resource>
      <DataElement>
        <id value="Medication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication">
          <path value="Medication" />
          <short value="Definition of a Medication" />
          <definition value="This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="NewRx/MedicationPrescribed&#xD;-or-&#xD;RxFill/MedicationDispensed&#xD;-or-&#xD;RxHistoryResponse/MedicationDispensed&#xD;-or-&#xD;RxHistoryResponse/MedicationPrescribed" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="ManufacturedProduct[classCode=ADMM]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.medication" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.code" />
    <resource>
      <DataElement>
        <id value="Medication.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.code">
          <path value="Medication.code" />
          <short value="Codes that identify this medication" />
          <definition value="A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems." />
          <comment value="Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true.  As described in the coding datatype: &quot;A coding may be marked as a &quot;userSelected&quot; if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationFormalRepresentation" />
            </extension>
            <strength value="example" />
            <description value="A coded concept that defines the type of a medication" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="script10.6" />
            <map value="coding.code = //element(*,MedicationType)/DrugCoded/ProductCode&#xD;&#xD;coding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier&#xD;&#xD;coding.display = //element(*,MedicationType)/DrugDescription" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.status" />
    <resource>
      <DataElement>
        <id value="Medication.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.status">
          <path value="Medication.status" />
          <short value="active | inactive | entered-in-error" />
          <definition value="A code to indicate if the medication is in active use." />
          <comment value="This status is not intended to specify if a medication is part of a formulary." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationStatus" />
            </extension>
            <strength value="required" />
            <description value="A coded concept defining if the medication is in active use" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.isBrand" />
    <resource>
      <DataElement>
        <id value="Medication.isBrand" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.isBrand" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.isBrand">
          <path value="Medication.isBrand" />
          <short value="True if a brand" />
          <definition value="Set to true if the item is attributable to a specific manufacturer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="true if .player.scopingRole[typeCode=MANU] exists" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.isOverTheCounter" />
    <resource>
      <DataElement>
        <id value="Medication.isOverTheCounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.isOverTheCounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.isOverTheCounter">
          <path value="Medication.isOverTheCounter" />
          <short value="True if medication does not require a prescription" />
          <definition value="Set to true if the medication can be obtained without an order from a prescriber." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="NA" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.manufacturer" />
    <resource>
      <DataElement>
        <id value="Medication.manufacturer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.manufacturer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.manufacturer">
          <path value="Medication.manufacturer" />
          <short value="Manufacturer of the item" />
          <definition value="Describes the details of the manufacturer of the medication product.  This is not intended to represent the distributor of a medication product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player.scopingRole[typeCode=MANU].scoper" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.form" />
    <resource>
      <DataElement>
        <id value="Medication.form" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.form" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.form">
          <path value="Medication.form" />
          <short value="powder | tablets | capsule +" />
          <definition value="Describes the form of the item.  Powder; tablets; capsule." />
          <comment value="When Medication is referenced from MedicationRequest, this is the ordered form.  When Medication is referenced within MedicationDispense, this is the dispensed form.  When Medication is referenced within MedicationAdministration, this is administered form." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationForm" />
            </extension>
            <strength value="example" />
            <description value="A coded concept defining the form of a medication" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-form-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="script10.6" />
            <map value="coding.code =  //element(*,DrugCodedType)/FormCode&#xD;&#xD;coding.system = //element(*,DrugCodedType)/FormSourceCode" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".formCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.ingredient" />
    <resource>
      <DataElement>
        <id value="Medication.ingredient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.ingredient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.ingredient">
          <path value="Medication.ingredient" />
          <short value="Active or inactive ingredient" />
          <definition value="Identifies a particular constituent of interest in the product." />
          <comment value="The ingredients need not be a complete list.  If an ingredient is not specified, this does not indicate whether an ingredient is present or absent.  If an ingredient is specified it does not mean that all ingredients are specified.  It is possible to specify both inactive and active ingredients." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".scopesRole[typeCode=INGR]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.ingredient.itemX" />
    <resource>
      <DataElement>
        <id value="Medication.ingredient.itemX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.ingredient.itemX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.ingredient.item[x]">
          <path value="Medication.ingredient.item[x]" />
          <short value="The product contained" />
          <definition value="The actual ingredient - either a substance (simple ingredient) or another medication." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="coding.code = //element(*,MedicationType)/DrugCoded/ProductCode&#xD;&#xD;coding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier&#xD;&#xD;coding.display = //element(*,MedicationType)/DrugDescription" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXC-2-Component Code  if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.ingredient.isActive" />
    <resource>
      <DataElement>
        <id value="Medication.ingredient.isActive" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.ingredient.isActive" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.ingredient.isActive">
          <path value="Medication.ingredient.isActive" />
          <short value="Active ingredient indicator" />
          <definition value="Indication of whether this ingredient affects the therapeutic action of the drug." />
          <requirements value="True indicates that the ingredient affects the therapeutic action of the drug (i.e. active). &#xD;False indicates that the ingredient does not affect the therapeutic action of the drug (i.e. inactive)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="NA" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.ingredient.amount" />
    <resource>
      <DataElement>
        <id value="Medication.ingredient.amount" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.ingredient.amount" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.ingredient.amount">
          <path value="Medication.ingredient.amount" />
          <short value="Quantity of ingredient present" />
          <definition value="Specifies how many (or how much) of the items there are in this Medication.  For example, 250 mg per tablet.  This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Ratio" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="//element(*,DrugCodedType)/Strength" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXC-3-Component Amount &amp; RXC-4-Component Units  if medication: RXO-2-Requested Give Amount - Minimum &amp; RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum &amp; RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount &amp; RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum &amp; RXE-5-Give Units / RXE-4-Give Amount - Maximum &amp; RXE-5-Give Units / RXE-10-Dispense Amount &amp; RXE-10-Dispense Units" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.package" />
    <resource>
      <DataElement>
        <id value="Medication.package" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.package" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.package">
          <path value="Medication.package" />
          <short value="Details about packaged medications" />
          <definition value="Information that only applies to packages (not products)." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player[classCode=CONT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.package.container" />
    <resource>
      <DataElement>
        <id value="Medication.package.container" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.package.container" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.package.container">
          <path value="Medication.package.container" />
          <short value="E.g. box, vial, blister-pack" />
          <definition value="The kind of container that this package comes as." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationContainer" />
            </extension>
            <strength value="example" />
            <description value="A coded concept defining the kind of container a medication package is packaged in" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-package-form" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.package.content" />
    <resource>
      <DataElement>
        <id value="Medication.package.content" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.package.content" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.package.content">
          <path value="Medication.package.content" />
          <short value="What is  in the package" />
          <definition value="A set of components that go to make up the described item." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scopesRole[typeCode=CONT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.package.content.itemX" />
    <resource>
      <DataElement>
        <id value="Medication.package.content.itemX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.package.content.itemX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.package.content.item[x]">
          <path value="Medication.package.content.item[x]" />
          <short value="The item in the package" />
          <definition value="Identifies one of the items in the package." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.package.content.amount" />
    <resource>
      <DataElement>
        <id value="Medication.package.content.amount" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.package.content.amount" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.package.content.amount">
          <path value="Medication.package.content.amount" />
          <short value="Quantity present in the package" />
          <definition value="The amount of the product that is in the package." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.package.batch" />
    <resource>
      <DataElement>
        <id value="Medication.package.batch" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.package.batch" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.package.batch">
          <path value="Medication.package.batch" />
          <short value="Identifies a single production run" />
          <definition value="Information about a group of medication produced or packaged from one production run." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.package.batch.lotNumber" />
    <resource>
      <DataElement>
        <id value="Medication.package.batch.lotNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.package.batch.lotNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.package.batch.lotNumber">
          <path value="Medication.package.batch.lotNumber" />
          <short value="Identifier assigned to batch" />
          <definition value="The assigned lot number of a batch of the specified product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-15 Substance Lot Number / RXG-19 Substance Lot Number" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.package.batch.expirationDate" />
    <resource>
      <DataElement>
        <id value="Medication.package.batch.expirationDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.package.batch.expirationDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.package.batch.expirationDate">
          <path value="Medication.package.batch.expirationDate" />
          <short value="When batch will expire" />
          <definition value="When this specific batch of product will expire." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Medication.image" />
    <resource>
      <DataElement>
        <id value="Medication.image" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Medication.image" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Medication.image">
          <path value="Medication.image" />
          <short value="Picture of the medication" />
          <definition value="Photo(s) or graphic representation(s) of the medication." />
          <requirements value="Note that &quot;image&quot; is only applicable when the medication.code represents a physical item (e.g. Amoxil 250 mg capsule) and not an abstract item (e.g. amoxicillin 250 mg)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Attachment" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SUBJ].role[classCode=MANU],source[classCode=OBS,moodCode=EVN,code=&quot;type of image&quot;].value(ED.image)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure" />
    <resource>
      <DataElement>
        <id value="Measure" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure">
          <path value="Measure" />
          <short value="A quality measure definition" />
          <definition value="The Measure resource provides the definition of a quality measure." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.url" />
    <resource>
      <DataElement>
        <id value="Measure.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.url">
          <path value="Measure.url" />
          <short value="Logical URI to reference this measure (globally unique)" />
          <definition value="An absolute URI that is used to identify this measure 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 measure is (or will be) published. The URL SHOULD include the major version of the measure. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the measure to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.url" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.identifier" />
    <resource>
      <DataElement>
        <id value="Measure.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.identifier">
          <path value="Measure.identifier" />
          <short value="Additional identifier for the measure" />
          <definition value="A formal identifier that is used to identify this measure when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this measure outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.version" />
    <resource>
      <DataElement>
        <id value="Measure.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.version">
          <path value="Measure.version" />
          <short value="Business version of the measure" />
          <definition value="The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts." />
          <comment value="There may be different measure instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the measure with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.version" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.name" />
    <resource>
      <DataElement>
        <id value="Measure.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.name">
          <path value="Measure.name" />
          <short value="Name for this measure (computer friendly)" />
          <definition value="A natural language name identifying the measure. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.title" />
    <resource>
      <DataElement>
        <id value="Measure.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.title">
          <path value="Measure.title" />
          <short value="Name for this measure (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the measure." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.status" />
    <resource>
      <DataElement>
        <id value="Measure.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.status">
          <path value="Measure.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this measure. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of measures that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired measure without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="Definition.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.experimental" />
    <resource>
      <DataElement>
        <id value="Measure.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.experimental">
          <path value="Measure.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of measure that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental measure in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.experimental" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.date" />
    <resource>
      <DataElement>
        <id value="Measure.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.date">
          <path value="Measure.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the measure was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the measure 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 measure. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.date" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.publisher" />
    <resource>
      <DataElement>
        <id value="Measure.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.publisher">
          <path value="Measure.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the measure." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the measure is the organization or individual primarily responsible for the maintenance and upkeep of the measure. 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 measure. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the measure.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.publisher" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.description" />
    <resource>
      <DataElement>
        <id value="Measure.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.description">
          <path value="Measure.description" />
          <short value="Natural language description of the measure" />
          <definition value="A free text natural language description of the measure from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the measure 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 measure 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="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.purpose" />
    <resource>
      <DataElement>
        <id value="Measure.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.purpose">
          <path value="Measure.purpose" />
          <short value="Why this measure is defined" />
          <definition value="Explaination of why this measure is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the measure Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.usage" />
    <resource>
      <DataElement>
        <id value="Measure.usage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.usage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.usage">
          <path value="Measure.usage" />
          <short value="Describes the clinical usage of the measure" />
          <definition value="A detailed description of how the measure is used from a clinical perspective." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.approvalDate" />
    <resource>
      <DataElement>
        <id value="Measure.approvalDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.approvalDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.approvalDate">
          <path value="Measure.approvalDate" />
          <short value="When the measure was approved by publisher" />
          <definition value="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." />
          <comment value="The 'date' element may be more recent than the approval date because of minor changes / editorial corrections." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.approvalDate" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.lastReviewDate" />
    <resource>
      <DataElement>
        <id value="Measure.lastReviewDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.lastReviewDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.lastReviewDate">
          <path value="Measure.lastReviewDate" />
          <short value="When the measure was last reviewed" />
          <definition value="The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date." />
          <comment value="If specified, this is usually after the approval date." />
          <requirements value="Gives a sense of how &quot;current&quot; the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.lastReviewDate" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.effectivePeriod" />
    <resource>
      <DataElement>
        <id value="Measure.effectivePeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.effectivePeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.effectivePeriod">
          <path value="Measure.effectivePeriod" />
          <short value="When the measure is expected to be used" />
          <definition value="The period during which the measure content was or is planned to be in active use." />
          <comment value="The effective period for a measure  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015." />
          <requirements value="Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of a the measure are or are expected to be used instead." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.effectivePeriod" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.useContext" />
    <resource>
      <DataElement>
        <id value="Measure.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.useContext">
          <path value="Measure.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate measure instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.useContext" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.jurisdiction" />
    <resource>
      <DataElement>
        <id value="Measure.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.jurisdiction">
          <path value="Measure.jurisdiction" />
          <short value="Intended jurisdiction for measure (if applicable)" />
          <definition value="A legal or geographic region in which the measure is intended to be used." />
          <comment value="It may be possible for the measure to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.topic" />
    <resource>
      <DataElement>
        <id value="Measure.topic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.topic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.topic">
          <path value="Measure.topic" />
          <short value="E.g. Education, Treatment, Assessment, etc" />
          <definition value="Descriptive topics related to the content of the measure. Topics provide a high-level categorization of the type of the measure that can be useful for filtering and searching." />
          <requirements value="Repositories must be able to determine how to categorize the measure so that it can be found by topical searches." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.contributor" />
    <resource>
      <DataElement>
        <id value="Measure.contributor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.contributor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.contributor">
          <path value="Measure.contributor" />
          <short value="A content contributor" />
          <definition value="A contributor to the content of the measure, 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 measure." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Contributor" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.contact" />
    <resource>
      <DataElement>
        <id value="Measure.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.contact">
          <path value="Measure.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.contact" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.copyright" />
    <resource>
      <DataElement>
        <id value="Measure.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.copyright">
          <path value="Measure.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the measure and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.copyright" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.relatedArtifact" />
    <resource>
      <DataElement>
        <id value="Measure.relatedArtifact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.relatedArtifact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.relatedArtifact">
          <path value="Measure.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="Measures 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="*" />
          <type>
            <code value="RelatedArtifact" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.library" />
    <resource>
      <DataElement>
        <id value="Measure.library" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.library" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.library">
          <path value="Measure.library" />
          <short value="Logic used by the measure" />
          <definition value="A reference to a Library resource containing the formal logic used by the measure." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Library" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.disclaimer" />
    <resource>
      <DataElement>
        <id value="Measure.disclaimer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.disclaimer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.disclaimer">
          <path value="Measure.disclaimer" />
          <short value="Disclaimer for use of the measure or its referenced content" />
          <definition value="Notices and disclaimers regarding the use of the measure, or related to intellectual property (such as code systems) referenced by the measure." />
          <requirements value="Some organizations require that notices and disclosures be included when publishing measures that reference their intellecutal property." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.scoring" />
    <resource>
      <DataElement>
        <id value="Measure.scoring" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.scoring" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.scoring">
          <path value="Measure.scoring" />
          <short value="proportion | ratio | continuous-variable | cohort" />
          <definition value="Indicates how the calculation is performed for the measure, including proportion, ratio, continuous variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MeasureScoring" />
            </extension>
            <strength value="extensible" />
            <description value="The scoring type of the measure" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/measure-scoring" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.compositeScoring" />
    <resource>
      <DataElement>
        <id value="Measure.compositeScoring" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.compositeScoring" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.compositeScoring">
          <path value="Measure.compositeScoring" />
          <short value="opportunity | all-or-nothing | linear | weighted" />
          <definition value="If this is a composite measure, the scoring method used to combine the component measures to determine the composite score." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CompositeMeasureScoring" />
            </extension>
            <strength value="extensible" />
            <description value="The composite scoring method of the measure" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/composite-measure-scoring" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.type" />
    <resource>
      <DataElement>
        <id value="Measure.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.type">
          <path value="Measure.type" />
          <short value="process | outcome | structure | patient-reported-outcome | composite" />
          <definition value="Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MeasureType" />
            </extension>
            <strength value="extensible" />
            <description value="The type of measure (includes codes from 2.16.840.1.113883.1.11.20368)" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/measure-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.subjectCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.riskAdjustment" />
    <resource>
      <DataElement>
        <id value="Measure.riskAdjustment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.riskAdjustment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.riskAdjustment">
          <path value="Measure.riskAdjustment" />
          <short value="How is risk adjustment applied for this measure" />
          <definition value="A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results." />
          <comment value="Describes the method of adjusting for clinical severity and conditions present at the start of care that can influence patient outcomes for making valid comparisons of outcome measures across providers. Indicates whether an eMeasure is subject to the statistical process for reducing, removing, or clarifying the influences of confounding factors to allow more useful comparisons." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.rateAggregation" />
    <resource>
      <DataElement>
        <id value="Measure.rateAggregation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.rateAggregation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.rateAggregation">
          <path value="Measure.rateAggregation" />
          <short value="How is rate aggregation performed for this measure" />
          <definition value="Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result." />
          <comment value="The measure rate for an organization or clinician is based upon the entities’ aggregate data and summarizes the performance of the entity over a given time period (e.g., monthly, quarterly, yearly). The aggregated data are derived from the results of a specific measure algorithm and, if appropriate, the application of specific risk adjustment models.  Can also be used to describe how to risk adjust the data based on supplemental data elements described in the eMeasure (e.g., pneumonia hospital measures antibiotic selection in the ICU versus non-ICU and then the roll-up of the two). This could be applied to aggregated cohort measure definitions (e.g., CDC's aggregate reporting for TB at the state level)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.rationale" />
    <resource>
      <DataElement>
        <id value="Measure.rationale" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.rationale" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.rationale">
          <path value="Measure.rationale" />
          <short value="Why does this measure exist" />
          <definition value="Provides a succint statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.clinicalRecommendationStatement" />
    <resource>
      <DataElement>
        <id value="Measure.clinicalRecommendationStatement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.clinicalRecommendationStatement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.clinicalRecommendationStatement">
          <path value="Measure.clinicalRecommendationStatement" />
          <short value="Summary of clinical guidelines" />
          <definition value="Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.improvementNotation" />
    <resource>
      <DataElement>
        <id value="Measure.improvementNotation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.improvementNotation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.improvementNotation">
          <path value="Measure.improvementNotation" />
          <short value="Improvement notation for the measure, e.g. higher score indicates better quality" />
          <definition value="Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is whthin a range)." />
          <requirements value="Measure consumers and implementers must be able to determine how to interpret a measure score." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.definition" />
    <resource>
      <DataElement>
        <id value="Measure.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.definition">
          <path value="Measure.definition" />
          <short value="Defined terms used in the measure documentation" />
          <definition value="Provides a description of an individual term used within the measure." />
          <requirements value="Measure developers must be able to provide precise definitions of terms used within measure descriptions and guidance to help communicate the intent of the measure." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.guidance" />
    <resource>
      <DataElement>
        <id value="Measure.guidance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.guidance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.guidance">
          <path value="Measure.guidance" />
          <short value="Additional guidance for implementers" />
          <definition value="Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure." />
          <requirements value="Measure developers must be able to provide additional guidance for implementers to understand the intent with greater specificity than that provided in the logic of the measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.set" />
    <resource>
      <DataElement>
        <id value="Measure.set" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.set" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.set">
          <path value="Measure.set" />
          <short value="The measure set, e.g. Preventive Care and Screening" />
          <definition value="The measure set, e.g. Preventive Care and Screening." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group" />
    <resource>
      <DataElement>
        <id value="Measure.group" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group">
          <path value="Measure.group" />
          <short value="Population criteria group" />
          <definition value="A group of population criteria for the measure." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.identifier" />
    <resource>
      <DataElement>
        <id value="Measure.group.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.identifier">
          <path value="Measure.group.identifier" />
          <short value="Unique identifier" />
          <definition value="A unique identifier for the group. This identifier will used to report data for the group in the measure report." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.name" />
    <resource>
      <DataElement>
        <id value="Measure.group.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.name">
          <path value="Measure.group.name" />
          <short value="Short name" />
          <definition value="Optional name or short description of this group." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.description" />
    <resource>
      <DataElement>
        <id value="Measure.group.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.description">
          <path value="Measure.group.description" />
          <short value="Summary description" />
          <definition value="The human readable description of this population group." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.population" />
    <resource>
      <DataElement>
        <id value="Measure.group.population" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.population" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.population">
          <path value="Measure.group.population" />
          <short value="Population criteria" />
          <definition value="A population criteria for the measure." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.population.identifier" />
    <resource>
      <DataElement>
        <id value="Measure.group.population.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.population.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.population.identifier">
          <path value="Measure.group.population.identifier" />
          <short value="Unique identifier" />
          <definition value="A unique identifier for the population criteria. This identifier is used to report data against this criteria within the measure report." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.population.code" />
    <resource>
      <DataElement>
        <id value="Measure.group.population.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.population.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.population.code">
          <path value="Measure.group.population.code" />
          <short value="initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation" />
          <definition value="The type of population criteria." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MeasurePopulationType" />
            </extension>
            <strength value="extensible" />
            <description value="The type of population" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/measure-population" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.population.name" />
    <resource>
      <DataElement>
        <id value="Measure.group.population.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.population.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.population.name">
          <path value="Measure.group.population.name" />
          <short value="Short name" />
          <definition value="Optional name or short description of this population." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.population.description" />
    <resource>
      <DataElement>
        <id value="Measure.group.population.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.population.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.population.description">
          <path value="Measure.group.population.description" />
          <short value="The human readable description of this population criteria" />
          <definition value="The human readable description of this population criteria." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.population.criteria" />
    <resource>
      <DataElement>
        <id value="Measure.group.population.criteria" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.population.criteria" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.population.criteria">
          <path value="Measure.group.population.criteria" />
          <short value="The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria" />
          <definition value="The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria." />
          <comment value="In the case of a continuous variable or ratio measure, this may be the name of a function that calculates the value of the individual observation for each patient or event in the population. For these types of measures, individual observations are reported as observation resources included in the evaluatedResources bundle for each patient. See the MeasureReport resource or the Quality Reporting topic for more information." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.stratifier" />
    <resource>
      <DataElement>
        <id value="Measure.group.stratifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.stratifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.stratifier">
          <path value="Measure.group.stratifier" />
          <short value="Stratifier criteria for the measure" />
          <definition value="The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library, or a valid FHIR Resource Path." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.stratifier.identifier" />
    <resource>
      <DataElement>
        <id value="Measure.group.stratifier.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.stratifier.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.stratifier.identifier">
          <path value="Measure.group.stratifier.identifier" />
          <short value="The identifier for the stratifier used to coordinate the reported data back to this stratifier" />
          <definition value="The identifier for the stratifier used to coordinate the reported data back to this stratifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.stratifier.criteria" />
    <resource>
      <DataElement>
        <id value="Measure.group.stratifier.criteria" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.stratifier.criteria" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.stratifier.criteria">
          <path value="Measure.group.stratifier.criteria" />
          <short value="How the measure should be stratified" />
          <definition value="The criteria for the stratifier. This must be the name of an expression defined within a referenced library." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.group.stratifier.path" />
    <resource>
      <DataElement>
        <id value="Measure.group.stratifier.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.group.stratifier.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.group.stratifier.path">
          <path value="Measure.group.stratifier.path" />
          <short value="Path to the stratifier" />
          <definition value="The path to an element that defines the stratifier, specified as a valid FHIR resource path." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.supplementalData" />
    <resource>
      <DataElement>
        <id value="Measure.supplementalData" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.supplementalData" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.supplementalData">
          <path value="Measure.supplementalData" />
          <short value="What other data should be reported with the measure" />
          <definition value="The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path." />
          <comment value="Note that supplemental data are reported as observations for each patient and included in the evaluatedResources bundle. See the MeasureReport resource or the Quality Reporting topic for more information." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.supplementalData.identifier" />
    <resource>
      <DataElement>
        <id value="Measure.supplementalData.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.supplementalData.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.supplementalData.identifier">
          <path value="Measure.supplementalData.identifier" />
          <short value="Identifier, unique within the measure" />
          <definition value="An identifier for the supplemental data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.supplementalData.usage" />
    <resource>
      <DataElement>
        <id value="Measure.supplementalData.usage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.supplementalData.usage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.supplementalData.usage">
          <path value="Measure.supplementalData.usage" />
          <short value="supplemental-data | risk-adjustment-factor" />
          <definition value="An indicator of the intended usage for the supplemental data element. Supplemental data indicates the data is additional information requested to augment the measure information. Risk adjustment factor indicates the data is additional information used to calculate risk adjustment factors when applying a risk model to the measure calculation." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MeasureDataUsage" />
            </extension>
            <strength value="extensible" />
            <description value="The intended usage for supplemental data elements in the measure" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/measure-data-usage" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.supplementalData.criteria" />
    <resource>
      <DataElement>
        <id value="Measure.supplementalData.criteria" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.supplementalData.criteria" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.supplementalData.criteria">
          <path value="Measure.supplementalData.criteria" />
          <short value="Expression describing additional data to be reported" />
          <definition value="The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Measure.supplementalData.path" />
    <resource>
      <DataElement>
        <id value="Measure.supplementalData.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Measure.supplementalData.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Measure.supplementalData.path">
          <path value="Measure.supplementalData.path" />
          <short value="Path to the supplemental data element" />
          <definition value="The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchSubject" />
    <resource>
      <DataElement>
        <id value="ResearchSubject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchSubject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchSubject">
          <path value="ResearchSubject" />
          <short value="Investigation to increase healthcare-related patient-independent knowledge" />
          <definition value="A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge.  This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques.  A ResearchStudy involves the gathering of information about human or animal subjects." />
          <comment value="Need to make sure we encompass public health studies." />
          <alias value="Study Subject" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=CLNTRL, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.diagnostics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchSubject.identifier" />
    <resource>
      <DataElement>
        <id value="ResearchSubject.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchSubject.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchSubject.identifier">
          <path value="ResearchSubject.identifier" />
          <short value="Business Identifier for research subject" />
          <definition value="Identifiers assigned to this research study by the sponsor or other systems." />
          <requirements value="Allows identification of the research study as it is known by various participating systems and in a way that remains consistent across servers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchSubject.status" />
    <resource>
      <DataElement>
        <id value="ResearchSubject.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchSubject.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchSubject.status">
          <path value="ResearchSubject.status" />
          <short value="candidate | enrolled | active | suspended | withdrawn | completed" />
          <definition value="The current state of the subject." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResearchSubjectStatus" />
            </extension>
            <strength value="required" />
            <description value="Indicates the progression of a study subject through a study" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/research-subject-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchSubject.period" />
    <resource>
      <DataElement>
        <id value="ResearchSubject.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchSubject.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchSubject.period">
          <path value="ResearchSubject.period" />
          <short value="Start and end of participation" />
          <definition value="The dates the subject began and ended their participation in the study." />
          <alias value="timing" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchSubject.study" />
    <resource>
      <DataElement>
        <id value="ResearchSubject.study" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchSubject.study" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchSubject.study">
          <path value="ResearchSubject.study" />
          <short value="Study subject is part of" />
          <definition value="Reference to the study the subject is participating in." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ResearchStudy" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchSubject.individual" />
    <resource>
      <DataElement>
        <id value="ResearchSubject.individual" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchSubject.individual" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchSubject.individual">
          <path value="ResearchSubject.individual" />
          <short value="Who is part of study" />
          <definition value="The record of the person or animal who is involved in the study." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchSubject.assignedArm" />
    <resource>
      <DataElement>
        <id value="ResearchSubject.assignedArm" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchSubject.assignedArm" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchSubject.assignedArm">
          <path value="ResearchSubject.assignedArm" />
          <short value="What path should be followed" />
          <definition value="The name of the arm in the study the subject is expected to follow as part of this study." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchSubject.actualArm" />
    <resource>
      <DataElement>
        <id value="ResearchSubject.actualArm" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchSubject.actualArm" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchSubject.actualArm">
          <path value="ResearchSubject.actualArm" />
          <short value="What path was followed" />
          <definition value="The name of the arm in the study the subject actually followed as part of this study." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchSubject.consent" />
    <resource>
      <DataElement>
        <id value="ResearchSubject.consent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchSubject.consent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchSubject.consent">
          <path value="ResearchSubject.consent" />
          <short value="Agreement to participate in study" />
          <definition value="A record of the patient's informed agreement to participate in the study." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Consent" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription" />
    <resource>
      <DataElement>
        <id value="Subscription" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription">
          <path value="Subscription" />
          <short value="A server push subscription criteria" />
          <definition value="The subscription resource is used to define a push based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined &quot;channel&quot; so that another system is able to take an appropriate action." />
          <alias value="WebHook" />
          <alias value="Hook" />
          <alias value="Routing Rule" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.exchange" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.status" />
    <resource>
      <DataElement>
        <id value="Subscription.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.status">
          <path value="Subscription.status" />
          <short value="requested | active | error | off" />
          <definition value="The status of the subscription, which marks the server state for managing the subscription." />
          <comment value="A client can only submit subscription resources in the requested or off state. Only the server can  move a subscription from requested to active, and then to error. Either the server or the client can turn a subscription off.&#xA;&#xA;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SubscriptionStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of a subscription." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/subscription-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.contact" />
    <resource>
      <DataElement>
        <id value="Subscription.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.contact">
          <path value="Subscription.contact" />
          <short value="Contact details for source (e.g. troubleshooting)" />
          <definition value="Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.end" />
    <resource>
      <DataElement>
        <id value="Subscription.end" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.end" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.end">
          <path value="Subscription.end" />
          <short value="When to automatically delete the subscription" />
          <definition value="The time for the server to turn the subscription off." />
          <comment value="The server is permitted to deviate from this time, but should observe it." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.reason" />
    <resource>
      <DataElement>
        <id value="Subscription.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.reason">
          <path value="Subscription.reason" />
          <short value="Description of why this subscription was created" />
          <definition value="A description of why this subscription is defined." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.criteria" />
    <resource>
      <DataElement>
        <id value="Subscription.criteria" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.criteria" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.criteria">
          <path value="Subscription.criteria" />
          <short value="Rule for server push criteria" />
          <definition value="The rules that the server should use to determine when to generate notifications for this subscription." />
          <comment value="The rules are a search criteria (without the [base] part). Like Bundle.entry.request.url, it has no leading &quot;/&quot;." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.error" />
    <resource>
      <DataElement>
        <id value="Subscription.error" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.error" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.error">
          <path value="Subscription.error" />
          <short value="Latest error note" />
          <definition value="A record of the last error that occurred when the server processed a notification." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.channel" />
    <resource>
      <DataElement>
        <id value="Subscription.channel" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.channel" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.channel">
          <path value="Subscription.channel" />
          <short value="The channel on which to report matches to the criteria" />
          <definition value="Details where to send notifications when resources are received that meet the criteria." />
          <min value="1" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.channel.type" />
    <resource>
      <DataElement>
        <id value="Subscription.channel.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.channel.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.channel.type">
          <path value="Subscription.channel.type" />
          <short value="rest-hook | websocket | email | sms | message" />
          <definition value="The type of channel to send notifications on." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SubscriptionChannelType" />
            </extension>
            <strength value="required" />
            <description value="The type of method used to execute a subscription." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/subscription-channel-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.channel.endpoint" />
    <resource>
      <DataElement>
        <id value="Subscription.channel.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.channel.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.channel.endpoint">
          <path value="Subscription.channel.endpoint" />
          <short value="Where the channel points to" />
          <definition value="The uri that describes the actual end-point to send messages to." />
          <comment value="For rest-hook, and websocket, the end-point must be an http: or https: URL; for email, a mailto: url, for sms, a tel: url, and for message the endpoint can be in any form of url the server understands (usually, http: or mllp:). The URI is allowed to be relative; in which case, it is relative to the server end-point (since their may be more than one, clients should avoid using relative URIs)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.channel.payload" />
    <resource>
      <DataElement>
        <id value="Subscription.channel.payload" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.channel.payload" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.channel.payload">
          <path value="Subscription.channel.payload" />
          <short value="Mimetype to send, or omit for no payload" />
          <definition value="The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. If the payload is not present, then there is no payload in the notification, just a notification." />
          <comment value="Sending the payload has obvious security implications. The server is responsible for ensuring that the content is appropriately secured." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.channel.header" />
    <resource>
      <DataElement>
        <id value="Subscription.channel.header" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.channel.header" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.channel.header">
          <path value="Subscription.channel.header" />
          <short value="Usage depends on the channel type" />
          <definition value="Additional headers / information to send as part of the notification." />
          <comment value="Exactly what these mean depend on the channel type. They can convey additional information to the recipient and/or meet security requirements; for example, support of multiple headers in the outgoing notifications for rest-hook type subscriptions." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Subscription.tag" />
    <resource>
      <DataElement>
        <id value="Subscription.tag" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Subscription.tag" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Subscription.tag">
          <path value="Subscription.tag" />
          <short value="A tag to add to matching resources" />
          <definition value="A tag to add to any resource that matches the criteria, after the subscription is processed." />
          <comment value="So that other systems can tell which resources have been the subject of a notification." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SubscriptionTag" />
            </extension>
            <strength value="example" />
            <description value="Tags to put on a resource after subscriptions have been sent." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/subscription-tag" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference" />
    <resource>
      <DataElement>
        <id value="DocumentReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference">
          <path value="DocumentReference" />
          <short value="A reference to a document" />
          <definition value="A reference to a document." />
          <comment value="Usually, this is used for documents other than those defined by FHIR." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Document[classCode=&quot;DOC&quot; and moodCode=&quot;EVN&quot;]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.documents" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.masterIdentifier" />
    <resource>
      <DataElement>
        <id value="DocumentReference.masterIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.masterIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.masterIdentifier">
          <path value="DocumentReference.masterIdentifier" />
          <short value="Master Version Specific Identifier" />
          <definition value="Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document." />
          <comment value="CDA Document Id extension and root." />
          <requirements value="The structure and format of this Id shall be consistent with the specification corresponding to the formatCode attribute. (e.g. for a DICOM standard document a 64-character numeric UID, for an HL7 CDA format a serialization of the CDA Document Id extension and root in the form &quot;oid^extension&quot;, where OID is a 64 digits max, and the Id is a 16 UTF-8 char max. If the OID is coded without the extension then the '^' character shall not be included.)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="TXA-12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.uniqueId" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.identifier" />
    <resource>
      <DataElement>
        <id value="DocumentReference.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.identifier">
          <path value="DocumentReference.identifier" />
          <short value="Other identifiers for the document" />
          <definition value="Other identifiers associated with the document, including version independent identifiers." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="TXA-16?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id / .setId" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.entryUUID" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.status" />
    <resource>
      <DataElement>
        <id value="DocumentReference.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.status">
          <path value="DocumentReference.status" />
          <short value="current | superseded | entered-in-error" />
          <definition value="The status of this document reference." />
          <comment value="This is the status of the DocumentReference object, which might be independent from the docStatus element.&#xA;&#xA;This element is labeled as a modifier because the status contains the codes that mark the document or reference as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentReferenceStatus" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The status of the document reference." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/document-reference-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="TXA-19" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="interim: .completionCode=&quot;IN&quot; &amp; ./statusCode[isNormalDatatype()]=&quot;active&quot;;  final: .completionCode=&quot;AU&quot; &amp;&amp;  ./statusCode[isNormalDatatype()]=&quot;complete&quot; and not(./inboundRelationship[typeCode=&quot;SUBJ&quot; and isNormalActRelationship()]/source[subsumesCode(&quot;ActClass#CACT&quot;) and moodCode=&quot;EVN&quot; and domainMember(&quot;ReviseDocument&quot;, code) and isNormalAct()]);  amended: .completionCode=&quot;AU&quot; &amp;&amp;  ./statusCode[isNormalDatatype()]=&quot;complete&quot; and ./inboundRelationship[typeCode=&quot;SUBJ&quot; and isNormalActRelationship()]/source[subsumesCode(&quot;ActClass#CACT&quot;) and moodCode=&quot;EVN&quot; and domainMember(&quot;ReviseDocument&quot;, code) and isNormalAct() and statusCode=&quot;completed&quot;];  withdrawn : .completionCode=NI &amp;&amp;  ./statusCode[isNormalDatatype()]=&quot;obsolete&quot;" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.docStatus" />
    <resource>
      <DataElement>
        <id value="DocumentReference.docStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.docStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.docStatus">
          <path value="DocumentReference.docStatus" />
          <short value="preliminary | final | appended | amended | entered-in-error" />
          <definition value="The status of the underlying document." />
          <comment value="The document that is pointed to might be in various lifecycle states." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferredDocumentStatus" />
            </extension>
            <strength value="required" />
            <description value="Status of the underlying document." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/composition-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="TXA-17" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.type" />
    <resource>
      <DataElement>
        <id value="DocumentReference.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.type">
          <path value="DocumentReference.type" />
          <short value="Kind of document (LOINC if possible)" />
          <definition value="Specifies the particular kind of document referenced  (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced." />
          <comment value="Key metadata element describing the document, used in searching/filtering." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentC80Type" />
            </extension>
            <strength value="preferred" />
            <description value="Precise type of clinical document." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-doc-typecodes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="TXA-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./code" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.type" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.class" />
    <resource>
      <DataElement>
        <id value="DocumentReference.class" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.class" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.class">
          <path value="DocumentReference.class" />
          <short value="Categorization of document" />
          <definition value="A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type." />
          <comment value="This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD))." />
          <requirements value="Helps humans to assess whether the document is of interest when viewing a list of documents." />
          <alias value="kind" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentC80Class" />
            </extension>
            <strength value="example" />
            <description value="High-level kind of a clinical document at a macro level." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-doc-classcodes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;LIST&quot;, moodCode=&quot;EVN&quot;].code" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.class" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.subject" />
    <resource>
      <DataElement>
        <id value="DocumentReference.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.subject">
          <path value="DocumentReference.subject" />
          <short value="Who/what is the subject of the document" />
          <definition value="Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3 (No standard way to define a Practitioner or Group subject in HL7 v2 MDM message)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;SBJ&quot;].role[typeCode=&quot;PAT&quot;]" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.patientId" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.created" />
    <resource>
      <DataElement>
        <id value="DocumentReference.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.created">
          <path value="DocumentReference.created" />
          <short value="Document creation time" />
          <definition value="When the document was created." />
          <comment value="Creation time is used for tracking, organizing versions and searching. This is the creation time of the document, not the source material on which it is based." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="TXA-6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime[type=&quot;TS&quot;]" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.submissionTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.indexed" />
    <resource>
      <DataElement>
        <id value="DocumentReference.indexed" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.indexed" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.indexed">
          <path value="DocumentReference.indexed" />
          <short value="When this document reference was created" />
          <definition value="When the document reference was created." />
          <comment value="Referencing/indexing time is used for tracking, organizing versions and searching." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".availabilityTime[type=&quot;TS&quot;]" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.submissionTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.author" />
    <resource>
      <DataElement>
        <id value="DocumentReference.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.author">
          <path value="DocumentReference.author" />
          <short value="Who and/or what authored the document" />
          <definition value="Identifies who is responsible for adding the information to the document." />
          <comment value="Not necessarily who did the actual data entry (i.e. typist) it in or who was the source (informant)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="TXA-9 (No standard way to indicate a Device in HL7 v2 MDM message)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;AUT&quot;].role[classCode=&quot;ASSIGNED&quot;]" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.author" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.authenticator" />
    <resource>
      <DataElement>
        <id value="DocumentReference.authenticator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.authenticator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.authenticator">
          <path value="DocumentReference.authenticator" />
          <short value="Who/what authenticated the document" />
          <definition value="Which person or organization authenticates that this document is valid." />
          <comment value="Represents a participant within the author institution who has legally authenticated or attested the document. Legal authentication implies that a document has been signed manually or electronically by the legal Authenticator." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="TXA-10" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;AUTHEN&quot;].role[classCode=&quot;ASSIGNED&quot;]" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.legalAuthenticator" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.custodian" />
    <resource>
      <DataElement>
        <id value="DocumentReference.custodian" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.custodian" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.custodian">
          <path value="DocumentReference.custodian" />
          <short value="Organization which maintains the document" />
          <definition value="Identifies the organization or group who is responsible for ongoing maintenance of and access to the document." />
          <comment value="Identifies the logical organization to go to find the current version, where to report issues, etc. This is different from the physical location of the document, which is the technical location of the document, which host may be delegated to the management of some other organization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;RCV&quot;].role[classCode=&quot;CUST&quot;].scoper[classCode=&quot;ORG&quot; and determinerCode=&quot;INST&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.relatesTo" />
    <resource>
      <DataElement>
        <id value="DocumentReference.relatesTo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.relatesTo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.relatesTo">
          <path value="DocumentReference.relatesTo" />
          <short value="Relationships to other documents" />
          <definition value="Relationships that this document has with other document references that already exist." />
          <comment value="This element is labeled as a modifier because documents that append to other documents are incomplete on their own." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.relatesTo.code" />
    <resource>
      <DataElement>
        <id value="DocumentReference.relatesTo.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.relatesTo.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.relatesTo.code">
          <path value="DocumentReference.relatesTo.code" />
          <short value="replaces | transforms | signs | appends" />
          <definition value="The type of relationship that this document has with anther document." />
          <comment value="If this document appends another document, then the document cannot be fully understood without also accessing the referenced document." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentRelationshipType" />
            </extension>
            <strength value="required" />
            <description value="The type of relationship between documents." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/document-relationship-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship.typeCode" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry Associations type" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.relatesTo.target" />
    <resource>
      <DataElement>
        <id value="DocumentReference.relatesTo.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.relatesTo.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.relatesTo.target">
          <path value="DocumentReference.relatesTo.target" />
          <short value="Target of the relationship" />
          <definition value="The target document of this relationship." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".target[classCode=&quot;DOC&quot;, moodCode=&quot;EVN&quot;].id" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry Associations reference" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.description" />
    <resource>
      <DataElement>
        <id value="DocumentReference.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.description">
          <path value="DocumentReference.description" />
          <short value="Human-readable description (title)" />
          <definition value="Human-readable description of the source document. This is sometimes known as the &quot;title&quot;." />
          <comment value="What the document is about, rather than a terse summary of the document. It is commonly the case that records do not have a title and are collectively referred to by the display name of Record code (e.g. a &quot;consultation&quot; or &quot;progress note&quot;)." />
          <requirements value="Helps humans to assess whether the document is of interest." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="TXA-25" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;].target.text" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.securityLabel" />
    <resource>
      <DataElement>
        <id value="DocumentReference.securityLabel" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.securityLabel" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.securityLabel">
          <path value="DocumentReference.securityLabel" />
          <short value="Document security-tags" />
          <definition value="A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta.security contains the security labels of the &quot;reference&quot; to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to." />
          <comment value="The confidentiality codes can carry multiple vocabulary items. HL7 has developed an understanding of security and privacy tags that might be desirable in a Document Sharing environment, called HL7 Healthcare Privacy and Security Classification System (HCS). The following specification is recommended but not mandated, as the vocabulary bindings are an administrative domain responsibility. The use of this method is up to the policy domain such as the XDS Affinity Domain or other Trust Domain where all parties including sender and recipients are trusted to appropriately tag and enforce.   In the HL7 Healthcare Privacy and Security Classification (HCS) there are code systems specific to Confidentiality, Sensitivity, Integrity, and Handling Caveats. Some values would come from a local vocabulary as they are related to workflow roles and special projects." />
          <requirements value="Use of the Health Care Privacy/Security Classification (HCS) system of security-tag use is recommended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
          <mapping>
            <identity value="v2" />
            <map value="TXA-18" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".confidentialityCode" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.confidentialityCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.content" />
    <resource>
      <DataElement>
        <id value="DocumentReference.content" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.content" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.content">
          <path value="DocumentReference.content" />
          <short value="Document referenced" />
          <definition value="The document and format referenced. There may be multiple content element repetitions, each with a different format." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="document.text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.content.attachment" />
    <resource>
      <DataElement>
        <id value="DocumentReference.content.attachment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.content.attachment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.content.attachment">
          <path value="DocumentReference.content.attachment" />
          <short value="Where to access the document" />
          <definition value="The document or URL of the document along with critical metadata to prove content has integrity." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="TXA-3 for mime type" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="document.text" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.mimeType DocumentEntry.languageCode DocumentEntry.URI DocumentEntry.size DocumentEntry.hash DocumentEntry.title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.content.format" />
    <resource>
      <DataElement>
        <id value="DocumentReference.content.format" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.content.format" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.content.format">
          <path value="DocumentReference.content.format" />
          <short value="Format/content rules for the document" />
          <definition value="An identifier of the document encoding, structure, and template that the document conforms to beyond the base format indicated in the mimeType." />
          <comment value="Note that while IHE mostly issues URNs for format types, not all documents can be identified by a URI." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentFormat" />
            </extension>
            <strength value="preferred" />
            <description value="Document Format Codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/formatcodes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="document.text" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.formatCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context">
          <path value="DocumentReference.context" />
          <short value="Clinical context of document" />
          <definition value="The clinical context in which the document was prepared." />
          <comment value="These values are primarily added to help with searching for interesting/relevant documents." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=&quot;SUBJ&quot;].target[classCode&lt;'ACT']" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context.encounter" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context.encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context.encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context.encounter">
          <path value="DocumentReference.context.encounter" />
          <short value="Context of the document  content" />
          <definition value="Describes the clinical encounter or type of care that the document content is associated with." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="unique(highest(./outboundRelationship[typeCode=&quot;SUBJ&quot; and isNormalActRelationship()], priorityNumber)/target[moodCode=&quot;EVN&quot; and classCode=(&quot;ENC&quot;, &quot;PCPR&quot;) and isNormalAct])" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context.event" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context.event" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context.event" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context.event">
          <path value="DocumentReference.context.event" />
          <short value="Main clinical acts documented" />
          <definition value="This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a &quot;History and Physical Report&quot; in which the procedure being documented is necessarily a &quot;History and Physical&quot; act." />
          <comment value="An event can further specialize the act inherent in the type, such as  where it is simply &quot;Procedure Report&quot; and the procedure was a &quot;colonoscopy&quot;. If one or more event codes are included, they shall not conflict with the values inherent in the class or type elements as such a conflict would create an ambiguous situation." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentEventType" />
            </extension>
            <strength value="example" />
            <description value="This list of codes represents the main clinical acts being documented." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActCode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.eventCodeList" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context.period" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context.period">
          <path value="DocumentReference.context.period" />
          <short value="Time of service that is being documented" />
          <definition value="The time period over which the service that is described by the document was provided." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.serviceStartTime DocumentEntry.serviceStopTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context.facilityType" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context.facilityType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context.facilityType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context.facilityType">
          <path value="DocumentReference.context.facilityType" />
          <short value="Kind of facility where patient was seen" />
          <definition value="The kind of facility where the patient was seen." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentC80FacilityType" />
            </extension>
            <strength value="example" />
            <description value="XDS Facility Type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-facilitycodes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;LOC&quot;].role[classCode=&quot;DSDLOC&quot;].code" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.healthcareFacilityTypeCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context.practiceSetting" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context.practiceSetting" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context.practiceSetting" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context.practiceSetting">
          <path value="DocumentReference.context.practiceSetting" />
          <short value="Additional details about where the content was created (e.g. clinical specialty)" />
          <definition value="This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty." />
          <comment value="The value set for this content has an example binding because it is a value set decided by community policy. Other examples exist for consideration: * HITSP created the table HITSP/C80 Table 2-148 Clinical Specialty Value Set (a value set based upon SNOMED CT which is referenced by Direct (XDR and XDM for Direct Messaging Specification, Version 1), as well as Nationwide Health Information Network (NHIN).  Query for Documents, Web Service Interface Specification, V 3.0, 07/27/2011 * ELGA (Austria) (ELGA CDA Implementie-rungsleitfäden Registrierung von CDA Dokumenten für ELGA mit IHE Cross-Enterprise Document Sharing: XDS Metadaten (XDSDocumentEntry), [1.2.40.0.34.7.6.3] * XDS Connect-a-thon practiceSettingCode." />
          <requirements value="This is an important piece of metadata that providers often rely upon to quickly sort and/or filter out to find specific content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentC80PracticeSetting" />
            </extension>
            <strength value="example" />
            <description value="Additional details about where the content was created (e.g. clinical specialty)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-practice-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;LOC&quot;].role[classCode=&quot;DSDLOC&quot;].code" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.practiceSettingCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context.sourcePatientInfo" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context.sourcePatientInfo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context.sourcePatientInfo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context.sourcePatientInfo">
          <path value="DocumentReference.context.sourcePatientInfo" />
          <short value="Patient demographics from source" />
          <definition value="The Patient Information as known when the document was published. May be a reference to a version specific, or contained." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;SBJ&quot;].role[typeCode=&quot;PAT&quot;]" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.sourcePatientInfo DocumentEntry.sourcePatientId" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context.related" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context.related" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context.related" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context.related">
          <path value="DocumentReference.context.related" />
          <short value="Related identifiers or resources" />
          <definition value="Related identifiers or resources associated with the DocumentReference." />
          <comment value="May be identifiers or resources that caused the DocumentReference or referenced Document to be created." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./outboundRelationship[typeCode=&quot;PERT&quot; and isNormalActRelationship()] / target[isNormalAct]" />
          </mapping>
          <mapping>
            <identity value="xds" />
            <map value="DocumentEntry.referenceIdList" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context.related.identifier" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context.related.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context.related.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context.related.identifier">
          <path value="DocumentReference.context.related.identifier" />
          <short value="Identifier of related objects or events" />
          <definition value="Related identifier to this DocumentReference. If both id and ref are present they shall refer to the same thing." />
          <comment value="Order numbers, accession numbers, XDW workflow numbers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./outboundRelationship[typeCode=&quot;PERT&quot; and isNormalActRelationship()] / target[isNormalAct] .id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DocumentReference.context.related.ref" />
    <resource>
      <DataElement>
        <id value="DocumentReference.context.related.ref" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DocumentReference.context.related.ref" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DocumentReference.context.related.ref">
          <path value="DocumentReference.context.related.ref" />
          <short value="Related Resource" />
          <definition value="Related Resource to this DocumentReference. If both id and ref are present they shall refer to the same thing." />
          <comment value="Order, ProcedureRequest,  Procedure, EligibilityRequest, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./outboundRelationship[typeCode=&quot;PERT&quot; and isNormalActRelationship()] / target[isNormalAct].text.reference" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition" />
    <resource>
      <DataElement>
        <id value="GraphDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition">
          <path value="GraphDefinition" />
          <short value="Definition of an graph of resources" />
          <definition value="A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Definition" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.behavior" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.url" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.url">
          <path value="GraphDefinition.url" />
          <short value="Logical URI to reference this graph definition (globally unique)" />
          <definition value="An absolute URI that is used to identify this graph 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 graph definition is (or will be) published. The URL SHOULD include the major version of the graph 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the graph definition to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.url" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.version" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.version">
          <path value="GraphDefinition.version" />
          <short value="Business version of the graph definition" />
          <definition value="The identifier that is used to identify this version of the graph definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the graph definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different graph definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the graph definition with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.version" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.name" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.name">
          <path value="GraphDefinition.name" />
          <short value="Name for this graph definition (computer friendly)" />
          <definition value="A natural language name identifying the graph 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.status" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.status">
          <path value="GraphDefinition.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this graph definition. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of graph definitions that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired graph definition without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="Definition.status (different ValueSet)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.experimental" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.experimental">
          <path value="GraphDefinition.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this graph 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 graph definition that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental graph definition in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level graph definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.experimental" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.date" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.date">
          <path value="GraphDefinition.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the graph definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the graph 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 graph definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.date" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.publisher" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.publisher">
          <path value="GraphDefinition.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the graph definition." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the graph definition is the organization or individual primarily responsible for the maintenance and upkeep of the graph 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 graph definition. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the graph definition.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.publisher" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.contact" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.contact">
          <path value="GraphDefinition.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.contact" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.description" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.description">
          <path value="GraphDefinition.description" />
          <short value="Natural language description of the graph definition" />
          <definition value="A free text natural language description of the graph definition from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the graph 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 graph 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="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.useContext" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.useContext">
          <path value="GraphDefinition.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate graph definition instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.useContext" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.jurisdiction" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.jurisdiction">
          <path value="GraphDefinition.jurisdiction" />
          <short value="Intended jurisdiction for graph definition (if applicable)" />
          <definition value="A legal or geographic region in which the graph definition is intended to be used." />
          <comment value="It may be possible for the graph definition to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.purpose" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.purpose">
          <path value="GraphDefinition.purpose" />
          <short value="Why this graph definition is defined" />
          <definition value="Explaination of why this graph definition is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the graph definition Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this graph definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.start" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.start" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.start" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.start">
          <path value="GraphDefinition.start" />
          <short value="Type of resource at which the graph starts" />
          <definition value="The type of FHIR resource at which instances of this graph start." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.profile" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.profile">
          <path value="GraphDefinition.profile" />
          <short value="Profile on base resource" />
          <definition value="The profile that describes the use of the base resource." />
          <comment value="The code does not include the '$' prefix that is always included in the URL when the operation is invoked." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link">
          <path value="GraphDefinition.link" />
          <short value="Links this graph makes rules about" />
          <definition value="Links this graph makes rules about." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.path" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.path">
          <path value="GraphDefinition.link.path" />
          <short value="Path in the resource that contains the link" />
          <definition value="Path in the resource that contains the link." />
          <comment value="The path can be a literal path (e.g. Observation.subject), or it can be a query for reverse links (e.g. Provenance?target=[id])." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.sliceName" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.sliceName" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.sliceName" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.sliceName">
          <path value="GraphDefinition.link.sliceName" />
          <short value="Which slice (if profiled)" />
          <definition value="Which slice (if profiled)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.min" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.min" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.min" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.min">
          <path value="GraphDefinition.link.min" />
          <short value="Minimum occurrences for this link" />
          <definition value="Minimum occurrences for this link." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.max" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.max" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.max" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.max">
          <path value="GraphDefinition.link.max" />
          <short value="Maximum occurrences for this link" />
          <definition value="Maximum occurrences for this link." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.description" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.description">
          <path value="GraphDefinition.link.description" />
          <short value="Why this link is specified" />
          <definition value="Information about why this link is of interest in this graph definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.target">
          <path value="GraphDefinition.link.target" />
          <short value="Potential target for the link" />
          <definition value="Potential target for the link." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.type" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.target.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.target.type">
          <path value="GraphDefinition.link.target.type" />
          <short value="Type of resource this link refers to" />
          <definition value="Type of resource this link refers to." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.profile" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.target.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.target.profile">
          <path value="GraphDefinition.link.target.profile" />
          <short value="Profile for the target resource" />
          <definition value="Profile for the target resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.target.compartment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.target.compartment">
          <path value="GraphDefinition.link.target.compartment" />
          <short value="Compartment Consistency Rules" />
          <definition value="Compartment Consistency Rules." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment.code" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.target.compartment.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.target.compartment.code">
          <path value="GraphDefinition.link.target.compartment.code" />
          <short value="Identifies the compartment" />
          <definition value="Identifies the compartment." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CompartmentCode" />
            </extension>
            <strength value="required" />
            <description value="Identifies a compartment" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/compartment-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment.rule" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.target.compartment.rule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment.rule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.target.compartment.rule">
          <path value="GraphDefinition.link.target.compartment.rule" />
          <short value="identical | matching | different | custom" />
          <definition value="identical | matching | different | no-rule | custom." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GraphCompartmentRule" />
            </extension>
            <strength value="required" />
            <description value="How a compartment must be linked" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/graph-compartment-rule" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment.expression" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.target.compartment.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.target.compartment.expression">
          <path value="GraphDefinition.link.target.compartment.expression" />
          <short value="Custom rule, as a FHIRPath expression" />
          <definition value="Custom rule, as a FHIRPath expression." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment.description" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.target.compartment.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.compartment.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.target.compartment.description">
          <path value="GraphDefinition.link.target.compartment.description" />
          <short value="Documentation for FHIRPath expression" />
          <definition value="Documentation for FHIRPath expression." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.link" />
    <resource>
      <DataElement>
        <id value="GraphDefinition.link.target.link" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GraphDefinition.link.target.link" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GraphDefinition.link.target.link">
          <path value="GraphDefinition.link.target.link" />
          <short value="Additional links from target resource" />
          <definition value="Additional links from target resource." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#GraphDefinition.link" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest" />
    <resource>
      <DataElement>
        <id value="ImagingManifest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest">
          <path value="ImagingManifest" />
          <short value="Key Object Selection" />
          <definition value="A text description of the DICOM SOP instances selected in the ImagingManifest; or the reason for, or significance of, the selection." />
          <alias value="Manifest" />
          <alias value="XDS-I summary" />
          <alias value="Key Images" />
          <alias value="(in limited use) Key Object Selection (KOS)" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[classCode=COMPOSITION, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="Key Object Selection SOP Class (1.2.840.10008.5.1.4.1.1.88.59)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.diagnostics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.identifier" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.identifier">
          <path value="ImagingManifest.identifier" />
          <short value="SOP Instance UID" />
          <definition value="Unique identifier of the DICOM Key Object Selection (KOS) that this resource represents." />
          <requirements value="DICOM SOP Instance is always assigned with a unique identifier (UID)." />
          <alias value="SOPInstanceUID" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0018) - SOP Instance UID (of the Key Object Selection SOP Class)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.patient" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.patient">
          <path value="ImagingManifest.patient" />
          <short value="Patient of the selected objects" />
          <definition value="A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest." />
          <comment value="SOP instances selected in the ImagingManifest can be from different studies, but must be of the same patient." />
          <requirements value="SOP Instances in ImagingManifest must be from the same patient." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0010,0010) - Patient Name (0010,0020) - Patient ID (0010,0021) - Issuer of Patient ID" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.authoringTime" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.authoringTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.authoringTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.authoringTime">
          <path value="ImagingManifest.authoringTime" />
          <short value="Time when the selection of instances was made" />
          <definition value="Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image)." />
          <requirements value="Date and time when the selection was made can be important to understand the content of selection." />
          <alias value="ObservationDateTime" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0040,A032) - Observation Date Time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.author" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.author">
          <path value="ImagingManifest.author" />
          <short value="Author (human or machine)" />
          <definition value="Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion." />
          <requirements value="Track the selection decision maker." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0040,A730) - Content Sequence TID 1002 - Observer Context" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.description" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.description">
          <path value="ImagingManifest.description" />
          <short value="Description text" />
          <definition value="Free text narrative description of the ImagingManifest.  &#xA;The value may be derived from the DICOM Standard Part 16, CID-7010 descriptions (e.g. Best in Set, Complete Study Content). Note that those values cover the wide range of uses of the DICOM Key Object Selection object, several of which are not supported by ImagingManifest. Specifically, there is no expected behavior associated with descriptions that suggest referenced images be removed or not used." />
          <comment value="Free text narrative description of the ImagingManifest." />
          <requirements value="Need to provide a narrative description of the SOP instances in the selection." />
          <alias value="TextValue" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0040,A160) - Text Value SR content item immediately under the root item, concept name code = (113012, DCM, &quot;Key Object Description&quot;)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Study" />
          </extension>
          <path value="ImagingManifest.study" />
          <short value="Study identity of the selected instances" />
          <definition value="Study identity and locating information of the DICOM SOP instances in the selection." />
          <comment value="Study component represents the study level identity and locator information of the DICOM SOP instances in the selection. It is the top level identity of the hierarchical identification of the instances." />
          <requirements value="DICOM SOP instances are identified through the UIDs of the study - series - instance hierarchy. In addition, the locator at the study level provide a means of retrieving the entire study." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Act[classCode=COMPOSITION, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study.uid" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study.uid" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study.uid" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study.uid">
          <path value="ImagingManifest.study.uid" />
          <short value="Study instance UID" />
          <definition value="Study instance UID of the SOP instances in the selection." />
          <requirements value="Study instance UID is required to fully identify the DICOM SOP instances in the selection." />
          <alias value="StudyInstanceUID" />
          <alias value="Referenced study instance UID" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="oid" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,000D) - Study Instance UID" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study.imagingStudy" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study.imagingStudy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study.imagingStudy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study.imagingStudy">
          <path value="ImagingManifest.study.imagingStudy" />
          <short value="Reference to ImagingStudy" />
          <definition value="Reference to the Imaging Study in FHIR form." />
          <requirements value="Used to retrieve the ImagingStudy that contain the images referenced in the Imaging ObjectSelection.study." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="imagingStudy (0020,000D) - Study Instance UID" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study.endpoint" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study.endpoint">
          <path value="ImagingManifest.study.endpoint" />
          <short value="Study access service endpoint" />
          <definition value="The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.type." />
          <requirements value="Access methods for viewing (e.g. IHE’s IID profile) or retrieving (e.g., DICOM’s WADO-URI and WADO-RS) the study or the study’s series or instances. The study-level baseLocation applies to each series in the study, unless overridden in series by a series-level baseLocation of the same type." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study.series" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study.series">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Series" />
          </extension>
          <path value="ImagingManifest.study.series" />
          <short value="Series identity of the selected instances" />
          <definition value="Series identity and locating information of the DICOM SOP instances in the selection." />
          <comment value="Series component represents the series level identity and locator information of the DICOM SOP instances in the selection." />
          <requirements value="DICOM SOP instances are identified through the UIDs of the study - series - instance hierarchy. In addition, the locator at the series level provides a means of retrieving the entire series." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.uid" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study.series.uid" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.uid" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study.series.uid">
          <path value="ImagingManifest.study.series.uid" />
          <short value="Series instance UID" />
          <definition value="Series instance UID of the SOP instances in the selection." />
          <requirements value="Series instance UID is required to fully identify the DICOM SOP instances in the selection." />
          <alias value="SeriesInstanceUID" />
          <alias value="Referenced series instance UID" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="oid" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,000E) - Series Instance UID" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.endpoint" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study.series.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study.series.endpoint">
          <path value="ImagingManifest.study.series.endpoint" />
          <short value="Series access endpoint" />
          <definition value="The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.type." />
          <requirements value="Access methods for retrieving (e.g., DICOM’s WADO-URI and WADO-RS) the series or the series’ instances. A baseLocation specified at the series level has precedence over a baseLocation of the same type specified at the study level." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.instance" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study.series.instance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.instance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study.series.instance">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Instance" />
          </extension>
          <path value="ImagingManifest.study.series.instance" />
          <short value="The selected instance" />
          <definition value="Identity and locating information of the selected DICOM SOP instances." />
          <comment value="SOP Instance component identify the instance selected, along with the study and series identities to form the DICOM identity hierarchy." />
          <requirements value="DICOM SOP instances are identified through the UIDs of the study - series - instance hierarchy. This is the instance level identity of the instance in the selection." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.instance.sopClass" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study.series.instance.sopClass" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.instance.sopClass" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study.series.instance.sopClass">
          <path value="ImagingManifest.study.series.instance.sopClass" />
          <short value="SOP class UID of instance" />
          <definition value="SOP class UID of the selected instance." />
          <comment value="SOP class UID identifies the type of the selected instances, e.g. CT image, Gray scale softcopy presentation state, ECG waveform, etc." />
          <requirements value="DICOM SOP instances can be an image or other data object. The SOP class UID provide the accurate information about what type the instance is." />
          <alias value="SOPClassUID" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="oid" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP]. source[classCode=OBS, moodCode=EVN, code=&quot;sop class&quot;].value" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0016) SOP Class UID" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.instance.uid" />
    <resource>
      <DataElement>
        <id value="ImagingManifest.study.series.instance.uid" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingManifest.study.series.instance.uid" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingManifest.study.series.instance.uid">
          <path value="ImagingManifest.study.series.instance.uid" />
          <short value="Selected instance UID" />
          <definition value="SOP Instance UID of the selected instance." />
          <comment value="SOP instance UID identifies the instance." />
          <requirements value="SOP instance UID is required to fully identify the DICOM SOP instance in the selection." />
          <alias value="SOPInstanceUID" />
          <alias value="Referenced SOP instance UID" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="oid" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0018) - SOP Instance UID" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport" />
    <resource>
      <DataElement>
        <id value="MeasureReport" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport">
          <path value="MeasureReport" />
          <short value="Results of a measure evaluation" />
          <definition value="The MeasureReport resource contains the results of evaluating a measure." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.identifier" />
    <resource>
      <DataElement>
        <id value="MeasureReport.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.identifier">
          <path value="MeasureReport.identifier" />
          <short value="Additional identifier for the Report" />
          <definition value="A formal identifier that is used to identify this report 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 {{title}} outside of FHIR, where the logical URL is not possible to use." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.status" />
    <resource>
      <DataElement>
        <id value="MeasureReport.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.status">
          <path value="MeasureReport.status" />
          <short value="complete | pending | error" />
          <definition value="The report status. No data will be available until the report status is complete." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MeasureReportStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the measure report" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/measure-report-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.type" />
    <resource>
      <DataElement>
        <id value="MeasureReport.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.type">
          <path value="MeasureReport.type" />
          <short value="individual | patient-list | summary" />
          <definition value="The type of measure report. This may be an individual report, which provides a single patient's score for the measure; a patient listing, which returns the list of patients that meet the various criteria in the measure; or a summary report, which returns a population count for each of the criteria in the measure." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MeasureReportType" />
            </extension>
            <strength value="required" />
            <description value="The type of the measure report" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/measure-report-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.measure" />
    <resource>
      <DataElement>
        <id value="MeasureReport.measure" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.measure" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.measure">
          <path value="MeasureReport.measure" />
          <short value="What measure was evaluated" />
          <definition value="A reference to the Measure that was evaluated to produce this report." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Measure" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.definition" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.patient" />
    <resource>
      <DataElement>
        <id value="MeasureReport.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.patient">
          <path value="MeasureReport.patient" />
          <short value="What patient the report is for" />
          <definition value="Optional Patient if the report was requested for a single patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.date" />
    <resource>
      <DataElement>
        <id value="MeasureReport.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.date">
          <path value="MeasureReport.date" />
          <short value="When the report was generated" />
          <definition value="The date this measure report was generated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrenceDateTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.reportingOrganization" />
    <resource>
      <DataElement>
        <id value="MeasureReport.reportingOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.reportingOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.reportingOrganization">
          <path value="MeasureReport.reportingOrganization" />
          <short value="Who is reporting the data" />
          <definition value="Reporting Organization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.period" />
    <resource>
      <DataElement>
        <id value="MeasureReport.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.period">
          <path value="MeasureReport.period" />
          <short value="What period the report covers" />
          <definition value="The reporting period for which the report was calculated." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group">
          <path value="MeasureReport.group" />
          <short value="Measure results for each group" />
          <definition value="The results of the calculation, one for each population group in the measure." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.identifier" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.identifier">
          <path value="MeasureReport.group.identifier" />
          <short value="What group of the measure" />
          <definition value="The identifier of the population group as defined in the measure definition." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.population" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.population" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.population" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.population">
          <path value="MeasureReport.group.population" />
          <short value="The populations in the group" />
          <definition value="The populations that make up the population group, one for each type of population appropriate for the measure." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.population.identifier" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.population.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.population.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.population.identifier">
          <path value="MeasureReport.group.population.identifier" />
          <short value="Population identifier as defined in the measure" />
          <definition value="The identifier of the population being reported, as defined by the population element of the measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.population.code" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.population.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.population.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.population.code">
          <path value="MeasureReport.group.population.code" />
          <short value="initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-score" />
          <definition value="The type of the population." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MeasurePopulation" />
            </extension>
            <strength value="extensible" />
            <description value="The type of population (e.g. initial, numerator, denominator, etc.)" />
            <valueSetUri value="http://hl7.org/fhir/ValueSet/measure-population" />
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.population.count" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.population.count" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.population.count" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.population.count">
          <path value="MeasureReport.group.population.count" />
          <short value="Size of the population" />
          <definition value="The number of members of the population." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.population.patients" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.population.patients" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.population.patients" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.population.patients">
          <path value="MeasureReport.group.population.patients" />
          <short value="For patient-list reports, the patients in this population" />
          <definition value="This element refers to a List of patient level MeasureReport resources, one for each patient in this population." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/List" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.measureScore" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.measureScore" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.measureScore" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.measureScore">
          <path value="MeasureReport.group.measureScore" />
          <short value="What score this group achieved" />
          <definition value="The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier">
          <path value="MeasureReport.group.stratifier" />
          <short value="Stratification results" />
          <definition value="When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.identifier" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier.identifier">
          <path value="MeasureReport.group.stratifier.identifier" />
          <short value="What stratifier of the group" />
          <definition value="The identifier of this stratifier, as defined in the measure definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier.stratum" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier.stratum">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="StratifierGroup" />
          </extension>
          <path value="MeasureReport.group.stratifier.stratum" />
          <short value="Stratum results, one for each unique value in the stratifier" />
          <definition value="This element contains the results for a single stratum within the stratifier. For example, when stratifying on administrative gender, there will be four strata, one for each possible gender value." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.value" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier.stratum.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier.stratum.value">
          <path value="MeasureReport.group.stratifier.stratum.value" />
          <short value="The stratum value, e.g. male" />
          <definition value="The value for this stratum, expressed as a string. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier.stratum.population" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier.stratum.population">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="StratifierGroupPopulation" />
          </extension>
          <path value="MeasureReport.group.stratifier.stratum.population" />
          <short value="Population results in this stratum" />
          <definition value="The populations that make up the stratum, one for each type of population appropriate to the measure." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population.identifier" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier.stratum.population.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier.stratum.population.identifier">
          <path value="MeasureReport.group.stratifier.stratum.population.identifier" />
          <short value="Population identifier as defined in the measure" />
          <definition value="The identifier of the population being reported, as defined by the population element of the measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population.code" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier.stratum.population.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier.stratum.population.code">
          <path value="MeasureReport.group.stratifier.stratum.population.code" />
          <short value="initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-score" />
          <definition value="The type of the population." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MeasurePopulation" />
            </extension>
            <strength value="extensible" />
            <description value="The type of population (e.g. initial, numerator, denominator, etc.)" />
            <valueSetUri value="http://hl7.org/fhir/ValueSet/measure-population" />
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population.count" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier.stratum.population.count" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population.count" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier.stratum.population.count">
          <path value="MeasureReport.group.stratifier.stratum.population.count" />
          <short value="Size of the population" />
          <definition value="The number of members of the population in this stratum." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population.patients" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier.stratum.population.patients" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.population.patients" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier.stratum.population.patients">
          <path value="MeasureReport.group.stratifier.stratum.population.patients" />
          <short value="For patient-list reports, the patients in this population" />
          <definition value="This element refers to a List of patient level MeasureReport resources, one for each patient in this population in this stratum." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/List" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.measureScore" />
    <resource>
      <DataElement>
        <id value="MeasureReport.group.stratifier.stratum.measureScore" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.measureScore" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.group.stratifier.stratum.measureScore">
          <path value="MeasureReport.group.stratifier.stratum.measureScore" />
          <short value="What score this stratum achieved" />
          <definition value="The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MeasureReport.evaluatedResources" />
    <resource>
      <DataElement>
        <id value="MeasureReport.evaluatedResources" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MeasureReport.evaluatedResources" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MeasureReport.evaluatedResources">
          <path value="MeasureReport.evaluatedResources" />
          <short value="What data was evaluated to produce the measure score" />
          <definition value="A reference to a Bundle containing the Resources that were used in the evaluation of this report." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Bundle" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole" />
    <resource>
      <DataElement>
        <id value="PractitionerRole" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole">
          <path value="PractitionerRole" />
          <short value="Roles/organizations the practitioner is associated with" />
          <definition value="A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRD (as one example)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="ServiceSiteProvider" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.individual" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.identifier" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.identifier">
          <path value="PractitionerRole.identifier" />
          <short value="Business Identifiers that are specific to a role/location" />
          <definition value="Business Identifiers that are specific to a role/location." />
          <requirements value="Often, specific identities are assigned for the agent." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRD-7 (or XCN.1)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Identifiers" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.active" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.active">
          <path value="PractitionerRole.active" />
          <short value="Whether this practitioner's record is in active use" />
          <definition value="Whether this practitioner's record is in active use." />
          <comment value="Default is true. &#xD;&#xD;If the practitioner is not in use by one organization, then it should mark the period on the PractitonerRole with an end date (even if they are active) as they may be active in another role." />
          <requirements value="Need to be able to mark a practitioner record as not to be used because it was created in error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="STF-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.period" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.period">
          <path value="PractitionerRole.period" />
          <short value="The period during which the practitioner is authorized to perform in these role(s)" />
          <definition value="The period during which the person is authorized to act as a practitioner in these role(s) for the organization." />
          <requirements value="Even after the agencies is revoked, the fact that it existed must still be recorded." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRD-8/9 / PRA-5.4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".performance[@typeCode &lt;= 'PPRF'].ActDefinitionOrEvent.effectiveTime" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="(ServD maps Practitioners and Organizations via another entity, so this concept is not available)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.practitioner" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.practitioner" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.practitioner" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.practitioner">
          <path value="PractitionerRole.practitioner" />
          <short value="Practitioner that is able to provide the defined services for the organation" />
          <definition value="Practitioner that is able to provide the defined services for the organation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.organization" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.organization">
          <path value="PractitionerRole.organization" />
          <short value="Organization where the roles are available" />
          <definition value="The organization where the Practitioner performs the roles associated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.code" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.code">
          <path value="PractitionerRole.code" />
          <short value="Roles which this practitioner may perform" />
          <definition value="Roles which this practitioner is authorized to perform for the organization." />
          <comment value="A person may have more than one role. At least one role is required." />
          <requirements value="Need to know what authority the practitioner has - what can they do?" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PractitionerRole" />
            </extension>
            <strength value="example" />
            <description value="The role a person plays representing an organization" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/practitioner-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PRD-1 / STF-18  / PRA-3  / PRT-4  / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="(ServD maps Practitioners and Organizations via another entity, so this concept is not available)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.specialty" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.specialty" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.specialty" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.specialty">
          <path value="PractitionerRole.specialty" />
          <short value="Specific specialty of the practitioner" />
          <definition value="Specific specialty of the practitioner." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PractitionerSpecialty" />
            </extension>
            <strength value="preferred" />
            <description value="Specific specialty associated with the agency" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-practice-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PRA-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player.HealthCareProvider[@classCode = 'PROV'].code" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Specialty" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.location" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.location">
          <path value="PractitionerRole.location" />
          <short value="The location(s) at which this practitioner provides care" />
          <definition value="The location(s) at which this practitioner provides care." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".performance.ActDefinitionOrEvent.ServiceDeliveryLocation[@classCode = 'SDLOC']" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="(ServD maps Practitioners and Organizations via another entity, so this concept is not available)&lt;br/&gt; However these are accessed via the Site.ServiceSite.ServiceSiteProvider record. (The Site has the location)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.healthcareService" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.healthcareService" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.healthcareService" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.healthcareService">
          <path value="PractitionerRole.healthcareService" />
          <short value="The list of healthcare services that this worker provides for this role's Organization/Location(s)" />
          <definition value="The list of healthcare services that this worker provides for this role's Organization/Location(s)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="EDU-2 / AFF-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player.QualifiedEntity[@classCode = 'QUAL'].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.telecom" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.telecom">
          <path value="PractitionerRole.telecom" />
          <short value="Contact details that are specific to the role/location/service" />
          <definition value="Contact details that are specific to the role/location/service." />
          <requirements value="Often practitioners have a dedicated line for each location (or service) that they work at, and need to be able to define separate contact details for each of these." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".telecom" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.availableTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.availableTime">
          <path value="PractitionerRole.availableTime" />
          <short value="Times the Service Site is available" />
          <definition value="A collection of times that the Service Site is available." />
          <comment value="More detailed availability information may be provided in associated Schedule/Slot resources." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime.daysOfWeek" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.availableTime.daysOfWeek" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime.daysOfWeek" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.availableTime.daysOfWeek">
          <path value="PractitionerRole.availableTime.daysOfWeek" />
          <short value="mon | tue | wed | thu | fri | sat | sun" />
          <definition value="Indicates which days of the week are available between the start and end Times." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DaysOfWeek" />
            </extension>
            <strength value="required" />
            <description value="The days of the week." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/days-of-week" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime.allDay" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.availableTime.allDay" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime.allDay" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.availableTime.allDay">
          <path value="PractitionerRole.availableTime.allDay" />
          <short value="Always available? e.g. 24 hour service" />
          <definition value="Is this always available? (hence times are irrelevant) e.g. 24 hour service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime.availableStartTime" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.availableTime.availableStartTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime.availableStartTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.availableTime.availableStartTime">
          <path value="PractitionerRole.availableTime.availableStartTime" />
          <short value="Opening time of day (ignored if allDay = true)" />
          <definition value="The opening time of day. Note: If the AllDay flag is set, then this time is ignored." />
          <comment value="The timezone is expected to be for where this HealthcareService is provided at." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="time" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime.availableEndTime" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.availableTime.availableEndTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.availableTime.availableEndTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.availableTime.availableEndTime">
          <path value="PractitionerRole.availableTime.availableEndTime" />
          <short value="Closing time of day (ignored if allDay = true)" />
          <definition value="The closing time of day. Note: If the AllDay flag is set, then this time is ignored." />
          <comment value="The timezone is expected to be for where this HealthcareService is provided at." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="time" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.notAvailable" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.notAvailable" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.notAvailable" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.notAvailable">
          <path value="PractitionerRole.notAvailable" />
          <short value="Not available during this time due to provided reason" />
          <definition value="The HealthcareService is not available during this period of time due to the provided reason." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.notAvailable.description" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.notAvailable.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.notAvailable.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.notAvailable.description">
          <path value="PractitionerRole.notAvailable.description" />
          <short value="Reason presented to the user explaining why time not available" />
          <definition value="The reason that can be presented to the user as to why this time is not available." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.notAvailable.during" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.notAvailable.during" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.notAvailable.during" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.notAvailable.during">
          <path value="PractitionerRole.notAvailable.during" />
          <short value="Service not availablefrom this date" />
          <definition value="Service is not available (seasonally or for a public holiday) from this date." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.availabilityExceptions" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.availabilityExceptions" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.availabilityExceptions" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.availabilityExceptions">
          <path value="PractitionerRole.availabilityExceptions" />
          <short value="Description of availability exceptions" />
          <definition value="A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PractitionerRole.endpoint" />
    <resource>
      <DataElement>
        <id value="PractitionerRole.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PractitionerRole.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PractitionerRole.endpoint">
          <path value="PractitionerRole.endpoint" />
          <short value="Technical endpoints providing access to services operated for the practitioner with this role" />
          <definition value="Technical endpoints providing access to services operated for the practitioner with this role." />
          <requirements value="Organizations have multiple systems that provide various services and ,ay also be different for practitioners too.&#xD;&#xD;So the endpoint satisfies the need to be able to define the technical connection details for how to connect to them, and for what purpose." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson" />
    <resource>
      <DataElement>
        <id value="RelatedPerson" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson">
          <path value="RelatedPerson" />
          <short value="An person that is related to a patient, but who is not a direct target of care" />
          <definition value="Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.individual" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.identifier" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.identifier">
          <path value="RelatedPerson.identifier" />
          <short value="A human identifier for this person" />
          <definition value="Identifier for a person within a particular scope." />
          <requirements value="People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the patient. Examples are national person identifier and local identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="NK1-33" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.active" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.active">
          <path value="RelatedPerson.active" />
          <short value="Whether this related person's record is in active use" />
          <definition value="Whether this related person record is in active use." />
          <comment value="This element is labeled as a modifier because it may be used to mark that the resource was created in error." />
          <requirements value="Need to be able to mark a related person record as not to be used, such as if it was created in error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.patient" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.patient">
          <path value="RelatedPerson.patient" />
          <short value="The patient this person is related to" />
          <definition value="The patient this person is related to." />
          <requirements value="We need to know which patient this RelatedPerson is related to." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="scoper[classCode=PSN|ANM and determinerCode='INSTANCE']/playedRole[classCode='PAT']/id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.relationship" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.relationship" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.relationship" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.relationship">
          <path value="RelatedPerson.relationship" />
          <short value="The nature of the relationship" />
          <definition value="The nature of the relationship between a patient and the related person." />
          <requirements value="We need to know the relationship with the patient since it influences the interpretation of the information attributed to this person." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PatientRelationshipType" />
            </extension>
            <strength value="preferred" />
            <description value="The nature of the relationship between a patient and the related person" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="NK1-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.name" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.name">
          <path value="RelatedPerson.name" />
          <short value="A name associated with the person" />
          <definition value="A name associated with the person." />
          <requirements value="Related persons need to be identified by name, but it is uncommon to need details about multiple other names for that person." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="HumanName" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="NK1-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.telecom" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.telecom">
          <path value="RelatedPerson.telecom" />
          <short value="A contact detail for the person" />
          <definition value="A contact detail for the person, e.g. a telephone number or an email address." />
          <comment value="Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification." />
          <requirements value="People have (primary) ways to contact them in some way such as phone, email." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="NK1-5 / NK1-6 / NK1-40" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="telecom" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.gender" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.gender" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.gender" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.gender">
          <path value="RelatedPerson.gender" />
          <short value="male | female | other | unknown" />
          <definition value="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." />
          <requirements value="Needed for identification of the person, in combination with (at least) name and birth date." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdministrativeGender" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The gender of a person used for administrative purposes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="NK1-15" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="administrativeGender" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.birthDate" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.birthDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.birthDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.birthDate">
          <path value="RelatedPerson.birthDate" />
          <short value="The date on which the related person was born" />
          <definition value="The date on which the related person was born." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="player.birthTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.address" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.address">
          <path value="RelatedPerson.address" />
          <short value="Address where the related person can be contacted or visited" />
          <definition value="Address where the related person can be contacted or visited." />
          <requirements value="Need to keep track where the related person can be contacted per postal mail or visited." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Address" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="NK1-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="addr" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.photo" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.photo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.photo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.photo">
          <path value="RelatedPerson.photo" />
          <short value="Image of the person" />
          <definition value="Image of the person." />
          <requirements value="Many EHR systems have the capability to capture an image of persons. Fits with newer social media usage too." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Attachment" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 - needs a profile" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode='PSN' and determinerCode='INSTANCE']/desc" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RelatedPerson.period" />
    <resource>
      <DataElement>
        <id value="RelatedPerson.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RelatedPerson.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RelatedPerson.period">
          <path value="RelatedPerson.period" />
          <short value="Period of time that this relationship is considered valid" />
          <definition value="The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest" />
    <resource>
      <DataElement>
        <id value="SupplyRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest">
          <path value="SupplyRequest" />
          <short value="Request for a medication, substance or device" />
          <definition value="A record of a request for a medication, substance or device used in the healthcare setting." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[moodCode&lt;=INT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.order" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.identifier" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.identifier">
          <path value="SupplyRequest.identifier" />
          <short value="Unique identifier" />
          <definition value="Unique identifier for this supply request." />
          <comment value="This is assigned by the requester, and used to refer to this order in other external standards." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.2, ORC.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.status" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.status">
          <path value="SupplyRequest.status" />
          <short value="draft | active | suspended +" />
          <definition value="Status of the supply request." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SupplyRequestStatus" />
            </extension>
            <strength value="required" />
            <description value="Status of the supply request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/supplyrequest-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.category" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.category">
          <path value="SupplyRequest.category" />
          <short value="The kind of supply (central, non-stock, etc.)" />
          <definition value="Category of supply, e.g.  central, non-stock, etc. This is used to support work flows associated with the supply process." />
          <alias value="kind" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SupplyRequestKind" />
            </extension>
            <strength value="example" />
            <description value="Category of supply request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/supplyrequest-kind" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.priority" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.priority">
          <path value="SupplyRequest.priority" />
          <short value="routine | urgent | asap | stat" />
          <definition value="Indicates how quickly this SupplyRequest should be addressed with respect to other requests." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <meaningWhenMissing value="If missing, this task should be performed with normal priority" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RequestPriority" />
            </extension>
            <strength value="required" />
            <description value="Identifies the level of importance to be assigned to actioning the request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.priority" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="TQ1.9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".priorityCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.orderedItem" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.orderedItem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.orderedItem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.orderedItem">
          <path value="SupplyRequest.orderedItem" />
          <short value="The item being requested" />
          <definition value="The item being requested." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.code" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.orderedItem.quantity" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.orderedItem.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.orderedItem.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.orderedItem.quantity">
          <path value="SupplyRequest.orderedItem.quantity" />
          <short value="The requested amount of the item indicated" />
          <definition value="The amount that is being ordered of the indicated item." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.orderedItem.itemX" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.orderedItem.itemX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.orderedItem.itemX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.orderedItem.item[x]">
          <path value="SupplyRequest.orderedItem.item[x]" />
          <short value="Medication, Substance, or Device requested to be supplied" />
          <definition value="The item that is requested to be supplied. This is either a link to a resource representing the details of the item or a code that identifies the item from a known list." />
          <comment value="Note that there's a difference between a prescription - an instruction to take a medication, along with a (sometimes) implicit supply, and an explicit request to supply, with no explicit instructions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SupplyRequestItem" />
            </extension>
            <strength value="example" />
            <description value="The item that was requested" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/supply-item" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.occurrenceX" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.occurrenceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.occurrenceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.occurrence[x]">
          <path value="SupplyRequest.occurrence[x]" />
          <short value="When the request should be fulfilled" />
          <definition value="When the request should be fulfilled." />
          <alias value="when" />
          <alias value="timing" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.occurrence.occurrenceTiming" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Accompanying TQ1/TQ2 segments" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.authoredOn" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.authoredOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.authoredOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.authoredOn">
          <path value="SupplyRequest.authoredOn" />
          <short value="When the request was made" />
          <definition value="When the request was made." />
          <alias value="date" />
          <alias value="createdOn" />
          <alias value="signedOn" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.requester" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.requester" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.requester" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.requester">
          <path value="SupplyRequest.requester" />
          <short value="Who/what is requesting service" />
          <definition value="The individual who initiated the request and has responsibility for its activation." />
          <alias value="author" />
          <alias value="source" />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.requester.agent" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.requester.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.requester.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.requester.agent">
          <path value="SupplyRequest.requester.agent" />
          <short value="Individual making the request" />
          <definition value="The device, practitioner, etc. who initiated the request." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.agent" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.requester.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.requester.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.requester.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.requester.onBehalfOf">
          <path value="SupplyRequest.requester.onBehalfOf" />
          <short value="Organization agent is acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of." />
          <requirements value="Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when authoring the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.supplier" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.supplier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.supplier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.supplier">
          <path value="SupplyRequest.supplier" />
          <short value="Who is intended to fulfill the request" />
          <definition value="Who is intended to fulfill the request." />
          <alias value="performer" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.performer" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRT" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.reasonX" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.reasonX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.reasonX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.reason[x]">
          <path value="SupplyRequest.reason[x]" />
          <short value="Why the supply item was requested" />
          <definition value="Why the supply item was requested." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SupplyRequestReason" />
            </extension>
            <strength value="example" />
            <description value="Why the supply item was requested" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/supplyrequest-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonCode, Request.reasonReference" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode, .outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.deliverFrom" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.deliverFrom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.deliverFrom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.deliverFrom">
          <path value="SupplyRequest.deliverFrom" />
          <short value="The origin of the supply" />
          <definition value="Where the supply is expected to come from." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PRT" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyRequest.deliverTo" />
    <resource>
      <DataElement>
        <id value="SupplyRequest.deliverTo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyRequest.deliverTo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyRequest.deliverTo">
          <path value="SupplyRequest.deliverTo" />
          <short value="The destination of the supply" />
          <definition value="Where the supply is destined to go." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PRT" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner" />
    <resource>
      <DataElement>
        <id value="Practitioner" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner">
          <path value="Practitioner" />
          <short value="A person with a  formal responsibility in the provisioning of healthcare or related services" />
          <definition value="A person who is directly or indirectly involved in the provisioning of healthcare." />
          <comment value="Note that a cab driver no longer fits the bill. You probably would be interested in the organization rather than the individual?" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRD (as one example)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="Provider" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.individual" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.identifier" />
    <resource>
      <DataElement>
        <id value="Practitioner.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.identifier">
          <path value="Practitioner.identifier" />
          <short value="A identifier for the person as this agent" />
          <definition value="An identifier that applies to this person in this role." />
          <requirements value="Often, specific identities are assigned for the agent." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRD-7 (or XCN.1)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./id" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Identifiers" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.active" />
    <resource>
      <DataElement>
        <id value="Practitioner.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.active">
          <path value="Practitioner.active" />
          <short value="Whether this practitioner's record is in active use" />
          <definition value="Whether this practitioner's record is in active use." />
          <comment value="Default is true. &#xD;&#xD;If the practitioner is not in use by one organization, then it should mark the period on the PractitonerRole with an end date (even if they are active) as they may be active in another role." />
          <requirements value="Need to be able to mark a practitioner record as not to be used because it was created in error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.name" />
    <resource>
      <DataElement>
        <id value="Practitioner.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.name">
          <path value="Practitioner.name" />
          <short value="The name(s) associated with the practitioner" />
          <definition value="The name(s) associated with the practitioner." />
          <comment value="The selection of the use property should ensure that there is a single usual name specified, and others use the nickname (alias), old, or other values as appropriate.&#xD;&#xD;In general select the value to be used in the ResourceReference.display based on this:&#xD;&#xD;1. There is more than 1 name&#xD;2. Use = usual&#xD;3. Period is current to the date of the usage&#xD;4. Use = official&#xD;5. Other order as decided by internal business rules." />
          <requirements value="The name(s) that a Practitioner is known by. Where there are multiple, the name that the practitioner is usually known as should be used in the display." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="HumanName" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XCN Components" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./name" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./PreferredName (GivenNames, FamilyName, TitleCode)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.telecom" />
    <resource>
      <DataElement>
        <id value="Practitioner.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.telecom">
          <path value="Practitioner.telecom" />
          <short value="A contact detail for the practitioner (that apply to all roles)" />
          <definition value="A contact detail for the practitioner, e.g. a telephone number or an email address." />
          <comment value="Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification&#xD;&#xD;These typically will have home numbers, or mobile numbers that are not role specific." />
          <requirements value="Need to know how to reach a practitioner independent to any roles the practitioner may have." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRT-15, STF-10, ROL-12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./telecom" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./ContactPoints" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.address" />
    <resource>
      <DataElement>
        <id value="Practitioner.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.address">
          <path value="Practitioner.address" />
          <short value="Address(es) of the practitioner that are not role specific (typically home address)" />
          <definition value="Address(es) of the practitioner that are not role specific (typically home address). &#xD;Work addresses are not typically entered in this property as they are usually role dependent." />
          <comment value="The PractitionerRole does not have an address value on it, as it is expected that the location property be used for this purpose (which has an address)." />
          <requirements value="The home/mailing address of the practitioner is often required for employee administration purposes, and also for some rostering services where the start point (practitioners home) can be used in calculations." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Address" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC-24, STF-11, ROL-11, PRT-14" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./addr" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Addresses" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.gender" />
    <resource>
      <DataElement>
        <id value="Practitioner.gender" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.gender" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.gender">
          <path value="Practitioner.gender" />
          <short value="male | female | other | unknown" />
          <definition value="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." />
          <requirements value="Needed to address the person correctly." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdministrativeGender" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The gender of a person used for administrative purposes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="STF-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./administrativeGender" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./GenderCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.birthDate" />
    <resource>
      <DataElement>
        <id value="Practitioner.birthDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.birthDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.birthDate">
          <path value="Practitioner.birthDate" />
          <short value="The date  on which the practitioner was born" />
          <definition value="The date of birth for the practitioner." />
          <requirements value="Needed for identification." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="STF-6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./birthTime" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="(not represented in ServD)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.photo" />
    <resource>
      <DataElement>
        <id value="Practitioner.photo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.photo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.photo">
          <path value="Practitioner.photo" />
          <short value="Image of the person" />
          <definition value="Image of the person." />
          <requirements value="Many EHR systems have the capability to capture an image of patients and personnel. Fits with newer social media usage too." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Attachment" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="./subjectOf/ObservationEvent[code=&quot;photo&quot;]/value" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./ImageURI (only supports the URI reference)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.qualification" />
    <resource>
      <DataElement>
        <id value="Practitioner.qualification" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.qualification" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.qualification">
          <path value="Practitioner.qualification" />
          <short value="Qualifications obtained by training and certification" />
          <definition value="Qualifications obtained by training and certification." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="CER?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".playingEntity.playingRole[classCode=QUAL].code" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Qualifications" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.qualification.identifier" />
    <resource>
      <DataElement>
        <id value="Practitioner.qualification.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.qualification.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.qualification.identifier">
          <path value="Practitioner.qualification.identifier" />
          <short value="An identifier for this qualification for the practitioner" />
          <definition value="An identifier that applies to this person's qualification in this role." />
          <requirements value="Often, specific identities are assigned for the qualification." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".playingEntity.playingRole[classCode=QUAL].id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.qualification.code" />
    <resource>
      <DataElement>
        <id value="Practitioner.qualification.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.qualification.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.qualification.code">
          <path value="Practitioner.qualification.code" />
          <short value="Coded representation of the qualification" />
          <definition value="Coded representation of the qualification." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Qualification" />
            </extension>
            <strength value="example" />
            <description value="Specific qualification the practitioner has to provide a service" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v2-2.7-0360" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".playingEntity.playingRole[classCode=QUAL].code" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Qualifications.Value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.qualification.period" />
    <resource>
      <DataElement>
        <id value="Practitioner.qualification.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.qualification.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.qualification.period">
          <path value="Practitioner.qualification.period" />
          <short value="Period during which the qualification is valid" />
          <definition value="Period during which the qualification is valid." />
          <requirements value="Qualifications are often for a limited period of time, and can be revoked." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".playingEntity.playingRole[classCode=QUAL].effectiveTime" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Qualifications.StartDate and ./Qualifications.EndDate" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.qualification.issuer" />
    <resource>
      <DataElement>
        <id value="Practitioner.qualification.issuer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.qualification.issuer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.qualification.issuer">
          <path value="Practitioner.qualification.issuer" />
          <short value="Organization that regulates and issues the qualification" />
          <definition value="Organization that regulates and issues the qualification." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".playingEntity.playingRole[classCode=QUAL].scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Practitioner.communication" />
    <resource>
      <DataElement>
        <id value="Practitioner.communication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Practitioner.communication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Practitioner.communication">
          <path value="Practitioner.communication" />
          <short value="A language the practitioner is able to use in patient communication" />
          <definition value="A language the practitioner is able to use in patient communication." />
          <comment value="The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type." />
          <requirements value="Knowing which language a practitioner speaks can help in facilitating communication with patients." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
          <mapping>
            <identity value="v2" />
            <map value="PID-15, NK1-20, LAN-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./languageCommunication" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Languages.LanguageSpokenCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile">
          <path value="ExpansionProfile" />
          <short value="Defines behaviour and contraints on the ValueSet Expansion operation" />
          <definition value="Resource to define constraints on the Expansion of a FHIR ValueSet." />
          <alias value="ValueSetExpansionProfile" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.terminology" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.url" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.url">
          <path value="ExpansionProfile.url" />
          <short value="Logical URI to reference this expansion profile (globally unique)" />
          <definition value="An absolute URI that is used to identify this expansion profile 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 expansion profile is (or will be) published. The URL SHOULD include the major version of the expansion profile. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the expansion profile to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.identifier" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.identifier">
          <path value="ExpansionProfile.identifier" />
          <short value="Additional identifier for the expansion profile" />
          <definition value="A formal identifier that is used to identify this expansion profile when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this expansion profile outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.version" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.version">
          <path value="ExpansionProfile.version" />
          <short value="Business version of the expansion profile" />
          <definition value="The identifier that is used to identify this version of the expansion profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the expansion profile author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different expansion profile instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the expansion profile with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.name" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.name">
          <path value="ExpansionProfile.name" />
          <short value="Name for this expansion profile (computer friendly)" />
          <definition value="A natural language name identifying the expansion profile. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.status" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.status">
          <path value="ExpansionProfile.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this expansion profile. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of expansion profiles that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired expansion profile without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.experimental" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.experimental">
          <path value="ExpansionProfile.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this expansion profile is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of expansion profile that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental expansion profile in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level expansion profile." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.date" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.date">
          <path value="ExpansionProfile.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the expansion profile was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the expansion profile 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 expansion profile. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.publisher" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.publisher">
          <path value="ExpansionProfile.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the expansion profile." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the expansion profile is the organization or individual primarily responsible for the maintenance and upkeep of the expansion profile. 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 expansion profile. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the expansion profile.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.contact" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.contact">
          <path value="ExpansionProfile.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.description" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.description">
          <path value="ExpansionProfile.description" />
          <short value="Natural language description of the expansion profile" />
          <definition value="A free text natural language description of the expansion profile from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the expansion profile 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 expansion profile 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="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.useContext" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.useContext">
          <path value="ExpansionProfile.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate expansion profile instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.jurisdiction" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.jurisdiction">
          <path value="ExpansionProfile.jurisdiction" />
          <short value="Intended jurisdiction for expansion profile (if applicable)" />
          <definition value="A legal or geographic region in which the expansion profile is intended to be used." />
          <comment value="It may be possible for the expansion profile to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.fixedVersion" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.fixedVersion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.fixedVersion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.fixedVersion">
          <path value="ExpansionProfile.fixedVersion" />
          <short value="Fix use of a code system to a particular version" />
          <definition value="Fix use of a particular code system to a particular version." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.fixedVersion.system" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.fixedVersion.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.fixedVersion.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.fixedVersion.system">
          <path value="ExpansionProfile.fixedVersion.system" />
          <short value="System to have its version fixed" />
          <definition value="The specific system for which to fix the version." />
          <comment value="See ''Coding.system'' for further documentation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.fixedVersion.version" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.fixedVersion.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.fixedVersion.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.fixedVersion.version">
          <path value="ExpansionProfile.fixedVersion.version" />
          <short value="Specific version of the code system referred to" />
          <definition value="The version of the code system from which codes in the expansion should be included." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.fixedVersion.mode" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.fixedVersion.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.fixedVersion.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.fixedVersion.mode">
          <path value="ExpansionProfile.fixedVersion.mode" />
          <short value="default | check | override" />
          <definition value="How to manage the intersection between a fixed version in a value set, and this fixed version of the system in the expansion profile." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SystemVersionProcessingMode" />
            </extension>
            <strength value="required" />
            <description value="How to manage the intersection between a fixed version in a value set, and a fixed version of the system in the expansion profile" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/system-version-processing-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludedSystem" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.excludedSystem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludedSystem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.excludedSystem">
          <path value="ExpansionProfile.excludedSystem" />
          <short value="Systems/Versions to be exclude" />
          <definition value="Code system, or a particular version of a code system to be excluded from value set expansions." />
          <comment value="When a system is excluded, and this makes a material difference to the expansion, the exclusion SHALL  be noted in the expansion parameters using a parameter 'excluded'." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludedSystem.system" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.excludedSystem.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludedSystem.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.excludedSystem.system">
          <path value="ExpansionProfile.excludedSystem.system" />
          <short value="The specific code system to be excluded" />
          <definition value="An absolute URI which is the code system to be excluded." />
          <comment value="See ''Coding.system'' for further documentation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludedSystem.version" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.excludedSystem.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludedSystem.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.excludedSystem.version">
          <path value="ExpansionProfile.excludedSystem.version" />
          <short value="Specific version of the code system referred to" />
          <definition value="The version of the code system from which codes in the expansion should be excluded." />
          <comment value="This is used to apply version specifc exclusion contraints. If no version is specified, then all codes from the code system present in the expansion (prior to application of the expansion profile) will be excluded." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <meaningWhenMissing value="Exclusion is not version specific" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.includeDesignations" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.includeDesignations" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.includeDesignations" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.includeDesignations">
          <path value="ExpansionProfile.includeDesignations" />
          <short value="Whether the expansion should include concept designations" />
          <definition value="Controls whether concept designations are to be included or excluded in value set expansions." />
          <comment value="ExpansionProfile.designation.include and ExpansionProfile.designation.exclude are only evaluated if includeDesignations is present and set to &quot;true&quot;. If includeDesignations is present with a value of &quot;true&quot; and both ExpansionProfile.designation.include and ExpansionProfile.designation.exclude are absent, then all designations are returned in the expansion." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.designation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.designation">
          <path value="ExpansionProfile.designation" />
          <short value="When the expansion profile imposes designation contraints" />
          <definition value="A set of criteria that provide the constraints imposed on the value set expansion by including or excluding designations." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.include" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.designation.include" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.include" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.designation.include">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="DesignationInclude" />
          </extension>
          <path value="ExpansionProfile.designation.include" />
          <short value="Designations to be included" />
          <definition value="Designations to be included." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.include.designation" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.designation.include.designation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.include.designation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.designation.include.designation">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="DesignationIncludeDesignation" />
          </extension>
          <path value="ExpansionProfile.designation.include.designation" />
          <short value="The designation to be included" />
          <definition value="A data group for each designation to be included." />
          <comment value="At least one of designation.language or designation.use must be provided for each include.designation element." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="exp-3" />
            <severity value="error" />
            <human value="SHALL have at least one of language or use" />
            <expression value="language.exists() or use.exists()" />
            <xpath value="exists(f:language) or exists(f:use)" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.include.designation.language" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.designation.include.designation.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.include.designation.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.designation.include.designation.language">
          <path value="ExpansionProfile.designation.include.designation.language" />
          <short value="Human language of the designation to be included" />
          <definition value="The language this designation is defined for." />
          <comment value="In the absence of a language, all designations are retained which match the designation.use parameter for this include.designation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.include.designation.use" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.designation.include.designation.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.include.designation.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.designation.include.designation.use">
          <path value="ExpansionProfile.designation.include.designation.use" />
          <short value="What kind of Designation to include" />
          <definition value="Which kinds of designation to include in the expansion." />
          <comment value="In the absence of a use, all designations are retained which match the designation.language parameter for this include.designation element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConceptDesignationUse" />
            </extension>
            <strength value="required" />
            <description value="Details of how a designation would be used." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/designation-use" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.exclude" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.designation.exclude" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.exclude" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.designation.exclude">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="DesignationExclude" />
          </extension>
          <path value="ExpansionProfile.designation.exclude" />
          <short value="Designations to be excluded" />
          <definition value="Designations to be excluded." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.exclude.designation" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.designation.exclude.designation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.exclude.designation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.designation.exclude.designation">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="DesignationExcludeDesignation" />
          </extension>
          <path value="ExpansionProfile.designation.exclude.designation" />
          <short value="The designation to be excluded" />
          <definition value="A data group for each designation to be excluded." />
          <comment value="At least one of designation.language or designation.use must be provided for each exclude.designation element." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="exp-4" />
            <severity value="error" />
            <human value="SHALL have at least one of language or use" />
            <expression value="language.exists() or use.exists()" />
            <xpath value="exists(f:language) or exists(f:use)" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.exclude.designation.language" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.designation.exclude.designation.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.exclude.designation.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.designation.exclude.designation.language">
          <path value="ExpansionProfile.designation.exclude.designation.language" />
          <short value="Human language of the designation to be excluded" />
          <definition value="The language this designation is defined for." />
          <comment value="In the absence of a language, all designations are excluded which match the designation.use parameter for this exclude.designation element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.exclude.designation.use" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.designation.exclude.designation.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.designation.exclude.designation.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.designation.exclude.designation.use">
          <path value="ExpansionProfile.designation.exclude.designation.use" />
          <short value="What kind of Designation to exclude" />
          <definition value="Which kinds of designation to exclude from the expansion." />
          <comment value="In the absence of a use, all designations are retained which match the designation.language parameter for this exclude.designation element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConceptDesignationUse" />
            </extension>
            <strength value="required" />
            <description value="Details of how a designation would be used." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/designation-use" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.includeDefinition" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.includeDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.includeDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.includeDefinition">
          <path value="ExpansionProfile.includeDefinition" />
          <short value="Include or exclude the value set definition in the expansion" />
          <definition value="Controls whether the value set definition is included or excluded in value set expansions." />
          <comment value="The ValueSet defintion refers to all fields in the ValueSet definition apart from  ValueSet.contains. The definition is only included if includeDefinition is present and has a value of &quot;true&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.activeOnly" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.activeOnly" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.activeOnly" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.activeOnly">
          <path value="ExpansionProfile.activeOnly" />
          <short value="Include or exclude inactive concepts in the expansion" />
          <definition value="Controls whether inactive concepts are included or excluded in value set expansions." />
          <comment value="Inactive codes are included if activeOnly is present and has a value of &quot;true&quot;. Note that if the value set explicitly specifies that inactive codes are included, this property can still remove them from a specific expansion, but this parameter cannot include them if the value set excludes them." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludeNested" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.excludeNested" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludeNested" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.excludeNested">
          <path value="ExpansionProfile.excludeNested" />
          <short value="Nested codes in the expansion or not" />
          <definition value="Controls whether or not the value set expansion nests codes or not (i.e. ValueSet.expansion.contains.contains)." />
          <comment value="Nesting of codes is excluded if excludeNested is present and has a value of &quot;true&quot;." />
          <requirements value="Heirahical contains are useful for UI use, but not when validating. Code Generation etc. may depend on context." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludeNotForUI" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.excludeNotForUI" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludeNotForUI" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.excludeNotForUI">
          <path value="ExpansionProfile.excludeNotForUI" />
          <short value="Include or exclude codes which cannot be rendered in user interfaces in the value set expansion" />
          <definition value="Controls whether or not the value set expansion includes codes which cannot be displayed in user interfaces." />
          <comment value="Codes which cannot be used in user interfaces will be excluded if excludeNotForUI is present and has a value of &quot;true&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludePostCoordinated" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.excludePostCoordinated" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.excludePostCoordinated" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.excludePostCoordinated">
          <path value="ExpansionProfile.excludePostCoordinated" />
          <short value="Include or exclude codes which are post coordinated expressions in the value set expansion" />
          <definition value="Controls whether or not the value set expansion includes post coordinated codes." />
          <comment value="Post coordinated codes are excluded if excludePostCoordinated is present and has a value of &quot;true&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.displayLanguage" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.displayLanguage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.displayLanguage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.displayLanguage">
          <path value="ExpansionProfile.displayLanguage" />
          <short value="Specify the language for the display element of codes in the value set expansion" />
          <definition value="Specifies the language to be used for description in the expansions i.e. the language to be used for ValueSet.expansion.contains.display." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExpansionProfile.limitedExpansion" />
    <resource>
      <DataElement>
        <id value="ExpansionProfile.limitedExpansion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExpansionProfile.limitedExpansion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExpansionProfile.limitedExpansion">
          <path value="ExpansionProfile.limitedExpansion" />
          <short value="Controls behaviour of the value set expand operation when value sets are too large to be completely expanded" />
          <definition value="If the value set being expanded is incomplete (because it is too big to expand), return a limited expansion (a subset) with an indicator that expansion is incomplete, using the extension [http://hl7.org/fhir/StructureDefinition/valueset-toocostly](extension-valueset-toocostly.html)." />
          <comment value="This field overides the default behaviour (which is to return an error). This does not apply to expansions which are unbounded. Clients SHALL process the extension [http://hl7.org/fhir/StructureDefinition/valueset-toocostly](extension-valueset-toocostly.html) correctly if limitedExpansion = true." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot" />
    <resource>
      <DataElement>
        <id value="Slot" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot">
          <path value="Slot" />
          <short value="A slot of time on a schedule that may be available for booking appointments" />
          <definition value="A slot of time on a schedule that may be available for booking appointments." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="(refer to the Availability resource for the header mapping details)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.scheduling" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.identifier" />
    <resource>
      <DataElement>
        <id value="Slot.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.identifier">
          <path value="Slot.identifier" />
          <short value="External Ids for this item" />
          <definition value="External Ids for this item." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.serviceCategory" />
    <resource>
      <DataElement>
        <id value="Slot.serviceCategory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.serviceCategory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.serviceCategory">
          <path value="Slot.serviceCategory" />
          <short value="A broad categorisation of the service that is to be performed during this appointment" />
          <definition value="A broad categorisation of the service that is to be performed during this appointment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-category" />
            </extension>
            <strength value="example" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.serviceType" />
    <resource>
      <DataElement>
        <id value="Slot.serviceType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.serviceType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.serviceType">
          <path value="Slot.serviceType" />
          <short value="The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource" />
          <definition value="The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-type" />
            </extension>
            <strength value="example" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.specialty" />
    <resource>
      <DataElement>
        <id value="Slot.specialty" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.specialty" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.specialty">
          <path value="Slot.specialty" />
          <short value="The specialty of a practitioner that would be required to perform the service requested in this appointment" />
          <definition value="The specialty of a practitioner that would be required to perform the service requested in this appointment." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="specialty" />
            </extension>
            <strength value="preferred" />
            <description value="Additional details about where the content was created (e.g. clinical specialty)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-practice-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.appointmentType" />
    <resource>
      <DataElement>
        <id value="Slot.appointmentType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.appointmentType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.appointmentType">
          <path value="Slot.appointmentType" />
          <short value="The style of appointment or patient that may be booked in the slot (not service type)" />
          <definition value="The style of appointment or patient that may be booked in the slot (not service type)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="appointment-type" />
            </extension>
            <strength value="preferred" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v2-0276" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.schedule" />
    <resource>
      <DataElement>
        <id value="Slot.schedule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.schedule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.schedule">
          <path value="Slot.schedule" />
          <short value="The schedule resource that this slot defines an interval of status information" />
          <definition value="The schedule resource that this slot defines an interval of status information." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Schedule" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.status" />
    <resource>
      <DataElement>
        <id value="Slot.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.status">
          <path value="Slot.status" />
          <short value="busy | free | busy-unavailable | busy-tentative | entered-in-error" />
          <definition value="busy | free | busy-unavailable | busy-tentative | entered-in-error." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SlotStatus" />
            </extension>
            <strength value="required" />
            <description value="The free/busy status of the slot." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/slotstatus" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="ical" />
            <map value="FREEBUSY;FBTYPE=(freeBusyType):19980314T233000Z/19980315T003000Z If the freeBusyType is BUSY, then this value can be excluded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.start" />
    <resource>
      <DataElement>
        <id value="Slot.start" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.start" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.start">
          <path value="Slot.start" />
          <short value="Date/Time that the slot is to begin" />
          <definition value="Date/Time that the slot is to begin." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="ical" />
            <map value="FREEBUSY;FBTYPE=FREE:(start)/19980315T003000Z If the freeBusyType is BUSY, then this value can be excluded" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.end" />
    <resource>
      <DataElement>
        <id value="Slot.end" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.end" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.end">
          <path value="Slot.end" />
          <short value="Date/Time that the slot is to conclude" />
          <definition value="Date/Time that the slot is to conclude." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="ical" />
            <map value="FREEBUSY:19980314T233000Z/(end) If the freeBusyType is BUSY, then this value can be excluded (as shown)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.overbooked" />
    <resource>
      <DataElement>
        <id value="Slot.overbooked" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.overbooked" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.overbooked">
          <path value="Slot.overbooked" />
          <short value="This slot has already been overbooked, appointments are unlikely to be accepted for this time" />
          <definition value="This slot has already been overbooked, appointments are unlikely to be accepted for this time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <meaningWhenMissing value="If overbooked is missing, systems may assume that there are still appointments available" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Slot.comment" />
    <resource>
      <DataElement>
        <id value="Slot.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Slot.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Slot.comment">
          <path value="Slot.comment" />
          <short value="Comments on the slot to describe any extended information. Such as custom constraints on the slot" />
          <definition value="Comments on the slot to describe any extended information. Such as custom constraints on the slot." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person" />
    <resource>
      <DataElement>
        <id value="Person" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person">
          <path value="Person" />
          <short value="A generic person record" />
          <definition value="Demographics and administrative information about a person independent of a specific health-related context." />
          <comment value="The Person resource does justice to person registries that keep track of persons regardless of their role. The Person resource is also a primary resource to point to for people acting in a particular role such as SubjectofCare, Practitioner, and Agent. Very few attributes are specific to any role and so Person is kept lean. Most attributes are expected to be tied to the role the Person plays rather than the Person himself. Examples of that are Guardian (SubjectofCare), ContactParty (SubjectOfCare, Practitioner), and multipleBirthInd (SubjectofCare)." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Person(classCode=&quot;PSN&quot; and determinerCode=&quot;INST&quot; and quantity=&quot;1&quot;)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.entity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.identifier" />
    <resource>
      <DataElement>
        <id value="Person.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.identifier">
          <path value="Person.identifier" />
          <short value="A human identifier for this person" />
          <definition value="Identifier for a person within a particular scope." />
          <requirements value="People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the person. Examples are national person identifier and local identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".plays:Role(classCode='IDENT').id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.name" />
    <resource>
      <DataElement>
        <id value="Person.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.name">
          <path value="Person.name" />
          <short value="A name associated with the person" />
          <definition value="A name associated with the person." />
          <comment value="Person may have multiple names with different uses or applicable periods." />
          <requirements value="Need to be able to track the person by multiple names. Examples are your official name and a partner name." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="HumanName" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-5, PID-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.telecom" />
    <resource>
      <DataElement>
        <id value="Person.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.telecom">
          <path value="Person.telecom" />
          <short value="A contact detail for the person" />
          <definition value="A contact detail for the person, e.g. a telephone number or an email address." />
          <comment value="Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification." />
          <requirements value="People have (primary) ways to contact them in some way such as phone, email." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-13, PID-14" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./telecom" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.gender" />
    <resource>
      <DataElement>
        <id value="Person.gender" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.gender" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.gender">
          <path value="Person.gender" />
          <short value="male | female | other | unknown" />
          <definition value="Administrative Gender." />
          <comment value="The gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F." />
          <requirements value="Needed for identification of the person, in combination with (at least) name and birth date. Gender of person drives many clinical processes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdministrativeGender" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The gender of a person used for administrative purposes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PID-8" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.birthDate" />
    <resource>
      <DataElement>
        <id value="Person.birthDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.birthDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.birthDate">
          <path value="Person.birthDate" />
          <short value="The date on which the person was born" />
          <definition value="The birth date for the person." />
          <comment value="At least an estimated year should be provided as a guess if the real DOB is unknown." />
          <requirements value="Age of person drives many clinical processes, and is often used in performing identification of the person. Times are not included so as to not confuse things with potential timezone issues." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./birthTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.address" />
    <resource>
      <DataElement>
        <id value="Person.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.address">
          <path value="Person.address" />
          <short value="One or more addresses for the person" />
          <definition value="One or more addresses for the person." />
          <comment value="Person may have multiple addresses with different uses or applicable periods." />
          <requirements value="May need to keep track of person's addresses for contacting, billing or reporting requirements and also to help with identification." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Address" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PID-11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./addr" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.photo" />
    <resource>
      <DataElement>
        <id value="Person.photo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.photo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.photo">
          <path value="Person.photo" />
          <short value="Image of the person" />
          <definition value="An image that can be displayed as a thumbnail of the person to enhance the identification of the individual." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 - needs a profile" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.managingOrganization" />
    <resource>
      <DataElement>
        <id value="Person.managingOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.managingOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.managingOrganization">
          <path value="Person.managingOrganization" />
          <short value="The organization that is the custodian of the person record" />
          <definition value="The organization that is the custodian of the person record." />
          <requirements value="Need to know who recognizes this person record, manages and updates it." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.active" />
    <resource>
      <DataElement>
        <id value="Person.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.active">
          <path value="Person.active" />
          <short value="This person's record is in active use" />
          <definition value="Whether this person's record is in active use." />
          <requirements value="Need to be able to mark a person record as not to be used because it was created in error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.link" />
    <resource>
      <DataElement>
        <id value="Person.link" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.link" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.link">
          <path value="Person.link" />
          <short value="Link to a resource that concerns the same actual person" />
          <definition value="Link to a resource that concerns the same actual person." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="outboundLink" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.link.target" />
    <resource>
      <DataElement>
        <id value="Person.link.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.link.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.link.target">
          <path value="Person.link.target" />
          <short value="The resource to which this actual person is associated" />
          <definition value="The resource to which this actual person is associated." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Person" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Person.link.assurance" />
    <resource>
      <DataElement>
        <id value="Person.link.assurance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Person.link.assurance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Person.link.assurance">
          <path value="Person.link.assurance" />
          <short value="level1 | level2 | level3 | level4" />
          <definition value="Level of assurance that this link is actually associated with the target resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IdentityAssuranceLevel" />
            </extension>
            <strength value="required" />
            <description value="The level of confidence that this link represents the same actual person, based on NIST Authentication Levels." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/identity-assuranceLevel" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="priorityNumber?" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract" />
    <resource>
      <DataElement>
        <id value="Contract" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract">
          <path value="Contract" />
          <short value="Legal Agreement" />
          <definition value="A formal agreement between parties regarding the conduct of business, exchange of information or other matters." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="FinancialContract" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.other" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.identifier" />
    <resource>
      <DataElement>
        <id value="Contract.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.identifier">
          <path value="Contract.identifier" />
          <short value="Contract number" />
          <definition value="Unique identifier for this Contract." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="FinancialContract id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.status" />
    <resource>
      <DataElement>
        <id value="Contract.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.status">
          <path value="Contract.status" />
          <short value="amended | appended | cancelled | disputed | entered-in-error | executable | executed | negotiable | offered | policy | rejected | renewed | revoked | resolved | terminated" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the contract as not currently valid or active." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.issued" />
    <resource>
      <DataElement>
        <id value="Contract.issued" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.issued" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.issued">
          <path value="Contract.issued" />
          <short value="When this Contract was issued" />
          <definition value="When this  Contract was issued." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act.availabilityTime.  Definition: A time expression specifying when an Observation, Procedure, or other Act occurs, or, depending on the mood, is supposed to occur, scheduled to occur, etc. The activityTime includes the times of component actions (such as preparation and clean-up). For Procedures and SubstanceAdministrations, the activityTime can provide a needed administrative function by providing a more inclusive time to be anticipated in scheduling. UsageNotes:The activityTime is primarily of administrative rather than clinical use. The clinically relevant time is the effectiveTime. When an observation of a prior symptom is made, the activityTime describes the time the observation is made, as opposed to effectiveTime which is the time the symptom is reported to have occurred. Thus the activityTime may be entirely different from the effectiveTime of the same Act. However, even apart from clinical use cases, designers should first consider effectiveTime as the primary relevant time for an Act. ActivityTime indicates when an Act occurs, not when it is recorded." />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.applies" />
    <resource>
      <DataElement>
        <id value="Contract.applies" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.applies" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.applies">
          <path value="Contract.applies" />
          <short value="Effective time" />
          <definition value="Relevant time or time-period when this Contract is applicable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Act.effectiveTime Definition: The clinically or operationally relevant time of an act, exclusive of administrative activity." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.subject" />
    <resource>
      <DataElement>
        <id value="Contract.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.subject">
          <path value="Contract.subject" />
          <short value="Contract Target Entity" />
          <definition value="The target entity impacted by or of interest to parties to the agreement." />
          <comment value="The Contract.subject is an entity that has some role with respect to the Contract.topic and Contract.topic.term, which is of focal interest to the parties to the contract and likely impacted in a significant way by the Contract.action/Contract.action.reason and the Contract.term.action/Contract.action.reason. &#xD;In many cases, the Contract.subject is a Contract.signer if the subject is an adult; has a legal interest in the contract; and incompetent to participate in the contract agreement." />
          <requirements value="The Contract.subject is an entity that has some role with respect to the Contract.topic and Contract.topic.term, which is of focal interest to the parties to the contract and likely impacted in a significant way by the Contract.action/Contract.action.reason and the Contract.term.action/Contract.action.reason.  In many cases, the Contract.subject is a Contract.signer if the subject is an adult; has a legal interest in the contract; and incompetent to participate in the contract agreement." />
          <alias value="Patient" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="RoleClass, RoleCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.topic" />
    <resource>
      <DataElement>
        <id value="Contract.topic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.topic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.topic">
          <path value="Contract.topic" />
          <short value="Context of the Contract" />
          <definition value="The matter of concern in the context of this agreement." />
          <comment value="The Contract.topic may be an application for or offer of a policy or service (e.g., uri to a consent directive form or a health insurance policy), which becomes the Contract once accepted by both the grantor and grantee. &#xD;The Contract Resource may function simply as the computable representation of the executed contract, which may be the attached to the Contract Resource as the “binding” or as the “friendly” electronic form.  For example, a Contract Resource may be automatically populated with the values expressed in a related QuestionnaireResponse. &#xD;However, the Contract Resource may be considered the legally binding contract if it is the only “executed” form of this contract, and includes the signatures as *The Contract Resource may function as the computable representation of an application or offer in a pre-executed Contract if the grantor has not entered any values.  In this case, it is populated with values in a “legal” form of the application or offer or by the values in an associated Questionnaire.  If the grantor has filled in the legal form or the associated Questionnaire Response, then these values are used to populate a pre-executed Contract Resource.&#xD;If the Contract.topic is considered an application or offer, then the policy is often required to be attached as the “legal” basis for the application to ensure “informed consent” to the contract, and that any discrepancy between the application and the policy are interpreted against the policy.  Implementers should check organizational and jurisdictional policies to determine the relationship among multiple representations of a contract pre- and post-execution." />
          <requirements value="In the context of a contract, the topic is the matter under consideration in regards to which specific rights, privileges, obligations, restrictions, and prohibitions are binding on any grantor and grantee parties upon the execution of the contract. &#xD;Given the wide range of contract topics, implementers need to be cognizant of the business use case for which they are designing a FHIR Contract, and narrowly specify the topic being represented with respect to the Contract.type and any specializing Contract.subtype. &#xD;The same topic, e.g., an asset such as a good or service, such as a real property, medical supply, insurance, information, a procedure or employment, or a manner of conduct, such adherence to a privacy, trust, or security policy, may be the topic of multiple types of contracts. &#xD;One way to determine the Contract.topic is to answer the question: “What is the object of negotiation?”&#xD;Answer: The Contract.topic, which may be described with more detail in the [0..*]Contract.valuedItem @ [0..1] Contract.valuedItem.entity[x] Definition: Specific type of Contract Valued Item that may be priced. CodeableConcept|Reference(Any)&#xD;Contract.topic is “the what” that a grantor is exchanging with a grantee in return for some benefit. &#xD;Contract.topic is “the what” to which any Contract.action is being applied for any stipulated Contract.action.reason. &#xD;AContract.topic is “the what” governed by the execution of the contract to which any party’s rights, privileges, obligations, restrictions, and prohibitions apply." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.context" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Includes many ActClass, ActCode, RoleClass, RoleCode, EntityClass, EntityCode, ParticipationType codes from HL7 concept domains and code systems. For example, RoleCode: HLD (held entity) Description: Entity that is currently in the possession of a holder (scoper), who holds, or uses it, usually based on some agreement with the owner. MANU (manufactured product) Description: Scoped by the manufacturer. OWN (owned entity) Description: An Entity (player) for which someone (scoper) is granted by law the right to call the material (player) his own. This entitles the scoper to make decisions about the disposition of that material. WRTE (warranted product) Description:&#xD;A role a product plays when a guarantee is given to the purchaser by the seller (scoping entity) stating that the product is reliable and free from known defects and that the seller will repair or replace defective parts within a given time limit and under certain conditions." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.authority" />
    <resource>
      <DataElement>
        <id value="Contract.authority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.authority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.authority">
          <path value="Contract.authority" />
          <short value="Authority under which this Contract has standing" />
          <definition value="A formally or informally recognized grouping of people, principals, organizations, or jurisdictions formed for the purpose of achieving some form of collective action such as the promulgation, administration and enforcement of contracts and policies." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="Organization Role.  CONCEPT DOMAIN: OrganizationEntityType Description: Further classifies entities of EntityClass ORG." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.domain" />
    <resource>
      <DataElement>
        <id value="Contract.domain" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.domain" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.domain">
          <path value="Contract.domain" />
          <short value="Domain in which this Contract applies" />
          <definition value="Recognized governance framework or system operating with a circumscribed scope in accordance with specified principles, policies, processes or procedures for managing rights, actions, or behaviors of parties or principals relative to resources." />
          <alias value="scope of governance jurisdiction" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="TERR (territory of authority) Description: Relates a place entity (player) as the region over which the scoper (typically an Organization) has certain authority (jurisdiction). For example, the Calgary Regional Health Authority (scoper) has authority over the territory &quot;Region 4 of Alberta&quot; (player) in matters of health.&#xD;Entity Class = Place? A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place may or may not be constant.&#xD;CONCEPT DOMAIN: TerritoryEntityType Description: A territorial entity that may be cited as the body over which an agency exercises jurisdiction, or which defines a sphere in which a party has a particular responsibility. CONCEPT DOMAIN: OrganizationEntityType&#xD;Description: Further classifies entities of EntityClass ORG." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.type" />
    <resource>
      <DataElement>
        <id value="Contract.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.type">
          <path value="Contract.type" />
          <short value="Type or form" />
          <definition value="Type of Contract such as an insurance policy, real estate contract, a will, power of attorny, Privacy or Security policy , trust framework agreement, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractType" />
            </extension>
            <strength value="example" />
            <description value="List of overall contract codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="Maps to multiple ActClass and ActCode Concept Domains and Code Systems such as the following:   In the ActClass Concept Domain: ActClassPolicy. In the ActCode Concept Domain:   ActContractType, which generalizes ActFinancialContractType, ActCoverageType, ActBillingArrangementType.  ActConsentType, which generalizes ActDataConsentType; ActFinancialParticipationConsentType; ActInformationAccessCode; AdvanceBeneficiaryNoticeType.  ActPolicyType, which generalizes: ActPrivacyPolicyType, ActSensitivityPrivacyPolicyType, ActSecurityPolicyType.  In the ActClass Code System:  CNTRCT (contract) Description: An agreement of obligation between two or more parties that is subject to contractual law and enforcement, lwhich generalizes FCNTRCT (financial contract) and COV (coverage).  POLICY (policy) - Description: A mandate, regulation, obligation, requirement, rule, or expectation unilaterally imposed by one party on: The activity of another party; the behavior of another party; or the manner in which an act is executed. LEAF CONCEPTS: JURISPOL (jurisdictional policy) Description:A mandate, regulation, obligation, requirement, rule, or expectation unilaterally imposed by a jurisdiction on: The activity of another party; the behavior of another party; or the manner in which an act is executed.Examples:A jurisdictional mandate regarding the prescribing and dispensing of a particular medication. A jurisdictional privacy or security regulation dictating the manner in which personal health information is disclosed. A jurisdictional requirement that certain services or health conditions are reported to a monitoring program, e.g., immunizations, methadone treatment, or cancer registries.ORGPOL (organizational policy)Examples:A clinical or research protocols imposed by a payer, a malpractice insurer, or an institution to which a provider must adhere. A mandate imposed by a denominational institution for a provider to provide or withhold certain information from the patient about treatment options.SCOPOL (scope of practice policy)Description:An ethical or clinical obligation, requirement, rule, or expectation imposed or strongly encouraged by organizations that oversee particular clinical domains or provider certification which define the boundaries within which a provider may practice and which may have legal basis or ramifications.Examples:An ethical obligation for a provider to fully inform a patient about all treatment options. An ethical obligation for a provider not to disclose personal health information that meets certain criteria, e.g., where disclosure might result in harm to the patient or another person. The set of health care services which a provider is credentialed or privileged to provide. STDPOL (standard of practice policy) Examples:A payer may require a prescribing provider to adhere to formulary guidelines. An institution may adopt clinical guidelines and protocols and implement these within its electronic health record and decision support systems.  CONS (consent)Description: The Consent class represents informed consents and all similar medico-legal transactions between the patient (or his legal guardian) and the provider. Examples are informed consent for surgical procedures, informed consent for clinical trials, advanced beneficiary notice, against medical advice decline from service, release of information agreement, etc.  The details of consents vary. Often an institution has a number of different consent forms for various purposes, including reminding the physician about the topics to mention. Such forms also include patient education material. In electronic medical record communication, consents thus are information-generating acts on their own and need to be managed similar to medical activities. Thus, Consent is modeled as a special class of Act. The &quot;signatures&quot; to the consent document are represented electronically through Participation instances to the consent object. Typically an informed consent has Participation.typeCode of &quot;performer&quot;, the healthcare provider informing the patient, and &quot;consenter&quot;, the patient or legal guardian. Some consent may associate a witness or a notary public (e.g., living wills, advanced directives). In consents where a healthcare provider is not required (e.g. living will), the performer may be the patient himself or a notary public." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.subType" />
    <resource>
      <DataElement>
        <id value="Contract.subType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.subType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.subType">
          <path value="Contract.subType" />
          <short value="Subtype within the context of type" />
          <definition value="More specific type or specialization of an overarching or more general contract such as auto insurance, home owner  insurance, prenupial agreement, Advanced-Directive, or privacy consent." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractSubtype" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes within the above." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-subtype" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="Examples of Contract or Policy subtypes in ActCodes:_ActCoverageTypeCode Definition: Set of codes indicating the type of insurance policy or program that pays for the cost of benefits provided to covered parties. Generalizes:  _ActInsurancePolicyCode;  _ActInsuranceTypeCode; ActProgramTypeCode.  _ActPolicyType  Description:Types of policies that further specify the ActClassPolicy value set. Generalizes: _ActPrivacyPolicy; _ActPrivacyLaw; _InformationSensitivityPolicy; ActTrustPolicyType;  SecurityPolicy.  _ActInvoiceAdjudicationPaymentGroupCode  Description: Codes representing adjustments to a Payment Advice such as retroactive, clawback, garnishee, etc., e.g. RECOV (recovery) Description: Retroactive adjustment such as fee rate adjustment due to contract negotiations." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.action" />
    <resource>
      <DataElement>
        <id value="Contract.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.action">
          <path value="Contract.action" />
          <short value="Action stipulated by this Contract" />
          <definition value="Action stipulated by this Contract." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractAction" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the contract action." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-action" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="Maps to multiple ActClass and ActCode Concept Domains and Code Systems." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.actionReason" />
    <resource>
      <DataElement>
        <id value="Contract.actionReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.actionReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.actionReason">
          <path value="Contract.actionReason" />
          <short value="Rationale for the stiplulated action" />
          <definition value="Reason for action stipulated by this Contract." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractActionReason" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the contract action reason." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="Examples from ActReason Concept Domains: ActCoverageReason Description:Codes used to specify reasons or criteria relating to coverage provided under a policy or program. May be used to convey reasons pertaining to coverage contractual provisions, including criteria for eligibility, coverage limitations, coverage maximums, or financial participation required of covered parties. ActInformationPrivacyReason Description: The rationale or purpose for an act relating to the management of personal information, such as disclosing personal tax information for the purpose of complying with a court order. ClinicalResearchObservationReason Definition: Specifies the reason that a test was performed or observation collected in a clinical research study. SafetyInvestigationReportReasonType Description: Possible reasons generating a report providing information developed during the investigation of an adverse event or a product problem. ControlActReason Description: Indicates the motivation, cause or rationale of an Act which results in a trigger event.  NonPerformanceReasonCode Description: The reason the action was not performed, e.g. why the medication was not taken. If an action was not performed, it is often clinically important to know why the action was not taken. RefusalReasonCode Description: Identifies why a request to add (or activate) a record is being refused. Examples include the receiving system not able to match the identifier and find that record in the receiving system, having no permission, or a detected issue exists which precludes the requested action.&#xD;&#xD;&#xD;&#xD;&#xD;&#xD;&#xD;&#xD;Examples from HL7 ActReason Code System: QUALIMP (quality improvement) Description:Operational activities conducted for the purposes of improving the quality of an activity, product, or service. _PatientProfileQueryReasonCode Description: A collection of concepts identifying why the patient's profile is being queried. _ActInformationManagementReason Description:The rationale or purpose for an act relating to information management, such as archiving information for the purpose of complying with an enterprise data retention policy. _ActInvalidReason (ActInvalidReason) Description: Types of reasons why a substance is invalid for use. _NonPerformanceReasonCode Description: The reason the action wasn't performed, e.g. why the medication was not taken. If an action wasn&quot;t performed, it is often clinically important to know why the action wasn&quot;t taken." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.decisionType" />
    <resource>
      <DataElement>
        <id value="Contract.decisionType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.decisionType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.decisionType">
          <path value="Contract.decisionType" />
          <short value="Decision by Grantor" />
          <definition value="The type of decision made by a grantor with respect to an offer made by a grantee." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractDecisionType" />
            </extension>
            <strength value="extensible" />
            <description value="The type of decision made by a grantor with respect to an offer made by a grantee." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActConsentDirective" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="ActCode: _ActConsentDirective [abstract term] Description: Specifies the type of agreement between one or more grantor and grantee in which rights and obligations related to one or more shared items of interest are allocated. Usage Note: Such agreements may be considered &quot;consent directives&quot; or &quot;contracts&quot; depending on the context, and are considered closely related or synonymous from a legal perspective." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.contentDerivative" />
    <resource>
      <DataElement>
        <id value="Contract.contentDerivative" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.contentDerivative" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.contentDerivative">
          <path value="Contract.contentDerivative" />
          <short value="Content derived from the basal information" />
          <definition value="The minimal content derived from the basal information source at a specific stage in its lifecycle." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractContentDerivative" />
            </extension>
            <strength value="example" />
            <description value="This is an example set of Content Derivative type codes, which represent the minimal content derived from the basal information source." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-content-derivative" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="Maps partially to several v3 codes: ActClass: REG (registration) Description: Represents the act of maintaining information about the registration of its associated registered subject. The subject can be either an Act or a Role, and includes subjects such as lab exam definitions, drug protocol definitions, prescriptions, persons, patients, practitioners, and equipment.&#xD;The registration may have a unique identifier - separate from the unique identification of the subject - as well as a core set of related participations and act relationships that characterize the registration event and aid in the disposition of the subject information by a receiving system. Observation: VERIF (Verification) Description: An act which describes the process whereby a 'verifying party' validates either the existence of the Role attested to by some Credential or the actual Vetting act and its details. TRFR (transfer) Description: The act of transferring information without the intent of imparting understanding about a topic to the subject that is the recipient or holder of the transferred information where the participation association must be RCV or HLD. _ActDetectedIssueManagementCode [abstract term] Description: Codes dealing with the management of Detected Issue observations. _ActInformationAccessContextCode [abstract term] Description: Concepts conveying the context in which authorization given under jurisdictional law, by organizational policy, or by a patient consent directive permits the collection, access, use or disclosure of specified patient health information. _ActListCode [abstract term]vDescription: Provides codes associated with ActClass value of LIST (working list). RefusalReasonCode [abstract term] Description:&#xD;Description: Identifies why a request to add (or activate) a record is being refused. Examples include the receiving system not able to match the identifier and find that record in the receiving system, having no permission, or a detected issue exists which precludes the requested action." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.securityLabel" />
    <resource>
      <DataElement>
        <id value="Contract.securityLabel" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.securityLabel" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.securityLabel">
          <path value="Contract.securityLabel" />
          <short value="Security Labels that define affected resources" />
          <definition value="A set of security labels that define which resources are controlled by this consent. If more than one label is specified, all resources must have all the specified labels." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <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>
          <mapping>
            <identity value="rim" />
            <map value="ActCode ObservationType:SECOBS [abstract term]&#xD;Description: An observation identifying security metadata about an IT resource (data, information object, service, or system capability), which may be used to make access control decisions. Security metadata are used to name security labels. &#xD;Rationale: According to ISO/TS 22600-3:2009(E) A.9.1.7 SECURITY LABEL MATCHING, Security label matching compares the initiator's clearance to the target's security label. All of the following must be true for authorization to be granted:&#xD;The security policy identifiers shall be identical.  The classification level of the initiator shall be greater than or equal to that of the target (that is, there shall be at least one value in the classification list of the clearance greater than or equal to the classification of the target), and For each security category in the target label, there shall be a security category of the same type in the initiator's clearance and the initiator's classification level shall dominate that of the target. Examples: SecurityObservationType security label fields include: Confidentiality classification; Compartment category; Sensitivity category&#xD;Security mechanisms used to ensure data integrity or to perform authorized data transformation Indicators of an IT resource completeness, veracity, reliability, trustworthiness, or provenance. Usage Note: SecurityObservationType codes designate security label field types, which are valued with an applicable SecurityObservationValue code as the &quot;security label tag&quot;.  _SecurityObservationValue [abstract term] Description: Observation values used to indicate security observation metadata." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.agent" />
    <resource>
      <DataElement>
        <id value="Contract.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.agent">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Agent" />
          </extension>
          <path value="Contract.agent" />
          <short value="Entity being ascribed responsibility" />
          <definition value="An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place." />
          <comment value="Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.&#xD;For example, in cases of actions initiated by one user for other users, or in events that involve more than one user, hardware device, software, or system process. However, only one user may be the initiator/requestor for the event." />
          <requirements value="An agent can be a person, an organization, software, device, or other entities that may be ascribed responsibility." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.agent.actor" />
    <resource>
      <DataElement>
        <id value="Contract.agent.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.agent.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.agent.actor">
          <path value="Contract.agent.actor" />
          <short value="Contract Agent Type" />
          <definition value="Who or what parties are assigned roles in this Contract." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.actor" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="RIM Role, Participation Type classes" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.agent.role" />
    <resource>
      <DataElement>
        <id value="Contract.agent.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.agent.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.agent.role">
          <path value="Contract.agent.role" />
          <short value="Role type of the agent" />
          <definition value="Role type of agent assigned roles in this Contract." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractActorRole" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the contract actor role." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-actorrole" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="RoleClass, RoleCode, ParticipationType, ParticipationFunction codes" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.signer" />
    <resource>
      <DataElement>
        <id value="Contract.signer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.signer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.signer">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Signatory" />
          </extension>
          <path value="Contract.signer" />
          <short value="Contract Signatory" />
          <definition value="Parties with legal standing in the Contract, including the principal parties, the grantor(s) and grantee(s), which are any person or organization bound by the contract, and any ancillary parties, which facilitate the execution of the contract such as a notary or witness." />
          <comment value="Signers who are principal parties to the contract are bound by the Contract.activity related to the Contract.topic, and the Contract.term(s), which either extend or restrict the overall action on the topic by, for example, stipulating specific policies or obligations constraining actions, action reason, or agents with respect to some or all of the topic.&#xD;For example, specifying how policies or obligations shall constrain actions and action reasons permitted or denied on all or a subset of the Contract.topic (e.g., all or a portion of property being transferred by the contract), agents (e.g., who can resell, assign interests, or alter the property being transferred by the contract), actions, and action reasons; or with respect to Contract.terms, stipulating, extending, or limiting the Contract.period of applicability or valuation of items under consideration." />
          <requirements value="The Contract.signer applies a signature to the Contract.binding referenced resource, which is the documentation that is the legal &quot;source of truth&quot;. The Contract.signer may delegate, such as a legally recognized personal representative, or have a delegate assigned e.g., by a court of law, to actually sign the Contract, such as a trustee in the case of incompetence." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.signer.type" />
    <resource>
      <DataElement>
        <id value="Contract.signer.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.signer.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.signer.type">
          <path value="Contract.signer.type" />
          <short value="Contract Signatory Role" />
          <definition value="Role of this Contract signer, e.g. notary, grantee." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractSignerType" />
            </extension>
            <strength value="preferred" />
            <description value="List of parties who may be signing." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-signer-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="RoleClass, RoleCode, ParticipationType, ParticipationFunction class codes." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.signer.party" />
    <resource>
      <DataElement>
        <id value="Contract.signer.party" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.signer.party" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.signer.party">
          <path value="Contract.signer.party" />
          <short value="Contract Signatory Party" />
          <definition value="Party which is a signator to this Contract." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="Role Class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.signer.signature" />
    <resource>
      <DataElement>
        <id value="Contract.signer.signature" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.signer.signature" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.signer.signature">
          <path value="Contract.signer.signature" />
          <short value="Contract Documentation Signature" />
          <definition value="Legally binding Contract DSIG signature contents in Base64." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="Signature" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="Participation.signatureCode :: CD (0..1) Definition: Whether the participant has attested participation through a signature, or whether such a signature is needed. Examples: A surgical Procedure act object (representing a procedure report) requires a signature of the performing and responsible surgeon, and possibly other participants; The participant intends to provide a signature.  Participation.signatureText :: ED (0..1) Definition: A textual or multimedia depiction of the signature by which the participant endorses and accepts responsibility for his or her participation in the Act as specified in the Participation.typeCode. UsageNotes: The signature can be represented either inline or by reference according to the ED data type. Typical cases are &#xD;1) Paper-based signatures: the ED data type may refer to a document or other resource that can be retrieved through an electronic interface to a hardcopy archive. 2) Electronic signature: this attribute can represent virtually any electronic signature scheme. 3) Digital signature: this attribute can represent digital signatures by reference to a signature data block that is constructed in accordance to a digital signature standard, such as XML-DSIG, PKCS#7, PGP, etc. Examples: 1) An &quot;author&quot; participant assumes accountability for the truth of the Act statement to the best of his knowledge. 2) An information recipient only attests to the fact that he or she has received the information." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.valuedItem" />
    <resource>
      <DataElement>
        <id value="Contract.valuedItem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.valuedItem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.valuedItem">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ValuedItem" />
          </extension>
          <path value="Contract.valuedItem" />
          <short value="Contract Valued Item List" />
          <definition value="Contract Valued Item List." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedItem classCode INVE" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.valuedItem.entityX" />
    <resource>
      <DataElement>
        <id value="Contract.valuedItem.entityX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.valuedItem.entityX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.valuedItem.entity[x]">
          <path value="Contract.valuedItem.entity[x]" />
          <short value="Contract Valued Item Type" />
          <definition value="Specific type of Contract Valued Item that may be priced." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedItem code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.valuedItem.identifier" />
    <resource>
      <DataElement>
        <id value="Contract.valuedItem.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.valuedItem.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.valuedItem.identifier">
          <path value="Contract.valuedItem.identifier" />
          <short value="Contract Valued Item Number" />
          <definition value="Identifies a Contract Valued Item instance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedItem id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.valuedItem.effectiveTime" />
    <resource>
      <DataElement>
        <id value="Contract.valuedItem.effectiveTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.valuedItem.effectiveTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.valuedItem.effectiveTime">
          <path value="Contract.valuedItem.effectiveTime" />
          <short value="Contract Valued Item Effective Tiem" />
          <definition value="Indicates the time during which this Contract ValuedItem information is effective." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedItem effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.valuedItem.quantity" />
    <resource>
      <DataElement>
        <id value="Contract.valuedItem.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.valuedItem.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.valuedItem.quantity">
          <path value="Contract.valuedItem.quantity" />
          <short value="Count of Contract Valued Items" />
          <definition value="Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedItem unitQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.valuedItem.unitPrice" />
    <resource>
      <DataElement>
        <id value="Contract.valuedItem.unitPrice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.valuedItem.unitPrice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.valuedItem.unitPrice">
          <path value="Contract.valuedItem.unitPrice" />
          <short value="Contract Valued Item fee, charge, or cost" />
          <definition value="A Contract Valued Item unit valuation measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedItem unitPriceAmt" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.valuedItem.factor" />
    <resource>
      <DataElement>
        <id value="Contract.valuedItem.factor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.valuedItem.factor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.valuedItem.factor">
          <path value="Contract.valuedItem.factor" />
          <short value="Contract Valued Item Price Scaling Factor" />
          <definition value="A real number that represents a multiplier used in determining the overall value of the Contract Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedItem factorNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.valuedItem.points" />
    <resource>
      <DataElement>
        <id value="Contract.valuedItem.points" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.valuedItem.points" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.valuedItem.points">
          <path value="Contract.valuedItem.points" />
          <short value="Contract Valued Item Difficulty Scaling Factor" />
          <definition value="An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedItem pointNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.valuedItem.net" />
    <resource>
      <DataElement>
        <id value="Contract.valuedItem.net" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.valuedItem.net" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.valuedItem.net">
          <path value="Contract.valuedItem.net" />
          <short value="Total Contract Valued Item Value" />
          <definition value="Expresses the product of the Contract Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedItem netAmt" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term" />
    <resource>
      <DataElement>
        <id value="Contract.term" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Term" />
          </extension>
          <path value="Contract.term" />
          <short value="Contract Term List" />
          <definition value="One or more Contract Provisions, which may be related and conveyed as a group, and may contain nested groups." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="RIM mechanism for grouping or nesting rules, which are likely Acts and Observations." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.identifier" />
    <resource>
      <DataElement>
        <id value="Contract.term.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.identifier">
          <path value="Contract.term.identifier" />
          <short value="Contract Term Number" />
          <definition value="Unique identifier for this particular Contract Provision." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Act or Observation identifier." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.issued" />
    <resource>
      <DataElement>
        <id value="Contract.term.issued" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.issued" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.issued">
          <path value="Contract.term.issued" />
          <short value="Contract Term Issue Date Time" />
          <definition value="When this Contract Provision was issued." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Act availabilityTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.applies" />
    <resource>
      <DataElement>
        <id value="Contract.term.applies" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.applies" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.applies">
          <path value="Contract.term.applies" />
          <short value="Contract Term Effective Time" />
          <definition value="Relevant time or time-period when this Contract Provision is applicable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Act effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.type" />
    <resource>
      <DataElement>
        <id value="Contract.term.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.type">
          <path value="Contract.term.type" />
          <short value="Contract Term Type or Form" />
          <definition value="Type of Contract Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractTermType" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the types of contract provisions." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-term-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="See Contract.term mapping." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.subType" />
    <resource>
      <DataElement>
        <id value="Contract.term.subType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.subType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.subType">
          <path value="Contract.term.subType" />
          <short value="Contract Term Type specific classification" />
          <definition value="Subtype of this Contract Provision, e.g. life time maximum payment for a contract term for specific valued item, e.g. disability payment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractTermSubType" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the subtypes of contract provisions." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-term-subtype" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="See Contract.topic mapping." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.topic" />
    <resource>
      <DataElement>
        <id value="Contract.term.topic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.topic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.topic">
          <path value="Contract.term.topic" />
          <short value="Context of the Contract term" />
          <definition value="The matter of concern in the context of this provision of the agrement." />
          <comment value="The Contract.term.topic, as a Contract Resource subpart, is handled in the same manner as the Contract Resource as discussed above." />
          <requirements value="A contract term topic is typically about a portion of the contract topic which has additional or specialized rights, privileges, obligations, restrictions, and prohibitions that are binding on any grantor and grantee parties upon the execution of the contract. &#xD;Contract.term.topic may be described in more detail in the [0..*] Contract.term.valuedItem @[0..1] Contract.term.valuedItem [x] Definition: Specific type of Contract Provision Valued Item that may be priced. CodeableConcept|Reference(Any) [See Contract.topic Requirements for further elaboration on this requirement.]." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="See Contract.subType mapping." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.action" />
    <resource>
      <DataElement>
        <id value="Contract.term.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.action">
          <path value="Contract.term.action" />
          <short value="Contract Term Activity" />
          <definition value="Action stipulated by this Contract Provision." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractAction" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the contract action." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-action" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="See Contract.action mapping." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.actionReason" />
    <resource>
      <DataElement>
        <id value="Contract.term.actionReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.actionReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.actionReason">
          <path value="Contract.term.actionReason" />
          <short value="Purpose for the Contract Term Action" />
          <definition value="Reason or purpose for the action stipulated by this Contract Provision." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractActionReason" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the contract action reason." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="See Contract.actionReason mapping." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.securityLabel" />
    <resource>
      <DataElement>
        <id value="Contract.term.securityLabel" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.securityLabel" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.securityLabel">
          <path value="Contract.term.securityLabel" />
          <short value="Security Labels that define affected terms" />
          <definition value="A set of security labels that define which terms are controlled by this condition." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <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>
          <mapping>
            <identity value="rim" />
            <map value="See Contract.securityLabel mapping." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.agent" />
    <resource>
      <DataElement>
        <id value="Contract.term.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.agent">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="TermAgent" />
          </extension>
          <path value="Contract.term.agent" />
          <short value="Contract Term Agent List" />
          <definition value="An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place." />
          <comment value="Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa.&#xD;For example, in cases of actions initiated by one user for other users, or in events that involve more than one user, hardware device, software, or system process. However, only one user may be the initiator/requestor for the event." />
          <requirements value="An agent can be a person, an organization, software, device, or other entities that may be ascribed responsibility." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="See Contract.agent mapping." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.agent.actor" />
    <resource>
      <DataElement>
        <id value="Contract.term.agent.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.agent.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.agent.actor">
          <path value="Contract.term.agent.actor" />
          <short value="Contract Term Agent Subject" />
          <definition value="The agent assigned a role in this Contract Provision." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="See Contract.agent.actor mapping." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.agent.role" />
    <resource>
      <DataElement>
        <id value="Contract.term.agent.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.agent.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.agent.role">
          <path value="Contract.term.agent.role" />
          <short value="Type of the Contract Term Agent" />
          <definition value="Role played by the agent assigned this role in the execution of this Contract Provision." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContractActorRole" />
            </extension>
            <strength value="example" />
            <description value="Detailed codes for the contract actor role." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contract-actorrole" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="See Contract.agent.role mapping." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.text" />
    <resource>
      <DataElement>
        <id value="Contract.term.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.text">
          <path value="Contract.term.text" />
          <short value="Human readable Contract term text" />
          <definition value="Human readable form of this Contract Provision." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem" />
    <resource>
      <DataElement>
        <id value="Contract.term.valuedItem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.valuedItem">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="TermValuedItem" />
          </extension>
          <path value="Contract.term.valuedItem" />
          <short value="Contract Term Valued Item List" />
          <definition value="Contract Provision Valued Item List." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedUnitItem classCode INVE" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.entityX" />
    <resource>
      <DataElement>
        <id value="Contract.term.valuedItem.entityX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.entityX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.valuedItem.entity[x]">
          <path value="Contract.term.valuedItem.entity[x]" />
          <short value="Contract Term Valued Item Type" />
          <definition value="Specific type of Contract Provision Valued Item that may be priced." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedUnitItem code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.identifier" />
    <resource>
      <DataElement>
        <id value="Contract.term.valuedItem.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.valuedItem.identifier">
          <path value="Contract.term.valuedItem.identifier" />
          <short value="Contract Term Valued Item Number" />
          <definition value="Identifies a Contract Provision Valued Item instance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedUnitItem id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.effectiveTime" />
    <resource>
      <DataElement>
        <id value="Contract.term.valuedItem.effectiveTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.effectiveTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.valuedItem.effectiveTime">
          <path value="Contract.term.valuedItem.effectiveTime" />
          <short value="Contract Term Valued Item Effective Tiem" />
          <definition value="Indicates the time during which this Contract Term ValuedItem information is effective." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedUnitItem effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.quantity" />
    <resource>
      <DataElement>
        <id value="Contract.term.valuedItem.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.valuedItem.quantity">
          <path value="Contract.term.valuedItem.quantity" />
          <short value="Contract Term Valued Item Count" />
          <definition value="Specifies the units by which the Contract Provision Valued Item is measured or counted, and quantifies the countable or measurable Contract Term Valued Item instances." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedUnitItem unitQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.unitPrice" />
    <resource>
      <DataElement>
        <id value="Contract.term.valuedItem.unitPrice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.unitPrice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.valuedItem.unitPrice">
          <path value="Contract.term.valuedItem.unitPrice" />
          <short value="Contract Term Valued Item fee, charge, or cost" />
          <definition value="A Contract Provision Valued Item unit valuation measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedUnitItem unitPriceAmt" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.factor" />
    <resource>
      <DataElement>
        <id value="Contract.term.valuedItem.factor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.factor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.valuedItem.factor">
          <path value="Contract.term.valuedItem.factor" />
          <short value="Contract Term Valued Item Price Scaling Factor" />
          <definition value="A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedUnitItem factorNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.points" />
    <resource>
      <DataElement>
        <id value="Contract.term.valuedItem.points" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.points" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.valuedItem.points">
          <path value="Contract.term.valuedItem.points" />
          <short value="Contract Term Valued Item Difficulty Scaling Factor" />
          <definition value="An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedUnitItem pointNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.net" />
    <resource>
      <DataElement>
        <id value="Contract.term.valuedItem.net" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.valuedItem.net" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.valuedItem.net">
          <path value="Contract.term.valuedItem.net" />
          <short value="Total Contract Term Valued Item Value" />
          <definition value="Expresses the product of the Contract Provision Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="COCT_RM440000UV09 ValuedUnitItem net" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.term.group" />
    <resource>
      <DataElement>
        <id value="Contract.term.group" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.term.group" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.term.group">
          <path value="Contract.term.group" />
          <short value="Nested Contract Term Group" />
          <definition value="Nested group of Contract Provisions." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#Contract.term" />
          <mapping>
            <identity value="rim" />
            <map value="RIM Grouping or Nesting mechanisms" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.bindingX" />
    <resource>
      <DataElement>
        <id value="Contract.bindingX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.bindingX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.binding[x]">
          <path value="Contract.binding[x]" />
          <short value="Binding Contract" />
          <definition value="Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the &quot;source of truth&quot; and which would be the basis for legal action related to enforcement of this Contract." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Composition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="DocumentCompletion code system AU (authenticated) Description: A completion status in which a document has been signed manually or electronically by one or more individuals who attest to its accuracy. No explicit determination is made that the assigned individual has performed the authentication. While the standard allows multiple instances of authentication, it would be typical to have a single instance of authentication, usually by the assigned individual." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.friendly" />
    <resource>
      <DataElement>
        <id value="Contract.friendly" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.friendly" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.friendly">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="FriendlyLanguage" />
          </extension>
          <path value="Contract.friendly" />
          <short value="Contract Friendly Language" />
          <definition value="The &quot;patient friendly language&quot; versionof the Contract in whole or in parts. &quot;Patient friendly language&quot; means the representation of the Contract and Contract Provisions in a manner that is readily accessible and understandable by a layperson in accordance with best practices for communication styles that ensure that those agreeing to or signing the Contract understand the roles, actions, obligations, responsibilities, and implication of the agreement." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.friendly.contentX" />
    <resource>
      <DataElement>
        <id value="Contract.friendly.contentX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.friendly.contentX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.friendly.content[x]">
          <path value="Contract.friendly.content[x]" />
          <short value="Easily comprehended representation of this Contract" />
          <definition value="Human readable rendering of this Contract in a format and representation intended to enhance comprehension and ensure understandability." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Composition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="Act.text Definition: A renderable textual or multimedia description (or reference to a description) of the complete information which would reasonably be expected to be displayed to a human reader conveyed by the Act." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.legal" />
    <resource>
      <DataElement>
        <id value="Contract.legal" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.legal" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.legal">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="LegalLanguage" />
          </extension>
          <path value="Contract.legal" />
          <short value="Contract Legal Language" />
          <definition value="List of Legal expressions or representations of this Contract." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.legal.contentX" />
    <resource>
      <DataElement>
        <id value="Contract.legal.contentX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.legal.contentX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.legal.content[x]">
          <path value="Contract.legal.content[x]" />
          <short value="Contract Legal Text" />
          <definition value="Contract legal text in human renderable form." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Composition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="Example: Act.text of an Act coded as with ActPrivacyLaw, ActPolicy code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.rule" />
    <resource>
      <DataElement>
        <id value="Contract.rule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.rule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.rule">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ComputableLanguage" />
          </extension>
          <path value="Contract.rule" />
          <short value="Computable Contract Language" />
          <definition value="List of Computable Policy Rule Language Representations of this Contract." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Contract.rule.contentX" />
    <resource>
      <DataElement>
        <id value="Contract.rule.contentX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Contract.rule.contentX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Contract.rule.content[x]">
          <path value="Contract.rule.content[x]" />
          <short value="Computable Contract Rules" />
          <definition value="Computable Contract conveyed using a policy rule language (e.g. XACML, DKAL, SecPal)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="Computable Policy Consent [Observation: templateId 2.16.840.1.113883.3.445.16] This template is used to represent an alternative representation of the Privacy Consent Directive (e.g.,ODRL, XrML, XACML) as a computer-readable set of rules. An implementation may use any appropriate representations of the privacy consent in addition to the &quot;ConsentDirectiveStructuredDefinition&quot; which uses the Clinical Template structure to express the elements of a consent directive in an interoperable way.&#xD;1. SHALL contain exactly one [1..1] templateId ( CONF-CD-16 ) such that it&#xD;a. SHALL contain exactly one [1..1] @root=&quot;2.16.840.1.113883.3.445.16&quot;&#xD;2. SHALL contain exactly one [1..1] @moodCode=&quot;DEF&quot; (CodeSystem: 2.16.840.1.113883.5.1001 HL7ActMood) (CONF:14912)&#xD;3. SHALL contain exactly one [1..1] code (CONF:9139)/@code=&quot;57016-8&quot; Privacy Policy Acknowledgement Document (CodeSystem: 2.16.840.1.113883.6.1 LOINC) (CONF:9138)&#xD;It specifies the LOINC code corresponding to &quot;Privacy Policy Acknowledgement Document&quot;, it is fixed at this value.&#xD;4. SHOULD contain zero or more [0..*] value with @xsi:type=&quot;ANY&quot; (CONF:9140) The value contains the computable representation of the policy. This may be a standard-based access control or attribute control based policy (See&#xD;&quot;References&quot;). Computable Policy Consent example&#xD;&lt;!-- Sample computable policy language representation --&gt;&#xD;&lt;entryRelationship typeCode=&quot;COMP&quot;&gt;&#xD;&lt;templateId root=&quot;2.16.840.1.113883.3.445.16&quot; /&gt;&#xD;&lt;observationMedia classCode=&quot;OBS&quot; moodCode=&quot;EVN&quot;&gt;&#xD;&lt;value mediaType=&quot;text/xml&quot; representation=&quot;TXT&quot;&gt; ... &lt;/value&gt;&#xD;&lt;/observationMedia&gt;&#xD;&lt;/entryRelationship&gt;" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment" />
    <resource>
      <DataElement>
        <id value="RiskAssessment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment">
          <path value="RiskAssessment" />
          <short value="Potential outcomes for a subject with likelihood" />
          <definition value="An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome." />
          <alias value="Prognosis" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=OBS, moodCode=EVN, code=&quot;Risk Assessment&quot;]" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="OpenEHR-EHR-EVALUATION.risk.v1" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.identifier" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.identifier">
          <path value="RiskAssessment.identifier" />
          <short value="Unique identifier for the assessment" />
          <definition value="Business identifier assigned to the risk assessment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Workflow Identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.basedOn" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.basedOn">
          <path value="RiskAssessment.basedOn" />
          <short value="Request fulfilled by this assessment" />
          <definition value="A reference to the request that is fulfilled by this risk assessment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.basedOn" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.parent" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.parent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.parent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.parent">
          <path value="RiskAssessment.parent" />
          <short value="Part of this occurrence" />
          <definition value="A reference to a resource that this risk assessment is part of, such as a Procedure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.partOf" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.status" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.status">
          <path value="RiskAssessment.status" />
          <short value="registered | preliminary | final | amended +" />
          <definition value="The status of the RiskAssessment, using the same statuses as an Observation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RiskAssessmentStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the risk assessment; e.g. preliminary, final, amended, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.method" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.method" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.method" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.method">
          <path value="RiskAssessment.method" />
          <short value="Evaluation mechanism" />
          <definition value="The algorithm, process or mechanism used to evaluate the risk." />
          <requirements value="The method can influence the results of the assessment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RiskAssessmentMethod" />
            </extension>
            <strength value="example" />
            <description value="The mechanism or algorithm used to make the assessment; e.g. TIMI, PRISM, Cardiff Type 2 diabetes, etc." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".methodCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.code" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.code">
          <path value="RiskAssessment.code" />
          <short value="Type of assessment" />
          <definition value="The type of the risk assessment performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.subject" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.subject">
          <path value="RiskAssessment.subject" />
          <short value="Who/what does assessment apply to?" />
          <definition value="The patient or group the risk assessment applies to." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Subject of Care" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.context" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.context">
          <path value="RiskAssessment.context" />
          <short value="Where was assessment performed?" />
          <definition value="The encounter where the assessment was performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.context" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.occurrenceX" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.occurrenceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.occurrenceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.occurrence[x]">
          <path value="RiskAssessment.occurrence[x]" />
          <short value="When was assessment made?" />
          <definition value="The date (and possibly time) the risk assessment was performed." />
          <requirements value="The assessment results lose validity the more time elapses from when they are first made." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.condition" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.condition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.condition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.condition">
          <path value="RiskAssessment.condition" />
          <short value="Condition assessed" />
          <definition value="For assessments or prognosis specific to a particular condition, indicates the condition being assessed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.performer" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.performer">
          <path value="RiskAssessment.performer" />
          <short value="Who did assessment?" />
          <definition value="The provider or software application that performed the assessment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.actor" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PFM].role[classCode=ASSIGNED]" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Information Provider" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.reasonX" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.reasonX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.reasonX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.reason[x]">
          <path value="RiskAssessment.reason[x]" />
          <short value="Why the assessment was necessary?" />
          <definition value="The reason the risk assessment was performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.reason" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.basis" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.basis" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.basis" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.basis">
          <path value="RiskAssessment.basis" />
          <short value="Information used in assessment" />
          <definition value="Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.reasonReference" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DRIV].target" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Risk Factor; Link to Evidence" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.prediction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.prediction">
          <path value="RiskAssessment.prediction" />
          <short value="Outcome predicted" />
          <definition value="Describes the expected outcome for the subject." />
          <comment value="Multiple repetitions can be used to identify the same type of outcome in different timeframes as well as different types of outcomes." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="ras-2" />
            <severity value="error" />
            <human value="Must be &lt;= 100" />
            <expression value="probability is decimal implies probability.as(decimal) &lt;= 100" />
            <xpath value="not(f:probabilityDecimal) or f:probabilityDecimal/@value &lt;= 100" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=VALUE].target[classCod=OBS, moodCode=RISK]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.outcome" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.prediction.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.prediction.outcome">
          <path value="RiskAssessment.prediction.outcome" />
          <short value="Possible outcome for the subject" />
          <definition value="One of the potential outcomes for the patient (e.g. remission, death,  a particular condition)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RiskAssessmentOutcome" />
            </extension>
            <strength value="example" />
            <description value="The condition or other outcome; e.g. death, remission, amputation, infection, etc." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".value" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Risk" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.probabilityX" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.prediction.probabilityX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.probabilityX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.prediction.probability[x]">
          <path value="RiskAssessment.prediction.probability[x]" />
          <short value="Likelihood of specified outcome" />
          <definition value="How likely is the outcome (in the specified timeframe)." />
          <comment value="If range is used, it represents the lower and upper bounds of certainty; e.g. 40-60%  Decimal values are expressed as percentages as well (max = 100)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <constraint>
            <key value="ras-1" />
            <severity value="error" />
            <human value="low and high must be percentages, if present" />
            <expression value="(low.empty() or ((low.code = '%') and (low.system = %ucum))) and (high.empty() or ((high.code = '%') and (high.system = %ucum)))" />
            <xpath value="(not(f:low) or f:low[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org']) and (not(f:high) or f:high[f:code/@value='%' and f:system/@value='http://unitsofmeasure.org'])" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;probability&quot;].value" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Category" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.qualitativeRisk" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.prediction.qualitativeRisk" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.qualitativeRisk" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.prediction.qualitativeRisk">
          <path value="RiskAssessment.prediction.qualitativeRisk" />
          <short value="Likelihood of specified outcome as a qualitative value" />
          <definition value="How likely is the outcome (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, high)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RiskAssessmentProbability" />
            </extension>
            <strength value="example" />
            <description value="The likelihood of the occurrence of a specified outcome" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/risk-probability" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.relativeRisk" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.prediction.relativeRisk" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.relativeRisk" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.prediction.relativeRisk">
          <path value="RiskAssessment.prediction.relativeRisk" />
          <short value="Relative likelihood" />
          <definition value="Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general.  (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.)." />
          <requirements value="Absolute risk is less meaningful than relative risk." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;relative risk&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.whenX" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.prediction.whenX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.whenX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.prediction.when[x]">
          <path value="RiskAssessment.prediction.when[x]" />
          <short value="Timeframe or age range" />
          <definition value="Indicates the period of time or age range of the subject to which the specified probability applies." />
          <comment value="If not specified, the risk applies &quot;over the subject's lifespan&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;age&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.rationale" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.prediction.rationale" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.prediction.rationale" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.prediction.rationale">
          <path value="RiskAssessment.prediction.rationale" />
          <short value="Explanation of prediction" />
          <definition value="Additional information explaining the basis for the prediction." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode.text" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Rationale" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.mitigation" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.mitigation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.mitigation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.mitigation">
          <path value="RiskAssessment.mitigation" />
          <short value="How to reduce risk" />
          <definition value="A description of the steps that might be taken to reduce the identified risk(s)." />
          <requirements value="One of the main reasons for assessing risks is to identify whether interventional steps are needed to reduce risk." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=MTGT].target[classCode=ACT, moodCode=EVN].text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RiskAssessment.comment" />
    <resource>
      <DataElement>
        <id value="RiskAssessment.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RiskAssessment.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RiskAssessment.comment">
          <path value="RiskAssessment.comment" />
          <short value="Comments on the risk assessment" />
          <definition value="Additional comments about the risk assessment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group" />
    <resource>
      <DataElement>
        <id value="Group" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group">
          <path value="Group" />
          <short value="Group of multiple entities" />
          <definition value="Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="grp-1" />
            <severity value="error" />
            <human value="Can only have members if group is &quot;actual&quot;" />
            <expression value="member.empty() or (actual = true)" />
            <xpath value="f:actual/@value=true() or not(exists(f:member))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Entity[determinerCode=&quot;GRP&quot; or determinerCode=&quot;GRP_KIND&quot;]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.group" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.identifier" />
    <resource>
      <DataElement>
        <id value="Group.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.identifier">
          <path value="Group.identifier" />
          <short value="Unique id" />
          <definition value="A unique business identifier for this group." />
          <requirements value="Allows the group to be referenced from external specifications." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="unique(./id[displayable=&quot;true&quot; and scope=&quot;OBJ&quot;])" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.active" />
    <resource>
      <DataElement>
        <id value="Group.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.active">
          <path value="Group.active" />
          <short value="Whether this group's record is in active use" />
          <definition value="Indicates whether the record for the group is available for use or is merely being retained for historical purposes." />
          <requirements value="Need to be able to mark a group record as not to be used because it was created in error or is otherwise no longer available (e.g. a herd that no longer exists)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.type" />
    <resource>
      <DataElement>
        <id value="Group.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.type">
          <path value="Group.type" />
          <short value="person | animal | practitioner | device | medication | substance" />
          <definition value="Identifies the broad classification of the kind of resources the group includes." />
          <comment value="Group members SHALL be of the appropriate resource type (Patient for person or animal; or Practitioner, Device, Medicaiton or Substance for the other types.)." />
          <requirements value="Identifies what type of resources the group is made up of." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GroupType" />
            </extension>
            <strength value="required" />
            <description value="Types of resources that are part of group" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/group-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="person: ./classCode=&quot;PSN&quot;  animal: ./classCode=&quot;ANM&quot;  device: ./classCode=&quot;DEV&quot;  medication: ./classCode=&quot;MMAT&quot; and ./playedRole[isNormalRole() and classCode=&quot;THER&quot;]  food: ./classCode=&quot;FOOD&quot;" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.actual" />
    <resource>
      <DataElement>
        <id value="Group.actual" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.actual" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.actual">
          <path value="Group.actual" />
          <short value="Descriptive or actual" />
          <definition value="If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals." />
          <requirements value="There are use-cases for groups that define specific collections of individuals, and other groups that define &quot;types&quot; of intended individuals.  The requirements for both kinds of groups are similar, so we use a single resource, distinguished by this flag." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <condition value="grp-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="true: ./determinerCode=&quot;GRP&quot;  false: ./determinerCode=&quot;GRP_KIND&quot;" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.code" />
    <resource>
      <DataElement>
        <id value="Group.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.code">
          <path value="Group.code" />
          <short value="Kind of Group members" />
          <definition value="Provides a specific type of resource the group includes; e.g. &quot;cow&quot;, &quot;syringe&quot;, etc." />
          <comment value="This would generally be omitted for Person resources." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GroupKind" />
            </extension>
            <strength value="example" />
            <description value="Kind of particular resource; e.g. cow, syringe, lake, etc." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="./code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.name" />
    <resource>
      <DataElement>
        <id value="Group.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.name">
          <path value="Group.name" />
          <short value="Label for Group" />
          <definition value="A label assigned to the group for human identification and communication." />
          <requirements value="Used to identify the group in human communication." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./name[type=&quot;ST&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.quantity" />
    <resource>
      <DataElement>
        <id value="Group.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.quantity">
          <path value="Group.quantity" />
          <short value="Number of members" />
          <definition value="A count of the number of resource instances that are part of the group." />
          <comment value="Note that the quantity may be less than the number of members if some of the members are not active." />
          <requirements value="Group size is a common defining characteristic." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.characteristic" />
    <resource>
      <DataElement>
        <id value="Group.characteristic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.characteristic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.characteristic">
          <path value="Group.characteristic" />
          <short value="Trait of group members" />
          <definition value="Identifies the traits shared by members of the group." />
          <comment value="All the identified characteristics must be true for an entity to a member of the group." />
          <requirements value="Needs to be a generic mechanism for identifying what individuals can be part of a group." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="./playedRole[isNormalRole()]/participation[isNormalParticipation() and typeCode=&quot;SBJ&quot;]/act[isNormalAct and classCode=&quot;OBS&quot; and moodCode=&quot;EVN&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.characteristic.code" />
    <resource>
      <DataElement>
        <id value="Group.characteristic.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.characteristic.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.characteristic.code">
          <path value="Group.characteristic.code" />
          <short value="Kind of characteristic" />
          <definition value="A code that identifies the kind of trait being asserted." />
          <requirements value="Need a formal way of identifying the characteristic being described." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GroupCharacteristicKind" />
            </extension>
            <strength value="example" />
            <description value="List of characteristics used to describe group members; e.g. gender, age, owner, location, etc." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="./code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.characteristic.valueX" />
    <resource>
      <DataElement>
        <id value="Group.characteristic.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.characteristic.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.characteristic.value[x]">
          <path value="Group.characteristic.value[x]" />
          <short value="Value held by characteristic" />
          <definition value="The value of the trait that holds (or does not hold - see 'exclude') for members of the group." />
          <comment value="For Range, it means members of the group have a value that falls somewhere within the specified range." />
          <requirements value="The value of the characteristic is what determines group membership." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GroupCharacteristicValue" />
            </extension>
            <strength value="example" />
            <description value="Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="./value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.characteristic.exclude" />
    <resource>
      <DataElement>
        <id value="Group.characteristic.exclude" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.characteristic.exclude" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.characteristic.exclude">
          <path value="Group.characteristic.exclude" />
          <short value="Group includes or excludes" />
          <definition value="If true, indicates the characteristic is one that is NOT held by members of the group." />
          <comment value="This is labeled as &quot;Is Modifier&quot; because applications cannot wrongly include excluded members as included or vice versa." />
          <requirements value="Sometimes group membership is determined by characteristics not possessed." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./valueNegationInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.characteristic.period" />
    <resource>
      <DataElement>
        <id value="Group.characteristic.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.characteristic.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.characteristic.period">
          <path value="Group.characteristic.period" />
          <short value="Period over which characteristic is tested" />
          <definition value="The period over which the characteristic is tested; e.g. the patient had an operation during the month of June." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.member" />
    <resource>
      <DataElement>
        <id value="Group.member" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.member" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.member">
          <path value="Group.member" />
          <short value="Who or what is in group" />
          <definition value="Identifies the resource instances that are members of the group." />
          <requirements value="Often the only thing of interest about a group is &quot;who's in it&quot;." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="grp-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="./scopedRole[isNormalRole() and classCode=&quot;MBR&quot;]/player" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.member.entity" />
    <resource>
      <DataElement>
        <id value="Group.member.entity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.member.entity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.member.entity">
          <path value="Group.member.entity" />
          <short value="Reference to the group member" />
          <definition value="A reference to the entity that is a member of the group. Must be consistent with Group.type." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.member.period" />
    <resource>
      <DataElement>
        <id value="Group.member.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.member.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.member.period">
          <path value="Group.member.period" />
          <short value="Period member belonged to the group" />
          <definition value="The period that the member was in the group, if known." />
          <requirements value="Need to track who was in a group at a  particular time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <meaningWhenMissing value="The member is in the group at this time" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Group.member.inactive" />
    <resource>
      <DataElement>
        <id value="Group.member.inactive" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Group.member.inactive" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Group.member.inactive">
          <path value="Group.member.inactive" />
          <short value="If member is no longer in group" />
          <definition value="A flag to indicate that the member is no longer in the group, but previously may have been a member." />
          <requirements value="Sometimes you don't know when someone stopped being in a group, but not when." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice" />
    <resource>
      <DataElement>
        <id value="PaymentNotice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice">
          <path value="PaymentNotice" />
          <short value="PaymentNotice request" />
          <definition value="This resource provides the status of the payment for goods and services rendered, and the request and response resource references." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.payment" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.identifier" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.identifier">
          <path value="PaymentNotice.identifier" />
          <short value="Business Identifier" />
          <definition value="The notice business identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.status" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.status">
          <path value="PaymentNotice.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PaymentNoticeStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.request" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.request">
          <path value="PaymentNotice.request" />
          <short value="Request reference" />
          <definition value="Reference of resource for which payment is being made." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.basedOn" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.response" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.response" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.response" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.response">
          <path value="PaymentNotice.response" />
          <short value="Response reference" />
          <definition value="Reference of response to resource for which payment is being made." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.statusDate" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.statusDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.statusDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.statusDate">
          <path value="PaymentNotice.statusDate" />
          <short value="Payment or clearing date" />
          <definition value="The date when the above payment action occurrred." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.created" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.created">
          <path value="PaymentNotice.created" />
          <short value="Creation date" />
          <definition value="The date when this resource was created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.target" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.target">
          <path value="PaymentNotice.target" />
          <short value="Insurer or Regulatory body" />
          <definition value="The Insurer who is target  of the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.provider" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.provider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.provider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.provider">
          <path value="PaymentNotice.provider" />
          <short value="Responsible practitioner" />
          <definition value="The practitioner who is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.actor" />
          </mapping>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B01" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="B01" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.organization" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.organization">
          <path value="PaymentNotice.organization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B02" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="B02" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentNotice.paymentStatus" />
    <resource>
      <DataElement>
        <id value="PaymentNotice.paymentStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentNotice.paymentStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentNotice.paymentStatus">
          <path value="PaymentNotice.paymentStatus" />
          <short value="Whether payment has been sent or cleared" />
          <definition value="The payment status, typically paid: payment sent, cleared: payment received." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PaymentStatus" />
            </extension>
            <strength value="example" />
            <description value="The payment conveyance status codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/payment-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization" />
    <resource>
      <DataElement>
        <id value="Organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization">
          <path value="Organization" />
          <short value="A grouping of people or organizations with a common purpose" />
          <definition value="A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action.  Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="org-1" />
            <severity value="error" />
            <human value="The organization SHALL at least have a name or an id, and possibly more than one" />
            <expression value="(identifier.count() + name.count()) &gt; 0" />
            <xpath value="count(f:identifier | f:name) &gt; 0" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="(also see master files messages)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Organization(classCode=ORG, determinerCode=INST)" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="Organization" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.group" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.identifier" />
    <resource>
      <DataElement>
        <id value="Organization.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.identifier">
          <path value="Organization.identifier" />
          <short value="Identifies this organization  across multiple systems" />
          <definition value="Identifier for the organization that is used to identify the organization across multiple disparate systems." />
          <requirements value="Organizations are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the organization." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <condition value="org-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XON.10 / XON.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scopes[Role](classCode=IDENT)" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Identifiers" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.active" />
    <resource>
      <DataElement>
        <id value="Organization.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.active">
          <path value="Organization.active" />
          <short value="Whether the organization's record is still in active use" />
          <definition value="Whether the organization's record is still in active use." />
          <comment value="Default is true.&#xA;&#xA;This active flag is not intended to be used to mark an organizations as temporarily closed or under construction. Instead the Location(s) within the Organization should have the suspended status. If further details of the reason for the suspension are required, then an extension on this element should be used.&#xA;&#xA;This element is labeled as a modifier because it may be used to mark that the resource was created in error." />
          <requirements value="Need a flag to indicate a record is no longer to be used and should generally be hidden for the user in the UI." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="No equivalent in HL7 v2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./Status (however this concept in ServD more covers why the organization is active or not, could be delisted, deregistered, not operational yet) this could alternatively be derived from ./StartDate and ./EndDate and given a context date." />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.type" />
    <resource>
      <DataElement>
        <id value="Organization.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.type">
          <path value="Organization.type" />
          <short value="Kind of organization" />
          <definition value="The kind(s) of organization that this is." />
          <comment value="Organizations can be corporations, wards, sections, clinical teams, government departments, etc. Note that code is generally a classifier of the type of organization; in many applications, codes are used to identity a particular organization (say, ward) as opposed to another of the same type - these are identifiers, not codes&#xA;&#xA;When considering if multiple types are appropriate, you should evaluate if child organizations would be a more appropriate use of the concept, as different types likely are in different sub-areas of the organization. This is most likely to be used where type values have orthogonal values, such as a religious, academic and medical center.&#xA;&#xA;We expect that some jurisdictions will profile this optionality to be a single cardinality." />
          <requirements value="Need to be able to track the kind of organization that this is - different organization types have different uses." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="OrganizationType" />
            </extension>
            <strength value="example" />
            <description value="Used to categorize the organization" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/organization-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="No equivalent in v2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.name" />
    <resource>
      <DataElement>
        <id value="Organization.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.name">
          <path value="Organization.name" />
          <short value="Name used for the organization" />
          <definition value="A name associated with the organization." />
          <comment value="If the name of an organization changes, consider putting the old name in the alias column so that it can still be located through searches." />
          <requirements value="Need to use the name as the label of the organization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="org-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="XON.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".name" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value=".PreferredName/Name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.alias" />
    <resource>
      <DataElement>
        <id value="Organization.alias" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.alias" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.alias">
          <path value="Organization.alias" />
          <short value="A list of alternate names that the organization is known as, or was known as in the past" />
          <definition value="A list of alternate names that the organization is known as, or was known as in the past." />
          <comment value="There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the organization." />
          <requirements value="Over time locations and organizations go through many changes and can be known by different names.&#xA;&#xA;For searching knowing previous names that the organization was known by can be very useful." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.telecom" />
    <resource>
      <DataElement>
        <id value="Organization.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.telecom">
          <path value="Organization.telecom" />
          <short value="A contact detail for the organization" />
          <definition value="A contact detail for the organization." />
          <comment value="The use code home is not to be used. Note that these contacts are not the contact details of people who are employed by or represent the organization, but official contacts for the organization itself." />
          <requirements value="Human contact for the organization." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <condition value="org-3" />
          <constraint>
            <key value="org-3" />
            <severity value="error" />
            <human value="The telecom of an organization can never be of use 'home'" />
            <expression value="where(use = 'home').empty()" />
            <xpath value="count(f:use[@value='home']) = 0" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="ORC-22?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".telecom" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./ContactPoints" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.address" />
    <resource>
      <DataElement>
        <id value="Organization.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.address">
          <path value="Organization.address" />
          <short value="An address for the organization" />
          <definition value="An address for the organization." />
          <comment value="Organization may have multiple addresses with different uses or applicable periods. The use code home is not to be used." />
          <requirements value="May need to keep track of the organization's addresses for contacting, billing or reporting requirements." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Address" />
          </type>
          <condition value="org-2" />
          <constraint>
            <key value="org-2" />
            <severity value="error" />
            <human value="An address of an organization can never be of use 'home'" />
            <expression value="where(use = 'home').empty()" />
            <xpath value="count(f:use[@value='home']) = 0" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="ORC-23?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".address" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="./PrimaryAddress and ./OtherAddresses" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.partOf" />
    <resource>
      <DataElement>
        <id value="Organization.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.partOf">
          <path value="Organization.partOf" />
          <short value="The organization of which this organization forms a part" />
          <definition value="The organization of which this organization forms a part." />
          <requirements value="Need to be able to track the hierarchy of organizations within an organization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="No equivalent in HL7 v2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".playedBy[classCode=Part].scoper" />
          </mapping>
          <mapping>
            <identity value="servd" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.contact" />
    <resource>
      <DataElement>
        <id value="Organization.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.contact">
          <path value="Organization.contact" />
          <short value="Contact for the organization for a certain purpose" />
          <definition value="Contact for the organization for a certain purpose." />
          <comment value="Where multiple contacts for the same purpose are provided there is a standard extension that can be used to determine which one is the preferred contact to use." />
          <requirements value="Need to keep track of assigned contact points within bigger organization." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".contactParty" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.contact.purpose" />
    <resource>
      <DataElement>
        <id value="Organization.contact.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.contact.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.contact.purpose">
          <path value="Organization.contact.purpose" />
          <short value="The type of contact" />
          <definition value="Indicates a purpose for which the contact can be reached." />
          <requirements value="Need to distinguish between multiple contact persons." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContactPartyType" />
            </extension>
            <strength value="extensible" />
            <description value="The purpose for which you would contact a contact party" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/contactentity-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="./type" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.contact.name" />
    <resource>
      <DataElement>
        <id value="Organization.contact.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.contact.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.contact.name">
          <path value="Organization.contact.name" />
          <short value="A name associated with the contact" />
          <definition value="A name associated with the contact." />
          <requirements value="Need to be able to track the person by name." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="HumanName" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PID-5, PID-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.contact.telecom" />
    <resource>
      <DataElement>
        <id value="Organization.contact.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.contact.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.contact.telecom">
          <path value="Organization.contact.telecom" />
          <short value="Contact details (telephone, email, etc.)  for a contact" />
          <definition value="A contact detail (e.g. a telephone number or an email address) by which the party may be contacted." />
          <requirements value="People have (primary) ways to contact them in some way such as phone, email." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PID-13, PID-14" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./telecom" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.contact.address" />
    <resource>
      <DataElement>
        <id value="Organization.contact.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.contact.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.contact.address">
          <path value="Organization.contact.address" />
          <short value="Visiting or postal addresses for the contact" />
          <definition value="Visiting or postal addresses for the contact." />
          <requirements value="May need to keep track of a contact party's address for contacting, billing or reporting requirements." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Address" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PID-11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./addr" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Organization.endpoint" />
    <resource>
      <DataElement>
        <id value="Organization.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Organization.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Organization.endpoint">
          <path value="Organization.endpoint" />
          <short value="Technical endpoints providing access to services operated for the organization" />
          <definition value="Technical endpoints providing access to services operated for the organization." />
          <requirements value="Organizations have multiple systems that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam" />
    <resource>
      <DataElement>
        <id value="CareTeam" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam">
          <path value="CareTeam" />
          <short value="Planned participants in the coordination and delivery of care for a patient or group" />
          <definition value="The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care for a patient." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.careprovision" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.identifier" />
    <resource>
      <DataElement>
        <id value="CareTeam.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.identifier">
          <path value="CareTeam.identifier" />
          <short value="External Ids for this team" />
          <definition value="This records identifiers associated with this care team that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.status" />
    <resource>
      <DataElement>
        <id value="CareTeam.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.status">
          <path value="CareTeam.status" />
          <short value="proposed | active | suspended | inactive | entered-in-error" />
          <definition value="Indicates the current state of the care team." />
          <comment value="This element is labeled as a modifier because the status contains the code entered-in-error that marks the care team as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CareTeamStatus" />
            </extension>
            <strength value="required" />
            <description value="Indicates the status of the care team." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/care-team-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.category" />
    <resource>
      <DataElement>
        <id value="CareTeam.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.category">
          <path value="CareTeam.category" />
          <short value="Type of team" />
          <definition value="Identifies what kind of team.  This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team." />
          <comment value="There may be multiple axis of categorization and one team may serve multiple purposes." />
          <requirements value="Used for filtering what teams(s) are retrieved and displayed to different types of users." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CareTeamCategory" />
            </extension>
            <strength value="example" />
            <description value="Indicates the type of care team." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/care-team-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.name" />
    <resource>
      <DataElement>
        <id value="CareTeam.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.name">
          <path value="CareTeam.name" />
          <short value="Name of the team, such as crisis assessment team" />
          <definition value="A label for human use intended to distinguish like teams.  E.g. the &quot;red&quot; vs. &quot;green&quot; trauma teams." />
          <comment value="The meaning/purpose of the team is conveyed in CareTeam.category.  This element may also convey semantics of the team (e.g. &quot;Red trauma team&quot;), but its primary purpose is to distinguish between identical teams in a human-friendly way.  (&quot;Team 18735&quot; isn't as friendly . )." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.subject" />
    <resource>
      <DataElement>
        <id value="CareTeam.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.subject">
          <path value="CareTeam.subject" />
          <short value="Who care team is for" />
          <definition value="Identifies the patient or group whose intended care is handled by the team." />
          <requirements value="Allows the team to care for a group (e.g. marriage) therapy." />
          <alias value="patient" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.context" />
    <resource>
      <DataElement>
        <id value="CareTeam.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.context">
          <path value="CareTeam.context" />
          <short value="Encounter or episode associated with CareTeam" />
          <definition value="The encounter or episode of care that establishes the context for this care team." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.period" />
    <resource>
      <DataElement>
        <id value="CareTeam.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.period">
          <path value="CareTeam.period" />
          <short value="Time period team covers" />
          <definition value="Indicates when the team did (or is intended to) come into effect and end." />
          <requirements value="Allows tracking what team(s) are in effect at a particular time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.participant" />
    <resource>
      <DataElement>
        <id value="CareTeam.participant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.participant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.participant">
          <path value="CareTeam.participant" />
          <short value="Members of the team" />
          <definition value="Identifies all people and organizations who are expected to be involved in the care team." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="ctm-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="ctm-1" />
            <severity value="error" />
            <human value="CareTeam.participant.onBehalfOf can only be populated when CareTeam.participant.member is a Practitioner" />
            <expression value="onBehalfOf.exists() implies (member.resolve() is Practitioner)" />
            <xpath value="contains(f:member/f:reference/@value, '/Practitioner/') or not(exists(f:onBehalfOf))" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="REL (REL.4 is always the Patient) ( or PRT?)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.participant.role" />
    <resource>
      <DataElement>
        <id value="CareTeam.participant.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.participant.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.participant.role">
          <path value="CareTeam.participant.role" />
          <short value="Type of involvement" />
          <definition value="Indicates specific responsibility of an individual within the care team, such as &quot;Primary care physician&quot;, &quot;Trained social worker counselor&quot;, &quot;Caregiver&quot;, etc." />
          <comment value="Roles may sometimes be inferred by type of Practitioner.  These are relationships that hold only within the context of the care team.  General relationships should be handled as properties of the Patient resource directly." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CareTeamParticipantRole" />
            </extension>
            <strength value="example" />
            <description value="Indicates specific responsibility of an individual within the care team, such as &quot;Primary physician&quot;, &quot;Team coordinator&quot;, &quot;Caregiver&quot;, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/participant-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="REL.2 (or PRT-4?)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".functionCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.participant.member" />
    <resource>
      <DataElement>
        <id value="CareTeam.participant.member" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.participant.member" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.participant.member">
          <path value="CareTeam.participant.member" />
          <short value="Who is involved" />
          <definition value="The specific person or organization who is participating/expected to participate in the care team." />
          <comment value="Patient only needs to be listed if they have a role other than &quot;subject of care&quot;.&#xA;&#xA;Member is optional because some participants may be known only by their role, particularly in draft plans." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="REL.5 (or PRT-5 : ( PRV-4 {provider participations} ) / PRT-5 : ( PRV-4  {non-provider person participations} ) / PRT-5 : ( PRV-4 = (patient non-subject of care) ) / PRT-8?)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.participant.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="CareTeam.participant.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.participant.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.participant.onBehalfOf">
          <path value="CareTeam.participant.onBehalfOf" />
          <short value="Organization of the practitioner" />
          <definition value="The organization of the practitioner." />
          <requirements value="Practitioners can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.participant.period" />
    <resource>
      <DataElement>
        <id value="CareTeam.participant.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.participant.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.participant.period">
          <path value="CareTeam.participant.period" />
          <short value="Time period of participant" />
          <definition value="Indicates when the specific member or organization did (or is intended to) come into effect and end." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.reasonCode" />
    <resource>
      <DataElement>
        <id value="CareTeam.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.reasonCode">
          <path value="CareTeam.reasonCode" />
          <short value="Why the care team exists" />
          <definition value="Describes why the care team exists." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CareTeamReason" />
            </extension>
            <strength value="example" />
            <description value="Indicates the reason for the care team." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-findings" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.reasonReference" />
    <resource>
      <DataElement>
        <id value="CareTeam.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.reasonReference">
          <path value="CareTeam.reasonReference" />
          <short value="Why the care team exists" />
          <definition value="Condition(s) that this care team addresses." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.managingOrganization" />
    <resource>
      <DataElement>
        <id value="CareTeam.managingOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.managingOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.managingOrganization">
          <path value="CareTeam.managingOrganization" />
          <short value="Organization responsible for the care team" />
          <definition value="The organization responsible for the care team." />
          <requirements value="Allows for multiple organizations to collaboratively manage cross-organizational, longitudinal care plan." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CareTeam.note" />
    <resource>
      <DataElement>
        <id value="CareTeam.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CareTeam.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CareTeam.note">
          <path value="CareTeam.note" />
          <short value="Comments made about the CareTeam" />
          <definition value="Comments made about the CareTeam." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide">
          <path value="ImplementationGuide" />
          <short value="A set of rules about how FHIR is used" />
          <definition value="A set of rules of how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts." />
          <min value="1" />
          <max value="1" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.misc" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.url" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.url">
          <path value="ImplementationGuide.url" />
          <short value="Logical URI to reference this implementation guide (globally unique)" />
          <definition value="An absolute URI that is used to identify this implementation guide 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 implementation guide is (or will be) published. The URL SHOULD include the major version of the implementation guide. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the implementation guide to be referenced by a single globally unique identifier. This is required to allow hosting Implementation Guides on multiple different servers, and to allow for the editorial process." />
          <alias value="url" />
          <alias value="authoritative-url" />
          <alias value="destination" />
          <alias value="identity" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.version" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.version">
          <path value="ImplementationGuide.version" />
          <short value="Business version of the implementation guide" />
          <definition value="The identifier that is used to identify this version of the implementation guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the implementation guide author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different implementation guide instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the implementation guide with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.name" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.name">
          <path value="ImplementationGuide.name" />
          <short value="Name for this implementation guide (computer friendly)" />
          <definition value="A natural language name identifying the implementation guide. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.status" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.status">
          <path value="ImplementationGuide.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this implementation guide. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of implementation guides that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired implementation guide without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.experimental" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.experimental">
          <path value="ImplementationGuide.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this implementation guide is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of implementation guide that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental implementation guide in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level implementation guide." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.date" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.date">
          <path value="ImplementationGuide.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the implementation guide was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide 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 implementation guide. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.publisher" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.publisher">
          <path value="ImplementationGuide.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the implementation guide." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the implementation guide is the organization or individual primarily responsible for the maintenance and upkeep of the implementation guide. 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 implementation guide. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the implementation guide.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.contact" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.contact">
          <path value="ImplementationGuide.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.description" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.description">
          <path value="ImplementationGuide.description" />
          <short value="Natural language description of the implementation guide" />
          <definition value="A free text natural language description of the implementation guide from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the implementation guide 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 implementation guide 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="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.useContext" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.useContext">
          <path value="ImplementationGuide.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate implementation guide instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.jurisdiction" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.jurisdiction">
          <path value="ImplementationGuide.jurisdiction" />
          <short value="Intended jurisdiction for implementation guide (if applicable)" />
          <definition value="A legal or geographic region in which the implementation guide is intended to be used." />
          <comment value="It may be possible for the implementation guide to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.copyright" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.copyright">
          <path value="ImplementationGuide.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the implementation guide and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.fhirVersion" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.fhirVersion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.fhirVersion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.fhirVersion">
          <path value="ImplementationGuide.fhirVersion" />
          <short value="FHIR Version this Implementation Guide targets" />
          <definition value="The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 3.0.1 for this version." />
          <comment value="An Implementation Guide should specify the target it applies to, as ImplementationGuides are rarely valid across multiple versions of FHIR." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.dependency" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.dependency" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.dependency" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.dependency">
          <path value="ImplementationGuide.dependency" />
          <short value="Another Implementation guide this depends on" />
          <definition value="Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.dependency.type" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.dependency.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.dependency.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.dependency.type">
          <path value="ImplementationGuide.dependency.type" />
          <short value="reference | inclusion" />
          <definition value="How the dependency is represented when the guide is published." />
          <comment value="For information about processing included guides, see [Including Guides]{implementationguide.html#include}." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GuideDependencyType" />
            </extension>
            <strength value="required" />
            <description value="How a dependency is represented when the guide is published." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/guide-dependency-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.dependency.uri" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.dependency.uri" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.dependency.uri" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.dependency.uri">
          <path value="ImplementationGuide.dependency.uri" />
          <short value="Where to find dependency" />
          <definition value="Where the dependency is located." />
          <comment value="When a guide is published, and the type is 'include', this will be a relative reference within the guide." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package">
          <path value="ImplementationGuide.package" />
          <short value="Group of resources as used in .page.package" />
          <definition value="A logical group of resources. Logical groups can be used when building pages." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.name" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package.name">
          <path value="ImplementationGuide.package.name" />
          <short value="Name used .page.package" />
          <definition value="The name for the group, as used in page.package." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.description" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package.description">
          <path value="ImplementationGuide.package.description" />
          <short value="Human readable text describing the package" />
          <definition value="Human readable text describing the package." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package.resource">
          <path value="ImplementationGuide.package.resource" />
          <short value="Resource in the implementation guide" />
          <definition value="A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.example" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package.resource.example" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.example" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package.resource.example">
          <path value="ImplementationGuide.package.resource.example" />
          <short value="If not an example, has its normal meaning" />
          <definition value="Whether a resource is included in the guide as part of the rules defined by the guide, or just as an example of a resource that conforms to the rules and/or help implementers understand the intent of the guide." />
          <comment value="Typically, conformance resources and knowledge resources are directly part of the implementation guide, with their normal meaning, and patient linked resources are usually examples. However this is not always true." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.name" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package.resource.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package.resource.name">
          <path value="ImplementationGuide.package.resource.name" />
          <short value="Human Name for the resource" />
          <definition value="A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.description" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package.resource.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package.resource.description">
          <path value="ImplementationGuide.package.resource.description" />
          <short value="Reason why included in guide" />
          <definition value="A description of the reason that a resource has been included in the implementation guide." />
          <comment value="This is mostly used with examples to explain why it is present (though they can have extensive comments in the examples)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.acronym" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package.resource.acronym" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.acronym" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package.resource.acronym">
          <path value="ImplementationGuide.package.resource.acronym" />
          <short value="Short code to identify the resource" />
          <definition value="A short code that may be used to identify the resource throughout the implementation guide." />
          <comment value="This is used when generating schematrons from profiles, for example, but has other uses. Publishing tooling may autogenerate this value, but a human assigned value is more useful. This value must be unique within an implementation guide (across included guides as well)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.sourceX" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package.resource.sourceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.sourceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package.resource.source[x]">
          <path value="ImplementationGuide.package.resource.source[x]" />
          <short value="Location of the resource" />
          <definition value="Where this resource is found." />
          <comment value="Usually this is a relative URL that locates the resource within the implementation guide. If you authoring an implementation guide, and will publish it using the FHIR publication tooling, use a URI that may point to a resource, or to one of various alternative representations (e.g. spreadsheet). The tooling will convert this when it publishes it." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.exampleFor" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.package.resource.exampleFor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.package.resource.exampleFor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.package.resource.exampleFor">
          <path value="ImplementationGuide.package.resource.exampleFor" />
          <short value="Resource this is an example of (if applicable)" />
          <definition value="Another resource that this resource is an example for. This is mostly used for resources that are included as examples of StructureDefinitions." />
          <comment value="Examples:&#xA;* StructureDefinition -&gt; Any&#xA;* ValueSet -&gt; expansion&#xA;* OperationDefinition -&gt; Parameters&#xA;* Questionnaire -&gt; QuestionnaireResponse." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.global" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.global" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.global" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.global">
          <path value="ImplementationGuide.global" />
          <short value="Profiles that apply globally" />
          <definition value="A set of profiles that all resources covered by this implementation guide must conform to." />
          <comment value="See [Default Profiles](implementationguide.html#default) for a discussion of which resources are 'covered' by an implementation guide." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.global.type" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.global.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.global.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.global.type">
          <path value="ImplementationGuide.global.type" />
          <short value="Type this profiles applies to" />
          <definition value="The type of resource that all instances must conform to." />
          <comment value="The type must match that of the profile that is referred to, but is made explicit here as a denormalization so that a system processing the implementation guide resource knows which resources the profile applies to even if the profile itself is not available." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.global.profile" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.global.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.global.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.global.profile">
          <path value="ImplementationGuide.global.profile" />
          <short value="Profile that all resources must conform to" />
          <definition value="A reference to the profile that all instances must conform to." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.binary" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.binary" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.binary" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.binary">
          <path value="ImplementationGuide.binary" />
          <short value="Image, css, script, etc." />
          <definition value="A binary file that is included in the  implementation guide when it is published." />
          <comment value="This is principally included for the FHIR publishing tool, but may be useful when extracting and reusing content from the implementation guide." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.page" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.page" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.page" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.page">
          <path value="ImplementationGuide.page" />
          <short value="Page/Section in the Guide" />
          <definition value="A page / section in the implementation guide. The root page is the implementation guide home page." />
          <comment value="Pages automatically become sections if they have sub-pages. By convention, the home page is called index.html." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.source" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.page.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.page.source">
          <path value="ImplementationGuide.page.source" />
          <short value="Where to find that page" />
          <definition value="The source address for the page." />
          <comment value="The publishing tool will autogenerate source for list (source = n/a), and inject included implementations for include (source = uri of guide to include)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.title" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.page.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.page.title">
          <path value="ImplementationGuide.page.title" />
          <short value="Short title shown for navigational assistance" />
          <definition value="A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.kind" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.page.kind" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.kind" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.page.kind">
          <path value="ImplementationGuide.page.kind" />
          <short value="page | example | list | include | directory | dictionary | toc | resource" />
          <definition value="The kind of page that this is. Some pages are autogenerated (list, example), and other kinds are of interest so that tools can navigate the user to the page of interest." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GuidePageKind" />
            </extension>
            <strength value="required" />
            <description value="The kind of an included page." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/guide-page-kind" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.type" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.page.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.page.type">
          <path value="ImplementationGuide.page.type" />
          <short value="Kind of resource to include in the list" />
          <definition value="For constructed pages, what kind of resources to include in the list." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.package" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.page.package" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.package" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.page.package">
          <path value="ImplementationGuide.page.package" />
          <short value="Name of package to include" />
          <definition value="For constructed pages, a list of packages to include in the page (or else empty for everything)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.format" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.page.format" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.format" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.page.format">
          <path value="ImplementationGuide.page.format" />
          <short value="Format of the page (e.g. html, markdown, etc.)" />
          <definition value="The format of the page." />
          <comment value="This is primarily for the publishing tool, that will convert all pages to html format. HTML pages are pre-processed, see xxxx." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MimeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The mime type of an attachment. Any valid mime type is allowed." />
            <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.page" />
    <resource>
      <DataElement>
        <id value="ImplementationGuide.page.page" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImplementationGuide.page.page" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImplementationGuide.page.page">
          <path value="ImplementationGuide.page.page" />
          <short value="Nested Pages / Sections" />
          <definition value="Nested Pages/Sections under this page." />
          <comment value="The implementation guide breadcrumbs are generated from this structure." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ImplementationGuide.page" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy" />
    <resource>
      <DataElement>
        <id value="ImagingStudy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy">
          <path value="ImagingStudy" />
          <short value="A set of images produced in single study (one or more series of references images)" />
          <definition value="Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context.  A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[classCode=COMPOSITION, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="Reference IHE radiology TF vol 2 table 4.14-1" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.diagnostics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.uid" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.uid" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.uid" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.uid">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
            <valueString value="dicom=" />
          </extension>
          <path value="ImagingStudy.uid" />
          <short value="Formal DICOM identifier for the study" />
          <definition value="Formal identifier for the study." />
          <alias value="StudyInstanceUID" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="oid" />
          </type>
          <example>
            <label value="General" />
            <valueOid value="urn:oid:2.16.124.113543.6003.1154777499.30246.19789.3503430045" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,000D)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.accession" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.accession" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.accession" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.accession">
          <path value="ImagingStudy.accession" />
          <short value="Related workflow identifier (&quot;Accession Number&quot;)" />
          <definition value="Accession Number is an identifier related to some aspect of imaging workflow and data management. Usage may vary across different institutions.  See for instance [IHE Radiology Technical Framework Volume 1 Appendix A](http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Rev13.0_Vol1_FT_2014-07-30.pdf)." />
          <alias value="AccessionNumber" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ACSN, moodCode=EVN].id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0050)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.identifier" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.identifier">
          <path value="ImagingStudy.identifier" />
          <short value="Other identifiers for the study" />
          <definition value="Other identifiers for the study." />
          <alias value="StudyID" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id (no means to distinguish from uid)" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,0010)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.availability" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.availability" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.availability" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.availability">
          <path value="ImagingStudy.availability" />
          <short value="ONLINE | OFFLINE | NEARLINE | UNAVAILABLE" />
          <definition value="Availability of study (online, offline, or nearline)." />
          <alias value="InstanceAvailability" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="InstanceAvailability" />
            </extension>
            <strength value="required" />
            <description value="Availability of the resource" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/instance-availability" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="Not supported" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.modalityList" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.modalityList" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.modalityList" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.modalityList">
          <path value="ImagingStudy.modalityList" />
          <short value="All series modality if actual acquisition modalities" />
          <definition value="A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19)." />
          <alias value="ModalitiesInStudy" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImagingModality" />
            </extension>
            <strength value="extensible" />
            <description value="Type of acquired data in the instance" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/dicom-cid29" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0061)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.patient" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.patient">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
            <valueString value="dicom=http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.2.2.html" />
          </extension>
          <path value="ImagingStudy.patient" />
          <short value="Who the images are of" />
          <definition value="The patient imaged in the study." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0010/*)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.context" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.context">
          <path value="ImagingStudy.context" />
          <short value="Originating context" />
          <definition value="The encounter or episode at which the request is initiated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.started" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.started" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.started" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.started">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
            <valueString value="dicom=http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.2.html#sect_C.7.2.1" />
          </extension>
          <path value="ImagingStudy.started" />
          <short value="When the study was started" />
          <definition value="Date and time the study started." />
          <alias value="StudyDate" />
          <alias value="StudyTime" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <example>
            <label value="General" />
            <valueDateTime value="2011-01-01T11:01:20+03:00" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0020)+(0008,0030)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.basedOn" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.basedOn">
          <path value="ImagingStudy.basedOn" />
          <short value="Request fulfilled" />
          <definition value="A list of the diagnostic requests that resulted in this imaging study being performed." />
          <requirements value="To support grouped procedures (one imaging study supporting multiple ordered procedures, e.g. chest/abdomen/pelvis CT)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target[classCode=DGIMG, moodCode=RQO]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.cause" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.referrer" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.referrer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.referrer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.referrer">
          <path value="ImagingStudy.referrer" />
          <short value="Referring physician" />
          <definition value="The requesting/referring physician." />
          <alias value="ReferringPhysiciansName" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target[classCode=DGIMG, moodCode=RQO].participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.cause" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.interpreter" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.interpreter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.interpreter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.interpreter">
          <path value="ImagingStudy.interpreter" />
          <short value="Who interpreted images" />
          <definition value="Who read the study and interpreted the images or other content." />
          <alias value="Name of Physician(s) Reading Study" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,1060)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.endpoint" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.endpoint">
          <path value="ImagingStudy.endpoint" />
          <short value="Study access endpoint" />
          <definition value="The network service providing access (e.g., query, view, or retrieval) for the study. See implementation notes for information about using DICOM endpoints. A study-level endpoint applies to each series in the study, unless overridden by a series-level endpoint with the same Endpoint.type." />
          <comment value="Typical endpoint types include DICOM WADO-RS, which is used to retrieve DICOM instances in native or rendered (e.g., JPG, PNG), formats using a RESTful API; DICOM WADO-URI, which can similarly retrieve native or rendered instances, except using an HTTP query-based approach; DICOM QIDO-RS, which allows RESTful query for DICOM information without retrieving the actual instances; or IHE Invoke Image Display (IID), which provides standard invocation of an imaging web viewer." />
          <requirements value="Access methods for viewing (e.g., IHE’s IID profile) or retrieving (e.g., DICOM’s WADO-URI and WADO-RS) the study or the study’s series or instances. The study-level baseLocation applies to each series in the study, unless overridden in series by a series-level baseLocation of the same type." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Not supported" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.numberOfSeries" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.numberOfSeries" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.numberOfSeries" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.numberOfSeries">
          <path value="ImagingStudy.numberOfSeries" />
          <short value="Number of Study Related Series" />
          <definition value="Number of Series in the Study. This value given may be larger than the number of series elements this Resource contains due to resource availability, security, or other factors. This element should be present if any series elements are present." />
          <alias value="NumberOfStudyRelatedSeries" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target[classCode=OBSSER, moodCode=EVN].repeatNumber" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,1206)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.numberOfInstances" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.numberOfInstances" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.numberOfInstances" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.numberOfInstances">
          <path value="ImagingStudy.numberOfInstances" />
          <short value="Number of Study Related Instances" />
          <definition value="Number of SOP Instances in Study. This value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present." />
          <alias value="NumberOfStudyRelatedInstances" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target[classCode=DGIMG, moodCode=EVN].repeatNumber" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,1208)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.procedureReference" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.procedureReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.procedureReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.procedureReference">
          <path value="ImagingStudy.procedureReference" />
          <short value="The performed Procedure reference" />
          <definition value="A reference to the performed Procedure." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=PROC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,1032)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.procedureCode" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.procedureCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.procedureCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.procedureCode">
          <path value="ImagingStudy.procedureCode" />
          <short value="The performed procedure code" />
          <definition value="The code for the performed procedure type." />
          <alias value="ProcedureCodeSequence" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImagingProcedureCode" />
            </extension>
            <strength value="example" />
            <description value="The performed procedure type" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=PROC, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.reason" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.reason">
          <path value="ImagingStudy.reason" />
          <short value="Why the study was requested" />
          <definition value="Description of clinical condition indicating why the ImagingStudy was requested." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImagingReason" />
            </extension>
            <strength value="example" />
            <description value="The reason for the study" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.description" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.description">
          <path value="ImagingStudy.description" />
          <short value="Institution-generated description" />
          <definition value="Institution-generated description or classification of the Study performed." />
          <alias value="StudyDescription" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,1030)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series">
          <path value="ImagingStudy.series" />
          <short value="Each study has one or more series of instances" />
          <definition value="Each study has one or more series of images or other content." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=OBSSER, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.uid" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.uid" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.uid" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.uid">
          <path value="ImagingStudy.series.uid" />
          <short value="Formal DICOM identifier for this series" />
          <definition value="Formal identifier for this series." />
          <alias value="SeriesInstanceUID" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="oid" />
          </type>
          <example>
            <label value="General" />
            <valueOid value="urn:oid:2.16.124.113543.6003.2588828330.45298.17418.2723805630" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,000E)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.number" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.number" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.number" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.number">
          <path value="ImagingStudy.series.number" />
          <short value="Numeric identifier of this series" />
          <definition value="The numeric identifier of this series in the study." />
          <alias value="SeriesNumber" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <example>
            <label value="General" />
            <valueUnsignedInt value="3" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[type=COMP, source[classCode=COMPOSITION, moodCode=EVN]].sequenceNumber" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,0011)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.modality" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.modality" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.modality" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.modality">
          <path value="ImagingStudy.series.modality" />
          <short value="The modality of the instances in the series" />
          <definition value="The modality of this series sequence." />
          <alias value="Modality" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImagingModality" />
            </extension>
            <strength value="extensible" />
            <description value="Type of acquired data in the instance" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/dicom-cid29" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0060)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.description" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.description">
          <path value="ImagingStudy.series.description" />
          <short value="A short human readable summary of the series" />
          <definition value="A description of the series." />
          <alias value="SeriesDescription" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <example>
            <label value="General" />
            <valueString value="CT Surview 180" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,103E)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.numberOfInstances" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.numberOfInstances" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.numberOfInstances" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.numberOfInstances">
          <path value="ImagingStudy.series.numberOfInstances" />
          <short value="Number of Series Related Instances" />
          <definition value="Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present." />
          <alias value="NumberOfSeriesRelatedInstances" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target[classCode=DGIMG, moodCode=EVN].repeatNumber" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,1209)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.availability" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.availability" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.availability" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.availability">
          <path value="ImagingStudy.series.availability" />
          <short value="ONLINE | OFFLINE | NEARLINE | UNAVAILABLE" />
          <definition value="Availability of series (online, offline or nearline)." />
          <alias value="InstanceAvailability" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="InstanceAvailability" />
            </extension>
            <strength value="required" />
            <description value="Availability of the resource" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/instance-availability" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP]. source[classCode=OBS, moodCode=EVN, code=&quot;availability&quot;].value" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0056)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.endpoint" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.endpoint">
          <path value="ImagingStudy.series.endpoint" />
          <short value="Series access endpoint" />
          <definition value="The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.type." />
          <comment value="Typical endpoint types include DICOM WADO-RS, which is used to retrieve DICOM instances in native or rendered (e.g., JPG, PNG) formats using a RESTful API; DICOM WADO-URI, which can similarly retrieve native or rendered instances, except using an HTTP query-based approach; and DICOM QIDO-RS, which allows RESTful query for DICOM information without retrieving the actual instances." />
          <requirements value="Access methods for retrieving (e.g., DICOM’s WADO-URI and WADO-RS) the series or the series’ instances. A baseLocation specified at the series level has precedence over a baseLocation of the same type specified at the study level." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Not supported" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.bodySite" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.bodySite">
          <path value="ImagingStudy.series.bodySite" />
          <short value="Body part examined" />
          <definition value="The anatomic structures examined. See DICOM Part 16 Annex L (http://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_L.html) for DICOM to SNOMED-CT mappings. The bodySite may indicate the laterality of body part imaged; if so, it shall be consistent with any content of ImagingStudy.series.laterality." />
          <alias value="BodyPartExamined" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".targetSiteCode" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0018,0015)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.laterality" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.laterality" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.laterality" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.laterality">
          <path value="ImagingStudy.series.laterality" />
          <short value="Body part laterality" />
          <definition value="The laterality of the (possibly paired) anatomic structures examined. E.g., the left knee, both lungs, or unpaired abdomen. If present, shall be consistent with any laterality information indicated in ImagingStudy.series.bodySite." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Laterality" />
            </extension>
            <strength value="example" />
            <description value="Codes describing body site laterality (left, right, etc.)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/bodysite-laterality" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".targetSiteCode" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,0060)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.started" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.started" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.started" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.started">
          <path value="ImagingStudy.series.started" />
          <short value="When the series started" />
          <definition value="The date and time the series was started." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0021) + (0008,0031)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.performer" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.performer">
          <path value="ImagingStudy.series.performer" />
          <short value="Who performed the series" />
          <definition value="The physician or operator (often the radiology technician)  who performed the series. The performer is recorded at the series level, since each series in a study may be performed by a different practitioner, at different times, and using different devices. A series may be performed by multiple practitioners." />
          <alias value="PerformingPhysicianName" />
          <alias value="OperatorName" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,1050) | (0008,1072)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.instance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.instance">
          <path value="ImagingStudy.series.instance" />
          <short value="A single SOP instance from the series" />
          <definition value="A single SOP instance within the series, e.g. an image, or presentation state." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=DGIMG, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance.uid" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.instance.uid" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance.uid" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.instance.uid">
          <path value="ImagingStudy.series.instance.uid" />
          <short value="Formal DICOM identifier for this instance" />
          <definition value="Formal identifier for this image or other content." />
          <alias value="SOPInstanceUID" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="oid" />
          </type>
          <example>
            <label value="General" />
            <valueOid value="urn:oid:2.16.124.113543.6003.189642796.63084.16748.2599092903" />
          </example>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0018)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance.number" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.instance.number" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance.number" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.instance.number">
          <path value="ImagingStudy.series.instance.number" />
          <short value="The number of this instance in the series" />
          <definition value="The number of instance in the series." />
          <alias value="InstanceNumber" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <example>
            <label value="General" />
            <valueUnsignedInt value="1" />
          </example>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP, source[classCode=OBSSER, moodCode=EVN]].sequenceNumber" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0020,0013)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance.sopClass" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.instance.sopClass" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance.sopClass" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.instance.sopClass">
          <path value="ImagingStudy.series.instance.sopClass" />
          <short value="DICOM class type" />
          <definition value="DICOM instance  type." />
          <alias value="SOPClassUID" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="oid" />
          </type>
          <example>
            <label value="General" />
            <valueOid value="urn:oid:1.2.840.10008.5.1.4.1.1.2" />
          </example>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP]. source[classCode=OBS, moodCode=EVN, code=&quot;sop class&quot;].value" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0008,0016)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance.title" />
    <resource>
      <DataElement>
        <id value="ImagingStudy.series.instance.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImagingStudy.series.instance.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImagingStudy.series.instance.title">
          <path value="ImagingStudy.series.instance.title" />
          <short value="Description of instance" />
          <definition value="The description of the instance." />
          <comment value="Particularly for post-acquisition analytic objects, such as SR, presentation states, value mapping, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".title" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="(0070,0080) | (0040,A043) &gt; (0008,0104) | (0042,0010) | (0008,0008)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent" />
    <resource>
      <DataElement>
        <id value="DeviceComponent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent">
          <path value="DeviceComponent" />
          <short value="An instance of a medical-related component of a medical device" />
          <definition value="The characteristics, operational status and capabilities of a medical-related component of a medical device." />
          <comment value="For the initial scope, this DeviceComponent resource is only applicable to describe a single node in the containment tree that is produced by the context scanner in any medical device that implements or derives from the ISO/IEEE 11073 standard and that does not represent a metric. Examples for such a node are MDS, VMD, or Channel." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.device" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.identifier" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.identifier">
          <path value="DeviceComponent.identifier" />
          <short value="Instance id assigned by the software stack" />
          <definition value="The locally assigned unique identification by the software. For example: handle ID." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.type" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.type">
          <path value="DeviceComponent.type" />
          <short value="What kind of component it is" />
          <definition value="The component type as defined in the object-oriented or metric nomenclature partition." />
          <comment value="DeviceComponent.type can be referred to either GDMN (nomenclature system supported by FDA Global UDI Database) or preferable RTMMS coding system." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ComponentType" />
            </extension>
            <strength value="preferred" />
            <description value="Describes the type of the component." />
            <valueSetUri value="http://hl7.org/fhir/ValueSet/device-kind" />
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.lastSystemChange" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.lastSystemChange" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.lastSystemChange" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.lastSystemChange">
          <path value="DeviceComponent.lastSystemChange" />
          <short value="Recent system change timestamp" />
          <definition value="The timestamp for the most recent system change which includes device configuration or setting change." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.source" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.source">
          <path value="DeviceComponent.source" />
          <short value="Top-level device resource link" />
          <definition value="The link to the source Device that contains administrative device information such as manufacture, serial number, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.parent" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.parent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.parent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.parent">
          <path value="DeviceComponent.parent" />
          <short value="Parent resource link" />
          <definition value="The link to the parent resource. For example: Channel is linked to its VMD parent." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceComponent" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.operationalStatus" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.operationalStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.operationalStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.operationalStatus">
          <path value="DeviceComponent.operationalStatus" />
          <short value="Current operational status of the component, for example On, Off or Standby" />
          <definition value="The current operational status of the device. For example: On, Off, Standby, etc." />
          <comment value="OperationalStatus for the MDS, VMD, or Channel will be bound to a specific ValueSet that is defined in its profile." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceComponentOperationalStatus" />
            </extension>
            <strength value="extensible" />
            <description value="Codes representing the current status of the device - on, off, suspended, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/operational-status" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.parameterGroup" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.parameterGroup" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.parameterGroup" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.parameterGroup">
          <path value="DeviceComponent.parameterGroup" />
          <short value="Current supported parameter group" />
          <definition value="The parameter group supported by the current device component that is based on some nomenclature, e.g. cardiovascular." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceComponentParameterGroup" />
            </extension>
            <strength value="extensible" />
            <description value="Codes identifying groupings of parameters; e.g. Cardiovascular." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/parameter-group" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.measurementPrinciple" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.measurementPrinciple" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.measurementPrinciple" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.measurementPrinciple">
          <path value="DeviceComponent.measurementPrinciple" />
          <short value="other | chemical | electrical | impedance | nuclear | optical | thermal | biological | mechanical | acoustical | manual+" />
          <definition value="The physical principle of the measurement. For example: thermal, chemical, acoustical, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MeasmntPrinciple" />
            </extension>
            <strength value="required" />
            <description value="Different measurement principle supported by the device." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/measurement-principle" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.productionSpecification" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.productionSpecification" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.productionSpecification" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.productionSpecification">
          <path value="DeviceComponent.productionSpecification" />
          <short value="Specification details such as Component Revisions, or Serial Numbers" />
          <definition value="The production specification such as component revision, serial number, etc." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.productionSpecification.specType" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.productionSpecification.specType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.productionSpecification.specType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.productionSpecification.specType">
          <path value="DeviceComponent.productionSpecification.specType" />
          <short value="Type or kind of production specification, for example serial number or software revision" />
          <definition value="The specification type, such as, serial number, part number, hardware revision, software revision, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceSpecificationSpecType" />
            </extension>
            <strength value="extensible" />
            <description value="Codes for device specification types such as serial number, part number, hardware revision, software revision, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/specification-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.productionSpecification.componentId" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.productionSpecification.componentId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.productionSpecification.componentId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.productionSpecification.componentId">
          <path value="DeviceComponent.productionSpecification.componentId" />
          <short value="Internal component unique identification" />
          <definition value="The internal component unique identification. This is a provision for manufacture specific standard components using a private OID. 11073-10101 has a partition for private OID semantic that the manufacturer can make use of." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.productionSpecification.productionSpec" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.productionSpecification.productionSpec" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.productionSpecification.productionSpec" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.productionSpecification.productionSpec">
          <path value="DeviceComponent.productionSpecification.productionSpec" />
          <short value="A printable string defining the component" />
          <definition value="The printable string defining the component." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceComponent.languageCode" />
    <resource>
      <DataElement>
        <id value="DeviceComponent.languageCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceComponent.languageCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceComponent.languageCode">
          <path value="DeviceComponent.languageCode" />
          <short value="Language code for the human-readable text strings produced by the device" />
          <definition value="The language code for the human-readable text string produced by the device. This language code will follow the IETF language tag. Example: en-US." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory">
          <path value="FamilyMemberHistory" />
          <short value="Information about patient's relatives, relevant for patient" />
          <definition value="Significant health events and conditions for a person related to the patient relevant in the context of care for the patient." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="fhs-2" />
            <severity value="error" />
            <human value="Can only have estimatedAge if age[x] is present" />
            <expression value="age.exists() or estimatedAge.empty()" />
            <xpath value="exists(*[starts-with(local-name(.), 'age')]) or not(exists(f:estimatedAge))" />
          </constraint>
          <constraint>
            <key value="fhs-3" />
            <severity value="error" />
            <human value="Not Done Reason can only be specified if NotDone is &quot;true&quot;" />
            <expression value="notDone or notDoneReason.exists().not()" />
            <xpath value="f:notDone/@value=true() or not(exists(f:notDoneReason))" />
          </constraint>
          <constraint>
            <key value="fhs-1" />
            <severity value="error" />
            <human value="Can have age[x] or born[x], but not both" />
            <expression value="age.empty() or born.empty()" />
            <xpath value="not (*[starts-with(local-name(.), 'age')] and *[starts-with(local-name(.), 'birth')])" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Not in scope for v2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=OBS, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.identifier" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.identifier">
          <path value="FamilyMemberHistory.identifier" />
          <short value="External Id(s) for this record" />
          <definition value="This records identifiers associated with this family member history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." />
          <requirements value="Need to allow connection to a wider workflow." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.definition" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.definition">
          <path value="FamilyMemberHistory.definition" />
          <short value="Instantiates protocol or definition" />
          <definition value="A protocol or questionnaire that was adhered to in whole or in part by this event." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.status" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.status">
          <path value="FamilyMemberHistory.status" />
          <short value="partial | completed | entered-in-error | health-unknown" />
          <definition value="A code specifying the status of the record of the family history of a specific family member." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FamilyHistoryStatus" />
            </extension>
            <strength value="required" />
            <description value="A code that identifies the status of the family history record." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/history-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.notDone" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.notDone" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.notDone" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.notDone">
          <path value="FamilyMemberHistory.notDone" />
          <short value="The taking of a family member's history did not occur" />
          <definition value="If true, indicates the taking of an individual family member's history did not occur. The notDone element should not be used to document negated conditions, such as a family member that did not have a condition." />
          <comment value="This element is labeled as a modifier because it marks the family member history as a family member history that did not occur.  The more attributes are populated, the more constrained the negated statement is.  This notDone element is being evaluated and will likely be removed in a subsequent release." />
          <requirements value="Creating a FamilyMemberHistory where notDone is true is intended for situations where there's a need for a specific statement in the record about something not being done.  If the need is merely to indicate that a request wasn't fulfilled, that should be handled using Task." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".actionNegationInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.notDoneReason" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.notDoneReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.notDoneReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.notDoneReason">
          <path value="FamilyMemberHistory.notDoneReason" />
          <short value="subject-unknown | withheld | unable-to-obtain | deferred" />
          <definition value="Describes why the family member's history is absent." />
          <comment value="This notDoneReason element is being evaluated and will likely be replaced in a subsequent release (e.g. dataAbsentReason)." />
          <requirements value="This is a separate element to allow it to have a distinct binding from reasonCode." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="fhs-3" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FamilyHistoryNotDoneReason" />
            </extension>
            <strength value="example" />
            <description value="Codes describing the reason why a family member history was not done." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/history-not-done-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.patient" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.patient">
          <path value="FamilyMemberHistory.patient" />
          <short value="Patient history is about" />
          <definition value="The person who this history concerns." />
          <alias value="Proband" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.date" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.date">
          <path value="FamilyMemberHistory.date" />
          <short value="When history was captured/updated" />
          <definition value="The date (and possibly time) when the family member history was taken." />
          <comment value="This should be captured even if the same as the date on the List aggregating the full family history." />
          <requirements value="Allows determination of how current the summary is." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.name" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.name">
          <path value="FamilyMemberHistory.name" />
          <short value="The family member described" />
          <definition value="This will either be a name or a description; e.g. &quot;Aunt Susan&quot;, &quot;my cousin with the red hair&quot;." />
          <requirements value="Allows greater ease in ensuring the same person is being talked about." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.relationship" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.relationship" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.relationship" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.relationship">
          <path value="FamilyMemberHistory.relationship" />
          <short value="Relationship to the subject" />
          <definition value="The type of relationship this person has to the patient (father, mother, brother etc.)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FamilialRelationship" />
            </extension>
            <strength value="example" />
            <description value="The nature of the relationship between the patient and the related person being described in the family member history." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-FamilyMember" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.gender" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.gender" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.gender" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.gender">
          <path value="FamilyMemberHistory.gender" />
          <short value="male | female | other | unknown" />
          <definition value="Administrative Gender - the gender that the relative is considered to have for administration and record keeping purposes." />
          <requirements value="Not all relationship codes imply gender and the relative's gender can be relevant for risk assessments." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdministrativeGender" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The gender of a person used for administrative purposes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.bornX" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.bornX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.bornX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.born[x]">
          <path value="FamilyMemberHistory.born[x]" />
          <short value="(approximate) date of birth" />
          <definition value="The actual or approximate date of birth of the relative." />
          <requirements value="Allows calculation of the relative's age." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="string" />
          </type>
          <condition value="fhs-1" />
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=LIV, determinerCode=INSTANCE]. birthDate (could be URG)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.ageX" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.ageX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.ageX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.age[x]">
          <path value="FamilyMemberHistory.age[x]" />
          <short value="(approximate) age" />
          <definition value="The age of the relative at the time the family member history is recorded." />
          <comment value="use estimatedAge to indicate whether the age is actual or not." />
          <requirements value="While age can be calculated from date of birth, sometimes recording age directly is more natureal for clinicians." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="string" />
          </type>
          <condition value="fhs-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=SBJ].act[classCode=OBS,moodCode=EVN, code=&quot;age&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.estimatedAge" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.estimatedAge" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.estimatedAge" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.estimatedAge">
          <path value="FamilyMemberHistory.estimatedAge" />
          <short value="Age is estimated?" />
          <definition value="If true, indicates that the age value specified is an estimated value." />
          <comment value="This element is labeled as a modifier because the fact tha age is estimated can/should change the results of any algorithm that calculates based on the specified age." />
          <requirements value="Clinicians often prefer to specify an estimaged age rather than an age range." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <meaningWhenMissing value="It is unknown whether the age is an estimate or not" />
          <condition value="fhs-2" />
          <isModifier value="true" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.deceasedX" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.deceasedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.deceasedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.deceased[x]">
          <path value="FamilyMemberHistory.deceased[x]" />
          <short value="Dead? How old/when?" />
          <definition value="Deceased flag or the actual or approximate age of the relative at the time of death for the family member history record." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=LIV, determinerCode=INSTANCE].deceasedInd, deceasedDate (could be URG)  For age, you'd hang an observation off the role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.reasonCode" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.reasonCode">
          <path value="FamilyMemberHistory.reasonCode" />
          <short value="Why was family member history performed?" />
          <definition value="Describes why the family member history occurred in coded or textual form." />
          <comment value="Textual reasons can be caprued using reasonCode.text." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FamilyHistoryReason" />
            </extension>
            <strength value="example" />
            <description value="Codes indicating why the family member history was done." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-findings" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.reasonReference" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.reasonReference">
          <path value="FamilyMemberHistory.reasonReference" />
          <short value="Why was family member history performed?" />
          <definition value="Indicates a Condition, Observation, AllergyIntolerance, or QuestionnaireResponse that justifies this family member history event." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.note" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.note">
          <path value="FamilyMemberHistory.note" />
          <short value="General note about related person" />
          <definition value="This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.condition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.condition">
          <path value="FamilyMemberHistory.condition" />
          <short value="Condition that the related person had" />
          <definition value="The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition." />
          <comment value="If none of the conditions listed have an outcome of &quot;death&quot; specified, that indicates that none of the specified conditions are known to have been the primary cause of death." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION, value&lt;Diagnosis]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition.code" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.condition.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.condition.code">
          <path value="FamilyMemberHistory.condition.code" />
          <short value="Condition suffered by relation" />
          <definition value="The actual condition specified. Could be a coded condition (like MI or Diabetes) or a less specific string like 'cancer' depending on how much is known about the condition and the capabilities of the creating system." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionCode" />
            </extension>
            <strength value="example" />
            <description value="Identification of the Condition or diagnosis." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition.outcome" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.condition.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.condition.outcome">
          <path value="FamilyMemberHistory.condition.outcome" />
          <short value="deceased | permanent disability | etc." />
          <definition value="Indicates what happened as a result of this condition.  If the condition resulted in death, deceased date is captured on the relation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionOutcome" />
            </extension>
            <strength value="example" />
            <description value="The result of the condition for the patient; e.g. death, permanent disability, temporary disability, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-outcome" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=OUTC)].target[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition.onsetX" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.condition.onsetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition.onsetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.condition.onset[x]">
          <path value="FamilyMemberHistory.condition.onset[x]" />
          <short value="When condition first manifested" />
          <definition value="Either the age of onset, range of approximate age or descriptive string can be recorded.  For conditions with multiple occurrences, this describes the first known occurrence." />
          <requirements value="Age of onset of a condition in relatives is predictive of risk for the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;Subject Age at measurement&quot;, value&lt;Diagnosis].value[@xsi:typeCode='TS' or 'IVL_TS']  Use originalText for string" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition.note" />
    <resource>
      <DataElement>
        <id value="FamilyMemberHistory.condition.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/FamilyMemberHistory.condition.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="FamilyMemberHistory.condition.note">
          <path value="FamilyMemberHistory.condition.note" />
          <short value="Extra information about condition" />
          <definition value="An area where general notes can be placed about this specific condition." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem" />
    <resource>
      <DataElement>
        <id value="ChargeItem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem">
          <path value="ChargeItem" />
          <short value="Item containing charge code(s) associated with the provision of healthcare provider products" />
          <definition value="The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="FT1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.support" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.identifier" />
    <resource>
      <DataElement>
        <id value="ChargeItem.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.identifier">
          <path value="ChargeItem.identifier" />
          <short value="Business Identifier for item" />
          <definition value="Identifiers assigned to this event performer or other systems." />
          <requirements value="Allows identification of the charge Item as it is known by various participating systems and in a way that remains consistent across servers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="FT1.2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.definition" />
    <resource>
      <DataElement>
        <id value="ChargeItem.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.definition">
          <path value="ChargeItem.definition" />
          <short value="Defining information about the code of this charge item" />
          <definition value="References the source of pricing information, rules of application for the code this ChargeItem uses." />
          <comment value="Target Resource is yet to be defined as a container that holds information about list prices and rules applicable to the charge item code. Once defined, change type back to Reference(Definition Type)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="false" />
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.status" />
    <resource>
      <DataElement>
        <id value="ChargeItem.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.status">
          <path value="ChargeItem.status" />
          <short value="planned | billable | not-billable | aborted | billed | entered-in-error | unknown" />
          <definition value="The current state of the ChargeItem." />
          <comment value="Unknown does not represent &quot;other&quot; - one of the defined statuses must apply.  Unknown is used when the authoring system is not sure what the current status is.&#xA;&#xA;This element is labeled as a modifier because the status contains the code entered-in-error that marks the charge item as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ChargeItemStatus" />
            </extension>
            <strength value="required" />
            <description value="Codes identifying the stage lifecycle stage of a ChargeItem" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/chargeitem-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.partOf" />
    <resource>
      <DataElement>
        <id value="ChargeItem.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.partOf">
          <path value="ChargeItem.partOf" />
          <short value="Part of referenced ChargeItem" />
          <definition value="ChargeItems can be grouped to larger ChargeItems covering the whole set." />
          <requirements value="E.g. Drug administration as part of a procedure, procedure as part of observation, etc." />
          <alias value="container" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ChargeItem" />
          </type>
          <isSummary value="false" />
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.code" />
    <resource>
      <DataElement>
        <id value="ChargeItem.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.code">
          <path value="ChargeItem.code" />
          <short value="A code that identifies the charge, like a billing code" />
          <definition value="A code that identifies the charge, like a billing code." />
          <alias value="type" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ChargeItemCode" />
            </extension>
            <strength value="example" />
            <description value="Example set of codes that can be used for billing purposes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/chargeitem-billingcodes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.code" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="FT1.7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.subject" />
    <resource>
      <DataElement>
        <id value="ChargeItem.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.subject">
          <path value="ChargeItem.subject" />
          <short value="Individual service was done for/to" />
          <definition value="The individual or set of individuals the action is being or was performed on." />
          <requirements value="Links the event to the Patient context." />
          <alias value="patient" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PAT in proximity to FT1 segment" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.context" />
    <resource>
      <DataElement>
        <id value="ChargeItem.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.context">
          <path value="ChargeItem.context" />
          <short value="Encounter / Episode associated with event" />
          <definition value="The encounter or episode of care that establishes the context for this event." />
          <requirements value="Links the request to the Encounter context." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.context" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PV1 in proximity to FT1 segment" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=COMP].source[classCode&lt;=PCPR, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.occurrenceX" />
    <resource>
      <DataElement>
        <id value="ChargeItem.occurrenceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.occurrenceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.occurrence[x]">
          <path value="ChargeItem.occurrence[x]" />
          <short value="When the charged service was applied" />
          <definition value="Date/time(s) or duration when the charged service was applied." />
          <comment value="The list of types may be constrained as appropriate for the type of charge item." />
          <alias value="timing" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.participant" />
    <resource>
      <DataElement>
        <id value="ChargeItem.participant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.participant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.participant">
          <path value="ChargeItem.participant" />
          <short value="Who performed charged service" />
          <definition value="Indicates who or what performed or participated in the charged service." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="false" />
          <mapping>
            <identity value="v2" />
            <map value="EVN.5 or by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.participant.role" />
    <resource>
      <DataElement>
        <id value="ChargeItem.participant.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.participant.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.participant.role">
          <path value="ChargeItem.participant.role" />
          <short value="What type of performance was done" />
          <definition value="Describes the type of performance or participation(e.g. primary surgeon, anaesthesiologiest, etc.)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="false" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ChargeItemPerformerRole" />
            </extension>
            <strength value="example" />
            <description value="Codes describing the types of functional roles performers can take on when performing events" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/performer-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation.functionCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.participant.actor" />
    <resource>
      <DataElement>
        <id value="ChargeItem.participant.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.participant.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.participant.actor">
          <path value="ChargeItem.participant.actor" />
          <short value="Individual who was performing" />
          <definition value="The device, practitioner, etc. who performed or participated in the service." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="false" />
          <mapping>
            <identity value="v2" />
            <map value="EVN.5 or by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.performingOrganization" />
    <resource>
      <DataElement>
        <id value="ChargeItem.performingOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.performingOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.performingOrganization">
          <path value="ChargeItem.performingOrganization" />
          <short value="Organization providing the charged sevice" />
          <definition value="The organization requesting the service." />
          <comment value="Practitioners and Devices can be associated with multiple organizations. It has to be made clear, on behalf of which Organization the services have been rendered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="false" />
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.requestingOrganization" />
    <resource>
      <DataElement>
        <id value="ChargeItem.requestingOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.requestingOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.requestingOrganization">
          <path value="ChargeItem.requestingOrganization" />
          <short value="Organization requesting the charged service" />
          <definition value="The organization performing the service." />
          <comment value="The rendered Service may not be associated with a Request. It has to be made clear, ob which Organization's Request, the services have been rendered. (In many cases, this may just be the Department associated with the Encounter.location)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="false" />
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.quantity" />
    <resource>
      <DataElement>
        <id value="ChargeItem.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.quantity">
          <path value="ChargeItem.quantity" />
          <short value="Quantity of which the charge item has been serviced" />
          <definition value="Quantity of which the charge item has been serviced." />
          <comment value="In many cases this may just be a value, if the underlying units are implicit in the definition of the charge item code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="FT1.10" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.bodysite" />
    <resource>
      <DataElement>
        <id value="ChargeItem.bodysite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.bodysite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.bodysite">
          <path value="ChargeItem.bodysite" />
          <short value="Anatomical location, if relevant" />
          <definition value="The anatomical location where the related service has been applied." />
          <comment value="Only used if not implicit in code found in Condition.code. 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." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".targetBodySiteCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.factorOverride" />
    <resource>
      <DataElement>
        <id value="ChargeItem.factorOverride" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.factorOverride" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.factorOverride">
          <path value="ChargeItem.factorOverride" />
          <short value="Factor overriding the associated rules" />
          <definition value="Factor overriding the factor determined by the rules associated with the code." />
          <comment value="There is no reason to carry the factor in the instance of a ChargeItem unless special circumstances require a manual override. The factors are usually defined by a set of rules in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overriden." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="false" />
          <mapping>
            <identity value="v2" />
            <map value="FT1.26" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.priceOverride" />
    <resource>
      <DataElement>
        <id value="ChargeItem.priceOverride" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.priceOverride" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.priceOverride">
          <path value="ChargeItem.priceOverride" />
          <short value="Price overriding the associated rules" />
          <definition value="Total price of the charge overriding the list price associated with the code." />
          <comment value="There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overriden." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <isSummary value="false" />
          <mapping>
            <identity value="v2" />
            <map value="FT1.22" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.overrideReason" />
    <resource>
      <DataElement>
        <id value="ChargeItem.overrideReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.overrideReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.overrideReason">
          <path value="ChargeItem.overrideReason" />
          <short value="Reason for overriding the list price/factor" />
          <definition value="If the list price or the rule based factor associated with the code is overridden, this attribute can capture a text to indicate the  reason for this action." />
          <comment value="Derived Profiles may chose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.enterer" />
    <resource>
      <DataElement>
        <id value="ChargeItem.enterer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.enterer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.enterer">
          <path value="ChargeItem.enterer" />
          <short value="Individual who was entering" />
          <definition value="The device, practitioner, etc. who entered the charge item." />
          <comment value="The enterer is also te person considered responsible for factor/priceOverrides if applicable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="EVN.5 or by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.enteredDate" />
    <resource>
      <DataElement>
        <id value="ChargeItem.enteredDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.enteredDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.enteredDate">
          <path value="ChargeItem.enteredDate" />
          <short value="Date the charge item was entered" />
          <definition value="Date the charge item was entered." />
          <comment value="The actual date when the service associated with the charge has been rendered is captured in occurrence[x]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.reason" />
    <resource>
      <DataElement>
        <id value="ChargeItem.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.reason">
          <path value="ChargeItem.reason" />
          <short value="Why was the charged  service rendered?" />
          <definition value="Describes why the event occurred in coded or textual form." />
          <comment value="If the application of the charge item requires a reason to be given, it can be captured here. Textual reasons can be captured using reasonCode.text." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="false" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ChargeItemReason" />
            </extension>
            <strength value="example" />
            <description value="Example binding for reason" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/icd-10" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.reasonCodeableConcept" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="EVN.4 or by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.service" />
    <resource>
      <DataElement>
        <id value="ChargeItem.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.service">
          <path value="ChargeItem.service" />
          <short value="Which rendered service is being charged?" />
          <definition value="Indicated the rendered service that caused this charge." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationDispense" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/SupplyDelivery" />
          </type>
          <isSummary value="false" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.reasonReference" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="EVN.4 or by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.account" />
    <resource>
      <DataElement>
        <id value="ChargeItem.account" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.account" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.account">
          <path value="ChargeItem.account" />
          <short value="Account to place this charge" />
          <definition value="Account into which this ChargeItems belongs." />
          <comment value="Systems posting the ChargeItems may not always be able to determine, which accounts the Items need to be places into. It is up to the potprocessing Financial System to apply internal rules to decide based on the Encounter/EpisodeOfCare/Patient/Coverage context and the type of ChargeItem, which Account is appropriate." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Account" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.note" />
    <resource>
      <DataElement>
        <id value="ChargeItem.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.note">
          <path value="ChargeItem.note" />
          <short value="Comments made about the ChargeItem" />
          <definition value="Comments made about the event by the performer, subject or other participants." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <isSummary value="false" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="NTE" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ChargeItem.supportingInformation" />
    <resource>
      <DataElement>
        <id value="ChargeItem.supportingInformation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ChargeItem.supportingInformation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ChargeItem.supportingInformation">
          <path value="ChargeItem.supportingInformation" />
          <short value="Further information supporting the this charge" />
          <definition value="Further information supporting the this charge." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter" />
    <resource>
      <DataElement>
        <id value="Encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter">
          <path value="Encounter" />
          <short value="An interaction during which services are provided to the patient" />
          <definition value="An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient." />
          <alias value="Visit" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Encounter[@moodCode='EVN']" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.encounter" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.identifier" />
    <resource>
      <DataElement>
        <id value="Encounter.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.identifier">
          <path value="Encounter.identifier" />
          <short value="Identifier(s) by which this encounter is known" />
          <definition value="Identifier(s) by which this encounter is known." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PV1-19" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.status" />
    <resource>
      <DataElement>
        <id value="Encounter.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.status">
          <path value="Encounter.status" />
          <short value="planned | arrived | triaged | in-progress | onleave | finished | cancelled +" />
          <definition value="planned | arrived | triaged | in-progress | onleave | finished | cancelled +." />
          <comment value="Note that internal business rules will detemine the appropraite transitions that may occur between statuses (and also classes).&#xA;&#xA;This element is labeled as a modifier because the status contains codes that mark the encounter as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EncounterStatus" />
            </extension>
            <strength value="required" />
            <description value="Current state of the encounter" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.statusHistory" />
    <resource>
      <DataElement>
        <id value="Encounter.statusHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.statusHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.statusHistory">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="StatusHistory" />
          </extension>
          <path value="Encounter.statusHistory" />
          <short value="List of past encounter statuses" />
          <definition value="The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them." />
          <comment value="The current status is always found in the current version of the resource, not the status history." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.statusHistory.status" />
    <resource>
      <DataElement>
        <id value="Encounter.statusHistory.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.statusHistory.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.statusHistory.status">
          <path value="Encounter.statusHistory.status" />
          <short value="planned | arrived | triaged | in-progress | onleave | finished | cancelled +" />
          <definition value="planned | arrived | triaged | in-progress | onleave | finished | cancelled +." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EncounterStatus" />
            </extension>
            <strength value="required" />
            <description value="Current state of the encounter" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.statusHistory.period" />
    <resource>
      <DataElement>
        <id value="Encounter.statusHistory.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.statusHistory.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.statusHistory.period">
          <path value="Encounter.statusHistory.period" />
          <short value="The time that the episode was in the specified status" />
          <definition value="The time that the episode was in the specified status." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.class" />
    <resource>
      <DataElement>
        <id value="Encounter.class" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.class" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.class">
          <path value="Encounter.class" />
          <short value="inpatient | outpatient | ambulatory | emergency +" />
          <definition value="inpatient | outpatient | ambulatory | emergency +." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EncounterClass" />
            </extension>
            <strength value="extensible" />
            <description value="Classification of the encounter" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActEncounterCode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PV1-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.classHistory" />
    <resource>
      <DataElement>
        <id value="Encounter.classHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.classHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.classHistory">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ClassHistory" />
          </extension>
          <path value="Encounter.classHistory" />
          <short value="List of past encounter classes" />
          <definition value="The class history permits the tracking of the encounters transitions without needing to go  through the resource history.&#xA;&#xA;This would be used for a case where an admission starts of as an emergency encounter, then transisions into an inpatient scenario. Doing this and not restarting a new encounter ensures that any lab/diagnostic results can more easily follow the patient and not require re-processing and not get lost or cancelled during a kindof discharge from emergency to inpatient." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.classHistory.class" />
    <resource>
      <DataElement>
        <id value="Encounter.classHistory.class" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.classHistory.class" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.classHistory.class">
          <path value="Encounter.classHistory.class" />
          <short value="inpatient | outpatient | ambulatory | emergency +" />
          <definition value="inpatient | outpatient | ambulatory | emergency +." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EncounterClass" />
            </extension>
            <strength value="extensible" />
            <description value="Classification of the encounter" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActEncounterCode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.classHistory.period" />
    <resource>
      <DataElement>
        <id value="Encounter.classHistory.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.classHistory.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.classHistory.period">
          <path value="Encounter.classHistory.period" />
          <short value="The time that the episode was in the specified class" />
          <definition value="The time that the episode was in the specified class." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.type" />
    <resource>
      <DataElement>
        <id value="Encounter.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.type">
          <path value="Encounter.type" />
          <short value="Specific type of encounter" />
          <definition value="Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)." />
          <comment value="Since there are many ways to further classify encounters, this element is 0..*." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EncounterType" />
            </extension>
            <strength value="example" />
            <description value="The type of encounter" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PV1-4 / PV1-18" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.priority" />
    <resource>
      <DataElement>
        <id value="Encounter.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.priority">
          <path value="Encounter.priority" />
          <short value="Indicates the urgency of the encounter" />
          <definition value="Indicates the urgency of the encounter." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Priority" />
            </extension>
            <strength value="example" />
            <description value="Indicates the urgency of the encounter." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActPriority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PV2-25" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".priorityCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.subject" />
    <resource>
      <DataElement>
        <id value="Encounter.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.subject">
          <path value="Encounter.subject" />
          <short value="The patient ro group present at the encounter" />
          <definition value="The patient ro group present at the encounter." />
          <comment value="While the encounter is always about the patient, the patient may not actually be known in all contexts of use, and there may be a group of patients that could be anonymous (such as in a group therapy for Alcoholics Anonymous - where the recording of the encounter could be used for billing on the number of people/staff and not important to the context of the specific patients) or alternately in veterinary care a herd of sheep receiving treatment (where the animals are not individually tracked)." />
          <alias value="patient" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ]/role[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.episodeOfCare" />
    <resource>
      <DataElement>
        <id value="Encounter.episodeOfCare" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.episodeOfCare" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.episodeOfCare">
          <path value="Encounter.episodeOfCare" />
          <short value="Episode(s) of care that this encounter should be recorded against" />
          <definition value="Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem.  The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PV1-54, PV1-53" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.incomingReferral" />
    <resource>
      <DataElement>
        <id value="Encounter.incomingReferral" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.incomingReferral" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.incomingReferral">
          <path value="Encounter.incomingReferral" />
          <short value="The ReferralRequest that initiated this encounter" />
          <definition value="The referral request this encounter satisfies (incoming referral)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".reason.ClinicalDocument" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.participant" />
    <resource>
      <DataElement>
        <id value="Encounter.participant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.participant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.participant">
          <path value="Encounter.participant" />
          <short value="List of participants involved in the encounter" />
          <definition value="The list of people responsible for providing the service." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ROL" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PFM]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.participant.type" />
    <resource>
      <DataElement>
        <id value="Encounter.participant.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.participant.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.participant.type">
          <path value="Encounter.participant.type" />
          <short value="Role of participant in encounter" />
          <definition value="Role of participant in encounter." />
          <comment value="The participant type indicates how an individual partitipates in an encounter. It includes non-practitioner participants, and for practitioners this is to describe the action type in the context of this encounter (e.g. Admitting Dr, Attending Dr, Translator, Consulting Dr). This is different to the practitioner roles which are functional roles, derived from terms of employment, education, licensing, etc." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ParticipantType" />
            </extension>
            <strength value="extensible" />
            <description value="Role of participant in encounter" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-participant-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="ROL-3 (or maybe PRT-4)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".functionCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.participant.period" />
    <resource>
      <DataElement>
        <id value="Encounter.participant.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.participant.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.participant.period">
          <path value="Encounter.participant.period" />
          <short value="Period of time during the encounter that the participant participated" />
          <definition value="The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="ROL-5, ROL-6 (or maybe PRT-5)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".time" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.participant.individual" />
    <resource>
      <DataElement>
        <id value="Encounter.participant.individual" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.participant.individual" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.participant.individual">
          <path value="Encounter.participant.individual" />
          <short value="Persons involved in the encounter other than the patient" />
          <definition value="Persons involved in the encounter other than the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ROL-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.appointment" />
    <resource>
      <DataElement>
        <id value="Encounter.appointment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.appointment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.appointment">
          <path value="Encounter.appointment" />
          <short value="The appointment that scheduled this encounter" />
          <definition value="The appointment that scheduled this encounter." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Appointment" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SCH-1 / SCH-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.period" />
    <resource>
      <DataElement>
        <id value="Encounter.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.period">
          <path value="Encounter.period" />
          <short value="The start and end time of the encounter" />
          <definition value="The start and end time of the encounter." />
          <comment value="If not (yet) known, the end of the Period may be omitted." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PV1-44, PV1-45" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime (low &amp; high)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.length" />
    <resource>
      <DataElement>
        <id value="Encounter.length" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.length" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.length">
          <path value="Encounter.length" />
          <short value="Quantity of time the encounter lasted (less time absent)" />
          <definition value="Quantity of time the encounter lasted. This excludes the time during leaves of absence." />
          <comment value="May differ from the time the Encounter.period lasted because of leave of absence." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Duration" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".lengthOfStayQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.reason" />
    <resource>
      <DataElement>
        <id value="Encounter.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.reason">
          <path value="Encounter.reason" />
          <short value="Reason the encounter takes place (code)" />
          <definition value="Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis." />
          <comment value="For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis)." />
          <alias value="Indication" />
          <alias value="Admission diagnosis" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EncounterReason" />
            </extension>
            <strength value="preferred" />
            <description value="Reason why the encounter takes place." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.diagnosis" />
    <resource>
      <DataElement>
        <id value="Encounter.diagnosis" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.diagnosis" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.diagnosis">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Diagnosis" />
          </extension>
          <path value="Encounter.diagnosis" />
          <short value="The list of diagnosis relevant to this encounter" />
          <definition value="The list of diagnosis relevant to this encounter." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.diagnosis.condition" />
    <resource>
      <DataElement>
        <id value="Encounter.diagnosis.condition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.diagnosis.condition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.diagnosis.condition">
          <path value="Encounter.diagnosis.condition" />
          <short value="Reason the encounter takes place (resource)" />
          <definition value="Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure." />
          <comment value="For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis)." />
          <alias value="Admission diagnosis" />
          <alias value="discharge diagnosis" />
          <alias value="indication" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.diagnosis.role" />
    <resource>
      <DataElement>
        <id value="Encounter.diagnosis.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.diagnosis.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.diagnosis.role">
          <path value="Encounter.diagnosis.role" />
          <short value="Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …)" />
          <definition value="Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosisRole" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="preferred" />
            <description value="The type of diagnosis this condition represents" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/diagnosis-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.diagnosis.rank" />
    <resource>
      <DataElement>
        <id value="Encounter.diagnosis.rank" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.diagnosis.rank" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.diagnosis.rank">
          <path value="Encounter.diagnosis.rank" />
          <short value="Ranking of the diagnosis (for each role type)" />
          <definition value="Ranking of the diagnosis (for each role type)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].priority" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.account" />
    <resource>
      <DataElement>
        <id value="Encounter.account" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.account" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.account">
          <path value="Encounter.account" />
          <short value="The set of accounts that may be used for billing for this Encounter" />
          <definition value="The set of accounts that may be used for billing for this Encounter." />
          <comment value="The billing system may choose to allocate billable items associated with the Encounter to different referenced Accounts based on internal business rules." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Account" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".pertains.A_Account" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization">
          <path value="Encounter.hospitalization" />
          <short value="Details about the admission to a healthcare service" />
          <definition value="Details about the admission to a healthcare service." />
          <comment value="An Encounter may cover more than just the inpatient stay. Contexts such as outpatients, community clinics, and aged care facilities are also included.&#xD;&#xD;The duration recorded in the period of this encounter covers the entire scope of this hospitalization record." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.preAdmissionIdentifier" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization.preAdmissionIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.preAdmissionIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization.preAdmissionIdentifier">
          <path value="Encounter.hospitalization.preAdmissionIdentifier" />
          <short value="Pre-admission identifier" />
          <definition value="Pre-admission identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PV1-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.origin" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization.origin" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.origin" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization.origin">
          <path value="Encounter.hospitalization.origin" />
          <short value="The location from which the patient came before admission" />
          <definition value="The location from which the patient came before admission." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=ORG].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.admitSource" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization.admitSource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.admitSource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization.admitSource">
          <path value="Encounter.hospitalization.admitSource" />
          <short value="From where patient was admitted (physician referral, transfer)" />
          <definition value="From where patient was admitted (physician referral, transfer)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdmitSource" />
            </extension>
            <strength value="preferred" />
            <description value="From where the patient was admitted." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-admit-source" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PV1-14" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".admissionReferralSourceCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.reAdmission" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization.reAdmission" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.reAdmission" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization.reAdmission">
          <path value="Encounter.hospitalization.reAdmission" />
          <short value="The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission" />
          <definition value="Whether this hospitalization is a readmission and why if known." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReAdmissionType" />
            </extension>
            <strength value="example" />
            <description value="The reason for re-admission of this hospitalization encounter." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v2-0092" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PV1-13" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.dietPreference" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization.dietPreference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.dietPreference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization.dietPreference">
          <path value="Encounter.hospitalization.dietPreference" />
          <short value="Diet preferences reported by the patient" />
          <definition value="Diet preferences reported by the patient." />
          <comment value="For example a patient may request both a dairy-free and nut-free diet preference (not mutually exclusive)." />
          <requirements value="Used to track patient's diet restrictions and/or preference. For a complete description of the nutrition needs of a patient during their stay, one should use the nutritionOrder resource which links to Encounter." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PatientDiet" />
            </extension>
            <strength value="example" />
            <description value="Medical, cultural or ethical food preferences to help with catering requirements." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-diet" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PV1-38" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=EVN, code=&quot;diet&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.specialCourtesy" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization.specialCourtesy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.specialCourtesy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization.specialCourtesy">
          <path value="Encounter.hospitalization.specialCourtesy" />
          <short value="Special courtesies (VIP, board member)" />
          <definition value="Special courtesies (VIP, board member)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Courtesies" />
            </extension>
            <strength value="preferred" />
            <description value="Special courtesies" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-special-courtesy" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PV1-16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".specialCourtesiesCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.specialArrangement" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization.specialArrangement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.specialArrangement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization.specialArrangement">
          <path value="Encounter.hospitalization.specialArrangement" />
          <short value="Wheelchair, translator, stretcher, etc." />
          <definition value="Any special requests that have been made for this hospitalization encounter, such as the provision of specific equipment or other things." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Arrangements" />
            </extension>
            <strength value="preferred" />
            <description value="Special arrangements" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-special-arrangements" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PV1-15 / OBR-30 / OBR-43" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".specialArrangementCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.destination" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization.destination" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.destination" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization.destination">
          <path value="Encounter.hospitalization.destination" />
          <short value="Location to which the patient is discharged" />
          <definition value="Location to which the patient is discharged." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PV1-37" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=DST]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.dischargeDisposition" />
    <resource>
      <DataElement>
        <id value="Encounter.hospitalization.dischargeDisposition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.hospitalization.dischargeDisposition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.hospitalization.dischargeDisposition">
          <path value="Encounter.hospitalization.dischargeDisposition" />
          <short value="Category or kind of location after discharge" />
          <definition value="Category or kind of location after discharge." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DischargeDisp" />
            </extension>
            <strength value="example" />
            <description value="Discharge Disposition" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-discharge-disposition" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PV1-36" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".dischargeDispositionCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.location" />
    <resource>
      <DataElement>
        <id value="Encounter.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.location">
          <path value="Encounter.location" />
          <short value="List of locations where the patient has been" />
          <definition value="List of locations where  the patient has been during this encounter." />
          <comment value="Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type &quot;kind&quot; such as &quot;client's home&quot; and an encounter.class = &quot;virtual&quot;." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=LOC]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.location.location" />
    <resource>
      <DataElement>
        <id value="Encounter.location.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.location.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.location.location">
          <path value="Encounter.location.location" />
          <short value="Location the encounter takes place" />
          <definition value="The location where the encounter takes place." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.location.status" />
    <resource>
      <DataElement>
        <id value="Encounter.location.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.location.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.location.status">
          <path value="Encounter.location.status" />
          <short value="planned | active | reserved | completed" />
          <definition value="The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time." />
          <comment value="When the patient is no longer active at a location, then the period end date is entered, and the status may be changed to completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EncounterLocationStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the location." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-location-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".role.statusCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.location.period" />
    <resource>
      <DataElement>
        <id value="Encounter.location.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.location.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.location.period">
          <path value="Encounter.location.period" />
          <short value="Time period during which the patient was present at the location" />
          <definition value="Time period during which the patient was present at the location." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".time" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.serviceProvider" />
    <resource>
      <DataElement>
        <id value="Encounter.serviceProvider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.serviceProvider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.serviceProvider">
          <path value="Encounter.serviceProvider" />
          <short value="The custodian organization of this Encounter record" />
          <definition value="An organization that is in charge of maintaining the information of this Encounter (e.g. who maintains the report or the master service catalog item, etc.). This MAY be the same as the organization on the Patient record, however it could be different. This MAY not be not the Service Delivery Location's Organization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PV1-10 / PL.6  &amp; PL.1  (note: HL7 v2 definition is &quot;the treatment or type of surgery that the patient is scheduled to receive&quot;; seems slightly out of alignment with the concept name 'hospital service'. Would not trust that implementations apply this semantic by default)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".particiaption[typeCode=PFM].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Encounter.partOf" />
    <resource>
      <DataElement>
        <id value="Encounter.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Encounter.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Encounter.partOf">
          <path value="Encounter.partOf" />
          <short value="Another Encounter this encounter is part of" />
          <definition value="Another Encounter of which this encounter is a part of (administratively or in time)." />
          <comment value="This is also used for associating a child's encounter back to the mother's encounter.&#xD;&#xD;Refer to the Notes section in the Patient resource for further details." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance" />
    <resource>
      <DataElement>
        <id value="Substance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance">
          <path value="Substance" />
          <short value="A homogeneous material with a definite composition" />
          <definition value="A homogeneous material with a definite composition." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Material" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:Substance rdfs:subClassOf   rim:Entity, [      a owl:Restriction;     owl:onProperty  rim:Act.classCode;     owl:allValuesFrom  cs:EntityClass\#MAT   ]." />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.entity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.identifier" />
    <resource>
      <DataElement>
        <id value="Substance.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.identifier">
          <path value="Substance.identifier" />
          <short value="Unique identifier" />
          <definition value="Unique identifier for the substance." />
          <comment value="This identifier is associated with the kind of substance in contrast to the  Substance.instance.identifier which is associated with the package/container." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.status" />
    <resource>
      <DataElement>
        <id value="Substance.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.status">
          <path value="Substance.status" />
          <short value="active | inactive | entered-in-error" />
          <definition value="A code to indicate if the substance is actively used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRSubstanceStatus" />
            </extension>
            <strength value="required" />
            <description value="A code to indicate if the substance is actively used" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/substance-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.category" />
    <resource>
      <DataElement>
        <id value="Substance.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.category">
          <path value="Substance.category" />
          <short value="What class/type of substance this is" />
          <definition value="A code that classifies the general type of substance.  This is used  for searching, sorting and display purposes." />
          <comment value="The level of granularity is defined by the category concepts in the value set.   More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in Substance.code." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SubstanceCategory" />
            </extension>
            <strength value="extensible" />
            <description value="Category or classification of substance" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/substance-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.code" />
    <resource>
      <DataElement>
        <id value="Substance.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.code">
          <path value="Substance.code" />
          <short value="What substance this is" />
          <definition value="A code (or set of codes) that identify this substance." />
          <comment value="This could be a reference to an externally defined code.  It could also be a locally assigned code (e.g. a formulary),  optionally with translations to the standard drug codes." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SubstanceCode" />
            </extension>
            <strength value="example" />
            <description value="Substance codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/substance-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="orim" />
            <map value="fhir:Substance.code rdfs:subPropertyOf rim:Entity.code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.description" />
    <resource>
      <DataElement>
        <id value="Substance.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.description">
          <path value="Substance.description" />
          <short value="Textual description of the substance, comments" />
          <definition value="A description of the substance - its appearance, handling requirements, and other usage notes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".player.desc" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.instance" />
    <resource>
      <DataElement>
        <id value="Substance.instance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.instance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.instance">
          <path value="Substance.instance" />
          <short value="If this describes a specific package/container of the substance" />
          <definition value="Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <meaningWhenMissing value="If this element is not present, then the substance resource describes a kind of substance" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".player.determinerCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.instance.identifier" />
    <resource>
      <DataElement>
        <id value="Substance.instance.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.instance.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.instance.identifier">
          <path value="Substance.instance.identifier" />
          <short value="Identifier of the package/container" />
          <definition value="Identifier associated with the package/container (usually a label affixed directly)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.instance.expiry" />
    <resource>
      <DataElement>
        <id value="Substance.instance.expiry" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.instance.expiry" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.instance.expiry">
          <path value="Substance.instance.expiry" />
          <short value="When no longer valid to use" />
          <definition value="When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".expiryTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.instance.quantity" />
    <resource>
      <DataElement>
        <id value="Substance.instance.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.instance.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.instance.quantity">
          <path value="Substance.instance.quantity" />
          <short value="Amount of substance in the package" />
          <definition value="The amount of the substance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".player.quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.ingredient" />
    <resource>
      <DataElement>
        <id value="Substance.ingredient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.ingredient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.ingredient">
          <path value="Substance.ingredient" />
          <short value="Composition information about the substance" />
          <definition value="A substance can be composed of other substances." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".player.scopesRole[classCode=INGR]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.ingredient.quantity" />
    <resource>
      <DataElement>
        <id value="Substance.ingredient.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.ingredient.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.ingredient.quantity">
          <path value="Substance.ingredient.quantity" />
          <short value="Optional amount (concentration)" />
          <definition value="The amount of the ingredient in the substance - a concentration ratio." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Ratio" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Substance.ingredient.substanceX" />
    <resource>
      <DataElement>
        <id value="Substance.ingredient.substanceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Substance.ingredient.substanceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Substance.ingredient.substance[x]">
          <path value="Substance.ingredient.substance[x]" />
          <short value="A component of the substance" />
          <definition value="Another substance that is a component of this substance." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SubstanceIngredient" />
            </extension>
            <strength value="example" />
            <description value="Substance Ingredient codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/substance-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter" />
    <resource>
      <DataElement>
        <id value="SearchParameter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter">
          <path value="SearchParameter" />
          <short value="Search Parameter for a resource" />
          <definition value="A search parameter that defines a named search item that can be used to search/filter on a resource." />
          <comment value="In FHIR, search is not performed directly on a resource (by XML or JSON path), but on a named parameter that maps into the resource content." />
          <min value="1" />
          <max value="1" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="spd-1" />
            <severity value="error" />
            <human value="If an xpath is present, there SHALL be an xpathUsage" />
            <expression value="xpath.empty() or xpathUsage.exists()" />
            <xpath value="not(exists(f:xpath)) or exists(f:xpathUsage)" />
          </constraint>
          <constraint>
            <key value="spd-2" />
            <severity value="error" />
            <human value="Search parameters can only have chain names when the search parameter type is 'reference'" />
            <expression value="chain.empty() or type = 'reference'" />
            <xpath value="not(exists(f:chain)) or (f:type/@value = 'reference')" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.behavior" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.url" />
    <resource>
      <DataElement>
        <id value="SearchParameter.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.url">
          <path value="SearchParameter.url" />
          <short value="Logical URI to reference this search parameter (globally unique)" />
          <definition value="An absolute URI that is used to identify this search parameter 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 search parameter is (or will be) published. The URL SHOULD include the major version of the search parameter. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the search parameter to be referenced by a single globally unique identifier. To allow referencing and reusing search parameter definitions under other names on operational systems (in case of name clash)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.version" />
    <resource>
      <DataElement>
        <id value="SearchParameter.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.version">
          <path value="SearchParameter.version" />
          <short value="Business version of the search parameter" />
          <definition value="The identifier that is used to identify this version of the search parameter when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the search parameter author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different search parameter instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the search parameter with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.name" />
    <resource>
      <DataElement>
        <id value="SearchParameter.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.name">
          <path value="SearchParameter.name" />
          <short value="Name for this search parameter (computer friendly)" />
          <definition value="A natural language name identifying the search parameter. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.status" />
    <resource>
      <DataElement>
        <id value="SearchParameter.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.status">
          <path value="SearchParameter.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this search parameter. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of search parameters that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired search parameter without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.experimental" />
    <resource>
      <DataElement>
        <id value="SearchParameter.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.experimental">
          <path value="SearchParameter.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this search parameter is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of search parameter that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental search parameter in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level search parameter." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.date" />
    <resource>
      <DataElement>
        <id value="SearchParameter.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.date">
          <path value="SearchParameter.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the search parameter was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the search parameter 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 search parameter. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.publisher" />
    <resource>
      <DataElement>
        <id value="SearchParameter.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.publisher">
          <path value="SearchParameter.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the search parameter." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the search parameter is the organization or individual primarily responsible for the maintenance and upkeep of the search parameter. 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 search parameter. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the search parameter.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.contact" />
    <resource>
      <DataElement>
        <id value="SearchParameter.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.contact">
          <path value="SearchParameter.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.useContext" />
    <resource>
      <DataElement>
        <id value="SearchParameter.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.useContext">
          <path value="SearchParameter.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate search parameter instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.jurisdiction" />
    <resource>
      <DataElement>
        <id value="SearchParameter.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.jurisdiction">
          <path value="SearchParameter.jurisdiction" />
          <short value="Intended jurisdiction for search parameter (if applicable)" />
          <definition value="A legal or geographic region in which the search parameter is intended to be used." />
          <comment value="It may be possible for the search parameter to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.purpose" />
    <resource>
      <DataElement>
        <id value="SearchParameter.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.purpose">
          <path value="SearchParameter.purpose" />
          <short value="Why this search parameter is defined" />
          <definition value="Explaination of why this search parameter is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the search parameter Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this search parameter." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.code" />
    <resource>
      <DataElement>
        <id value="SearchParameter.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.code">
          <path value="SearchParameter.code" />
          <short value="Code used in URL" />
          <definition value="The code used in the URL or the parameter name in a parameters resource for this search parameter." />
          <comment value="For maximum compatibility, use only lowercase ASCII characters." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.base" />
    <resource>
      <DataElement>
        <id value="SearchParameter.base" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.base" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.base">
          <path value="SearchParameter.base" />
          <short value="The resource type(s) this search parameter applies to" />
          <definition value="The base resource type(s) that this search parameter can be used against." />
          <comment value="A search parameter must always have at least one type. When search parameters have more than one resource, they can be used against any of the listed resource types, or in a cross-type search (see [Cross Resource Search](http.html#xres-search))." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.type" />
    <resource>
      <DataElement>
        <id value="SearchParameter.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.type">
          <path value="SearchParameter.type" />
          <short value="number | date | string | token | reference | composite | quantity | uri" />
          <definition value="The type of value a search parameter refers to, and how the content is interpreted." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SearchParamType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Data types allowed to be used for search parameters." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/search-param-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.derivedFrom" />
    <resource>
      <DataElement>
        <id value="SearchParameter.derivedFrom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.derivedFrom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.derivedFrom">
          <path value="SearchParameter.derivedFrom" />
          <short value="Original Definition for the search parameter" />
          <definition value="Where this search parameter is originally defined. If a derivedFrom is provided, then the details in the search parameter must be consistent with the definition from which it is defined. I.e. the parameter should have the same meaning, and (usually) the functionality should be a proper subset of the underlying search parameter." />
          <comment value="The intent of this is that a server can designate that it provides support for a search parameter defined in the specification itself (e.g.  [`value-quantity`](http://hl7.org/fhir/SearchParameter/Observation-value-quantity), but detail how it is supported by the server." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.description" />
    <resource>
      <DataElement>
        <id value="SearchParameter.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.description">
          <path value="SearchParameter.description" />
          <short value="Natural language description of the search parameter" />
          <definition value="A free text natural language description of the search parameter from a consumer's perspective. and how it used." />
          <comment value="This description can be used to capture details such as why the search parameter 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 search parameter 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="1" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.expression" />
    <resource>
      <DataElement>
        <id value="SearchParameter.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.expression">
          <path value="SearchParameter.expression" />
          <short value="FHIRPath expression that extracts the values" />
          <definition value="A FHIRPath expression that returns a set of elements for the search parameter." />
          <comment value="Note that the elements returned by the expression are sometimes complex elements where logic is required to determine quite how to handle them; e.g. CodeableConcepts may contain text and/or multiple codings, where the codings themselves contain a code and a system. For composite search parameters, the outcome of the expression must a collection of base elements from which the composites are derived." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="spd-1" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.xpath" />
    <resource>
      <DataElement>
        <id value="SearchParameter.xpath" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.xpath" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.xpath">
          <path value="SearchParameter.xpath" />
          <short value="XPath that extracts the values" />
          <definition value="An XPath expression that returns a set of elements for the search parameter." />
          <comment value="Note that the elements returned by the XPath are sometimes complex elements where logic is required to determine quite how to handle them; e.g. CodeableConcepts may contain text and/or multiple codings, where the codings themselves contain a code and a system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="spd-1" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.xpathUsage" />
    <resource>
      <DataElement>
        <id value="SearchParameter.xpathUsage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.xpathUsage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.xpathUsage">
          <path value="SearchParameter.xpathUsage" />
          <short value="normal | phonetic | nearby | distance | other" />
          <definition value="How the search parameter relates to the set of elements returned by evaluating the xpath query." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="spd-1" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="XPathUsageType" />
            </extension>
            <strength value="required" />
            <description value="How a search parameter relates to the set of elements returned by evaluating its xpath query." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/search-xpath-usage" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.target" />
    <resource>
      <DataElement>
        <id value="SearchParameter.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.target">
          <path value="SearchParameter.target" />
          <short value="Types of resource (if a resource reference)" />
          <definition value="Types of resource (if a resource is referenced)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.comparator" />
    <resource>
      <DataElement>
        <id value="SearchParameter.comparator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.comparator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.comparator">
          <path value="SearchParameter.comparator" />
          <short value="eq | ne | gt | lt | ge | le | sa | eb | ap" />
          <definition value="Comparators supported for the search parameter." />
          <comment value="If no comparators are listed, clients should not expect servers to support any comparators." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SearchComparator" />
            </extension>
            <strength value="required" />
            <description value="What Search Comparator Codes are supported in search" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/search-comparator" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.modifier" />
    <resource>
      <DataElement>
        <id value="SearchParameter.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.modifier">
          <path value="SearchParameter.modifier" />
          <short value="missing | exact | contains | not | text | in | not-in | below | above | type" />
          <definition value="A modifier supported for the search parameter." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SearchModifierCode" />
            </extension>
            <strength value="required" />
            <description value="A supported modifier for a search parameter." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/search-modifier-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.chain" />
    <resource>
      <DataElement>
        <id value="SearchParameter.chain" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.chain" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.chain">
          <path value="SearchParameter.chain" />
          <short value="Chained names supported" />
          <definition value="Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from SearchParameter.code for a parameter on the target resource type." />
          <comment value="Systems are not required to list all the chain names they support, but if they don't list them, clients may not know to use them." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.component" />
    <resource>
      <DataElement>
        <id value="SearchParameter.component" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.component" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.component">
          <path value="SearchParameter.component" />
          <short value="For Composite resources to define the parts" />
          <definition value="Used to define the parts of a composite search parameter." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.component.definition" />
    <resource>
      <DataElement>
        <id value="SearchParameter.component.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.component.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.component.definition">
          <path value="SearchParameter.component.definition" />
          <short value="Defines how the part works" />
          <definition value="The definition of the search parameter that describes this part." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/SearchParameter" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SearchParameter.component.expression" />
    <resource>
      <DataElement>
        <id value="SearchParameter.component.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SearchParameter.component.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SearchParameter.component.expression">
          <path value="SearchParameter.component.expression" />
          <short value="Subexpression relative to main expression" />
          <definition value="A sub-expression that defines how to extract values for this component from the output of the main SearchParameter.expression." />
          <comment value="This expression overrides the expression in the definition, and extracts the index values from the outcome of the composite expression." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition">
          <path value="ServiceDefinition" />
          <short value="A description of decision support service functionality" />
          <definition value="The ServiceDefinition describes a unit of decision support functionality that is made available as a service, such as immunization modules or drug-drug interaction checking." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.url" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.url">
          <path value="ServiceDefinition.url" />
          <short value="Logical URI to reference this service definition (globally unique)" />
          <definition value="An absolute URI that is used to identify this service 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 service definition is (or will be) published. The URL SHOULD include the major version of the service 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the service definition to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.url" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.identifier" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.identifier">
          <path value="ServiceDefinition.identifier" />
          <short value="Additional identifier for the service definition" />
          <definition value="A formal identifier that is used to identify this service definition when it is represented in other formats, or referenced in a specification, model, design or an instance. This is used for CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this service definition outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.version" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.version">
          <path value="ServiceDefinition.version" />
          <short value="Business version of the service definition" />
          <definition value="The identifier that is used to identify this version of the service definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the service definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different service definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the service definition with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.version" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.name" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.name">
          <path value="ServiceDefinition.name" />
          <short value="Name for this service definition (computer friendly)" />
          <definition value="A natural language name identifying the service 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.title" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.title">
          <path value="ServiceDefinition.title" />
          <short value="Name for this service definition (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the service definition." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.status" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.status">
          <path value="ServiceDefinition.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this service definition. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of service definitions that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired service definition without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="Definition.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.experimental" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.experimental">
          <path value="ServiceDefinition.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this service 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 service definition that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental service definition in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level service definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.experimental" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.date" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.date">
          <path value="ServiceDefinition.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the service definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the service 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 service definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.date" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.publisher" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.publisher">
          <path value="ServiceDefinition.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the service definition." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the service definition is the organization or individual primarily responsible for the maintenance and upkeep of the service 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 service definition. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the service definition.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.publisher" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.description" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.description">
          <path value="ServiceDefinition.description" />
          <short value="Natural language description of the service definition" />
          <definition value="A free text natural language description of the service definition from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the service 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 service 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="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.purpose" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.purpose">
          <path value="ServiceDefinition.purpose" />
          <short value="Why this service definition is defined" />
          <definition value="Explaination of why this service definition is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the service definition Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this service definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.usage" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.usage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.usage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.usage">
          <path value="ServiceDefinition.usage" />
          <short value="Describes the clinical usage of the module" />
          <definition value="A detailed description of how the module is used from a clinical perspective." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.approvalDate" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.approvalDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.approvalDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.approvalDate">
          <path value="ServiceDefinition.approvalDate" />
          <short value="When the service definition was approved by publisher" />
          <definition value="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." />
          <comment value="The 'date' element may be more recent than the approval date because of minor changes / editorial corrections." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.approvalDate" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.lastReviewDate" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.lastReviewDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.lastReviewDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.lastReviewDate">
          <path value="ServiceDefinition.lastReviewDate" />
          <short value="When the service definition was last reviewed" />
          <definition value="The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date." />
          <comment value="If specified, this is usually after the approval date." />
          <requirements value="Gives a sense of how &quot;current&quot; the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.lastReviewDate" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.effectivePeriod" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.effectivePeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.effectivePeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.effectivePeriod">
          <path value="ServiceDefinition.effectivePeriod" />
          <short value="When the service definition is expected to be used" />
          <definition value="The period during which the service definition content was or is planned to be in active use." />
          <comment value="The effective period for a service definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015." />
          <requirements value="Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of a the service definition are or are expected to be used instead." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.effectivePeriod" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.useContext" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.useContext">
          <path value="ServiceDefinition.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate service definition instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.useContext" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.jurisdiction" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.jurisdiction">
          <path value="ServiceDefinition.jurisdiction" />
          <short value="Intended jurisdiction for service definition (if applicable)" />
          <definition value="A legal or geographic region in which the service definition is intended to be used." />
          <comment value="It may be possible for the service definition to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.topic" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.topic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.topic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.topic">
          <path value="ServiceDefinition.topic" />
          <short value="E.g. Education, Treatment, Assessment, etc" />
          <definition value="Descriptive topics related to the module. Topics provide a high-level categorization of the module that can be useful for filtering and searching." />
          <requirements value="Repositories must be able to determine how to categorize the module so that it can be found by topical searches." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.contributor" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.contributor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.contributor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.contributor">
          <path value="ServiceDefinition.contributor" />
          <short value="A content contributor" />
          <definition value="A contributor to the content of the module, 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 module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Contributor" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.contact" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.contact">
          <path value="ServiceDefinition.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.contact" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.copyright" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.copyright">
          <path value="ServiceDefinition.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the service definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the service definition." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the service definition and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.copyright" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.relatedArtifact" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.relatedArtifact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.relatedArtifact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.relatedArtifact">
          <path value="ServiceDefinition.relatedArtifact" />
          <short value="Additional documentation, citations, etc" />
          <definition value="Related resources such as additional documentation, justification, or bibliographic references." />
          <comment value="Each related resource is either an attachment, or a reference to another resource, but not both." />
          <requirements value="Modules 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="*" />
          <type>
            <code value="RelatedArtifact" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.trigger" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.trigger" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.trigger" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.trigger">
          <path value="ServiceDefinition.trigger" />
          <short value="&quot;when&quot; the module should be invoked" />
          <definition value="The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="TriggerDefinition" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.dataRequirement" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.dataRequirement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.dataRequirement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.dataRequirement">
          <path value="ServiceDefinition.dataRequirement" />
          <short value="What data is used by the module" />
          <definition value="Data requirements are a machine processable description of the data required by the module in order to perform a successful evaluation." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="DataRequirement" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ServiceDefinition.operationDefinition" />
    <resource>
      <DataElement>
        <id value="ServiceDefinition.operationDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ServiceDefinition.operationDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ServiceDefinition.operationDefinition">
          <path value="ServiceDefinition.operationDefinition" />
          <short value="Operation to invoke" />
          <definition value="A reference to the operation that is used to invoke this service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationDefinition" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication" />
    <resource>
      <DataElement>
        <id value="Communication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication">
          <path value="Communication" />
          <short value="A record of information transmitted from a sender to a receiver" />
          <definition value="An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="com-1" />
            <severity value="error" />
            <human value="Not Done Reason can only be specified if NotDone is &quot;true&quot;" />
            <expression value="notDone or notDoneReason.exists().not()" />
            <xpath value="f:notDone/@value=true() or not(exists(f:notDoneReason))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.encounter" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.identifier" />
    <resource>
      <DataElement>
        <id value="Communication.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.identifier">
          <path value="Communication.identifier" />
          <short value="Unique identifier" />
          <definition value="Identifiers associated with this Communication that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.definition" />
    <resource>
      <DataElement>
        <id value="Communication.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.definition">
          <path value="Communication.definition" />
          <short value="Instantiates protocol or definition" />
          <definition value="A protocol, guideline, or other definition that was adhered to in whole or in part by this communication event." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.definition" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.basedOn" />
    <resource>
      <DataElement>
        <id value="Communication.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.basedOn">
          <path value="Communication.basedOn" />
          <short value="Request fulfilled by this communication" />
          <definition value="An order, proposal or plan fulfilled in whole or in part by this Communication." />
          <comment value="This must point to some sort of a 'Request' resource, such as CarePlan, CommunicationRequest, ReferralRequest, MedicationRequest, etc." />
          <alias value="fulfills" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.basedOn" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.partOf" />
    <resource>
      <DataElement>
        <id value="Communication.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.partOf">
          <path value="Communication.partOf" />
          <short value="Part of this action" />
          <definition value="Part of this action." />
          <alias value="container" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.partOf" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.status" />
    <resource>
      <DataElement>
        <id value="Communication.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.status">
          <path value="Communication.status" />
          <short value="preparation | in-progress | suspended | aborted | completed | entered-in-error" />
          <definition value="The status of the transmission." />
          <comment value="This element is labeled as a modifier because the status contains the codes aborted and entered-in-error that mark the communication as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the communication." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/event-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.notDone" />
    <resource>
      <DataElement>
        <id value="Communication.notDone" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.notDone" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.notDone">
          <path value="Communication.notDone" />
          <short value="Communication did not occur" />
          <definition value="If true, indicates that the described communication event did not actually occur." />
          <comment value="This element is labeled as a modifier because it marks the communication as a communication that did not occur.  The more attributes are populated, the more constrained the negated statement is." />
          <requirements value="Creating a Communication where notDone is true is intended for situations where there's a need for a specific statement in the record about something not being done.  If the need is merely to indicate that a request wasn't fulfilled, that should be handled using Task." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.notDone" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.notDoneReason" />
    <resource>
      <DataElement>
        <id value="Communication.notDoneReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.notDoneReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.notDoneReason">
          <path value="Communication.notDoneReason" />
          <short value="Why communication did not occur" />
          <definition value="Describes why the communication event did not occur in coded and/or textual form." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="com-1" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationNotDoneReason" />
            </extension>
            <strength value="example" />
            <description value="Codes for the reason why a communication was not done." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/communication-not-done-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.notDoneReason" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.category" />
    <resource>
      <DataElement>
        <id value="Communication.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.category">
          <path value="Communication.category" />
          <short value="Message category" />
          <definition value="The type of message conveyed such as alert, notification, reminder, instruction, etc." />
          <comment value="There may be multiple axes of categorization and one communication may serve multiple purposes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationCategory" />
            </extension>
            <strength value="example" />
            <description value="Codes for general categories of communications such as alerts, instruction, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/communication-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.medium" />
    <resource>
      <DataElement>
        <id value="Communication.medium" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.medium" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.medium">
          <path value="Communication.medium" />
          <short value="A channel of communication" />
          <definition value="A channel that was used for this communication (e.g. email, fax)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationMedium" />
            </extension>
            <strength value="example" />
            <description value="Codes for communication mediums such as phone, fax, email, in person, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ParticipationMode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.subject" />
    <resource>
      <DataElement>
        <id value="Communication.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.subject">
          <path value="Communication.subject" />
          <short value="Focus of message" />
          <definition value="The patient or group that was the focus of this communication." />
          <alias value="patient" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.recipient" />
    <resource>
      <DataElement>
        <id value="Communication.recipient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.recipient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.recipient">
          <path value="Communication.recipient" />
          <short value="Message recipient" />
          <definition value="The entity (e.g. person, organization, clinical information system, or device) which was the target of the communication. If receipts need to be tracked by individual, a separate resource instance will need to be created for each recipient.  Multiple recipient communications are intended where either a receipt(s) is not tracked (e.g. a mass mail-out) or is captured in aggregate (all emails confirmed received by a particular time)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.topic" />
    <resource>
      <DataElement>
        <id value="Communication.topic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.topic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.topic">
          <path value="Communication.topic" />
          <short value="Focal resources" />
          <definition value="The resources which were responsible for or related to producing this communication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.context" />
    <resource>
      <DataElement>
        <id value="Communication.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.context">
          <path value="Communication.context" />
          <short value="Encounter or episode leading to message" />
          <definition value="The encounter within which the communication was sent." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.context" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.sent" />
    <resource>
      <DataElement>
        <id value="Communication.sent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.sent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.sent">
          <path value="Communication.sent" />
          <short value="When sent" />
          <definition value="The time when this communication was sent." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrenceDateTime (Invariant: maps to either sent OR received)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.received" />
    <resource>
      <DataElement>
        <id value="Communication.received" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.received" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.received">
          <path value="Communication.received" />
          <short value="When received" />
          <definition value="The time when this communication arrived at the destination." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrenceDateTime (Invariant: maps to either sent OR received)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.sender" />
    <resource>
      <DataElement>
        <id value="Communication.sender" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.sender" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.sender">
          <path value="Communication.sender" />
          <short value="Message sender" />
          <definition value="The entity (e.g. person, organization, clinical information system, or device) which was the source of the communication." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.actor" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.reasonCode" />
    <resource>
      <DataElement>
        <id value="Communication.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.reasonCode">
          <path value="Communication.reasonCode" />
          <short value="Indication for message" />
          <definition value="The reason or justification for the communication." />
          <comment value="Textual reasons can be caprued using reasonCode.text." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationReason" />
            </extension>
            <strength value="example" />
            <description value="Codes for describing reasons for the occurrence of a communication." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-findings" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.reasonCodableConcept" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.reasonReference" />
    <resource>
      <DataElement>
        <id value="Communication.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.reasonReference">
          <path value="Communication.reasonReference" />
          <short value="Why was communication done?" />
          <definition value="Indicates another resource whose existence justifies this communication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.reasonReference" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.payload" />
    <resource>
      <DataElement>
        <id value="Communication.payload" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.payload" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.payload">
          <path value="Communication.payload" />
          <short value="Message payload" />
          <definition value="Text, attachment(s), or resource(s) that was communicated to the recipient." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.payload.contentX" />
    <resource>
      <DataElement>
        <id value="Communication.payload.contentX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.payload.contentX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.payload.content[x]">
          <path value="Communication.payload.content[x]" />
          <short value="Message part content" />
          <definition value="A communicated content (or for multi-part communications, one portion of the communication)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Communication.note" />
    <resource>
      <DataElement>
        <id value="Communication.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Communication.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Communication.note">
          <path value="Communication.note" />
          <short value="Comments made about the communication" />
          <definition value="Additional notes or commentary about the communication by the sender, receiver or other interested parties." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition">
          <path value="ActivityDefinition" />
          <short value="The definition of a specific activity to be taken, independent of any particular patient or context" />
          <definition value="This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Definition" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[classCode=ACT; moodCode=DEFN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.url" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.url">
          <path value="ActivityDefinition.url" />
          <short value="Logical URI to reference this activity definition (globally unique)" />
          <definition value="An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the activity definition to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.url" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".identifier[scope=BUSN;reliability=ISS]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.identifier" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.identifier">
          <path value="ActivityDefinition.identifier" />
          <short value="Additional identifier for the activity definition" />
          <definition value="A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this activity definition outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.version" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.version">
          <path value="ActivityDefinition.version" />
          <short value="Business version of the activity definition" />
          <definition value="The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets." />
          <comment value="There may be different activity definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the activity definition with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.version" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.name" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.name">
          <path value="ActivityDefinition.name" />
          <short value="Name for this activity definition (computer friendly)" />
          <definition value="A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation." />
          <comment value="The name is not expected to be globally unique. The name should be a simple alpha-numeric type name to ensure that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.title" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.title">
          <path value="ActivityDefinition.title" />
          <short value="Name for this activity definition (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the activity definition." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.title" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.status" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.status">
          <path value="ActivityDefinition.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this activity definition. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of activity definitions that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired activity definition without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.experimental" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.experimental">
          <path value="ActivityDefinition.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of activity definition that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental activity definition in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level activity definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.experimental" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.date" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.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 if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes." />
          <comment value="Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the activity definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.date" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.publisher" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.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="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.publisher (as string instead of CodeableConcept)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.description" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.description">
          <path value="ActivityDefinition.description" />
          <short value="Natural language description of the activity definition" />
          <definition value="A free text natural language description of the activity definition from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the activity definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the activity definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the profile is presumed to be the predominant language in the place the profile was created)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.description" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.purpose" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.purpose">
          <path value="ActivityDefinition.purpose" />
          <short value="Why this activity definition is defined" />
          <definition value="Explaination of why this activity definition is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the activity definition Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this activity definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.purpose" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode.text" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.usage" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.usage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.usage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.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="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.approvalDate" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.approvalDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.approvalDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.approvalDate">
          <path value="ActivityDefinition.approvalDate" />
          <short value="When the activity definition was approved by publisher" />
          <definition value="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." />
          <comment value="The 'date' element may be more recent than the approval date because of minor changes / editorial corrections." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.approvalDate" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;].act[classCode=CACT;moodCode=EVN;code=&quot;approval&quot;].effectiveTime" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.lastReviewDate" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.lastReviewDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.lastReviewDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.lastReviewDate">
          <path value="ActivityDefinition.lastReviewDate" />
          <short value="When the activity definition was last reviewed" />
          <definition value="The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date." />
          <comment value="If specified, this is usually after the approval date." />
          <requirements value="Gives a sense of how &quot;current&quot; the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.lastReviewDate" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;; subsetCode=&quot;RECENT&quot;].act[classCode=CACT;moodCode=EVN;code=&quot;review&quot;].effectiveTime" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.effectivePeriod" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.effectivePeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.effectivePeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.effectivePeriod">
          <path value="ActivityDefinition.effectivePeriod" />
          <short value="When the activity definition is expected to be used" />
          <definition value="The period during which the activity definition content was or is planned to be in active use." />
          <comment value="The effective period for a activity definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015." />
          <requirements value="Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of a the activity definition are or are expected to be used instead." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.effectivePeriod" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.useContext" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.useContext">
          <path value="ActivityDefinition.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate activity definition instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.useContext" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.jurisdiction" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.jurisdiction">
          <path value="ActivityDefinition.jurisdiction" />
          <short value="Intended jurisdiction for activity definition (if applicable)" />
          <definition value="A legal or geographic region in which the activity definition is intended to be used." />
          <comment value="It may be possible for the activity definition to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.topic" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.topic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.topic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.topic">
          <path value="ActivityDefinition.topic" />
          <short value="E.g. Education, Treatment, Assessment, etc" />
          <definition value="Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching." />
          <requirements value="Repositories must be able to determine how to categorize the asset  so that it can be found by topical searches." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.contributor" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.contributor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.contributor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.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="*" />
          <type>
            <code value="Contributor" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT,VRF] {No support yet for editor nor clear whether VRF best corresponds to reviewer or endorser}" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.contact" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.contact">
          <path value="ActivityDefinition.contact" />
          <short value="Contact details for the publisher" />
          <definition value="Contact details to assist a user in finding and communicating with the publisher." />
          <comment value="May be a web site, an email address, a telephone number, etc." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.contact" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CALLBCK].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.copyright" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.copyright">
          <path value="ActivityDefinition.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the activity definition and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.copyright" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.relatedArtifact" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.relatedArtifact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.relatedArtifact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.relatedArtifact">
          <path value="ActivityDefinition.relatedArtifact" />
          <short value="Additional documentation, citations, etc" />
          <definition value="Related artifacts such as additional documentation, justification, or bibliographic references." />
          <comment value="Each related artifact is either an attachment, or a reference to another resource, but not both." />
          <requirements value="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="*" />
          <type>
            <code value="RelatedArtifact" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.library" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.library" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.library" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.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="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Library" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=USE].target[classCode=GROUPER,moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.kind" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.kind" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.kind" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.kind">
          <path value="ActivityDefinition.kind" />
          <short value="Kind of resource" />
          <definition value="A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a 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="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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>
          <mapping>
            <identity value="rim" />
            <map value=".classCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.code" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.code">
          <path value="ActivityDefinition.code" />
          <short value="Detail type of activity" />
          <definition value="Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter." />
          <comment value="Tends to be less relevant for activities involving particular products." />
          <requirements value="Allows matching performed to planned as well as validation against protocols." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActivityDefinitionType" />
            </extension>
            <strength value="example" />
            <description value="Detailed type of the activity; e.g. CBC" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.subjectCodeableConcept" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.timingX" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.timingX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.timingX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.timing[x]">
          <path value="ActivityDefinition.timing[x]" />
          <short value="When activity is to occur" />
          <definition value="The period, timing or frequency upon which the described activity is to occur." />
          <requirements value="Allows prompting for activities and detection of missed planned activities." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.location" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.location">
          <path value="ActivityDefinition.location" />
          <short value="Where it should happen" />
          <definition value="Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc." />
          <comment value="May reference a specific clinical location or may just identify a type of location." />
          <requirements value="Helps in planning of activity." />
          <alias value="facility" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=LOC].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.participant" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.participant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.participant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.participant">
          <path value="ActivityDefinition.participant" />
          <short value="Who should participate in the action" />
          <definition value="Indicates who should participate in performing the action described." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PFM]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.participant.type" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.participant.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.participant.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.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" />
          <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 in the activity" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-participant-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".role.classCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.participant.role" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.participant.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.participant.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.participant.role">
          <path value="ActivityDefinition.participant.role" />
          <short value="E.g. Nurse, Surgeon, Parent, etc" />
          <definition value="The role the participant should play in performing the described action." />
          <min value="0" />
          <max value="1" />
          <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>
          <mapping>
            <identity value="rim" />
            <map value=".role.code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.productX" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.productX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.productX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.product[x]">
          <path value="ActivityDefinition.product[x]" />
          <short value="What's administered/supplied" />
          <definition value="Identifies the food, drug or other product being consumed or supplied in the activity." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActivityProduct" />
            </extension>
            <strength value="example" />
            <description value="Code describing the type of substance or medication" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CSM].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.quantity" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.quantity">
          <path value="ActivityDefinition.quantity" />
          <short value="How much is administered/consumed/supplied" />
          <definition value="Identifies the quantity expected to be consumed at once (per dose, per meal, etc.)." />
          <alias value="dose" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".quantity {for classCode=SPLY]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.dosage" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.dosage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.dosage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.dosage">
          <path value="ActivityDefinition.dosage" />
          <short value="Detailed dosage instructions" />
          <definition value="Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources." />
          <comment value="If a dosage instruction is used, the definition should not specify timing or quantity." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Dosage" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=SBADM; moodCode=DEFN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.bodySite" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.bodySite">
          <path value="ActivityDefinition.bodySite" />
          <short value="What part of body to perform on" />
          <definition value="Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites)." />
          <comment value="Only used if not implicit in the code found in ProcedureRequest.type." />
          <requirements value="Knowing where the procedure is made is important for tracking if multiple sites are possible." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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 {for classCode=PROC, SBADM}" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.transform" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.transform" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.transform" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.transform">
          <path value="ActivityDefinition.transform" />
          <short value="Transform to apply the template" />
          <definition value="A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureMap" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.dynamicValue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.dynamicValue">
          <path value="ActivityDefinition.dynamicValue" />
          <short value="Dynamic aspects of the definition" />
          <definition value="Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the intent resource that would contain the result." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue.description" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.dynamicValue.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.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" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue.path" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.dynamicValue.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.dynamicValue.path">
          <path value="ActivityDefinition.dynamicValue.path" />
          <short value="The path to the element to be set dynamically" />
          <definition value="The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue.language" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.dynamicValue.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.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" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue.expression" />
    <resource>
      <DataElement>
        <id value="ActivityDefinition.dynamicValue.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ActivityDefinition.dynamicValue.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ActivityDefinition.dynamicValue.expression">
          <path value="ActivityDefinition.dynamicValue.expression" />
          <short value="An expression that provides the dynamic value for the customization" />
          <definition value="An expression specifying the value of the customized element." />
          <comment value="The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Linkage" />
    <resource>
      <DataElement>
        <id value="Linkage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Linkage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Linkage">
          <path value="Linkage" />
          <short value="Links records for 'same' item" />
          <definition value="Identifies two or more records (resource instances) that are referring to the same real-world &quot;occurrence&quot;." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="lnk-1" />
            <severity value="error" />
            <human value="Must have at least two items" />
            <expression value="item.count()&gt;1" />
            <xpath value="count(f:item)&gt;1" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A - RIM doesn't know how to do this" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.structure" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Linkage.active" />
    <resource>
      <DataElement>
        <id value="Linkage.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Linkage.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Linkage.active">
          <path value="Linkage.active" />
          <short value="Whether this linkage assertion is active or not" />
          <definition value="Indicates whether the asserted set of linkages are considered to be &quot;in effect&quot;." />
          <comment value="If false, any asserted linkages should not be considered current/relevant/applicable." />
          <requirements value="Need to be able to mark a linkage record as not to be used because it was created in error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Linkage.author" />
    <resource>
      <DataElement>
        <id value="Linkage.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Linkage.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Linkage.author">
          <path value="Linkage.author" />
          <short value="Who is responsible for linkages" />
          <definition value="Identifies the user or organization responsible for asserting the linkages and who establishes the context for evaluating the nature of each linkage." />
          <requirements value="&quot;Primary&quot; for the same set of linked resources may be different from different user's/organization's perspectives." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Linkage.item" />
    <resource>
      <DataElement>
        <id value="Linkage.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Linkage.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Linkage.item">
          <path value="Linkage.item" />
          <short value="Item to be linked" />
          <definition value="Identifies one of the records that is considered to refer to the same real-world occurrence as well as how the items hould be evaluated within the collection of linked items." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="lnk-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Linkage.item.type" />
    <resource>
      <DataElement>
        <id value="Linkage.item.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Linkage.item.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Linkage.item.type">
          <path value="Linkage.item.type" />
          <short value="source | alternate | historical" />
          <definition value="Distinguishes which item is &quot;source of truth&quot; (if any) and which items are no longer considered to be current representations." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="LinkageType" />
            </extension>
            <strength value="required" />
            <description value="Used to distinguish different roles a resource can play within a set of linked resources" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/linkage-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Linkage.item.resource" />
    <resource>
      <DataElement>
        <id value="Linkage.item.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Linkage.item.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Linkage.item.resource">
          <path value="Linkage.item.resource" />
          <short value="Resource being linked" />
          <definition value="The resource instance being linked as part of the group." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement">
          <path value="DeviceUseStatement" />
          <short value="Record of use of a device" />
          <definition value="A record of a device being used by a patient where the record is the result of a report from the patient or another clinician." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="DeviceUsePerformanceOccurrence" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.order" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.identifier" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.identifier">
          <path value="DeviceUseStatement.identifier" />
          <short value="External identifier for this record" />
          <definition value="An external identifier for this statement such as an IRI." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.status" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.status">
          <path value="DeviceUseStatement.status" />
          <short value="active | completed | entered-in-error +" />
          <definition value="A code representing the patient or other source's judgment about the state of the device used that this statement is about.  Generally this will be active or completed." />
          <comment value="DeviceUseStatment is a statement at a point in time.  The status is only representative at the point when it was asserted.  The value set for contains codes that assert the status of the use  by the patient (for example, stopped or on hold) as well as codes that assert the status of the resource itself (for example, entered in error).&#xA;&#xA;This element is labeled as a modifier because the status contains the codes that mark the statement as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceUseStatementStatus" />
            </extension>
            <strength value="required" />
            <description value="A coded concept indicating the current status of a the Device Usage" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/device-statement-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="…status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.subject" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.subject">
          <path value="DeviceUseStatement.subject" />
          <short value="Patient using device" />
          <definition value="The patient who used the device." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.subject" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.whenUsed" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.whenUsed" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.whenUsed" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.whenUsed">
          <path value="DeviceUseStatement.whenUsed" />
          <short value="Period device was used" />
          <definition value="The time period over which the device was used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="quick" />
            <map value="Performance.performanceTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.timingX" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.timingX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.timingX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.timing[x]">
          <path value="DeviceUseStatement.timing[x]" />
          <short value="How often  the device was used" />
          <definition value="How often the device was used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="quick" />
            <map value="DeviceUse.applicationSchedule" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.recordedOn" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.recordedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.recordedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.recordedOn">
          <path value="DeviceUseStatement.recordedOn" />
          <short value="When statement was recorded" />
          <definition value="The time at which the statement was made/recorded." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.statementDateTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.source" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.source">
          <path value="DeviceUseStatement.source" />
          <short value="Who made the statement" />
          <definition value="Who reported the device was being used by the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.device" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.device" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.device" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.device">
          <path value="DeviceUseStatement.device" />
          <short value="Reference to device used" />
          <definition value="The details of the device used." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <mapping>
            <identity value="quick" />
            <map value="DeviceUse.device" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.indication" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.indication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.indication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.indication">
          <path value="DeviceUseStatement.indication" />
          <short value="Why device was used" />
          <definition value="Reason or justification for the use of the device." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <mapping>
            <identity value="quick" />
            <map value="Action.indication.reason" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.bodySite" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.bodySite">
          <path value="DeviceUseStatement.bodySite" />
          <short value="Target body site" />
          <definition value="Indicates the site on the subject's body where the device was used ( i.e. the target site)." />
          <requirements value="Knowing where the device is targeted is important for tracking if multiple sites are possible. If more information than just a code is required, use the extension [http://hl7.org/fhir/StructureDefinition/body-site-instance](null.html)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="targetSiteCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceUseStatement.note" />
    <resource>
      <DataElement>
        <id value="DeviceUseStatement.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceUseStatement.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceUseStatement.note">
          <path value="DeviceUseStatement.note" />
          <short value="Addition details (comments, instructions)" />
          <definition value="Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.additionalText" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup" />
    <resource>
      <DataElement>
        <id value="RequestGroup" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup">
          <path value="RequestGroup" />
          <short value="A group of related requests" />
          <definition value="A group of related requests that can be used to capture intended activities that have inter-dependencies such as &quot;give this medication after that one&quot;." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.identifier" />
    <resource>
      <DataElement>
        <id value="RequestGroup.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.identifier">
          <path value="RequestGroup.identifier" />
          <short value="Business identifier" />
          <definition value="Allows a service to provide a unique, business identifier for the request." />
          <requirements value="Allows identification of the request as it is known by various participating systems and in a way that remains consistent across servers." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.definition" />
    <resource>
      <DataElement>
        <id value="RequestGroup.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.definition">
          <path value="RequestGroup.definition" />
          <short value="Instantiates protocol or definition" />
          <definition value="A protocol, guideline, orderset or other definition that is adhered to in whole or in part by this request." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.basedOn" />
    <resource>
      <DataElement>
        <id value="RequestGroup.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.basedOn">
          <path value="RequestGroup.basedOn" />
          <short value="Fulfills plan, proposal, or order" />
          <definition value="A plan, proposal or order that is fulfilled in whole or in part by this request." />
          <requirements value="Allows tracing of authorization for the request and tracking whether proposals/recommendations were acted upon." />
          <alias value="fulfills" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.basedOn" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.replaces" />
    <resource>
      <DataElement>
        <id value="RequestGroup.replaces" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.replaces" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.replaces">
          <path value="RequestGroup.replaces" />
          <short value="Request(s) replaced by this request" />
          <definition value="Completed or terminated request(s) whose function is taken by this new request." />
          <comment value="The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing." />
          <requirements value="Allows tracing the continuation of a therapy or administrative process instantiated through multiple requests." />
          <alias value="supersedes" />
          <alias value="prior" />
          <alias value="renewed order" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.replaces" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.groupIdentifier" />
    <resource>
      <DataElement>
        <id value="RequestGroup.groupIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.groupIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.groupIdentifier">
          <path value="RequestGroup.groupIdentifier" />
          <short value="Composite request this is part of" />
          <definition value="A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form." />
          <comment value="Requests are linked either by a &quot;basedOn&quot; relationship (i.e. one request is fulfilling another) or by having a common requisition.  Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation." />
          <requirements value="Some business processes need to know if multiple items were ordered as part of the same &quot;prescription&quot; or &quot;requisition&quot; for billing or other purposes." />
          <alias value="grouperid" />
          <alias value="requisition" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.groupIdentifier" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.status" />
    <resource>
      <DataElement>
        <id value="RequestGroup.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.status">
          <path value="RequestGroup.status" />
          <short value="draft | active | suspended | cancelled | completed | entered-in-error | unknown" />
          <definition value="The current state of the request. For request groups, the status reflects the status of all the requests in the group." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RequestStatus" />
            </extension>
            <strength value="required" />
            <description value="Codes identifying the stage lifecycle stage of a request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.intent" />
    <resource>
      <DataElement>
        <id value="RequestGroup.intent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.intent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.intent">
          <path value="RequestGroup.intent" />
          <short value="proposal | plan | order" />
          <definition value="Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain." />
          <comment value="This element is labeled as a modifier because the intent alters when and how the resource is actually applicable." />
          <requirements value="Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain." />
          <alias value="category" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RequestIntent" />
            </extension>
            <strength value="required" />
            <description value="Codes indicating the degree of authority/intentionality associated with a request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-intent" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.intent" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.priority" />
    <resource>
      <DataElement>
        <id value="RequestGroup.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.priority">
          <path value="RequestGroup.priority" />
          <short value="routine | urgent | asap | stat" />
          <definition value="Indicates how quickly the request should be addressed with respect to other requests." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <meaningWhenMissing value="If missing, this request should be performed with normal priority" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RequestPriority" />
            </extension>
            <strength value="required" />
            <description value="Identifies the level of importance to be assigned to actioning the request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.priority" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.subject" />
    <resource>
      <DataElement>
        <id value="RequestGroup.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.subject">
          <path value="RequestGroup.subject" />
          <short value="Who the request group is about" />
          <definition value="The subject for which the request group was created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.subject" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.context" />
    <resource>
      <DataElement>
        <id value="RequestGroup.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.context">
          <path value="RequestGroup.context" />
          <short value="Encounter or Episode for the request group" />
          <definition value="Describes the context of the request group, if any." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.context" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.authoredOn" />
    <resource>
      <DataElement>
        <id value="RequestGroup.authoredOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.authoredOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.authoredOn">
          <path value="RequestGroup.authoredOn" />
          <short value="When the request group was authored" />
          <definition value="Indicates when the request group was created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.author" />
    <resource>
      <DataElement>
        <id value="RequestGroup.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.author">
          <path value="RequestGroup.author" />
          <short value="Device or practitioner that authored the request group" />
          <definition value="Provides a reference to the author of the request group." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.author" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.reasonX" />
    <resource>
      <DataElement>
        <id value="RequestGroup.reasonX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.reasonX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.reason[x]">
          <path value="RequestGroup.reason[x]" />
          <short value="Reason for the request group" />
          <definition value="Indicates the reason the request group was created. This is typically provided as a parameter to the evaluation and echoed by the service, although for some use cases, such as subscription- or event-based scenarios, it may provide an indication of the cause for the response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.reason" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.note" />
    <resource>
      <DataElement>
        <id value="RequestGroup.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.note">
          <path value="RequestGroup.note" />
          <short value="Additional notes about the response" />
          <definition value="Provides a mechanism to communicate additional information about the response." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.note" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action">
          <path value="RequestGroup.action" />
          <short value="Proposed actions, if any" />
          <definition value="The actions, if any, produced by the evaluation of the artifact." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="rqg-1" />
            <severity value="error" />
            <human value="Must have resource or action but not both" />
            <expression value="resource.exists() != action.exists()" />
            <xpath value="exists(f:resource) != exists(f:action)" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.label" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.label" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.label" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.label">
          <path value="RequestGroup.action.label" />
          <short value="User-visible label for the action (e.g. 1. or A.)" />
          <definition value="A user-visible label for the action." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.title" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.title">
          <path value="RequestGroup.action.title" />
          <short value="User-visible title" />
          <definition value="The title of the action displayed to a user." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.description" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.description">
          <path value="RequestGroup.action.description" />
          <short value="Short description of the action" />
          <definition value="A short description of the action used to provide a summary to display to the user." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.textEquivalent" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.textEquivalent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.textEquivalent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.textEquivalent">
          <path value="RequestGroup.action.textEquivalent" />
          <short value="Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system" />
          <definition value="A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that may not be capable of interpreting it dynamically." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.code" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.code">
          <path value="RequestGroup.action.code" />
          <short value="Code representing the meaning of the action or sub-actions" />
          <definition value="A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a the section of a documentation template." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.documentation" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.documentation">
          <path value="RequestGroup.action.documentation" />
          <short value="Supporting documentation for the intended performer of the action" />
          <definition value="Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="RelatedArtifact" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.supportingInfo" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.condition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.condition">
          <path value="RequestGroup.action.condition" />
          <short value="Whether or not the action is applicable" />
          <definition value="An expression that describes applicability criteria, or start/stop conditions for the action." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition.kind" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.condition.kind" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition.kind" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.condition.kind">
          <path value="RequestGroup.action.condition.kind" />
          <short value="applicability | start | stop" />
          <definition value="The kind of condition." />
          <comment value="Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe when enter/exit criteria for an action." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionConditionKind" />
            </extension>
            <strength value="required" />
            <description value="The kind of condition for the action" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-condition-kind" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition.description" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.condition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.condition.description">
          <path value="RequestGroup.action.condition.description" />
          <short value="Natural language description of the condition" />
          <definition value="A brief, natural language description of the condition that effectively communicates the intended semantics." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition.language" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.condition.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.condition.language">
          <path value="RequestGroup.action.condition.language" />
          <short value="Language of the expression" />
          <definition value="The media type of the language for the expression." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition.expression" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.condition.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.condition.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.condition.expression">
          <path value="RequestGroup.action.condition.expression" />
          <short value="Boolean-valued expression" />
          <definition value="An expression that returns true or false, indicating whether or not the condition is satisfied." />
          <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" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.relatedAction" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.relatedAction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.relatedAction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.relatedAction">
          <path value="RequestGroup.action.relatedAction" />
          <short value="Relationship to another action" />
          <definition value="A relationship to another action such as &quot;before&quot; or &quot;30-60 minutes after start of&quot;." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.relatedAction.actionId" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.relatedAction.actionId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.relatedAction.actionId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.relatedAction.actionId">
          <path value="RequestGroup.action.relatedAction.actionId" />
          <short value="What action this is related to" />
          <definition value="The element id of the action this is related to." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.relatedAction.relationship" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.relatedAction.relationship" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.relatedAction.relationship" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.relatedAction.relationship">
          <path value="RequestGroup.action.relatedAction.relationship" />
          <short value="before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end" />
          <definition value="The relationship of this action to the related action." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionRelationshipType" />
            </extension>
            <strength value="required" />
            <description value="Defines the types of relationships between actions" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-relationship-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.relatedAction.offsetX" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.relatedAction.offsetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.relatedAction.offsetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.relatedAction.offset[x]">
          <path value="RequestGroup.action.relatedAction.offset[x]" />
          <short value="Time offset for the relationship" />
          <definition value="A duration or range of durations to apply to the relationship. For example, 30-60 minutes before." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="Range" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.timingX" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.timingX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.timingX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.timing[x]">
          <path value="RequestGroup.action.timing[x]" />
          <short value="When the action should take place" />
          <definition value="An optional value describing when the action should be performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.occurrence" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.participant" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.participant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.participant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.participant">
          <path value="RequestGroup.action.participant" />
          <short value="Who should perform the action" />
          <definition value="The participant that should perform or be responsible for this action." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Person" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.performer" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.type" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.type">
          <path value="RequestGroup.action.type" />
          <short value="create | update | remove | fire-event" />
          <definition value="The type of action to perform (create, update, remove)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionType" />
            </extension>
            <strength value="extensible" />
            <description value="The type of action to be performed" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.groupingBehavior" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.groupingBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.groupingBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.groupingBehavior">
          <path value="RequestGroup.action.groupingBehavior" />
          <short value="visual-group | logical-group | sentence-group" />
          <definition value="Defines the grouping behavior for the action and its children." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionGroupingBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines organization behavior of a group" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-grouping-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.selectionBehavior" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.selectionBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.selectionBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.selectionBehavior">
          <path value="RequestGroup.action.selectionBehavior" />
          <short value="any | all | all-or-none | exactly-one | at-most-one | one-or-more" />
          <definition value="Defines the selection behavior for the action and its children." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionSelectionBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines selection behavior of a group" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-selection-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.requiredBehavior" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.requiredBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.requiredBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.requiredBehavior">
          <path value="RequestGroup.action.requiredBehavior" />
          <short value="must | could | must-unless-documented" />
          <definition value="Defines the requiredness behavior for the action." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionRequiredBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines requiredness behavior for selecting an action or an action group" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-required-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.precheckBehavior" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.precheckBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.precheckBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.precheckBehavior">
          <path value="RequestGroup.action.precheckBehavior" />
          <short value="yes | no" />
          <definition value="Defines whether the action should usually be preselected." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionPrecheckBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines selection frequency behavior for an action or group" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-precheck-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.cardinalityBehavior" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.cardinalityBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.cardinalityBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.cardinalityBehavior">
          <path value="RequestGroup.action.cardinalityBehavior" />
          <short value="single | multiple" />
          <definition value="Defines whether the action can be selected multiple times." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionCardinalityBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines behavior for an action or a group for how many times that item may be repeated" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-cardinality-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.resource" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.resource">
          <path value="RequestGroup.action.resource" />
          <short value="The target of the action" />
          <definition value="The resource that is the target of the action (e.g. CommunicationRequest)." />
          <comment value="The target resource SHALL be a [Request](request.html) resource with a Request.intent set to &quot;option&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <condition value="rqg-1" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/RequestGroup.action.action" />
    <resource>
      <DataElement>
        <id value="RequestGroup.action.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/RequestGroup.action.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="RequestGroup.action.action">
          <path value="RequestGroup.action.action" />
          <short value="Sub action" />
          <definition value="Sub actions." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#RequestGroup.action" />
          <condition value="rqg-1" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest" />
    <resource>
      <DataElement>
        <id value="DeviceRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest">
          <path value="DeviceRequest" />
          <short value="Medical device request" />
          <definition value="Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[moodCode&lt;=INT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.order" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.identifier" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.identifier">
          <path value="DeviceRequest.identifier" />
          <short value="External Request identifier" />
          <definition value="Identifiers assigned to this order by the orderer or by the receiver." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC.2, ORC.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.definition" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.definition">
          <path value="DeviceRequest.definition" />
          <short value="Protocol or definition" />
          <definition value="Protocol or definition followed by this request. For example: The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.basedOn" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.basedOn">
          <path value="DeviceRequest.basedOn" />
          <short value="What request fulfills" />
          <definition value="Plan/proposal/order fulfilled by this request." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC.8 (plus others)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="Proposal.prnReason.reason" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.priorRequest" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.priorRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.priorRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.priorRequest">
          <path value="DeviceRequest.priorRequest" />
          <short value="What request replaces" />
          <definition value="The request takes the place of the referenced completed or terminated request(s)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Handled by message location of ORC (ORC.1=RO or RU)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RPLC].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.groupIdentifier" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.groupIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.groupIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.groupIdentifier">
          <path value="DeviceRequest.groupIdentifier" />
          <short value="Identifier of composite request" />
          <definition value="Composite request this is part of." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC.4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.status" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.status">
          <path value="DeviceRequest.status" />
          <short value="draft | active | suspended | completed | entered-in-error | cancelled" />
          <definition value="The status of the request." />
          <comment value="This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the request as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceRequestStatus" />
            </extension>
            <strength value="required" />
            <description value="Codes representing the status of the request." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="ORC.5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="Action.currentStatus" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.intent" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.intent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.intent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.intent">
          <path value="DeviceRequest.intent" />
          <short value="proposal | plan | original-order | encoded | reflex-order" />
          <definition value="Whether the request is a proposal, plan, an original order or a reflex order." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RequestIntent" />
            </extension>
            <strength value="required" />
            <description value="The kind of diagnostic request" />
            <valueSetReference>
              <reference value="http://build.fhir.org/valueset-request-intent.html" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.priority" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.priority">
          <path value="DeviceRequest.priority" />
          <short value="Indicates how quickly the {{title}} should be addressed with respect to other requests" />
          <definition value="Indicates how quickly the {{title}} should be addressed with respect to other requests." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <defaultValueCode value="If missing, normal priority" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RequestPriority" />
            </extension>
            <strength value="required" />
            <description value="Identifies the level of importance to be assigned to actioning the request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="TQ1.9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".priorityCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.codeX" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.codeX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.codeX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.code[x]">
          <path value="DeviceRequest.code[x]" />
          <short value="Device requested" />
          <definition value="The details of the device to be used." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceRequestCode" />
            </extension>
            <strength value="example" />
            <description value="Codes for devices that can be requested" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/device-kind" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="DeviceUse.device" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.subject" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.subject">
          <path value="DeviceRequest.subject" />
          <short value="Focus of request" />
          <definition value="The patient who will use the device." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Accompanying PID segment" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.subject" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.context" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.context">
          <path value="DeviceRequest.context" />
          <short value="Encounter or Episode motivating request" />
          <definition value="An encounter that provides additional context in which this request is made." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Accompanying PV1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=COMP].source[classCode&lt;=PCPR, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.encounter" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.occurrenceX" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.occurrenceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.occurrenceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.occurrence[x]">
          <path value="DeviceRequest.occurrence[x]" />
          <short value="Desired time or schedule for use" />
          <definition value="The timing schedule for the use of the device. 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;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Accompanying TQ1/TQ2 segments" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="DeviceUse.applicationSchedule" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.authoredOn" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.authoredOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.authoredOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.authoredOn">
          <path value="DeviceRequest.authoredOn" />
          <short value="When recorded" />
          <definition value="When the request transitioned to being actionable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC.9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.statementDateTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.requester" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.requester" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.requester" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.requester">
          <path value="DeviceRequest.requester" />
          <short value="Who/what is requesting diagnostics" />
          <definition value="The individual who initiated the request and has responsibility for its activation." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC.12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.requester.agent" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.requester.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.requester.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.requester.agent">
          <path value="DeviceRequest.requester.agent" />
          <short value="Individual making the request" />
          <definition value="The device, practitioner, etc. who initiated the request." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC.12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.requester.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.requester.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.requester.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.requester.onBehalfOf">
          <path value="DeviceRequest.requester.onBehalfOf" />
          <short value="Organization agent is acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of." />
          <requirements value="Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when authoring the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.performerType" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.performerType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.performerType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.performerType">
          <path value="DeviceRequest.performerType" />
          <short value="Fille role" />
          <definition value="Desired type of performer for doing the diagnostic testing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceRequestParticipantRole" />
            </extension>
            <strength value="example" />
            <description value="Indicates specific responsibility of an individual within the care team, such as &quot;Primary physician&quot;, &quot;Team coordinator&quot;, &quot;Caregiver&quot;, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/participant-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PRT" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.performer" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.performer">
          <path value="DeviceRequest.performer" />
          <short value="Requested Filler" />
          <definition value="The desired perfomer for doing the diagnostic testing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRT" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.reasonCode" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.reasonCode">
          <path value="DeviceRequest.reasonCode" />
          <short value="Coded Reason for request" />
          <definition value="Reason or justification for the use of this device." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceRequestReason" />
            </extension>
            <strength value="example" />
            <description value="Diagnosis or problem codes justifying the reason for requesting the device." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="ORC.16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="Action.indication.reason" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.reasonReference" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.reasonReference">
          <path value="DeviceRequest.reasonReference" />
          <short value="Linked Reason for request" />
          <definition value="Reason or justification for the use of this device." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC.16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.supportingInfo" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.supportingInfo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.supportingInfo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.supportingInfo">
          <path value="DeviceRequest.supportingInfo" />
          <short value="Additional clinical information" />
          <definition value="Additional clinical information about the patient that may influence the request fulfilment.  For example, this may includes body where on the subject's the device will be used ( i.e. the target site)." />
          <requirements value="Knowing where the device is targeted is important for tracking if multiple sites are possible." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="Accompanying segments" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=PERT].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.note" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.note">
          <path value="DeviceRequest.note" />
          <short value="Notes or comments" />
          <definition value="Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="NTE" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.additionalText" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceRequest.relevantHistory" />
    <resource>
      <DataElement>
        <id value="DeviceRequest.relevantHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceRequest.relevantHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceRequest.relevantHistory">
          <path value="DeviceRequest.relevantHistory" />
          <short value="Request provenance" />
          <definition value="Key events in the history of the request." />
          <comment value="This may not include provenances for all versions of the request – only those deemed “relevant” or important.&#xD;This SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude&#xD;All Provenances should have some historical version of this Request as their subject." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Provenance" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader" />
    <resource>
      <DataElement>
        <id value="MessageHeader" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader">
          <path value="MessageHeader" />
          <short value="A resource that describes a message that is exchanged between systems" />
          <definition value="The header for a message exchange that is either requesting or responding to an action.  The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="MSH / MSA / ERR" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Message" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.exchange" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.event" />
    <resource>
      <DataElement>
        <id value="MessageHeader.event" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.event" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.event">
          <path value="MessageHeader.event" />
          <short value="Code for the event this message represents" />
          <definition value="Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value &quot;http://hl7.org/fhir/message-events&quot;." />
          <requirements value="Drives the behavior associated with this message." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MessageEvent" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="One of the message events defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/message-events" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="MSH-9.2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./payload[classCode=&quot;CACT&quot; and moodCode=&quot;EVN&quot; and isNormalAct()]/code[isNormalDatatype()]/code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.destination" />
    <resource>
      <DataElement>
        <id value="MessageHeader.destination" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.destination" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.destination">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="MessageDestination" />
          </extension>
          <path value="MessageHeader.destination" />
          <short value="Message destination application(s)" />
          <definition value="The destination application which the message is intended for." />
          <comment value="There SHOULD be at least one destination, but in some circumstances, the source system is unaware of any particular destination system." />
          <requirements value="Indicates where message is to be sent for routing purposes.  Allows verification of &quot;am I the intended recipient&quot;." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./communicationFunction[typeCode=&quot;RCV&quot;]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.destination.name" />
    <resource>
      <DataElement>
        <id value="MessageHeader.destination.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.destination.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.destination.name">
          <path value="MessageHeader.destination.name" />
          <short value="Name of system" />
          <definition value="Human-readable name for the target system." />
          <requirements value="May be used for routing of response and/or to support audit." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="MSH-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./entity[determinerCode=&quot;INST&quot; and (classCode=(&quot;DEV&quot;, &quot;PSN&quot;, &quot;ORG&quot;]/name[type='ST' and isNormalDatatype()])" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.destination.target" />
    <resource>
      <DataElement>
        <id value="MessageHeader.destination.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.destination.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.destination.target">
          <path value="MessageHeader.destination.target" />
          <short value="Particular delivery destination within the destination" />
          <definition value="Identifies the target end system in situations where the initial message transmission is to an intermediary system." />
          <requirements value="Supports multi-hop routing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="unique(./entity[determinerCode=&quot;INST&quot; and (classCode=(&quot;DEV&quot;, &quot;PSN&quot;, &quot;ORG&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.destination.endpoint" />
    <resource>
      <DataElement>
        <id value="MessageHeader.destination.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.destination.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.destination.endpoint">
          <path value="MessageHeader.destination.endpoint" />
          <short value="Actual destination address or id" />
          <definition value="Indicates where the message should be routed to." />
          <comment value="The id may be a non-resolvable URI for systems that do not use standard network-based addresses." />
          <requirements value="Identifies where to route the message." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="MSH-25 (or MSH-6)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./telecom" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.receiver" />
    <resource>
      <DataElement>
        <id value="MessageHeader.receiver" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.receiver" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.receiver">
          <path value="MessageHeader.receiver" />
          <short value="Intended &quot;real-world&quot; recipient for the data" />
          <definition value="Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient." />
          <requirements value="Allows routing beyond just the application level." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Not directly supported.  Could be shared using attentionLine.value with an appropriate keyWordText" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.sender" />
    <resource>
      <DataElement>
        <id value="MessageHeader.sender" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.sender" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.sender">
          <path value="MessageHeader.sender" />
          <short value="Real world sender of the message" />
          <definition value="Identifies the sending system to allow the use of a trust relationship." />
          <comment value="Use case is for where a (trusted) sending system is responsible for multiple organizations, and therefore cannot differentiate based on source endpoint / authentication alone." />
          <requirements value="Allows routing beyond just the application level." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRT-5:PRT-4='WAYR' / PRT-8:PRT-4='WAYR'" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Not directly supported.  Could be shared using attentionLine.value with an appropriate keyWordText" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.timestamp" />
    <resource>
      <DataElement>
        <id value="MessageHeader.timestamp" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.timestamp" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.timestamp">
          <path value="MessageHeader.timestamp" />
          <short value="Time that the message was sent" />
          <definition value="The time that the message was sent." />
          <requirements value="Allows limited detection of out-of-order and delayed transmission.  Also supports audit." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="MSH-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./creationTime[isNormalDatatype()]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.enterer" />
    <resource>
      <DataElement>
        <id value="MessageHeader.enterer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.enterer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.enterer">
          <path value="MessageHeader.enterer" />
          <short value="The source of the data entry" />
          <definition value="The person or device that performed the data entry leading to this message. When there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions." />
          <comment value="Usually only for the request, but can be used in a response." />
          <requirements value="Need to know for audit/traceback requirements and possibly for authorization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="EVN-5 / ORC-10 / PRT-5:PRT-4='EP' / ROL where ROL.3 is EP or ORC.10" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[typeCode=&quot;ENT&quot; and isNormalParticipation]/role[classCode=&quot;ASSIGNED&quot; and isNormalRole()]/player[isNormalEntity() and classCode=(&quot;DEV&quot;, &quot;PSN&quot;) and determinerCode=&quot;INST&quot;])" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.author" />
    <resource>
      <DataElement>
        <id value="MessageHeader.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.author">
          <path value="MessageHeader.author" />
          <short value="The source of the decision" />
          <definition value="The logical author of the message - the person or device that decided the described event should happen. When there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions." />
          <comment value="Usually only for the request, but can be used in a response." />
          <requirements value="Need to know for audit/traceback requirements and possibly for authorization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC-19 / PRT-5:PRT-4='AUT' / ROL where ROL.3 is IP or ORC.12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=&quot;AUT&quot; and isNormalParticipation]/role[classCode=&quot;ASSIGNED&quot; and isNormalRole()]/player[isNormalEntity() and classCode=(&quot;DEV&quot;, &quot;PSN&quot;) and determinerCode=&quot;INST&quot;])" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.source" />
    <resource>
      <DataElement>
        <id value="MessageHeader.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.source">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="MessageSource" />
          </extension>
          <path value="MessageHeader.source" />
          <short value="Message source application" />
          <definition value="The source application from which this message originated." />
          <requirements value="Allows replies, supports audit." />
          <min value="1" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="unique(./communicationFunction[typeCode=&quot;SND&quot;])" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.source.name" />
    <resource>
      <DataElement>
        <id value="MessageHeader.source.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.source.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.source.name">
          <path value="MessageHeader.source.name" />
          <short value="Name of system" />
          <definition value="Human-readable name for the source system." />
          <requirements value="May be used to support audit." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="MSH-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./entity[determinerCode=&quot;INST&quot; and classCode=&quot;DEV&quot;]/name[type='ST' and isNormalDatatype()])" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.source.software" />
    <resource>
      <DataElement>
        <id value="MessageHeader.source.software" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.source.software" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.source.software">
          <path value="MessageHeader.source.software" />
          <short value="Name of software running the system" />
          <definition value="May include configuration or other information useful in debugging." />
          <requirements value="Supports audit and possibly interface engine behavior." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SFT-3 ( +SFT-1)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./entity[determinerCode=&quot;INST&quot; and classCode=&quot;DEV&quot;]/softwareName[isNormalDatatype()])" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.source.version" />
    <resource>
      <DataElement>
        <id value="MessageHeader.source.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.source.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.source.version">
          <path value="MessageHeader.source.version" />
          <short value="Version of software running" />
          <definition value="Can convey versions of multiple systems in situations where a message passes through multiple hands." />
          <requirements value="Supports audit and possibly interface engine behavior." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SFT-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="(Not supported)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.source.contact" />
    <resource>
      <DataElement>
        <id value="MessageHeader.source.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.source.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.source.contact">
          <path value="MessageHeader.source.contact" />
          <short value="Human contact for problems" />
          <definition value="An e-mail, phone, website or other contact point to use to resolve issues with message communications." />
          <requirements value="Allows escalation of technical issues." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="ContactPoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="(MSH-22?)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./entity[determinerCode=&quot;INST&quot; and classCode=&quot;DEV&quot;]/scopesRole[normalRole() and classCode=&quot;CON&quot; and layer[classCode=&quot;PSN&quot;]/telecom[isNormalDatatype()])" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.source.endpoint" />
    <resource>
      <DataElement>
        <id value="MessageHeader.source.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.source.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.source.endpoint">
          <path value="MessageHeader.source.endpoint" />
          <short value="Actual message source address or id" />
          <definition value="Identifies the routing target to send acknowledgements to." />
          <comment value="The id may be a non-resolvable URI for systems that do not use standard network-based addresses." />
          <requirements value="Identifies where to send responses, may influence security permissions." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="MSH-24" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./telecom[isNormalDatatype()]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.responsible" />
    <resource>
      <DataElement>
        <id value="MessageHeader.responsible" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.responsible" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.responsible">
          <path value="MessageHeader.responsible" />
          <short value="Final responsibility for event" />
          <definition value="The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party." />
          <comment value="Usually only for the request, but can be used in a response." />
          <requirements value="Need to know for audit/traceback requirements and possibly for authorization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC-12 /  PRT-5:PRT-4='OP' /  PRT-8:PRT-4='OP' / ROL where ROL.3 is RO or ORC.11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=&quot;RESP&quot; and isNormalParticipation]/role[classCode=&quot;ASSIGNED&quot; and isNormalRole()]/player[isNormalEntity() and classCode=&quot;PSN&quot; and determinerCode=&quot;INST&quot;] or ./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[isHighest(priorityCode) and typeCode=&quot;RESP&quot; and isNormalParticipation]/role[classCode=&quot;ASSIGNED&quot; and isNormalRole()]/scoper[isNormalEntity() and classCode=&quot;ORG&quot; and determinerCode=&quot;INST&quot;])" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.reason" />
    <resource>
      <DataElement>
        <id value="MessageHeader.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.reason">
          <path value="MessageHeader.reason" />
          <short value="Cause of event" />
          <definition value="Coded indication of the cause for the event - indicates  a reason for the occurrence of the event that is a focus of this message." />
          <requirements value="Need to be able to track why resources are being changed and report in the audit log/history of the resource.  May affect authorization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EventReason" />
            </extension>
            <strength value="example" />
            <description value="Reason for event occurrence" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/message-reason-encounter" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="EVN.4 / ORC.16 / OBR-31-reason for study / BPO-13-BP indication for use / RXO-20-indication / RXE-27-give indication / RXD-21-indication / RXG-22-indication / RXA-19-indication" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/reasonCode[isNormalDatatype()])" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.response" />
    <resource>
      <DataElement>
        <id value="MessageHeader.response" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.response" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.response">
          <path value="MessageHeader.response" />
          <short value="If this is a reply to prior message" />
          <definition value="Information about the message that this message is a response to.  Only present if this message is a response." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="MSA" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./conveyedAcknowledgement" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.response.identifier" />
    <resource>
      <DataElement>
        <id value="MessageHeader.response.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.response.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.response.identifier">
          <path value="MessageHeader.response.identifier" />
          <short value="Id of original message" />
          <definition value="The MessageHeader.id of the message to which this message is a response." />
          <requirements value="Allows receiver to know what message is being responded to." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="MSA-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./acknowledges.id[isNormalDatatype()]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.response.code" />
    <resource>
      <DataElement>
        <id value="MessageHeader.response.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.response.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.response.code">
          <path value="MessageHeader.response.code" />
          <short value="ok | transient-error | fatal-error" />
          <definition value="Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not." />
          <comment value="This is a generic response to the request message. Specific data for the response will be found in MessageHeader.focus." />
          <requirements value="Allows the sender of the acknowledge message to know if the request was successful or if action is needed." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResponseType" />
            </extension>
            <strength value="required" />
            <description value="The kind of response to a message" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/response-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="MSA-1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./typeCode[isNormalDatatype()]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.response.details" />
    <resource>
      <DataElement>
        <id value="MessageHeader.response.details" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.response.details" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.response.details">
          <path value="MessageHeader.response.details" />
          <short value="Specific list of hints/warnings/errors" />
          <definition value="Full details of any issues found in the message." />
          <comment value="This SHALL be contained in the bundle. If any of the issues are errors, the response code SHALL be an error." />
          <requirements value="Allows the sender of the message to determine what the specific issues are." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationOutcome" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ERR" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="AcknowledgementDetail or Observation[classCode=&quot;ALRT&quot; and moodCode=&quot;EVN&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MessageHeader.focus" />
    <resource>
      <DataElement>
        <id value="MessageHeader.focus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MessageHeader.focus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MessageHeader.focus">
          <path value="MessageHeader.focus" />
          <short value="The actual content of the message" />
          <definition value="The actual data of the message - a reference to the root/focus class of the event." />
          <comment value="The data is defined where the transaction type is defined. The transaction data is always included in the bundle that is the full message.  Only the root resource is specified.  The resources it references should be contained in the bundle but are not also listed here.  Multiple repetitions are allowed to cater for merges and other situations with multiple focal targets." />
          <requirements value="Every message event is about actual data, a single resource, that is identified in the definition of the event, and perhaps some or all linked resources." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="unique(./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/participation[typeCode=&quot;SUBJ&quot; and isNormalParticipation]/role or ./controlAct[classCode=&quot;CACT&quot; and classCode=&quot;EVN&quot; and isNormalAct()]/outboundRelationship[typeCode=&quot;SBJ&quot; and isNormalActRelatoinship]/target)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation">
          <path value="ImmunizationRecommendation" />
          <short value="Guidance or advice relating to an immunization" />
          <definition value="A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="VXU_V04" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="SubstanceAdministration[moodCode=RMD]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.medication" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.identifier" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.identifier">
          <path value="ImmunizationRecommendation.identifier" />
          <short value="Business identifier" />
          <definition value="A unique identifier assigned to this particular recommendation record." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.patient" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.patient">
          <path value="ImmunizationRecommendation.patient" />
          <short value="Who this profile is for" />
          <definition value="The patient the recommendations are for." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".partipication[typeCode=SUBJ].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation">
          <path value="ImmunizationRecommendation.recommendation" />
          <short value="Vaccine administration recommendations" />
          <definition value="Vaccine administration recommendations." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="imr-1" />
            <severity value="error" />
            <human value="One of vaccineCode or targetDisease SHALL be present" />
            <expression value="vaccineCode.exists() or targetDisease.exists()" />
            <xpath value="exists(f:vaccineCode) or exists(f:targetDisease)" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode='COMP'].target[classCode=SBADM, moodCode=RMD]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.date" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.date">
          <path value="ImmunizationRecommendation.recommendation.date" />
          <short value="Date recommendation created" />
          <definition value="The date the immunization recommendation was created." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OBX-15" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".partipication[typeCode=AUTH].time" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.vaccineCode" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.vaccineCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.vaccineCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.vaccineCode">
          <path value="ImmunizationRecommendation.recommendation.vaccineCode" />
          <short value="Vaccine recommendation applies to" />
          <definition value="Vaccine that pertains to the recommendation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="VaccineCode" />
            </extension>
            <strength value="example" />
            <description value="The type of vaccine administered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/vaccine-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 : OBX-3 e { 30956-7 | 38890-0 }" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".partipication[typeCode=CSM].role[classCode=ADMM].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.targetDisease" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.targetDisease" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.targetDisease" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.targetDisease">
          <path value="ImmunizationRecommendation.recommendation.targetDisease" />
          <short value="Disease to be immunized against" />
          <definition value="The targeted disease for the recommendation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TargetDisease" />
            </extension>
            <strength value="example" />
            <description value="The disease that the recommended vaccination targets" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/immunization-recommendation-target-disease" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 : OBX-3 e { 30956-7 | 38890-0 }" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".partipication[typeCode=CSM].role[classCode=ADMM].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.doseNumber" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.doseNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.doseNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.doseNumber">
          <path value="ImmunizationRecommendation.recommendation.doseNumber" />
          <short value="Recommended dose number" />
          <definition value="The next recommended dose number (e.g. dose 2 is the next recommended dose)." />
          <comment value="May need other dose concepts such as administered vs. valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 : OBX-3 = 30973-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP, .source[classCode=SBADM, moodCode=INT]].sequenceNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.forecastStatus" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.forecastStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.forecastStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.forecastStatus">
          <path value="ImmunizationRecommendation.recommendation.forecastStatus" />
          <short value="Vaccine administration status" />
          <definition value="Vaccine administration status." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImmunizationRecommendationStatus" />
            </extension>
            <strength value="example" />
            <description value="The patient's status with respect to a vaccination protocol" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/immunization-recommendation-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 : OBX-3 = 59783-1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ] .source[classCode=OBS, moodCode=EVN, code=&quot;Immunization Forecast Status&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.dateCriterion" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.dateCriterion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.dateCriterion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.dateCriterion">
          <path value="ImmunizationRecommendation.recommendation.dateCriterion" />
          <short value="Dates governing proposed immunization" />
          <definition value="Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="OBX-3: 30980-7 = Next dose recommended, 59777-3 = Latest next dose should be given, 59778-1 = Dose is overdue" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode='LIMIT'].target[classCode=OBS, moodCode=EVN, isCriterionInd=true]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.dateCriterion.code" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.dateCriterion.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.dateCriterion.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.dateCriterion.code">
          <path value="ImmunizationRecommendation.recommendation.dateCriterion.code" />
          <short value="Type of date" />
          <definition value="Date classification of recommendation.  For example, earliest date to give, latest date to give, etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImmunizationRecommendationDateCriterion" />
            </extension>
            <strength value="example" />
            <description value="Classifies date criterion with respect to conveying information about a patient's vaccination status (e.g. due date, latest to give date, etc.)" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/immunization-recommendation-date-criterion" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBX-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.dateCriterion.value" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.dateCriterion.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.dateCriterion.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.dateCriterion.value">
          <path value="ImmunizationRecommendation.recommendation.dateCriterion.value" />
          <short value="Recommended date" />
          <definition value="The date whose meaning is specified by dateCriterion.code." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.protocol" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.protocol">
          <path value="ImmunizationRecommendation.recommendation.protocol" />
          <short value="Protocol used by recommendation" />
          <definition value="Contains information about the protocol under which the vaccine was administered." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=INST].source[classCode=SBADM, moodCode=DEF]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol.doseSequence" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.protocol.doseSequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol.doseSequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.protocol.doseSequence">
          <path value="ImmunizationRecommendation.recommendation.protocol.doseSequence" />
          <short value="Dose number within sequence" />
          <definition value="Indicates the nominal position in a series of the next dose.  This is the recommended dose number as per a specified protocol." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 : OBX-3 = 30973-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP, .source[classCode=SBADM, moodCode=DEF]].sequenceNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol.description" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.protocol.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.protocol.description">
          <path value="ImmunizationRecommendation.recommendation.protocol.description" />
          <short value="Protocol details" />
          <definition value="Contains the description about the protocol under which the vaccine was administered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 : OBX-3 = 30956-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol.authority" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.protocol.authority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol.authority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.protocol.authority">
          <path value="ImmunizationRecommendation.recommendation.protocol.authority" />
          <short value="Who is responsible for protocol" />
          <definition value="Indicates the authority who published the protocol.  For example, ACIP." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 : OBX-3 = 59779-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol.series" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.protocol.series" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.protocol.series" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.protocol.series">
          <path value="ImmunizationRecommendation.recommendation.protocol.series" />
          <short value="Name of vaccination series" />
          <definition value="One possible path to achieve presumed immunity against a disease - within the context of an authority." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXA-5-administered code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.supportingImmunization" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.supportingImmunization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.supportingImmunization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.supportingImmunization">
          <path value="ImmunizationRecommendation.recommendation.supportingImmunization" />
          <short value="Past immunizations supporting recommendation" />
          <definition value="Immunization event history that supports the status and recommendation." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="? No clear way to associate in HL7 v2 or IG" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target[classCode=SBADM, moodCode=EVN, code=&quot;immunization&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.supportingPatientInfor" />
    <resource>
      <DataElement>
        <id value="ImmunizationRecommendation.recommendation.supportingPatientInfor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ImmunizationRecommendation.recommendation.supportingPatientInfor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ImmunizationRecommendation.recommendation.supportingPatientInformation">
          <path value="ImmunizationRecommendation.recommendation.supportingPatientInformation" />
          <short value="Patient observations supporting recommendation" />
          <definition value="Patient Information that supports the status and recommendation.  This includes patient observations, adverse reactions and allergy/intolerance information." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX If OBX is associated with ( RXA : RXA-5-administered code = '998^No vaccine administered^CVX'), could contain the reason the vaccine was not administered" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BodySite" />
    <resource>
      <DataElement>
        <id value="BodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BodySite">
          <path value="BodySite" />
          <short value="Specific and identified anatomical location" />
          <definition value="Record details about the anatomical location of a specimen or body part.  This resource may be used when a coded concept does not provide the necessary detail needed for the use case." />
          <alias value="anatomical location" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="ActSIte" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Archetype ID   openEHR-EHR-CLUSTER.anatomical_location.v1      Concept name   Anatomical Location      Concept description   Record details about an anatomical location.      Keywords   location, site, anatomical      Copyright   © openEHR Foundation      Purpose   To record details about anatomical location.      Misuse   Not for specifiying unilateral/bilateral occurrence - this is related to an evaluation which perhaps includes multiple locations.      Author   Author name: Heather Leslie Organization: Ocean Informatics Email: heather.leslie@oceaninformatics.com Date of Origination: 2008-11-10       Translator   Norwegian Bokmål: Lars Bitsch-Larsen, Haukeland University Hospital of Bergen, Norway, MD, DEAA, MBA, spec in anesthesia, spec in tropical medicine. Arabic (Syria): Mona Saleh       Other contributors   Heather Leslie, Ocean Informatics, Australia (Editor) Ian McNicoll, freshEHR Clinical Informatics, United Kingdom (Editor) Dunmail Hodkinson, Black Pear Software Ltd, UK      References   Use cases: - 5LICS, midclavicular line - L forearm, 2cm anterior to the cubital fossa - Right iliac fossa - 5 cm below L tibial tuberosity - 2 cm medial to R nipple - 4 cm below R costal margin in midclavicular line - R femur - midline nose - medial aspect of R great toe nail." />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.diagnostics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BodySite.identifier" />
    <resource>
      <DataElement>
        <id value="BodySite.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BodySite.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BodySite.identifier">
          <path value="BodySite.identifier" />
          <short value="Bodysite identifier" />
          <definition value="Identifier for this instance of the anatomical location." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Specific location  Cluster Optional (0..1) Cardinality: Mandatory, repeating, unordered (1..*)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BodySite.active" />
    <resource>
      <DataElement>
        <id value="BodySite.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BodySite.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BodySite.active">
          <path value="BodySite.active" />
          <short value="Whether this body site record is in active use" />
          <definition value="Whether this body site is in active use." />
          <comment value="This element is labeled as a modifier because it may be used to mark that the resource was created in error." />
          <requirements value="Need to be able to mark a body site entry as not to be used because it was created in error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BodySite.code" />
    <resource>
      <DataElement>
        <id value="BodySite.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BodySite.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BodySite.code">
          <path value="BodySite.code" />
          <short value="Named anatomical location" />
          <definition value="Named anatomical location - ideally coded where possible." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBX-20" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".targetSiteCode" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Name of location" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BodySite.qualifier" />
    <resource>
      <DataElement>
        <id value="BodySite.qualifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BodySite.qualifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BodySite.qualifier">
          <path value="BodySite.qualifier" />
          <short value="Modification to location code" />
          <definition value="Qualifier to refine the anatomical location.  These include qualifiers for laterality, relative location, directionality, number, and plane." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySiteQualifier" />
            </extension>
            <strength value="example" />
            <description value="Concepts modifying the anatomic location" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/bodysite-relative-location" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="No distinct element defined in V2.x. The IHE Radiology Technical Framework directs the use of OBR-15-specimen source to contain laterality for imaging studies." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".targetSiteCode" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Combines Side, Numerical identifier, Anatomical plane,and Aspect" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BodySite.description" />
    <resource>
      <DataElement>
        <id value="BodySite.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BodySite.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BodySite.description">
          <path value="BodySite.description" />
          <short value="Anatomical location description" />
          <definition value="A summary, charactarization or explanation of the anatomic location." />
          <comment value="This description could include any visual markings used to orientate the viewer e.g. external reference points, special sutures, ink markings." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Description of anatomical location/Visual markings/orientation" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BodySite.image" />
    <resource>
      <DataElement>
        <id value="BodySite.image" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BodySite.image" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BodySite.image">
          <path value="BodySite.image" />
          <short value="Attached images" />
          <definition value="Image or images used to identify a location." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Attachment" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=COMP].target" />
          </mapping>
          <mapping>
            <identity value="openehr" />
            <map value="Image" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/BodySite.patient" />
    <resource>
      <DataElement>
        <id value="BodySite.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/BodySite.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="BodySite.patient">
          <path value="BodySite.patient" />
          <short value="Who this is about" />
          <definition value="The person to which the body site belongs." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".scoper or .scoper.playsRole" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance" />
    <resource>
      <DataElement>
        <id value="Provenance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance">
          <path value="Provenance" />
          <short value="Who, What, When for a set of resources" />
          <definition value="Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies." />
          <comment value="Some parties may be duplicated between the target resource and its provenance.  For instance, the prescriber is usually (but not always) the author of the prescription resource. This resource is defined with close consideration for W3C Provenance." />
          <alias value="History" />
          <alias value="Event" />
          <alias value="Activity" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="ControlAct[isNormalAct() and subsumes(CACT, classCode) and moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.information" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.target" />
    <resource>
      <DataElement>
        <id value="Provenance.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.target">
          <path value="Provenance.target" />
          <short value="Target Reference(s) (usually version specific)" />
          <definition value="The Reference(s) that were generated or updated by  the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity." />
          <comment value="Target references are usually version specific, but may not be, if a version has not been assigned or if the provenance information is part of the set of resources being maintained (i.e. a document). When using the RESTful API, the identity of the resource may not be known (especially not the version specific one); the client may either submit the resource first, and then the provenance, or it may submit both using a single transaction. See the notes on transaction for further discussion." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./outboundRelationship[isNormalActRelationship() and typeCode=SUBJ]/target  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role  OR  ./participation[isNormalParticipation() and typeCode=SBJ]/role[isNormalRole()]/player" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.entity.reference" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Entity Created/Updated" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.period" />
    <resource>
      <DataElement>
        <id value="Provenance.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.period">
          <path value="Provenance.period" />
          <short value="When the activity occurred" />
          <definition value="The period during which the activity occurred." />
          <comment value="The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="./effectiveTime[type=IVL_TS]" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity.startTime &amp; Activity.endTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.recorded" />
    <resource>
      <DataElement>
        <id value="Provenance.recorded" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.recorded" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.recorded">
          <path value="Provenance.recorded" />
          <short value="When the activity was recorded / updated" />
          <definition value="The instant of time at which the activity was recorded." />
          <comment value="This can be a little different from the time stamp on the resource if there is a delay between recording the event and updating the provenance and target resource." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="unique(./participation[isNormalParticipation() and typeCode=AUT]/time[type=TS])" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.recorded" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity.when" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.policy" />
    <resource>
      <DataElement>
        <id value="Provenance.policy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.policy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.policy">
          <path value="Provenance.policy" />
          <short value="Policy or plan the activity was defined by" />
          <definition value="Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc." />
          <comment value="For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="./inboundRelationship[isNormalActRelationship() and typeCode=&quot;SUBJ&quot;]/source[isNormalAct and subsumes(POLICY, classCode) and moodCode=EVN]/text[typeCode='ED'/tel" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.agent.policy" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.location" />
    <resource>
      <DataElement>
        <id value="Provenance.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.location">
          <path value="Provenance.location" />
          <short value="Where the activity occurred, if relevant" />
          <definition value="Where the activity occurred, if relevant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="unique(./participation[isNormalParticipation() and typeCode=LOC]/role[isNormalRole() and subsumes(SDLOC, classCode)]/player[isNormalEntity and classCode=&quot;LOC&quot; and determinerCode=&quot;INST&quot;]" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.agent.location" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity.location" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.reason" />
    <resource>
      <DataElement>
        <id value="Provenance.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.reason">
          <path value="Provenance.reason" />
          <short value="Reason the activity is occurring" />
          <definition value="The reason that the activity was taking place." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProvenanceReason" />
            </extension>
            <strength value="extensible" />
            <description value="The reason the activity took place." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="unique(./reasonCode)" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.purposeOfEvent" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity.Activity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.activity" />
    <resource>
      <DataElement>
        <id value="Provenance.activity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.activity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.activity">
          <path value="Provenance.activity" />
          <short value="Activity that occurred" />
          <definition value="An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProvenanceActivity" />
            </extension>
            <strength value="extensible" />
            <description value="The activity that took place." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/provenance-activity-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="Act.code" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.purposeOfEvent" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity.Activity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.agent" />
    <resource>
      <DataElement>
        <id value="Provenance.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.agent">
          <path value="Provenance.agent" />
          <short value="Actor involved" />
          <definition value="An actor taking a role in an activity  for which it can be assigned some degree of responsibility for the activity taking place." />
          <comment value="Several agents may be associated (i.e. has some responsibility for an activity) with an activity and vice-versa." />
          <requirements value="An agent can be a person, an organization, software, device, or other entities that may be ascribed responsibility." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="./participation[isNormalParticipation()]  OR  ./outboundRelationship[isNormalActRelationship() and typeCode='DRIV']" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.agent" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.agent.role" />
    <resource>
      <DataElement>
        <id value="Provenance.agent.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.agent.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.agent.role">
          <path value="Provenance.agent.role" />
          <short value="What the agents role was" />
          <definition value="The function of the agent with respect to the activity. The security role enabling the agent with respect to the activity." />
          <comment value="For example: author, performer, enterer, attester, doctor, nurse, clerk, etc." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProvenanceAgentRole" />
            </extension>
            <strength value="extensible" />
            <description value="The role that a provenance agent played with respect to the activity." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/security-role-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".role and/or .typecode" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.agent.role" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent.Attribution" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.agent.whoX" />
    <resource>
      <DataElement>
        <id value="Provenance.agent.whoX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.agent.whoX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.agent.who[x]">
          <path value="Provenance.agent.who[x]" />
          <short value="Who participated" />
          <definition value="The individual, device or organization that participated in the event." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.agent.onBehalfOfX" />
    <resource>
      <DataElement>
        <id value="Provenance.agent.onBehalfOfX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.agent.onBehalfOfX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.agent.onBehalfOf[x]">
          <path value="Provenance.agent.onBehalfOf[x]" />
          <short value="Who the agent is representing" />
          <definition value="The individual, device, or organization for whom the change was made." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="Person, Practitioner, Organization, Device :* .role [classCode = RoleClassMutualRelationship; role.code and * .scopes[Role](classCode=IDENT) and *.plays [Role.Code]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.agent.relatedAgentType" />
    <resource>
      <DataElement>
        <id value="Provenance.agent.relatedAgentType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.agent.relatedAgentType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.agent.relatedAgentType">
          <path value="Provenance.agent.relatedAgentType" />
          <short value="Type of relationship between agents" />
          <definition value="The type of relationship between agents." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RelatedAgentType" />
            </extension>
            <strength value="example" />
            <description value="Type of relationship between two provenance agents." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-RoleLinkType" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".typeCode" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="type" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.entity" />
    <resource>
      <DataElement>
        <id value="Provenance.entity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.entity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.entity">
          <path value="Provenance.entity" />
          <short value="An entity used in this activity" />
          <definition value="An entity used in this activity." />
          <comment value="Multiple userIds may be associated with the same Practitioner or other individual across various appearances, each with distinct privileges." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="./subjectOf" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.entity" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Entity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.entity.role" />
    <resource>
      <DataElement>
        <id value="Provenance.entity.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.entity.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.entity.role">
          <path value="Provenance.entity.role" />
          <short value="derivation | revision | quotation | source | removal" />
          <definition value="How the entity was used during the activity." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProvenanceEntityRole" />
            </extension>
            <strength value="required" />
            <description value="How an entity was used in an activity." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/provenance-entity-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="./typeCode" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.entity.lifecycle" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Entity.role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.entity.whatX" />
    <resource>
      <DataElement>
        <id value="Provenance.entity.whatX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.entity.whatX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.entity.what[x]">
          <path value="Provenance.entity.what[x]" />
          <short value="Identity of entity" />
          <definition value="Identity of the  Entity used. May be a logical or physical uri and maybe absolute or relative." />
          <comment value="Identity may be a reference to a resource or to something else, depending on the type." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./text/reference" />
          </mapping>
          <mapping>
            <identity value="fhirauditevent" />
            <map value="AuditEvent.entity.reference" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Entity.Identity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.entity.agent" />
    <resource>
      <DataElement>
        <id value="Provenance.entity.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.entity.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.entity.agent">
          <path value="Provenance.entity.agent" />
          <short value="Entity is attributed to this agent" />
          <definition value="The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity." />
          <comment value="A usecase where one Provenance.entity.agent is used where the Entity that was used in the creation/updating of the Target, is not in the context of the same custodianship as the Target, and thus the meaning of Provenance.entity.agent is to say that the entity referenced is managed elsewhere and that this Agent provided access to it.  This would be similar to where the Entity being referenced is managed outside FHIR, such as through HL7 v2, v3, or XDS. This might be where the Entity being referenced is managed in another FHIR resource server. Thus it explains the Provenance of that Entity's use in the context of this Provenance activity." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#Provenance.agent" />
          <mapping>
            <identity value="rim" />
            <map value="./author/role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Provenance.signature" />
    <resource>
      <DataElement>
        <id value="Provenance.signature" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Provenance.signature" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Provenance.signature">
          <path value="Provenance.signature" />
          <short value="Signature on target" />
          <definition value="A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Signature" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="./signatureText" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task" />
    <resource>
      <DataElement>
        <id value="Task" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task">
          <path value="Task" />
          <short value="A task to be performed" />
          <definition value="A task to be performed." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="inv-1" />
            <severity value="error" />
            <human value="Last modified date must be greater than or equal to authored-on date." />
            <expression value="lastModified.exists().not() or authoredOn.exists().not() or lastModified &gt;= authoredOn" />
            <xpath value="not(exists(f:lastModified/@value)) or not(exists(f:authoredOn/@value)) or f:lastModified/@value &gt;= f:authoredOn/@value" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request, Event" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="ControlAct[moodCode=INT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.order" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.identifier" />
    <resource>
      <DataElement>
        <id value="Task.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.identifier">
          <path value="Task.identifier" />
          <short value="Task Instance Identifier" />
          <definition value="The business identifier for this task." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier, Event.identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.definitionX" />
    <resource>
      <DataElement>
        <id value="Task.definitionX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.definitionX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.definition[x]">
          <path value="Task.definition[x]" />
          <short value="Formal definition of task" />
          <definition value="A reference to a formal or informal definition of the task.  For example, a protocol, a step within a defined workflow definition, etc." />
          <requirements value="Enables a formal definition of how he task is to be performed (e.g. using BPMN, BPEL, XPDL or other formal notation) to be associated with a task, enabling automation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.definition, Event.definition" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.basedOn" />
    <resource>
      <DataElement>
        <id value="Task.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.basedOn">
          <path value="Task.basedOn" />
          <short value="Request fulfilled by this task" />
          <definition value="BasedOn refers to a higher-level authorization that triggered the creation of the task.  It references a &quot;request&quot; resource such as a ProcedureRequest, MedicationRequest, ProcedureRequest, CarePlan, etc. which is distinct from the &quot;request&quot; resource the task is seeking to fulfil.  This latter resource is referenced by FocusOn.  For example, based on a ProcedureRequest (= BasedOn), a task is created to fulfil a procedureRequest ( = FocusOn ) to collect a specimen from a patient." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.basedOn, Definition.basedOn" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target[moodCode=INT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.groupIdentifier" />
    <resource>
      <DataElement>
        <id value="Task.groupIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.groupIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.groupIdentifier">
          <path value="Task.groupIdentifier" />
          <short value="Requisition or grouper id" />
          <definition value="An identifier that links together multiple tasks and other requests that were created in the same context." />
          <requirements value="Billing and/or reporting can be linked to whether multiple requests were created as a single unit." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.groupIdentifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[moodCode=INT].id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.partOf" />
    <resource>
      <DataElement>
        <id value="Task.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.partOf">
          <path value="Task.partOf" />
          <short value="Composite task" />
          <definition value="Task that this particular task is part of." />
          <comment value="This should usually be 0..1." />
          <requirements value="Allows tasks to be broken down into sub-steps (and this division can occur independent of the original task)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Task" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.partOf" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[moodCode=INT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.status" />
    <resource>
      <DataElement>
        <id value="Task.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.status">
          <path value="Task.status" />
          <short value="draft | requested | received | accepted | +" />
          <definition value="The current status of the task." />
          <requirements value="These states enable coordination of task status with off-the-shelf workflow solutions that support automation of tasks." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskStatus" />
            </extension>
            <strength value="required" />
            <description value="The current status of the task." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/task-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status, Event.status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.statusReason" />
    <resource>
      <DataElement>
        <id value="Task.statusReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.statusReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.statusReason">
          <path value="Task.statusReason" />
          <short value="Reason for current status" />
          <definition value="An explanation as to why this task is held, failed, was refused, etc." />
          <comment value="This applies to the current status.  Look at the history of the task to see reasons for past statuses." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskStatusReason" />
            </extension>
            <strength value="example" />
            <description value="Codes to identify the reason for current status.  These will typically be specific to a particular workflow." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN, code=&quot;status change&quot;].reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.businessStatus" />
    <resource>
      <DataElement>
        <id value="Task.businessStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.businessStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.businessStatus">
          <path value="Task.businessStatus" />
          <short value="E.g. &quot;Specimen collected&quot;, &quot;IV prepped&quot;" />
          <definition value="Contains business-specific nuances of the business state." />
          <requirements value="There's often a need to track substates of a task - this is often variable by specific workflow implementation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskBusinessStatus" />
            </extension>
            <strength value="example" />
            <description value="The domain-specific business-contextual sub-state of the task.  For example: &quot;Blood drawn&quot;, &quot;IV inserted&quot;, &quot;Awaiting physician signature&quot;, etc." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;business status&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.intent" />
    <resource>
      <DataElement>
        <id value="Task.intent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.intent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.intent">
          <path value="Task.intent" />
          <short value="proposal | plan | order +" />
          <definition value="Indicates the &quot;level&quot; of actionability associated with the Task.  I.e. Is this a proposed task, a planned task, an actionable task, etc." />
          <comment value="This element is immutable.  Proposed tasks, planned tasks, etc. must be distinct instances.&#xA;&#xA;In most cases, Tasks will have an intent of &quot;order&quot;." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskIntent" />
            </extension>
            <strength value="required" />
            <description value="Distinguishes whether the task is a proposal, plan or full order" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-intent" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.intent" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".moodCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.priority" />
    <resource>
      <DataElement>
        <id value="Task.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.priority">
          <path value="Task.priority" />
          <short value="normal | urgent | asap | stat" />
          <definition value="Indicates how quickly the Task should be addressed with respect to other requests." />
          <requirements value="Used to identify the service level expected while performing a task." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <meaningWhenMissing value="If missing, this task should be performed with normal priority" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskPriority" />
            </extension>
            <strength value="required" />
            <description value="The task's priority" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.priority" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".priorityCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.code" />
    <resource>
      <DataElement>
        <id value="Task.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.code">
          <path value="Task.code" />
          <short value="Task Type" />
          <definition value="A name or code (or both) briefly describing what the task involves." />
          <comment value="The title (eg &quot;My Tasks&quot;, &quot;Outstanding Tasks for Patient X&quot;) should go into the code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskCode" />
            </extension>
            <strength value="example" />
            <description value="Codes to identify what the task involves.  These will typically be specific to a particular workflow." />
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.code, Event.code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.description" />
    <resource>
      <DataElement>
        <id value="Task.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.description">
          <path value="Task.description" />
          <short value="Human-readable explanation of task" />
          <definition value="A free-text description of what is to be performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.focus" />
    <resource>
      <DataElement>
        <id value="Task.focus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.focus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.focus">
          <path value="Task.focus" />
          <short value="What task is acting on" />
          <definition value="The request being actioned or the resource being manipulated by this task." />
          <comment value="If multiple resources need to be manipulated, use sub-tasks.  (This ensures that status can be tracked independently for each referenced resource.)." />
          <requirements value="Used to identify the thing to be done." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=SUBJ].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.for" />
    <resource>
      <DataElement>
        <id value="Task.for" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.for" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.for">
          <path value="Task.for" />
          <short value="Beneficiary of the Task" />
          <definition value="The entity who benefits from the performance of the service specified in the task (e.g., the patient)." />
          <requirements value="Used to track tasks outstanding for a beneficiary.  Do not use to track the task owner or creator (see owner and creator respectively).  This can also affect access control." />
          <alias value="Patient" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.subject, Event.subject" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=RCT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.context" />
    <resource>
      <DataElement>
        <id value="Task.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.context">
          <path value="Task.context" />
          <short value="Healthcare event during which this task originated" />
          <definition value="The healthcare event  (e.g. a patient and healthcare provider interaction) during which this task was created." />
          <requirements value="For some tasks it may be important to know the link between the task or episode of care the task originated within." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.context, Event.context" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=PCPR, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.executionPeriod" />
    <resource>
      <DataElement>
        <id value="Task.executionPeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.executionPeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.executionPeriod">
          <path value="Task.executionPeriod" />
          <short value="Start and end time of execution" />
          <definition value="Identifies the time action was first taken against the task (start) and/or the time final action was taken against the task prior to marking it as completed (end)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence[x]" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.authoredOn" />
    <resource>
      <DataElement>
        <id value="Task.authoredOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.authoredOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.authoredOn">
          <path value="Task.authoredOn" />
          <short value="Task Creation Date" />
          <definition value="The date and time this task was created." />
          <requirements value="Most often used along with lastUpdated to track duration of task to supporting monitoring and management." />
          <alias value="Created Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <condition value="inv-1" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.lastModified" />
    <resource>
      <DataElement>
        <id value="Task.lastModified" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.lastModified" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.lastModified">
          <path value="Task.lastModified" />
          <short value="Task Last Modified Date" />
          <definition value="The date and time of last modification to this task." />
          <requirements value="Used along with history to track task activity and time in a particular task state.  This enables monitoring and management." />
          <alias value="Update Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <condition value="inv-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ, ].source[classCode=CACT, moodCode=EVN].effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.requester" />
    <resource>
      <DataElement>
        <id value="Task.requester" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.requester" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.requester">
          <path value="Task.requester" />
          <short value="Who is asking for task to be done" />
          <definition value="The creator of the task." />
          <requirements value="Identifies who created this task.  May be used by access control mechanisms (e.g., to ensure that only the creator can cancel a task)." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.requester.agent" />
    <resource>
      <DataElement>
        <id value="Task.requester.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.requester.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.requester.agent">
          <path value="Task.requester.agent" />
          <short value="Individual asking for task" />
          <definition value="The device, practitioner, etc. who initiated the task." />
          <alias value="Initiator" />
          <alias value="Author" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.agent" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.requester.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="Task.requester.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.requester.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.requester.onBehalfOf">
          <path value="Task.requester.onBehalfOf" />
          <short value="Organization individual is acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of when they initiated the task." />
          <requirements value="Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when authoring the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.performerType" />
    <resource>
      <DataElement>
        <id value="Task.performerType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.performerType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.performerType">
          <path value="Task.performerType" />
          <short value="requester | dispatcher | scheduler | performer | monitor | manager | acquirer | reviewer" />
          <definition value="The type of participant that can execute the task." />
          <requirements value="Use to distinguish tasks on different activity queues." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskPerformerType" />
            </extension>
            <strength value="preferred" />
            <description value="The type(s) of task performers allowed" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/task-performer-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.role, Request.performerType" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role.code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.owner" />
    <resource>
      <DataElement>
        <id value="Task.owner" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.owner" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.owner">
          <path value="Task.owner" />
          <short value="Responsible individual" />
          <definition value="Individual organization or Device currently responsible for task execution." />
          <comment value="Tasks may be created with an owner not yet identified." />
          <requirements value="Identifies who is expected to perform this task." />
          <alias value="Performer" />
          <alias value="Executer" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.actor, Request.performer" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.reason" />
    <resource>
      <DataElement>
        <id value="Task.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.reason">
          <path value="Task.reason" />
          <short value="Why task is needed" />
          <definition value="A description or code indicating why this task needs to be performed." />
          <comment value="This should only be included if there is no focus or if it differs from the reason indicated on the focus." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskReason" />
            </extension>
            <strength value="example" />
            <description value="Indicates why the task is needed.  E.g. Suspended because patient admitted to hospital." />
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonCode, Event.reasonCodeableConcept" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.note" />
    <resource>
      <DataElement>
        <id value="Task.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.note">
          <path value="Task.note" />
          <short value="Comments made about the task" />
          <definition value="Free-text information captured about the task as it progresses." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.note, Event.note" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ, ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value(string)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.relevantHistory" />
    <resource>
      <DataElement>
        <id value="Task.relevantHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.relevantHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.relevantHistory">
          <path value="Task.relevantHistory" />
          <short value="Key events in history of the Task" />
          <definition value="Links to Provenance records for past versions of this Task that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the task." />
          <comment value="This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude." />
          <alias value="Status History" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Provenance" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.relevantHistory" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.restriction" />
    <resource>
      <DataElement>
        <id value="Task.restriction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.restriction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.restriction">
          <path value="Task.restriction" />
          <short value="Constraints on fulfillment tasks" />
          <definition value="If the Task.focus is a request resource and the task is seeking fulfillment (i.e is asking for the request to be actioned), this element identifies any limitations on what parts of the referenced request should be actioned." />
          <requirements value="Sometimes when fulfillment is sought, you don't want full fulfillment." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Instead of pointing to request, would point to component of request, having these characteristics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.restriction.repetitions" />
    <resource>
      <DataElement>
        <id value="Task.restriction.repetitions" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.restriction.repetitions" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.restriction.repetitions">
          <path value="Task.restriction.repetitions" />
          <short value="How many times to repeat" />
          <definition value="Indicates the number of times the requested action should occur." />
          <requirements value="E.g. order that requests monthly lab tests, fulfillment is sought for 1." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".repeatNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.restriction.period" />
    <resource>
      <DataElement>
        <id value="Task.restriction.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.restriction.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.restriction.period">
          <path value="Task.restriction.period" />
          <short value="When fulfillment sought" />
          <definition value="Over what time-period is fulfillment sought." />
          <comment value="Note that period.high is the due date representing the time by which the task should be completed." />
          <requirements value="E.g. order that authorizes 1 year's services.  Fulfillment is sought for next 3 months." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime(IVL&lt;TS&gt;)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.restriction.recipient" />
    <resource>
      <DataElement>
        <id value="Task.restriction.recipient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.restriction.recipient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.restriction.recipient">
          <path value="Task.restriction.recipient" />
          <short value="For whom is fulfillment sought?" />
          <definition value="For requests that are targeted to more than on potential recipient/target, for whom is fulfillment sought?" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.input" />
    <resource>
      <DataElement>
        <id value="Task.input" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.input" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.input">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Parameter" />
          </extension>
          <path value="Task.input" />
          <short value="Information used to perform task" />
          <definition value="Additional information that may be needed in the execution of the task." />
          <requirements value="Resources and data used to perform the task.  This data is used in the business logic of task execution, and is stored separately because it varies between workflows." />
          <alias value="Supporting Information" />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="???" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.input.type" />
    <resource>
      <DataElement>
        <id value="Task.input.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.input.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.input.type">
          <path value="Task.input.type" />
          <short value="Label for the input" />
          <definition value="A code or description indicating how the input is intended to be used as part of the task execution." />
          <comment value="If referencing a BPMN workflow or Protocol, the &quot;system&quot; is the URL for the workflow definition and the code is the &quot;name&quot; of the required input." />
          <requirements value="Inputs are named to enable task automation to bind data and pass it from one task to the next." />
          <alias value="Name" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskInputParameterType" />
            </extension>
            <strength value="example" />
            <description value="Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. &quot;Comparison source&quot;, &quot;Applicable consent&quot;, &quot;Concommitent Medications&quot;, etc." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="???" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.input.valueX" />
    <resource>
      <DataElement>
        <id value="Task.input.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.input.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.input.value[x]">
          <path value="Task.input.value[x]" />
          <short value="Content to use in performing the task" />
          <definition value="The value of the input parameter as a basic type." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="markdown" />
          </type>
          <type>
            <code value="oid" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Annotation" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="ContactPoint" />
          </type>
          <type>
            <code value="Count" />
          </type>
          <type>
            <code value="Distance" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="HumanName" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Money" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Reference" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Signature" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Meta" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="???" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.output" />
    <resource>
      <DataElement>
        <id value="Task.output" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.output" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.output">
          <path value="Task.output" />
          <short value="Information produced as part of task" />
          <definition value="Outputs produced by the Task." />
          <requirements value="Resources and data produced during the execution the task.  This data is generated by the business logic of task execution, and is stored separately because it varies between workflows." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="???" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.output.type" />
    <resource>
      <DataElement>
        <id value="Task.output.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.output.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.output.type">
          <path value="Task.output.type" />
          <short value="Label for output" />
          <definition value="The name of the Output parameter." />
          <requirements value="Outputs are named to enable task automation to bind data and pass it from one task to the next." />
          <alias value="Name" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskOutputParameterType" />
            </extension>
            <strength value="example" />
            <description value="Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. &quot;Identified issues&quot;, &quot;Preliminary results&quot;, &quot;Filler order&quot;, &quot;Final results&quot;, etc." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="???" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Task.output.valueX" />
    <resource>
      <DataElement>
        <id value="Task.output.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Task.output.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Task.output.value[x]">
          <path value="Task.output.value[x]" />
          <short value="Result of output" />
          <definition value="The value of the Output parameter as a basic type." />
          <requirements value="Task outputs can take any form." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="markdown" />
          </type>
          <type>
            <code value="oid" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Annotation" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="ContactPoint" />
          </type>
          <type>
            <code value="Count" />
          </type>
          <type>
            <code value="Distance" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="HumanName" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Money" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Reference" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Signature" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Meta" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="???" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire" />
    <resource>
      <DataElement>
        <id value="Questionnaire" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire">
          <path value="Questionnaire" />
          <short value="A structured set of questions" />
          <definition value="A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection." />
          <alias value="Form" />
          <alias value="CRF" />
          <alias value="Survey" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="que-2" />
            <severity value="error" />
            <human value="The link ids for groups and questions must be unique within the questionnaire" />
            <expression value="descendants().linkId.isDistinct()" />
            <xpath value="count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[moodCode=DEF]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.information" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.url" />
    <resource>
      <DataElement>
        <id value="Questionnaire.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.url">
          <path value="Questionnaire.url" />
          <short value="Logical URI to reference this questionnaire (globally unique)" />
          <definition value="An absolute URI that is used to identify this questionnaire 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 questionnaire is (or will be) published. The URL SHOULD include the major version of the questionnaire. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="…  This is the id that will be used to link a QuestionnaireResponse to the Questionnaire the response is for." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".identifier[scope=BUSN;reliability=ISS]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.identifier" />
    <resource>
      <DataElement>
        <id value="Questionnaire.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.identifier">
          <path value="Questionnaire.identifier" />
          <short value="Additional identifier for the questionnaire" />
          <definition value="A formal identifier that is used to identify this questionnaire when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this questionnaire outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.version" />
    <resource>
      <DataElement>
        <id value="Questionnaire.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.version">
          <path value="Questionnaire.version" />
          <short value="Business version of the questionnaire" />
          <definition value="The identifier that is used to identify this version of the questionnaire when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the questionnaire author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different questionnaire instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the questionnaire with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.name" />
    <resource>
      <DataElement>
        <id value="Questionnaire.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.name">
          <path value="Questionnaire.name" />
          <short value="Name for this questionnaire (computer friendly)" />
          <definition value="A natural language name identifying the questionnaire. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.title" />
    <resource>
      <DataElement>
        <id value="Questionnaire.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.title">
          <path value="Questionnaire.title" />
          <short value="Name for this questionnaire (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the questionnaire." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.status" />
    <resource>
      <DataElement>
        <id value="Questionnaire.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.status">
          <path value="Questionnaire.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this questionnaire. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of questionnaires that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired questionnaire without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.experimental" />
    <resource>
      <DataElement>
        <id value="Questionnaire.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.experimental">
          <path value="Questionnaire.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this questionnaire is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of questionnaire that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental questionnaire in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level questionnaire." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.date" />
    <resource>
      <DataElement>
        <id value="Questionnaire.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.date">
          <path value="Questionnaire.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the questionnaire was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the questionnaire 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 questionnaire. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.publisher" />
    <resource>
      <DataElement>
        <id value="Questionnaire.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.publisher">
          <path value="Questionnaire.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the questionnaire." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the questionnaire is the organization or individual primarily responsible for the maintenance and upkeep of the questionnaire. 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 questionnaire. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the questionnaire.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.description" />
    <resource>
      <DataElement>
        <id value="Questionnaire.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.description">
          <path value="Questionnaire.description" />
          <short value="Natural language description of the questionnaire" />
          <definition value="A free text natural language description of the questionnaire from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the questionnaire 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 questionnaire 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="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.purpose" />
    <resource>
      <DataElement>
        <id value="Questionnaire.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.purpose">
          <path value="Questionnaire.purpose" />
          <short value="Why this questionnaire is defined" />
          <definition value="Explaination of why this questionnaire is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the questionnaire Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this questionnaire." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode.text" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.approvalDate" />
    <resource>
      <DataElement>
        <id value="Questionnaire.approvalDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.approvalDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.approvalDate">
          <path value="Questionnaire.approvalDate" />
          <short value="When the questionnaire was approved by publisher" />
          <definition value="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." />
          <comment value="The 'date' element may be more recent than the approval date because of minor changes / editorial corrections." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;].act[classCode=CACT;moodCode=EVN;code=&quot;approval&quot;].effectiveTime" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.lastReviewDate" />
    <resource>
      <DataElement>
        <id value="Questionnaire.lastReviewDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.lastReviewDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.lastReviewDate">
          <path value="Questionnaire.lastReviewDate" />
          <short value="When the questionnaire was last reviewed" />
          <definition value="The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date." />
          <comment value="If specified, this is usually after the approval date." />
          <requirements value="Gives a sense of how &quot;current&quot; the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;; subsetCode=&quot;RECENT&quot;].act[classCode=CACT;moodCode=EVN;code=&quot;review&quot;].effectiveTime" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.effectivePeriod" />
    <resource>
      <DataElement>
        <id value="Questionnaire.effectivePeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.effectivePeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.effectivePeriod">
          <path value="Questionnaire.effectivePeriod" />
          <short value="When the questionnaire is expected to be used" />
          <definition value="The period during which the questionnaire content was or is planned to be in active use." />
          <comment value="The effective period for a questionnaire  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015." />
          <requirements value="Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of a the questionnaire are or are expected to be used instead." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.useContext" />
    <resource>
      <DataElement>
        <id value="Questionnaire.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.useContext">
          <path value="Questionnaire.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate questionnaire instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.jurisdiction" />
    <resource>
      <DataElement>
        <id value="Questionnaire.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.jurisdiction">
          <path value="Questionnaire.jurisdiction" />
          <short value="Intended jurisdiction for questionnaire (if applicable)" />
          <definition value="A legal or geographic region in which the questionnaire is intended to be used." />
          <comment value="It may be possible for the questionnaire to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.contact" />
    <resource>
      <DataElement>
        <id value="Questionnaire.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.contact">
          <path value="Questionnaire.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CALLBCK].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.copyright" />
    <resource>
      <DataElement>
        <id value="Questionnaire.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.copyright">
          <path value="Questionnaire.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the questionnaire and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the questionnaire." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the questionnaire and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.code" />
    <resource>
      <DataElement>
        <id value="Questionnaire.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.code">
          <path value="Questionnaire.code" />
          <short value="Concept that represents the overall questionnaire" />
          <definition value="An identifier for this question or group of questions in a particular terminology such as LOINC." />
          <requirements value="Allows linking of the complete Questionnaire resources to formal terminologies.  It's common for &quot;panels&quot; of questions to be identified by a code." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuestionnaireConcept" />
            </extension>
            <strength value="example" />
            <description value="Codes for questionnaires, groups and individual questions" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/questionnaire-questions" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.subjectType" />
    <resource>
      <DataElement>
        <id value="Questionnaire.subjectType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.subjectType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.subjectType">
          <path value="Questionnaire.subjectType" />
          <short value="Resource that can be subject of QuestionnaireResponse" />
          <definition value="The types of subjects that can be the subject of responses created for the questionnaire." />
          <comment value="If none are specified, then the subject is unlimited." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=META].target[classCode=OBS, moodCode=DEFN, isCriterion=true].participation.role.classCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item">
          <path value="Questionnaire.item" />
          <short value="Questions and sections within the Questionnaire" />
          <definition value="A particular question, question grouping or display text that is part of the questionnaire." />
          <comment value="The content of the questionnaire is constructed from an ordered, hierarchical collection of items." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="que-3" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="que-9" />
            <severity value="error" />
            <human value="Read-only can't be specified for &quot;display&quot; items" />
            <expression value="type!='display' or readOnly.empty()" />
            <xpath value="not(f:type/@value='display' and f:readOnly)" />
          </constraint>
          <constraint>
            <key value="que-8" />
            <severity value="error" />
            <human value="Default values can't be specified for groups or display items" />
            <expression value="(type!='group' and type!='display') or initial.empty()" />
            <xpath value="not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])" />
          </constraint>
          <constraint>
            <key value="que-6" />
            <severity value="error" />
            <human value="Required and repeat aren't permitted for display items" />
            <expression value="type!='display' or (required.empty() and repeats.empty())" />
            <xpath value="not(f:type/@value='display' and (f:required or f:repeats))" />
          </constraint>
          <constraint>
            <key value="que-5" />
            <severity value="error" />
            <human value="Only 'choice' items can have options" />
            <expression value="(type ='choice' or type = 'open-choice') or (options.empty() and option.empty())" />
            <xpath value="f:type/@value=('choice','open-choice') or not(f:option or f:options)" />
          </constraint>
          <constraint>
            <key value="que-4" />
            <severity value="error" />
            <human value="A question cannot have both option and options" />
            <expression value="option.empty() or options.empty()" />
            <xpath value="not(f:options and f:option)" />
          </constraint>
          <constraint>
            <key value="que-3" />
            <severity value="error" />
            <human value="Display items cannot have a &quot;code&quot; asserted" />
            <expression value="type!='display' or code.empty()" />
            <xpath value="not(f:type/@value='display' and f:code)" />
          </constraint>
          <constraint>
            <key value="que-10" />
            <severity value="error" />
            <human value="Maximum length can only be declared for simple question types" />
            <expression value="(type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url')) or maxLength.empty()" />
            <xpath value="f:type/@value=('boolean', 'decimal', 'integer', 'open-choice', 'string', 'text', 'url') or not(f:maxLength)" />
          </constraint>
          <constraint>
            <key value="que-1" />
            <severity value="error" />
            <human value="Group items must have nested items, display items cannot have nested items" />
            <expression value="(type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())" />
            <xpath value="not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.linkId" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.linkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.linkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.linkId">
          <path value="Questionnaire.item.linkId" />
          <short value="Unique id for item in questionnaire" />
          <definition value="An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource." />
          <comment value="This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning.  GUIDs or sequential numbers are appropriate here." />
          <requirements value="[QuestionnaireResponse](questionnaireresponse.html#) does not require omitted items to be included and may have some items that repeat, so linkage based on position alone is not sufficient." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.definition" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.definition">
          <path value="Questionnaire.item.definition" />
          <short value="ElementDefinition - details for the item" />
          <definition value="A reference to an [ElementDefinition](elementdefinition.html) that provides the details for the item. If a definition is provided, then the following element values can be inferred from the definition: &#xA;&#xA;* code (ElementDefinition.code)&#xA;* type (ElementDefinition.type)&#xA;* required (ElementDefinition.min)&#xA;* repeats (ElementDefinition.max)&#xA;* maxLength (ElementDefinition.maxLength)&#xA;* options (ElementDefinition.binding)&#xA;&#xA;Any information provided in these elements on a Questionnaire Item overrides the information from the definition." />
          <comment value="the URI refers to an ElementDefinition in either a [StructureDefinition](structuredefinition.html#) or a [DataElement](dataelement.html#), and always starts with the canonical URL for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id [Element.id](element-definitions.html#Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition. Note that [LOINC codes](loinc.html#dataelements) implicitly define DataElement resources." />
          <requirements value="A common pattern is to define a set of data elements and then build multiple questionnaires for different circumstances to gather the data. This element provides traceability to the common definition and allows the content for the question to come from the underlying definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=INST].target[classCode=OBS, moodCode=DEF]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.code" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.code">
          <path value="Questionnaire.item.code" />
          <short value="Corresponding concept for this item in a terminology" />
          <definition value="A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers)." />
          <comment value="The value may come from the ElementDefinition referred to by .definition." />
          <requirements value="Allows linking of groups of questions to formal terminologies." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <condition value="que-3" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuestionnaireConcept" />
            </extension>
            <strength value="example" />
            <description value="Codes for questionnaires, groups and individual questions" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/questionnaire-questions" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.prefix" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.prefix" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.prefix" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.prefix">
          <path value="Questionnaire.item.prefix" />
          <short value="E.g. &quot;1(a)&quot;, &quot;2.5.3&quot;" />
          <definition value="A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire." />
          <comment value="These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed.&#xA;&#xA;Typically these won't be used for &quot;display&quot; items, though such use is not prohibited.&#xA;&#xA;Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire." />
          <requirements value="Separating the label from the question text allows improved rendering.  Also, instructions will often refer to specific prefixes, so there's a need for the questionnaire design to have control over what labels are used." />
          <alias value="label" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="Not supported" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.text" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.text">
          <path value="Questionnaire.item.text" />
          <short value="Primary text for the item" />
          <definition value="The name of a section, the text of a question or text content for a display item." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.type" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.type">
          <path value="Questionnaire.item.type" />
          <short value="group | display | boolean | decimal | integer | date | dateTime +" />
          <definition value="The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.)." />
          <comment value="Additional constraints on the type of answer can be conveyed by extensions. The value may come from the ElementDefinition referred to by .definition." />
          <requirements value="Defines the format in which the user is to be prompted for the answer." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuestionnaireItemType" />
            </extension>
            <strength value="required" />
            <description value="Distinguishes groups from questions and display text and indicates data type for questions" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/item-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.enableWhen" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.enableWhen" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.enableWhen" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.enableWhen">
          <path value="Questionnaire.item.enableWhen" />
          <short value="Only allow data when" />
          <definition value="A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true." />
          <comment value="If multiple repetitions of this extension are present, the item should be enabled when the condition for *any* of the repetitions is true.  I.e. treat &quot;enableWhen&quot;s as being joined by an &quot;or&quot; clause.&#xA;&#xA;This element is a modifier because if enableWhen is present for an item, &quot;required&quot; is ignored unless one of the enableWhen conditions is met." />
          <requirements value="Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history.  Also allows conditional display of instructions or groups of questions." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="que-7" />
            <severity value="error" />
            <human value="enableWhen must contain either a 'answer' or a 'hasAnswer' element" />
            <expression value="hasAnswer.exists() xor answer.exists()" />
            <xpath value="count(f:*[starts-with(local-name(.), 'answer')]|self::f:hasAnswer) = 1" />
          </constraint>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.enableWhen.question" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.enableWhen.question" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.enableWhen.question" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.enableWhen.question">
          <path value="Questionnaire.item.enableWhen.question" />
          <short value="Question that determines whether item is enabled" />
          <definition value="The linkId for the question whose answer (or lack of answer) governs whether this item is enabled." />
          <comment value="If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the &quot;ancestor&quot; axis and then the &quot;preceding&quot; axis and then the &quot;following&quot; axis." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.enableWhen.hasAnswer" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.enableWhen.hasAnswer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.enableWhen.hasAnswer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.enableWhen.hasAnswer">
          <path value="Questionnaire.item.enableWhen.hasAnswer" />
          <short value="Enable when answered or not" />
          <definition value="An indication that this item should be enabled only if the specified question is answered (hasAnswer=true) or not answered (hasAnswer=false)." />
          <comment value="If answered=false and answer values are also provided, then they are treated as &quot;or&quot;.  I.e. &quot;Enable if the question is unanswered or the answer is one of the specified values&quot;.  If answered=true and answers are present, one of the specified answers must be met. (So there's little reason to specify answered=true if answers are present.)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <condition value="que-7" />
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.enableWhen.answerX" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.enableWhen.answerX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.enableWhen.answerX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.enableWhen.answer[x]">
          <path value="Questionnaire.item.enableWhen.answer[x]" />
          <short value="Value question must have" />
          <definition value="An answer that the referenced question must match in order for the item to be enabled." />
          <comment value="Multiple answers are treated as &quot;or&quot;.  E.g. Enable if question 1 = A, C or E.  &#xA;&#xA;Components not specified in the answer do not need to match.  For example, if enableWhen specifies code + system for a Coding, it is ok if the answer has a &quot;display&quot; element.  I.e. treat the answer as a 'pattern'.&#xA;&#xA;The dataType of this element must be the same as the data type of the question being referenced." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <condition value="que-7" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuestionnaireQuestionOption2" />
            </extension>
            <strength value="example" />
            <description value="Allowed values to answer questions." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/questionnaire-answers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.required" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.required" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.required" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.required">
          <path value="Questionnaire.item.required" />
          <short value="Whether the item must be included in data results" />
          <definition value="An indication, if true, that the item must be present in a &quot;completed&quot; QuestionnaireResponse.  If false, the item may be skipped when answering the questionnaire." />
          <comment value="Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true.  If an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one child element). The value may come from the ElementDefinition referred to by .definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <condition value="que-6" />
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.repeats" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.repeats" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.repeats" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.repeats">
          <path value="Questionnaire.item.repeats" />
          <short value="Whether the item may repeat" />
          <definition value="An indication, if true, that the item may occur multiple times in the response, collecting multiple answers answers for questions or multiple sets of answers for groups." />
          <comment value="If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse.  When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition or to simply list each of the answers beneath the question.  (Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.). The value may come from the ElementDefinition referred to by .definition." />
          <requirements value="Items may be used to create set of (related) questions that can be repeated to give multiple answers to such a set." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <condition value="que-6" />
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.readOnly" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.readOnly" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.readOnly" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.readOnly">
          <path value="Questionnaire.item.readOnly" />
          <short value="Don't allow human editing" />
          <definition value="An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire." />
          <comment value="The value of readOnly elements can be established by asserting  extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers." />
          <requirements value="Allows certain information to be phrased (and rendered) as a question and an answer, while keeping users from changing it.  May also be useful for preventing changes to pre-populated portions of a questionnaire, for calculated values, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <condition value="que-9" />
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.maxLength" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.maxLength" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.maxLength" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.maxLength">
          <path value="Questionnaire.item.maxLength" />
          <short value="No more than this many characters" />
          <definition value="The maximum number of characters that are permitted in the answer to be considered a &quot;valid&quot; QuestionnaireResponse." />
          <comment value="For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <condition value="que-10" />
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.options" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.options" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.options" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.options">
          <path value="Questionnaire.item.options" />
          <short value="Valueset containing permitted answers" />
          <definition value="A reference to a value set containing a list of codes representing permitted answers for a &quot;choice&quot; or &quot;open-choice&quot; question." />
          <comment value="LOINC defines many useful value sets for questionnaire responses. See [LOINC Answer Lists](loinc.html#alist). The value may come from the ElementDefinition referred to by .definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
          </type>
          <condition value="que-4" />
          <condition value="que-5" />
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.option" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.option" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.option" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.option">
          <path value="Questionnaire.item.option" />
          <short value="Permitted answer" />
          <definition value="One of the permitted answers for a &quot;choice&quot; or &quot;open-choice&quot; question." />
          <comment value="This element can be used when the value set machinery of options is deemed too cumbersome or when there's a need to capture options that are not codes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="que-4" />
          <condition value="que-5" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.option.valueX" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.option.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.option.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.option.value[x]">
          <path value="Questionnaire.item.option.value[x]" />
          <short value="Answer value" />
          <definition value="A potential answer that's allowed as the answer to this question." />
          <comment value="The data type of the value must agree with the item.type." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuestionnaireQuestionOption" />
            </extension>
            <strength value="example" />
            <description value="Allowed values to answer questions." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/questionnaire-answers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.initialX" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.initialX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.initialX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.initial[x]">
          <path value="Questionnaire.item.initial[x]" />
          <short value="Default value when item is first rendered" />
          <definition value="The value that should be defaulted when initially rendering the questionnaire for user input." />
          <comment value="The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created.  Note that default values can influence results.&#xA;&#xA;The data type of initial[x] must agree with the item.type." />
          <requirements value="In some workflows, having defaults saves time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <condition value="que-8" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuestionnaireQuestionOption2" />
            </extension>
            <strength value="example" />
            <description value="Allowed values to answer questions." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/questionnaire-answers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A - MIF rather than RIM level" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Questionnaire.item.item" />
    <resource>
      <DataElement>
        <id value="Questionnaire.item.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Questionnaire.item.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Questionnaire.item.item">
          <path value="Questionnaire.item.item" />
          <short value="Nested questionnaire items" />
          <definition value="Text, questions and other groups to be nested beneath a question or group." />
          <comment value="There is no specified limit to the depth of nesting.  However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting." />
          <requirements value="Reports can consist of complex nested groups." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#Questionnaire.item" />
          <condition value="que-1" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit">
          <path value="ExplanationOfBenefit" />
          <short value="Explanation of Benefit resource" />
          <definition value="This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided." />
          <alias value="EOB" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.other" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.identifier" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.identifier">
          <path value="ExplanationOfBenefit.identifier" />
          <short value="Business Identifier" />
          <definition value="The EOB Business Identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.status" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.status">
          <path value="ExplanationOfBenefit.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ExplanationOfBenefitStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/explanationofbenefit-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.type" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.type">
          <path value="ExplanationOfBenefit.type" />
          <short value="Type or discipline" />
          <definition value="The category of claim, eg, oral, pharmacy, vision, insitutional, professional." />
          <comment value="Affects which fields and value sets are used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimType" />
            </extension>
            <strength value="required" />
            <description value="The type or discipline-style of the claim" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.subType" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.subType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.subType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.subType">
          <path value="ExplanationOfBenefit.subType" />
          <short value="Finer grained claim type information" />
          <definition value="A finer grained suite of claim subtype codes which may convey Inpatient vs Outpatient and/or a specialty service. In the US the BillType." />
          <comment value="This may contain the local bill type codes such as the US UB-04 bill type code." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimSubType" />
            </extension>
            <strength value="example" />
            <description value="A more granulat claim typecode" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-subtype" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.patient" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.patient">
          <path value="ExplanationOfBenefit.patient" />
          <short value="The subject of the Products and Services" />
          <definition value="Patient Resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="C06,C07,C08, C05, C04" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.billablePeriod" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.billablePeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.billablePeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.billablePeriod">
          <path value="ExplanationOfBenefit.billablePeriod" />
          <short value="Period for charge submission" />
          <definition value="The billable period for which charges are being submitted." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.created" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.created">
          <path value="ExplanationOfBenefit.created" />
          <short value="Creation date" />
          <definition value="The date when the EOB was created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.enterer" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.enterer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.enterer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.enterer">
          <path value="ExplanationOfBenefit.enterer" />
          <short value="Author" />
          <definition value="The person who created the explanation of benefit." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.insurer" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.insurer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.insurer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.insurer">
          <path value="ExplanationOfBenefit.insurer" />
          <short value="Insurer responsible for the EOB" />
          <definition value="The insurer which is responsible for the explanation of benefit." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B02" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.provider" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.provider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.provider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.provider">
          <path value="ExplanationOfBenefit.provider" />
          <short value="Responsible provider for the claim" />
          <definition value="The provider which is responsible for the claim." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B02" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.organization" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.organization">
          <path value="ExplanationOfBenefit.organization" />
          <short value="Responsible organization for the claim" />
          <definition value="The provider which is responsible for the claim." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B02" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.referral" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.referral" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.referral" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.referral">
          <path value="ExplanationOfBenefit.referral" />
          <short value="Treatment Referral" />
          <definition value="The referral resource which lists the date, practitioner, reason and other supporting information." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B05" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.cause" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.facility" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.facility" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.facility" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.facility">
          <path value="ExplanationOfBenefit.facility" />
          <short value="Servicing Facility" />
          <definition value="Facility where the services were provided." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.claim" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.claim" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.claim" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.claim">
          <path value="ExplanationOfBenefit.claim" />
          <short value="Claim reference" />
          <definition value="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Claim" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="A02|G01" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.claimResponse" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.claimResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.claimResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.claimResponse">
          <path value="ExplanationOfBenefit.claimResponse" />
          <short value="Claim response reference" />
          <definition value="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ClaimResponse" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="A02|G01" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.outcome" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.outcome">
          <path value="ExplanationOfBenefit.outcome" />
          <short value="complete | error | partial" />
          <definition value="Processing outcome errror, partial or complete processing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RemittanceOutcome" />
            </extension>
            <strength value="example" />
            <description value="The result of the claim processing" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/remittance-outcome" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.disposition" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.disposition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.disposition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.disposition">
          <path value="ExplanationOfBenefit.disposition" />
          <short value="Disposition Message" />
          <definition value="A description of the status of the adjudication." />
          <comment value="Do we need a disposition code?" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.related" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.related" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.related" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.related">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="RelatedClaim" />
          </extension>
          <path value="ExplanationOfBenefit.related" />
          <short value="Related Claims which may be revelant to processing this claim" />
          <definition value="Other claims which are related to this claim such as prior claim versions or for related services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.related.claim" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.related.claim" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.related.claim" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.related.claim">
          <path value="ExplanationOfBenefit.related.claim" />
          <short value="Reference to the related claim" />
          <definition value="Other claims which are related to this claim such as prior claim versions or for related services." />
          <comment value="Do we need a relationship code?" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Claim" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.related.relationship" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.related.relationship" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.related.relationship" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.related.relationship">
          <path value="ExplanationOfBenefit.related.relationship" />
          <short value="How the reference claim is related" />
          <definition value="For example prior or umbrella." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RelatedClaimRelationship" />
            </extension>
            <strength value="example" />
            <description value="Relationship of this claim to a related Claim" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/related-claim-relationship" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.related.reference" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.related.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.related.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.related.reference">
          <path value="ExplanationOfBenefit.related.reference" />
          <short value="Related file or case reference" />
          <definition value="An alternate organizational reference to the case or file to which this particular claim pertains - eg Property/Casualy insurer claim # or Workers Compensation case # ." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.prescription" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.prescription" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.prescription" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.prescription">
          <path value="ExplanationOfBenefit.prescription" />
          <short value="Prescription authorizing services or products" />
          <definition value="Prescription to support the dispensing of Pharmacy or Vision products." />
          <requirements value="For type=Pharmacy and Vision only." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/VisionPrescription" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.originalPrescription" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.originalPrescription" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.originalPrescription" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.originalPrescription">
          <path value="ExplanationOfBenefit.originalPrescription" />
          <short value="Original prescription if superceded by fulfiller" />
          <definition value="Original prescription which has been superceded by this prescription to support the dispensing of pharmacy services, medications or products. For example, a physician may prescribe a medication which the pharmacy determines is contraindicated, or for which the patient has an intolerance, and therefor issues a new precription for an alternate medication which has the same theraputic intent. The prescription from the pharmacy becomes the 'prescription' and that from the physician becomes the 'original prescription'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payee" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payee" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payee" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payee">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Payee" />
          </extension>
          <path value="ExplanationOfBenefit.payee" />
          <short value="Party to be paid any benefits payable" />
          <definition value="The party to be reimbursed for the services." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F02" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payee.type" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payee.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payee.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payee.type">
          <path value="ExplanationOfBenefit.payee.type" />
          <short value="Type of party: Subscriber, Provider, other" />
          <definition value="Type of Party to be reimbursed: Subscriber, provider, other." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PayeeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="A code for the party to be reimbursed." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/payeetype" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payee.resourceType" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payee.resourceType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payee.resourceType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payee.resourceType">
          <path value="ExplanationOfBenefit.payee.resourceType" />
          <short value="organization | patient | practitioner | relatedperson" />
          <definition value="organization | patient | practitioner | relatedperson." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PayeeResourceType" />
            </extension>
            <strength value="required" />
            <description value="The type of payee Resource" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-type-link" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payee.party" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payee.party" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payee.party" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payee.party">
          <path value="ExplanationOfBenefit.payee.party" />
          <short value="Party to receive the payable" />
          <definition value="Party to be reimbursed: Subscriber, provider, other." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B03, B04" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.information" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.information">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SupportingInformation" />
          </extension>
          <path value="ExplanationOfBenefit.information" />
          <short value="Exceptions, special considerations, the condition, situation, prior or concurrent issues" />
          <definition value="Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues. Often there are mutiple jurisdiction specific valuesets which are required." />
          <requirements value="Typically these information codes are required to support the services rendered or the adjudication of the services rendered." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.sequence" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.information.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.information.sequence">
          <path value="ExplanationOfBenefit.information.sequence" />
          <short value="Information instance identifier" />
          <definition value="Sequence of the information element which serves to provide a link." />
          <requirements value="To provide a reference link." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.category" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.information.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.information.category">
          <path value="ExplanationOfBenefit.information.category" />
          <short value="General class of information" />
          <definition value="The general class of the information supplied: information; exception; accident, employment; onset, etc." />
          <comment value="This may contain the local bill type codes such as the US UB-04 bill type code." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="InformationCategory" />
            </extension>
            <strength value="example" />
            <description value="The valuset used for additional information category codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-informationcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.code" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.information.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.information.code">
          <path value="ExplanationOfBenefit.information.code" />
          <short value="Type of information" />
          <definition value="System and code pertaining to the specific information regarding special conditions relating to the setting, treatment or patient  for which care is sought which may influence the adjudication." />
          <comment value="This may contain the local bill type codes such as the US UB-04 bill type code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="InformationCode" />
            </extension>
            <strength value="example" />
            <description value="The valuset used for additional information codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-exception" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F23" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.timingX" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.information.timingX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.timingX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.information.timing[x]">
          <path value="ExplanationOfBenefit.information.timing[x]" />
          <short value="When it occurred" />
          <definition value="The date when or period to which this information refers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F24" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.valueX" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.information.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.information.value[x]">
          <path value="ExplanationOfBenefit.information.value[x]" />
          <short value="Additional Data or supporting information" />
          <definition value="Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.reason" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.information.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.information.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.information.reason">
          <path value="ExplanationOfBenefit.information.reason" />
          <short value="Reason associated with the information" />
          <definition value="For example, provides the reason for: the additional stay, or missing tooth or any other situation where a reason code is required in addition to the content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MissingReason" />
            </extension>
            <strength value="example" />
            <description value="Reason codes for the missing teeth" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/missing-tooth-reason" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.careTeam" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.careTeam">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="CareTeam" />
          </extension>
          <path value="ExplanationOfBenefit.careTeam" />
          <short value="Care Team members" />
          <definition value="The members of the team who provided the overall service as well as their role and whether responsible and qualifications." />
          <requirements value="Role and Responsible may not be required when there is only a single provider listed." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.sequence" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.careTeam.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.careTeam.sequence">
          <path value="ExplanationOfBenefit.careTeam.sequence" />
          <short value="Number to covey order of careteam" />
          <definition value="Sequence of careteam which serves to order and provide a link." />
          <requirements value="Required to maintain order of the careteam members." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.provider" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.careTeam.provider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.provider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.careTeam.provider">
          <path value="ExplanationOfBenefit.careTeam.provider" />
          <short value="Member of the Care Team" />
          <definition value="The members of the team who provided the overall service." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.responsible" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.careTeam.responsible" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.responsible" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.careTeam.responsible">
          <path value="ExplanationOfBenefit.careTeam.responsible" />
          <short value="Billing practitioner" />
          <definition value="The practitioner who is billing and responsible for the claimed services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.role" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.careTeam.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.careTeam.role">
          <path value="ExplanationOfBenefit.careTeam.role" />
          <short value="Role on the team" />
          <definition value="The lead, assisting or supervising practitioner and their discipline if a multidisiplinary team." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CareTeamRole" />
            </extension>
            <strength value="example" />
            <description value="The role codes for the care team members." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-careteamrole" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.qualification" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.careTeam.qualification" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.careTeam.qualification" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.careTeam.qualification">
          <path value="ExplanationOfBenefit.careTeam.qualification" />
          <short value="Type, classification or Specialization" />
          <definition value="The qualification which is applicable for this service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProviderQualification" />
            </extension>
            <strength value="example" />
            <description value="Provider professional qualifications" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/provider-qualification" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.diagnosis" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.diagnosis">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Diagnosis" />
          </extension>
          <path value="ExplanationOfBenefit.diagnosis" />
          <short value="List of Diagnosis" />
          <definition value="Ordered list of patient diagnosis for which care is sought." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis.sequence" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.diagnosis.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.diagnosis.sequence">
          <path value="ExplanationOfBenefit.diagnosis.sequence" />
          <short value="Number to covey order of diagnosis" />
          <definition value="Sequence of diagnosis which serves to provide a link." />
          <requirements value="Required to allow line items to reference the diagnoses." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis.diagnosisX" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.diagnosis.diagnosisX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis.diagnosisX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.diagnosis.diagnosis[x]">
          <path value="ExplanationOfBenefit.diagnosis.diagnosis[x]" />
          <short value="Patient's diagnosis" />
          <definition value="The diagnosis." />
          <requirements value="Required to adjudicate services rendered to condition presented." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ICD10" />
            </extension>
            <strength value="example" />
            <description value="ICD10 Diagnostic codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/icd-10" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis.type" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.diagnosis.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.diagnosis.type">
          <path value="ExplanationOfBenefit.diagnosis.type" />
          <short value="Timing or nature of the diagnosis" />
          <definition value="The type of the Diagnosis, for example: admitting, primary, secondary, discharge." />
          <comment value="Diagnosis are presented in list order to their expected importance: primary, secondary, etc." />
          <requirements value="Required to adjudicate services rendered to the mandated diagnosis grouping system." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosisType" />
            </extension>
            <strength value="example" />
            <description value="The type of the diagnosis: admitting, principal, discharge" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-diagnosistype" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis.packageCode" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.diagnosis.packageCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.diagnosis.packageCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.diagnosis.packageCode">
          <path value="ExplanationOfBenefit.diagnosis.packageCode" />
          <short value="Package billing code" />
          <definition value="The package billing code, for example DRG, based on the assigned grouping code system." />
          <requirements value="Required to adjudicate services rendered to the mandated grouping system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosisRelatedGroup" />
            </extension>
            <strength value="example" />
            <description value="The DRG codes associated with the diagnosis" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-diagnosisrelatedgroup" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.procedure" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.procedure" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.procedure" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.procedure">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Procedure" />
          </extension>
          <path value="ExplanationOfBenefit.procedure" />
          <short value="Procedures performed" />
          <definition value="Ordered list of patient procedures performed to support the adjudication." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.procedure.sequence" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.procedure.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.procedure.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.procedure.sequence">
          <path value="ExplanationOfBenefit.procedure.sequence" />
          <short value="Procedure sequence for reference" />
          <definition value="Sequence of procedures which serves to order and provide a link." />
          <requirements value="Required to maintain order of the procudures." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.procedure.date" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.procedure.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.procedure.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.procedure.date">
          <path value="ExplanationOfBenefit.procedure.date" />
          <short value="When the procedure was performed" />
          <definition value="Date and optionally time the procedure was performed ." />
          <comment value="SB DateTime??" />
          <requirements value="Required to adjudicate services rendered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.procedure.procedureX" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.procedure.procedureX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.procedure.procedureX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.procedure.procedure[x]">
          <path value="ExplanationOfBenefit.procedure.procedure[x]" />
          <short value="Patient's list of procedures performed" />
          <definition value="The procedure code." />
          <requirements value="Required to adjudicate services rendered." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ICD10_Procedures" />
            </extension>
            <strength value="example" />
            <description value="ICD10 Procedure codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/icd-10-procedures" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.precedence" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.precedence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.precedence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.precedence">
          <path value="ExplanationOfBenefit.precedence" />
          <short value="Precedence (primary, secondary, etc.)" />
          <definition value="Precedence (primary, secondary, etc.)." />
          <requirements value="Health care programs and insurers are significant payors of health service costs." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.insurance" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.insurance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.insurance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.insurance">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Insurance" />
          </extension>
          <path value="ExplanationOfBenefit.insurance" />
          <short value="Insurance or medical plan" />
          <definition value="Financial instrument by which payment information for health care." />
          <requirements value="Health care programs and insurers are significant payors of health service costs." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="Coverage" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.insurance.coverage" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.insurance.coverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.insurance.coverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.insurance.coverage">
          <path value="ExplanationOfBenefit.insurance.coverage" />
          <short value="Insurance information" />
          <definition value="Reference to the program or plan identification, underwriter or payor." />
          <requirements value="Need to identify the issuer to target for processing and for coordination of benefit processing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Coverage" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.insurance.preAuthRef" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.insurance.preAuthRef" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.insurance.preAuthRef" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.insurance.preAuthRef">
          <path value="ExplanationOfBenefit.insurance.preAuthRef" />
          <short value="Pre-Authorization/Determination Reference" />
          <definition value="A list of references from the Insurer to which these services pertain." />
          <requirements value="To provide any pre=determination or prior authorization reference." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F03" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.accident" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.accident" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.accident" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.accident">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Accident" />
          </extension>
          <path value="ExplanationOfBenefit.accident" />
          <short value="Details of an accident" />
          <definition value="An accident which resulted in the need for healthcare services." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.accident.date" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.accident.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.accident.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.accident.date">
          <path value="ExplanationOfBenefit.accident.date" />
          <short value="When the accident occurred" />
          <definition value="Date of an accident which these services are addressing." />
          <requirements value="Coverage may be dependant on accidents." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F02" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.accident.type" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.accident.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.accident.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.accident.type">
          <path value="ExplanationOfBenefit.accident.type" />
          <short value="The nature of the accident" />
          <definition value="Type of accident: work, auto, etc." />
          <requirements value="Coverage may be dependant on the type of accident." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AccidentType" />
            </extension>
            <strength value="required" />
            <description value="Type of accident: work place, auto, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActIncidentCode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.accident.locationX" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.accident.locationX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.accident.locationX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.accident.location[x]">
          <path value="ExplanationOfBenefit.accident.location[x]" />
          <short value="Accident Place" />
          <definition value="Where the accident occurred." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.employmentImpacted" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.employmentImpacted" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.employmentImpacted" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.employmentImpacted">
          <path value="ExplanationOfBenefit.employmentImpacted" />
          <short value="Period unable to work" />
          <definition value="The start and optional end dates of when the patient was precluded from working due to the treatable condition(s)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.hospitalization" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.hospitalization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.hospitalization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.hospitalization">
          <path value="ExplanationOfBenefit.hospitalization" />
          <short value="Period in hospital" />
          <definition value="The start and optional end dates of when the patient was confined to a treatment center." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Item" />
          </extension>
          <path value="ExplanationOfBenefit.item" />
          <short value="Goods and Services" />
          <definition value="First tier of goods and services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.sequence" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.sequence">
          <path value="ExplanationOfBenefit.item.sequence" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F07" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.careTeamLinkId" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.careTeamLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.careTeamLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.careTeamLinkId">
          <path value="ExplanationOfBenefit.item.careTeamLinkId" />
          <short value="Applicable careteam members" />
          <definition value="Careteam applicable for this service or product line." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.diagnosisLinkId" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.diagnosisLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.diagnosisLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.diagnosisLinkId">
          <path value="ExplanationOfBenefit.item.diagnosisLinkId" />
          <short value="Applicable diagnoses" />
          <definition value="Diagnosis applicable for this service or product line." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.procedureLinkId" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.procedureLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.procedureLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.procedureLinkId">
          <path value="ExplanationOfBenefit.item.procedureLinkId" />
          <short value="Applicable procedures" />
          <definition value="Procedures applicable for this service or product line." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.informationLinkId" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.informationLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.informationLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.informationLinkId">
          <path value="ExplanationOfBenefit.item.informationLinkId" />
          <short value="Applicable exception and supporting information" />
          <definition value="Exceptions, special conditions and supporting information pplicable for this service or product line." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.revenue" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.revenue">
          <path value="ExplanationOfBenefit.item.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.category" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.category">
          <path value="ExplanationOfBenefit.item.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.service" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.service">
          <path value="ExplanationOfBenefit.item.service" />
          <short value="Billing Code" />
          <definition value="If this is an actual service or product line, ie. not a Group, then use code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI). If a grouping item then use a group code to indicate the type of thing being grouped eg. 'glasses' or 'compound'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F06" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.modifier" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.modifier">
          <path value="ExplanationOfBenefit.item.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F16 (required field for Oral) and F05" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.programCode" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.programCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.programCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.programCode">
          <path value="ExplanationOfBenefit.item.programCode" />
          <short value="Program specific reason for item inclusion" />
          <definition value="For programs which require reson codes for the inclusion, covering, of this billed item under the program or sub-program." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProgramCode" />
            </extension>
            <strength value="example" />
            <description value="Program specific reason codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-program-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.servicedX" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.servicedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.servicedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.serviced[x]">
          <path value="ExplanationOfBenefit.item.serviced[x]" />
          <short value="Date or dates of Service" />
          <definition value="The date or dates when the enclosed suite of services were performed or completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F09" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.locationX" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.locationX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.locationX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.location[x]">
          <path value="ExplanationOfBenefit.item.location[x]" />
          <short value="Place of service" />
          <definition value="Where the service was provided." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServicePlace" />
            </extension>
            <strength value="example" />
            <description value="Place where the service is rendered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-place" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.quantity" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.quantity">
          <path value="ExplanationOfBenefit.item.quantity" />
          <short value="Count of Products or Services" />
          <definition value="The number of repetitions of a service or product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.unitPrice" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.unitPrice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.unitPrice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.unitPrice">
          <path value="ExplanationOfBenefit.item.unitPrice" />
          <short value="Fee, charge or cost per point" />
          <definition value="If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F12" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.factor" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.factor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.factor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.factor">
          <path value="ExplanationOfBenefit.item.factor" />
          <short value="Price scaling factor" />
          <definition value="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F13/F14" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.net" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.net" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.net" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.net">
          <path value="ExplanationOfBenefit.item.net" />
          <short value="Total item cost" />
          <definition value="The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F13/F14" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.udi" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.udi" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.udi" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.udi">
          <path value="ExplanationOfBenefit.item.udi" />
          <short value="Unique Device Identifier" />
          <definition value="List of Unique Device Identifiers associated with this line item." />
          <requirements value="The UDI code and issuer if applicable for the supplied product." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.bodySite" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.bodySite">
          <path value="ExplanationOfBenefit.item.bodySite" />
          <short value="Service Location" />
          <definition value="Physical service site on the patient (limb, tooth, etc)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="OralSites" />
            </extension>
            <strength value="example" />
            <description value="The code for the teeth, quadrant, sextant and arch" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/tooth" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F10" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.subSite" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.subSite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.subSite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.subSite">
          <path value="ExplanationOfBenefit.item.subSite" />
          <short value="Service Sub-location" />
          <definition value="A region or surface of the site, eg. limb region or tooth surface(s)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Surface" />
            </extension>
            <strength value="example" />
            <description value="The code for the tooth surface and surface combinations" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/surface" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F11" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.encounter" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.encounter">
          <path value="ExplanationOfBenefit.item.encounter" />
          <short value="Encounters related to this billed item" />
          <definition value="A billed item may include goods or services provided in multiple encounters." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.noteNumber" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.noteNumber">
          <path value="ExplanationOfBenefit.item.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.adjudication">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Adjudication" />
          </extension>
          <path value="ExplanationOfBenefit.item.adjudication" />
          <short value="Adjudication details" />
          <definition value="The adjudications results." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication.category" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.adjudication.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.adjudication.category">
          <path value="ExplanationOfBenefit.item.adjudication.category" />
          <short value="Adjudication category such as co-pay, eligible, benefit, etc." />
          <definition value="Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Adjudication" />
            </extension>
            <strength value="example" />
            <description value="The adjudication codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adjudication" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication.reason" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.adjudication.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.adjudication.reason">
          <path value="ExplanationOfBenefit.item.adjudication.reason" />
          <short value="Explanation of Adjudication outcome" />
          <definition value="Adjudication reason such as limit reached." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdjudicationReason" />
            </extension>
            <strength value="example" />
            <description value="Adjudication reason codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adjudication-reason" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication.amount" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.adjudication.amount" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication.amount" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.adjudication.amount">
          <path value="ExplanationOfBenefit.item.adjudication.amount" />
          <short value="Monetary amount" />
          <definition value="Monitory amount associated with the code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication.value" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.adjudication.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.adjudication.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.adjudication.value">
          <path value="ExplanationOfBenefit.item.adjudication.value" />
          <short value="Non-monitory value" />
          <definition value="A non-monetary value for example a percentage. Mutually exclusive to the amount element above." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Detail" />
          </extension>
          <path value="ExplanationOfBenefit.item.detail" />
          <short value="Additional items" />
          <definition value="Second tier of goods and services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.sequence" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.sequence">
          <path value="ExplanationOfBenefit.item.detail.sequence" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F07" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.type" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.type">
          <path value="ExplanationOfBenefit.item.detail.type" />
          <short value="Group or type of product or service" />
          <definition value="The type of product or service." />
          <comment value="ItemType." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ItemType" />
            </extension>
            <strength value="required" />
            <description value="Service, Product, Rx Dispense, Rx Compound etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.revenue" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.revenue">
          <path value="ExplanationOfBenefit.item.detail.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.category" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.category">
          <path value="ExplanationOfBenefit.item.detail.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.service" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.service">
          <path value="ExplanationOfBenefit.item.detail.service" />
          <short value="Billing Code" />
          <definition value="If this is an actual service or product line, ie. not a Group, then use code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI). If a grouping item then use a group code to indicate the type of thing being grouped eg. 'glasses' or 'compound'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F34/F35" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.modifier" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.modifier">
          <path value="ExplanationOfBenefit.item.detail.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F16 (required field for Oral) and F05" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.programCode" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.programCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.programCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.programCode">
          <path value="ExplanationOfBenefit.item.detail.programCode" />
          <short value="Program specific reason for item inclusion" />
          <definition value="For programs which require reson codes for the inclusion, covering, of this billed item under the program or sub-program." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProgramCode" />
            </extension>
            <strength value="example" />
            <description value="Program specific reason codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-program-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.quantity" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.quantity">
          <path value="ExplanationOfBenefit.item.detail.quantity" />
          <short value="Count of Products or Services" />
          <definition value="The number of repetitions of a service or product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.unitPrice" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.unitPrice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.unitPrice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.unitPrice">
          <path value="ExplanationOfBenefit.item.detail.unitPrice" />
          <short value="Fee, charge or cost per point" />
          <definition value="If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F13/F14" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.factor" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.factor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.factor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.factor">
          <path value="ExplanationOfBenefit.item.detail.factor" />
          <short value="Price scaling factor" />
          <definition value="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F13/F14" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.net" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.net" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.net" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.net">
          <path value="ExplanationOfBenefit.item.detail.net" />
          <short value="Total additional item cost" />
          <definition value="The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F13/F14" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.udi" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.udi" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.udi" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.udi">
          <path value="ExplanationOfBenefit.item.detail.udi" />
          <short value="Unique Device Identifier" />
          <definition value="List of Unique Device Identifiers associated with this line item." />
          <requirements value="The UDI code and issuer if applicable for the supplied product." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.noteNumber" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.noteNumber">
          <path value="ExplanationOfBenefit.item.detail.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.adjudication" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.adjudication">
          <path value="ExplanationOfBenefit.item.detail.adjudication" />
          <short value="Detail level adjudication details" />
          <definition value="The adjudications results." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ExplanationOfBenefit.item.adjudication" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SubDetail" />
          </extension>
          <path value="ExplanationOfBenefit.item.detail.subDetail" />
          <short value="Additional items" />
          <definition value="Third tier of goods and services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.sequence" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.sequence">
          <path value="ExplanationOfBenefit.item.detail.subDetail.sequence" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F07" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.type" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.type">
          <path value="ExplanationOfBenefit.item.detail.subDetail.type" />
          <short value="Type of product or service" />
          <definition value="The type of product or service." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ItemType" />
            </extension>
            <strength value="required" />
            <description value="Service, Product, Rx Dispense, Rx Compound etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.revenue" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.revenue">
          <path value="ExplanationOfBenefit.item.detail.subDetail.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.category" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.category">
          <path value="ExplanationOfBenefit.item.detail.subDetail.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.service" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.service">
          <path value="ExplanationOfBenefit.item.detail.subDetail.service" />
          <short value="Billing Code" />
          <definition value="A code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F34/F35" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.modifier" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.modifier">
          <path value="ExplanationOfBenefit.item.detail.subDetail.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F16 (required field for Oral) and F05" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.programCode" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.programCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.programCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.programCode">
          <path value="ExplanationOfBenefit.item.detail.subDetail.programCode" />
          <short value="Program specific reason for item inclusion" />
          <definition value="For programs which require reson codes for the inclusion, covering, of this billed item under the program or sub-program." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProgramCode" />
            </extension>
            <strength value="example" />
            <description value="Program specific reason codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-program-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.quantity" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.quantity">
          <path value="ExplanationOfBenefit.item.detail.subDetail.quantity" />
          <short value="Count of Products or Services" />
          <definition value="The number of repetitions of a service or product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.unitPrice" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.unitPrice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.unitPrice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.unitPrice">
          <path value="ExplanationOfBenefit.item.detail.subDetail.unitPrice" />
          <short value="Fee, charge or cost per point" />
          <definition value="The fee for an addittional service or product or charge." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F13/F14" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.factor" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.factor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.factor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.factor">
          <path value="ExplanationOfBenefit.item.detail.subDetail.factor" />
          <short value="Price scaling factor" />
          <definition value="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F13/F14" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.net" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.net" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.net" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.net">
          <path value="ExplanationOfBenefit.item.detail.subDetail.net" />
          <short value="Net additional item cost" />
          <definition value="The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F13/F14" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.udi" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.udi" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.udi" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.udi">
          <path value="ExplanationOfBenefit.item.detail.subDetail.udi" />
          <short value="Unique Device Identifier" />
          <definition value="List of Unique Device Identifiers associated with this line item." />
          <requirements value="The UDI code and issuer if applicable for the supplied product." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.noteNumber" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.noteNumber">
          <path value="ExplanationOfBenefit.item.detail.subDetail.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.adjudication" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.item.detail.subDetail.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.item.detail.subDetail.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.item.detail.subDetail.adjudication">
          <path value="ExplanationOfBenefit.item.detail.subDetail.adjudication" />
          <short value="Language if different from the resource" />
          <definition value="The adjudications results." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ExplanationOfBenefit.item.adjudication" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="AddedItem" />
          </extension>
          <path value="ExplanationOfBenefit.addItem" />
          <short value="Insurer added line items" />
          <definition value="The first tier service adjudications for payor added services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.sequenceLinkId" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.sequenceLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.sequenceLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.sequenceLinkId">
          <path value="ExplanationOfBenefit.addItem.sequenceLinkId" />
          <short value="Service instances" />
          <definition value="List of input service items which this service line is intended to replace." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.revenue" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.revenue">
          <path value="ExplanationOfBenefit.addItem.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.category" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.category">
          <path value="ExplanationOfBenefit.addItem.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F06" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.service" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.service">
          <path value="ExplanationOfBenefit.addItem.service" />
          <short value="Billing Code" />
          <definition value="If this is an actual service or product line, ie. not a Group, then use code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI). If a grouping item then use a group code to indicate the type of thing being grouped eg. 'glasses' or 'compound'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.modifier" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.modifier">
          <path value="ExplanationOfBenefit.addItem.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F16 (required field for Oral) and F05" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.fee" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.fee" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.fee" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.fee">
          <path value="ExplanationOfBenefit.addItem.fee" />
          <short value="Professional fee or Product charge" />
          <definition value="The fee charged for the professional service or product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.noteNumber" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.noteNumber">
          <path value="ExplanationOfBenefit.addItem.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.adjudication" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.adjudication">
          <path value="ExplanationOfBenefit.addItem.adjudication" />
          <short value="Added items adjudication" />
          <definition value="The adjudications results." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ExplanationOfBenefit.item.adjudication" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.detail">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="AddedItemsDetail" />
          </extension>
          <path value="ExplanationOfBenefit.addItem.detail" />
          <short value="Added items details" />
          <definition value="The second tier service adjudications for payor added services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.revenue" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.detail.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.detail.revenue">
          <path value="ExplanationOfBenefit.addItem.detail.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.category" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.detail.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.detail.category">
          <path value="ExplanationOfBenefit.addItem.detail.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F06" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.service" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.detail.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.detail.service">
          <path value="ExplanationOfBenefit.addItem.detail.service" />
          <short value="Billing Code" />
          <definition value="A code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.modifier" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.detail.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.detail.modifier">
          <path value="ExplanationOfBenefit.addItem.detail.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F16 (required field for Oral) and F05" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.fee" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.detail.fee" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.fee" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.detail.fee">
          <path value="ExplanationOfBenefit.addItem.detail.fee" />
          <short value="Professional fee or Product charge" />
          <definition value="The fee charged for the professional service or product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.noteNumber" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.detail.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.detail.noteNumber">
          <path value="ExplanationOfBenefit.addItem.detail.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.adjudication" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.addItem.detail.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.addItem.detail.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.addItem.detail.adjudication">
          <path value="ExplanationOfBenefit.addItem.detail.adjudication" />
          <short value="Added items detail adjudication" />
          <definition value="The adjudications results." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ExplanationOfBenefit.item.adjudication" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.totalCost" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.totalCost" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.totalCost" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.totalCost">
          <path value="ExplanationOfBenefit.totalCost" />
          <short value="Total Cost of service from the Claim" />
          <definition value="The total cost of the services reported." />
          <requirements value="This is a check value that the receiver calculates and returns." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.unallocDeductable" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.unallocDeductable" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.unallocDeductable" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.unallocDeductable">
          <path value="ExplanationOfBenefit.unallocDeductable" />
          <short value="Unallocated deductable" />
          <definition value="The amount of deductable applied which was not allocated to any particular service line." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.totalBenefit" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.totalBenefit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.totalBenefit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.totalBenefit">
          <path value="ExplanationOfBenefit.totalBenefit" />
          <short value="Total benefit payable for the Claim" />
          <definition value="Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductable)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payment">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Payment" />
          </extension>
          <path value="ExplanationOfBenefit.payment" />
          <short value="Payment (if paid)" />
          <definition value="Payment details for the claim if the claim has been paid." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.type" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payment.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payment.type">
          <path value="ExplanationOfBenefit.payment.type" />
          <short value="Partial or Complete" />
          <definition value="Whether this represents partial or complete payment of the claim." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PaymentType" />
            </extension>
            <strength value="example" />
            <description value="The type (partial, complete) of the payment" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-paymenttype" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.adjustment" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payment.adjustment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.adjustment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payment.adjustment">
          <path value="ExplanationOfBenefit.payment.adjustment" />
          <short value="Payment adjustment for non-Claim issues" />
          <definition value="Adjustment to the payment of this transaction which is not related to adjudication of this transaction." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.adjustmentReason" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payment.adjustmentReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.adjustmentReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payment.adjustmentReason">
          <path value="ExplanationOfBenefit.payment.adjustmentReason" />
          <short value="Explanation for the non-claim adjustment" />
          <definition value="Reason for the payment adjustment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PaymentAdjustmentReason" />
            </extension>
            <strength value="example" />
            <description value="Payment Adjustment reason codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/payment-adjustment-reason" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.date" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payment.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payment.date">
          <path value="ExplanationOfBenefit.payment.date" />
          <short value="Expected date of Payment" />
          <definition value="Estimated payment date." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.amount" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payment.amount" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.amount" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payment.amount">
          <path value="ExplanationOfBenefit.payment.amount" />
          <short value="Payable amount after adjustment" />
          <definition value="Payable less any payment adjustment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.identifier" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.payment.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.payment.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.payment.identifier">
          <path value="ExplanationOfBenefit.payment.identifier" />
          <short value="Identifier of the payment instrument" />
          <definition value="Payment identifer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G01, B.23" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.form" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.form" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.form" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.form">
          <path value="ExplanationOfBenefit.form" />
          <short value="Printed Form Identifier" />
          <definition value="The form to be used for printing the content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Forms" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="The forms codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/forms" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G42" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.processNote" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.processNote">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Note" />
          </extension>
          <path value="ExplanationOfBenefit.processNote" />
          <short value="Processing notes" />
          <definition value="Note text." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote.number" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.processNote.number" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote.number" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.processNote.number">
          <path value="ExplanationOfBenefit.processNote.number" />
          <short value="Sequence number for this note" />
          <definition value="An integer associated with each note which may be referred to from each service line item." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote.type" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.processNote.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.processNote.type">
          <path value="ExplanationOfBenefit.processNote.type" />
          <short value="display | print | printoper" />
          <definition value="The note purpose: Print/Display." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NoteType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The presentation types of notes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/note-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote.text" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.processNote.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.processNote.text">
          <path value="ExplanationOfBenefit.processNote.text" />
          <short value="Note explanitory text" />
          <definition value="The note text." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G32" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote.language" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.processNote.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.processNote.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.processNote.language">
          <path value="ExplanationOfBenefit.processNote.language" />
          <short value="Language if different from the resource" />
          <definition value="The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. &quot;en&quot; for English, or &quot;en-US&quot; for American English versus &quot;en-EN&quot; for England English." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="BenefitBalance" />
          </extension>
          <path value="ExplanationOfBenefit.benefitBalance" />
          <short value="Balance by Benefit Category" />
          <definition value="Balance by Benefit Category." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.category" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.category">
          <path value="ExplanationOfBenefit.benefitBalance.category" />
          <short value="Type of services covered" />
          <definition value="Dental, Vision, Medical, Pharmacy, Rehab etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit categories such as: oral, medical, vision etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-category" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.subCategory" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.subCategory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.subCategory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.subCategory">
          <path value="ExplanationOfBenefit.benefitBalance.subCategory" />
          <short value="Detailed services covered within the type" />
          <definition value="Dental: basic, major, ortho; Vision exam, glasses, contacts; etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.excluded" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.excluded" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.excluded" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.excluded">
          <path value="ExplanationOfBenefit.benefitBalance.excluded" />
          <short value="Excluded from the plan" />
          <definition value="True if the indicated class of service is excluded from the plan, missing or False indicated the service is included in the coverage." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.name" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.name">
          <path value="ExplanationOfBenefit.benefitBalance.name" />
          <short value="Short name for the benefit" />
          <definition value="A short name or tag for the benefit, for example MED01, or DENT2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.description" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.description">
          <path value="ExplanationOfBenefit.benefitBalance.description" />
          <short value="Description of the benefit or services covered" />
          <definition value="A richer description of the benefit, for example 'DENT2 covers 100% of basic, 50% of major but exclused Ortho, Implants and Costmetic services'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.network" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.network" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.network" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.network">
          <path value="ExplanationOfBenefit.benefitBalance.network" />
          <short value="In or out of network" />
          <definition value="Network designation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitNetwork" />
            </extension>
            <strength value="example" />
            <description value="Code to classify in or out of network services" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-network" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.unit" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.unit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.unit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.unit">
          <path value="ExplanationOfBenefit.benefitBalance.unit" />
          <short value="Individual or family" />
          <definition value="Unit designation: individual or family." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitUnit" />
            </extension>
            <strength value="example" />
            <description value="Unit covered/serviced - individual or family" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-unit" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.term" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.term" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.term" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.term">
          <path value="ExplanationOfBenefit.benefitBalance.term" />
          <short value="Annual or lifetime" />
          <definition value="The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual vistis'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitTerm" />
            </extension>
            <strength value="example" />
            <description value="Coverage unit - annual, lifetime" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-term" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.financial" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.financial" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.financial" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.financial">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Benefit" />
          </extension>
          <path value="ExplanationOfBenefit.benefitBalance.financial" />
          <short value="Benefit Summary" />
          <definition value="Benefits Used to date." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.financial.type" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.financial.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.financial.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.financial.type">
          <path value="ExplanationOfBenefit.benefitBalance.financial.type" />
          <short value="Deductable, visits, benefit amount" />
          <definition value="Deductable, visits, benefit amount." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitType" />
            </extension>
            <strength value="example" />
            <description value="Deductable, visits, co-pay, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.financial.allowedX" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.financial.allowedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.financial.allowedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.financial.allowed[x]">
          <path value="ExplanationOfBenefit.benefitBalance.financial.allowed[x]" />
          <short value="Benefits allowed" />
          <definition value="Benefits allowed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.financial.usedX" />
    <resource>
      <DataElement>
        <id value="ExplanationOfBenefit.benefitBalance.financial.usedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ExplanationOfBenefit.benefitBalance.financial.usedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ExplanationOfBenefit.benefitBalance.financial.used[x]">
          <path value="ExplanationOfBenefit.benefitBalance.financial.used[x]" />
          <short value="Benefits used" />
          <definition value="Benefits used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy" />
    <resource>
      <DataElement>
        <id value="ResearchStudy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy">
          <path value="ResearchStudy" />
          <short value="Investigation to increase healthcare-related patient-independent knowledge" />
          <definition value="A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge.  This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques.  A ResearchStudy involves the gathering of information about human or animal subjects." />
          <comment value="Need to make sure we encompass public health studies." />
          <alias value="Clinical Trial" />
          <alias value="Study" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=CLNTRL, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.diagnostics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.identifier" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.identifier">
          <path value="ResearchStudy.identifier" />
          <short value="Business Identifier for study" />
          <definition value="Identifiers assigned to this research study by the sponsor or other systems." />
          <requirements value="Allows identification of the research study as it is known by various participating systems and in a way that remains consistent across servers." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Organization's Unique Protocol ID; Secondary IDs" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.title" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.title">
          <path value="ResearchStudy.title" />
          <short value="Name for this study" />
          <definition value="A short, descriptive user-friendly label for the study." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Brief Title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.protocol" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.protocol" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.protocol" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.protocol">
          <path value="ResearchStudy.protocol" />
          <short value="Steps followed in executing study" />
          <definition value="The set of steps expected to be performed as part of the execution of the study." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Interventions; Arm/Intervention Cross-Reference" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.partOf" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.partOf">
          <path value="ResearchStudy.partOf" />
          <short value="Part of larger study" />
          <definition value="A larger research study of which this particular study is a component or step." />
          <requirements value="Allows breaking a study into components (e.g. by study site) each with their own PI, status, enrollment, etc." />
          <alias value="container" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ResearchStudy" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.status" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.status">
          <path value="ResearchStudy.status" />
          <short value="draft | in-progress | suspended | stopped | completed | entered-in-error" />
          <definition value="The current state of the study." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResearchStudyStatus" />
            </extension>
            <strength value="required" />
            <description value="Codes that convey the current status of the research study" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/research-study-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.category" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.category">
          <path value="ResearchStudy.category" />
          <short value="Classifications for the study" />
          <definition value="Codes categorizing the type of study such as investigational vs. observational, type of blinding, type of randomization, safety vs. efficacy, etc." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResearchStudyCategory" />
            </extension>
            <strength value="example" />
            <description value="Codes that describe the type of research study.  E.g. Study phase, Interventional/Observational, blinding type, etc." />
          </binding>
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Study Type; Primary Purpose; Study Phase; Interventional Model; Masking; Allocation; study Classification; Observational Study Model; Time Perspective; Biospecimen Retention" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.focus" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.focus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.focus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.focus">
          <path value="ResearchStudy.focus" />
          <short value="Drugs, devices, conditions, etc. under study" />
          <definition value="The condition(s), medication(s), food(s), therapy(ies), device(s) or other concerns or interventions that the study is seeking to gain more information about." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResearchStudyFocus" />
            </extension>
            <strength value="example" />
            <description value="Codes for medications, devices, conditions and other interventions" />
          </binding>
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Conditions or Focus of Study" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.contact" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.contact">
          <path value="ResearchStudy.contact" />
          <short value="Contact details for the study" />
          <definition value="Contact details to assist a user in learning more about or engaging with the study." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Central Contact; Central Contact Backup; Overall Study Officials; Facility Contact &amp; Backup (if Study tied to only one location); Investigators" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.relatedArtifact" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.relatedArtifact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.relatedArtifact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.relatedArtifact">
          <path value="ResearchStudy.relatedArtifact" />
          <short value="References and dependencies" />
          <definition value="Citations, references and other related documents." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="RelatedArtifact" />
          </type>
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Citations, Links, Available Study Data/Documents" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.keyword" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.keyword" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.keyword" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.keyword">
          <path value="ResearchStudy.keyword" />
          <short value="Used to search for the study" />
          <definition value="Key terms to aid in searching for or filtering the study." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResearchStudyKeyword" />
            </extension>
            <strength value="example" />
            <description value="Words associated with the study that may be useful in discovery" />
          </binding>
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Keywords" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.jurisdiction" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.jurisdiction">
          <path value="ResearchStudy.jurisdiction" />
          <short value="Geographic region(s) for study" />
          <definition value="Indicates a country, state or other region where the study is taking place." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.description" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.description">
          <path value="ResearchStudy.description" />
          <short value="What this is study doing" />
          <definition value="A full description of how the study is being conducted." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Detailed Description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.enrollment" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.enrollment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.enrollment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.enrollment">
          <path value="ResearchStudy.enrollment" />
          <short value="Inclusion &amp; exclusion criteria" />
          <definition value="Reference to a Group that defines the criteria for and quantity of subjects participating in the study.  E.g. &quot; 200 female Europeans between the ages of 20 and 45 with early onset diabetes&quot;." />
          <comment value="The Group referenced should not generally enumerate specific subjects.  Subjects will be linked to the study using the ResearchSubject resource." />
          <alias value="patient" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Enrollment; Number of Groups/Cohorts (= number of &quot;enrollment&quot; instances); Groups (Group/Cohort Label = Group.name; Group/Cohort Description = Group.description); Eligibility (Group criteria)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.period" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.period">
          <path value="ResearchStudy.period" />
          <short value="When the study began and ended" />
          <definition value="Identifies the start date and the expected (or actual, depending on status) end date for the study." />
          <requirements value="[The list of types may be constrained as appropriate for the type of event]." />
          <alias value="timing" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Study Start Date (start); Study Completion Date (end)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.sponsor" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.sponsor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.sponsor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.sponsor">
          <path value="ResearchStudy.sponsor" />
          <short value="Organization responsible for the study" />
          <definition value="The organization responsible for the execution of the study." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Sponsor" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.principalInvestigator" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.principalInvestigator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.principalInvestigator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.principalInvestigator">
          <path value="ResearchStudy.principalInvestigator" />
          <short value="The individual responsible for the study" />
          <definition value="Indicates the individual who has primary oversite of the execution of the study." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Principal Investigator" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.site" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.site" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.site" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.site">
          <path value="ResearchStudy.site" />
          <short value="Location involved in study execution" />
          <definition value="Clinic, hospital or other healthcare location that is participating in the study." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Facility" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.reasonStopped" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.reasonStopped" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.reasonStopped" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.reasonStopped">
          <path value="ResearchStudy.reasonStopped" />
          <short value="Reason for terminating study early" />
          <definition value="A description and/or code explaining the premature termination of the study." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Why Study Stopped" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.note" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.note">
          <path value="ResearchStudy.note" />
          <short value="Comments made about the event" />
          <definition value="Comments made about the event by the performer, subject or other participants." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.arm" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.arm" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.arm" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.arm">
          <path value="ResearchStudy.arm" />
          <short value="Defined path through the study for a subject" />
          <definition value="Describes an expected sequence of events for one of the participants of a study.  E.g. Exposure to drug A, wash-out, exposure to drug B, wash-out, follow-up." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Arms" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.arm.name" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.arm.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.arm.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.arm.name">
          <path value="ResearchStudy.arm.name" />
          <short value="Label for study arm" />
          <definition value="Unique, human-readable label for this arm of the study." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Arm Label" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.arm.code" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.arm.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.arm.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.arm.code">
          <path value="ResearchStudy.arm.code" />
          <short value="Categorization of study arm" />
          <definition value="Categorization of study arm, e.g. experimental, active comparator, placebo comparater." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Arm Type" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ResearchStudy.arm.description" />
    <resource>
      <DataElement>
        <id value="ResearchStudy.arm.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ResearchStudy.arm.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ResearchStudy.arm.description">
          <path value="ResearchStudy.arm.description" />
          <short value="Short explanation of study path" />
          <definition value="A succinct description of the path through the study that would be followed by a subject adhering to this arm." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="clinicaltrials-gov" />
            <map value="Arm Description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen" />
    <resource>
      <DataElement>
        <id value="Specimen" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen">
          <path value="Specimen" />
          <short value="Sample for analysis" />
          <definition value="A sample to be used for analysis." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role[classCode=SPEC]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.diagnostics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.identifier" />
    <resource>
      <DataElement>
        <id value="Specimen.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.identifier">
          <path value="Specimen.identifier" />
          <short value="External Identifier" />
          <definition value="Id for specimen." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SPM-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.accessionIdentifier" />
    <resource>
      <DataElement>
        <id value="Specimen.accessionIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.accessionIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.accessionIdentifier">
          <path value="Specimen.accessionIdentifier" />
          <short value="Identifier assigned by the lab" />
          <definition value="The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SPM-30 (v2.7+)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.status" />
    <resource>
      <DataElement>
        <id value="Specimen.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.status">
          <path value="Specimen.status" />
          <short value="available | unavailable | unsatisfactory | entered-in-error" />
          <definition value="The availability of the specimen." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenStatus" />
            </extension>
            <strength value="required" />
            <description value="Codes providing the status/availability of a specimen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/specimen-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="SPM-20" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.type" />
    <resource>
      <DataElement>
        <id value="Specimen.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.type">
          <path value="Specimen.type" />
          <short value="Kind of material that forms the specimen" />
          <definition value="The kind of material that forms the specimen." />
          <comment value="The type can change the way that a specimen is handled, and drives what kind of analyses can properly be performed on the specimen. It is frequently used in diagnostic work flow decision making systems." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenType" />
            </extension>
            <strength value="example" />
            <description value="The type of the specimen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v2-0487" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="SPM-4 and possibly SPM-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.subject" />
    <resource>
      <DataElement>
        <id value="Specimen.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.subject">
          <path value="Specimen.subject" />
          <short value="Where the specimen came from. This may be from the patient(s) or from the environment or a device" />
          <definition value="Where the specimen came from. This may be from the patient(s) or from the environment or a device." />
          <requirements value="Must know the subject context." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".scoper  or  .scoper.playsRole" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.receivedTime" />
    <resource>
      <DataElement>
        <id value="Specimen.receivedTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.receivedTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.receivedTime">
          <path value="Specimen.receivedTime" />
          <short value="The time when specimen was received for processing" />
          <definition value="Time when specimen was received for processing or testing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SPM-18" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.parent" />
    <resource>
      <DataElement>
        <id value="Specimen.parent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.parent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.parent">
          <path value="Specimen.parent" />
          <short value="Specimen from which this specimen originated" />
          <definition value="Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen." />
          <comment value="The parent specimen could be the source from which the current specimen is derived by some processing step (e.g. an aliquot or isolate or extracted nucleic acids from clinical samples) or one of many specimens that were combined to create a pooled sample." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.request" />
    <resource>
      <DataElement>
        <id value="Specimen.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.request">
          <path value="Specimen.request" />
          <short value="Why the specimen was collected" />
          <definition value="Details concerning a test or procedure request that required a specimen to be collected." />
          <comment value="The request may be explicit or implied such with a ProcedureRequest that requires a blood draw." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="ORC? OBR-2/3?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=FLFS].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.collection" />
    <resource>
      <DataElement>
        <id value="Specimen.collection" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.collection" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.collection">
          <path value="Specimen.collection" />
          <short value="Collection details" />
          <definition value="Details concerning the specimen collection." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="SPM-14" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.collection.collector" />
    <resource>
      <DataElement>
        <id value="Specimen.collection.collector" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.collection.collector" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.collection.collector">
          <path value="Specimen.collection.collector" />
          <short value="Who collected the specimen" />
          <definition value="Person who collected the specimen." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRT" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PFM].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.collection.collectedX" />
    <resource>
      <DataElement>
        <id value="Specimen.collection.collectedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.collection.collectedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.collection.collected[x]">
          <path value="Specimen.collection.collected[x]" />
          <short value="Collection time" />
          <definition value="Time when specimen was collected from subject - the physiologically relevant time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SPM-17" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.collection.quantity" />
    <resource>
      <DataElement>
        <id value="Specimen.collection.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.collection.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.collection.quantity">
          <path value="Specimen.collection.quantity" />
          <short value="The quantity of specimen collected" />
          <definition value="The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="SPM-12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.collection.method" />
    <resource>
      <DataElement>
        <id value="Specimen.collection.method" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.collection.method" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.collection.method">
          <path value="Specimen.collection.method" />
          <short value="Technique used to perform collection" />
          <definition value="A coded value specifying the technique that is used to perform the procedure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenCollectionMethod" />
            </extension>
            <strength value="example" />
            <description value="The  technique that is used to perform the procedure" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/specimen-collection-method" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="SPM-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".methodCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.collection.bodySite" />
    <resource>
      <DataElement>
        <id value="Specimen.collection.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.collection.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.collection.bodySite">
          <path value="Specimen.collection.bodySite" />
          <short value="Anatomical collection site" />
          <definition value="Anatomical location from which the specimen was collected (if subject is a patient). This is the target site.  This element is not used for environmental specimens." />
          <comment value="If the use case requires  BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately)  then use the standard extension [body-site-instance](extension-body-site-instance.html)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="SPM-8 and SPM-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".targetSiteCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.processing" />
    <resource>
      <DataElement>
        <id value="Specimen.processing" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.processing" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.processing">
          <path value="Specimen.processing" />
          <short value="Processing and processing step details" />
          <definition value="Details concerning processing and processing steps for the specimen." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.processing.description" />
    <resource>
      <DataElement>
        <id value="Specimen.processing.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.processing.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.processing.description">
          <path value="Specimen.processing.description" />
          <short value="Textual description of procedure" />
          <definition value="Textual description of procedure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.processing.procedure" />
    <resource>
      <DataElement>
        <id value="Specimen.processing.procedure" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.processing.procedure" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.processing.procedure">
          <path value="Specimen.processing.procedure" />
          <short value="Indicates the treatment step  applied to the specimen" />
          <definition value="A coded value specifying the procedure used to process the specimen." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenProcessingProcedure" />
            </extension>
            <strength value="example" />
            <description value="Type indicating the technique used to process the specimen" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/specimen-processing-procedure" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.processing.additive" />
    <resource>
      <DataElement>
        <id value="Specimen.processing.additive" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.processing.additive" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.processing.additive">
          <path value="Specimen.processing.additive" />
          <short value="Material used in the processing step" />
          <definition value="Material used in the processing step." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="SPM-6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CSM].role[classCode=ADTV].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.processing.timeX" />
    <resource>
      <DataElement>
        <id value="Specimen.processing.timeX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.processing.timeX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.processing.time[x]">
          <path value="Specimen.processing.time[x]" />
          <short value="Date and time of specimen processing" />
          <definition value="A record of the time or period when the specimen processing occurred.  For example the time of sample fixation or the period of time the sample was in formalin." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.container" />
    <resource>
      <DataElement>
        <id value="Specimen.container" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.container" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.container">
          <path value="Specimen.container" />
          <short value="Direct container of specimen (tube/slide, etc.)" />
          <definition value="The container holding the specimen.  The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".player.scopingRole[classCode=CONT].scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.container.identifier" />
    <resource>
      <DataElement>
        <id value="Specimen.container.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.container.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.container.identifier">
          <path value="Specimen.container.identifier" />
          <short value="Id for the container" />
          <definition value="Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SAC-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.container.description" />
    <resource>
      <DataElement>
        <id value="Specimen.container.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.container.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.container.description">
          <path value="Specimen.container.description" />
          <short value="Textual description of the container" />
          <definition value="Textual description of the container." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".desc" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.container.type" />
    <resource>
      <DataElement>
        <id value="Specimen.container.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.container.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.container.type">
          <path value="Specimen.container.type" />
          <short value="Kind of container directly associated with specimen" />
          <definition value="The type of container associated with the specimen (e.g. slide, aliquot, etc.)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenContainerType" />
            </extension>
            <strength value="example" />
            <description value="Type of specimen container" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/specimen-container-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="SPM-27" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.container.capacity" />
    <resource>
      <DataElement>
        <id value="Specimen.container.capacity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.container.capacity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.container.capacity">
          <path value="Specimen.container.capacity" />
          <short value="Container volume or size" />
          <definition value="The capacity (volume or other measure) the container may contain." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.container.specimenQuantity" />
    <resource>
      <DataElement>
        <id value="Specimen.container.specimenQuantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.container.specimenQuantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.container.specimenQuantity">
          <path value="Specimen.container.specimenQuantity" />
          <short value="Quantity of specimen within container" />
          <definition value="The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="SAC-23 (value) SAC-24 (units" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".playedRole[classCode=CONT].quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.container.additiveX" />
    <resource>
      <DataElement>
        <id value="Specimen.container.additiveX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.container.additiveX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.container.additive[x]">
          <path value="Specimen.container.additive[x]" />
          <short value="Additive associated with container" />
          <definition value="Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenContainerAdditive" />
            </extension>
            <strength value="example" />
            <description value="Substance added to specimen container" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v2-0371" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="SAC-27" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scopesRole[classCode=ADTV].player" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Specimen.note" />
    <resource>
      <DataElement>
        <id value="Specimen.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Specimen.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Specimen.note">
          <path value="Specimen.note" />
          <short value="Comments" />
          <definition value="To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance">
          <path value="AllergyIntolerance" />
          <short value="Allergy or Intolerance (generally: Risk of adverse reaction to a substance)" />
          <definition value="Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance." />
          <comment value="Substances include, but are not limited to: a therapeutic substance administered correctly at an appropriate dosage for the individual; food; material derived from plants or animals; or venom from insect stings." />
          <alias value="Allergy" />
          <alias value="Intolerance" />
          <alias value="Adverse Reaction" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="ait-1" />
            <severity value="error" />
            <human value="AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error." />
            <expression value="verificationStatus='entered-in-error' or clinicalStatus.exists()" />
            <xpath value="f:verificationStatus/@value='entered-in-error' or exists(f:clinicalStatus)" />
          </constraint>
          <constraint>
            <key value="ait-2" />
            <severity value="error" />
            <human value="AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error" />
            <expression value="verificationStatus!='entered-in-error' or clinicalStatus.empty()" />
            <xpath value="f:verificationStatus/@value!='entered-in-error' or not(exists(f:clinicalStatus))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=OBS, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.identifier" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.identifier">
          <path value="AllergyIntolerance.identifier" />
          <short value="External ids for this item" />
          <definition value="This records identifiers associated with this allergy/intolerance concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="IAM-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.clinicalStatus" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.clinicalStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.clinicalStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.clinicalStatus">
          <path value="AllergyIntolerance.clinicalStatus" />
          <short value="active | inactive | resolved" />
          <definition value="The clinical status of the allergy or intolerance." />
          <comment value="This element is labeled as a modifier because the status contains the codes inactive and resolved that mark the AllergyIntolerance as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="ait-1" />
          <condition value="ait-2" />
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AllergyIntoleranceClinicalStatus" />
            </extension>
            <strength value="required" />
            <description value="The clinical status of the allergy or intolerance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/allergy-clinical-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="Observation ACT&#xA;.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;clinicalStatus&quot;, moodCode=EVN].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.verificationStatus" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.verificationStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.verificationStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.verificationStatus">
          <path value="AllergyIntolerance.verificationStatus" />
          <short value="unconfirmed | confirmed | refuted | entered-in-error" />
          <definition value="Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product)." />
          <comment value="This element is labeled as a modifier because the status contains the codes refuted and entered-in-error that mark the AllergyIntolerance as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="ait-1" />
          <condition value="ait-2" />
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AllergyIntoleranceVerificationStatus" />
            </extension>
            <strength value="required" />
            <description value="Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified substance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/allergy-verification-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="Observation ACT&#xA;.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;verificationStatus&quot;, moodCode=EVN].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.type" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.type">
          <path value="AllergyIntolerance.type" />
          <short value="allergy | intolerance - Underlying mechanism (if known)" />
          <definition value="Identification of the underlying physiological mechanism for the reaction risk." />
          <comment value="Allergic (typically immune-mediated) reactions have been traditionally regarded as an indicator for potential escalation to significant future risk. Contemporary knowledge suggests that some reactions previously thought to be immune-mediated are, in fact, non-immune, but in some cases can still pose a life threatening risk. It is acknowledged that many clinicians may not be in a position to distinguish the mechanism of a particular reaction. Often the term &quot;allergy&quot; is used rather generically and may overlap with the use of &quot;intolerance&quot; - in practice the boundaries between these two concepts may not be well-defined or understood. This data element is included nevertheless, because many legacy systems have captured this attribute. Immunologic testing may provide supporting evidence for the basis of the reaction and the causative substance, but no tests are 100% sensitive or specific for sensitivity to a particular substance. If, as is commonly the case, it is unclear whether the reaction is due to an allergy or an intolerance, then the type element should be omitted from the resource." />
          <alias value="Category" />
          <alias value="Class" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AllergyIntoleranceType" />
            </extension>
            <strength value="required" />
            <description value="Identification of the underlying physiological mechanism for a Reaction Risk." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/allergy-intolerance-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="IAM-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.category" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.category">
          <path value="AllergyIntolerance.category" />
          <short value="food | medication | environment | biologic" />
          <definition value="Category of the identified substance." />
          <comment value="This data element has been included because it is currently being captured in some clinical systems. This data can be derived from the substance where coding systems are used, and is effectively redundant in that situation.  When searching on category, consider the implications of AllergyIntolerance resources without a category.  For example, when searching on category = medication, medication allergies that don't have a category valued will not be returned.  Refer to [search](search.html) for more information on how to search category with a :missing modifier to get allergies that don't have a category.  Additionally, category should be used with caution because category can be subjective based on the sender." />
          <alias value="Category" />
          <alias value="Type" />
          <alias value="Reaction Type" />
          <alias value="Class" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AllergyIntoleranceCategory" />
            </extension>
            <strength value="required" />
            <description value="Category of an identified substance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/allergy-intolerance-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="AL1-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="value &lt; IntoleranceValue (Agent)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.criticality" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.criticality" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.criticality" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.criticality">
          <path value="AllergyIntolerance.criticality" />
          <short value="low | high | unable-to-assess" />
          <definition value="Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance." />
          <comment value="The default criticality value for any propensity to an adverse reaction should be 'Low Risk', indicating at the very least a relative contraindication to deliberate or voluntary exposure to the substance. 'High Risk' is flagged if the clinician has identified a propensity for a more serious or potentially life-threatening reaction, such as anaphylaxis, and implies an absolute contraindication to deliberate or voluntary exposure to the substance. If this element is missing, the criticality is unknown (though it may be known elsewhere).&#xA;&#xA;Systems that capture a severity at the condition level are actually representing the concept of criticality whereas the severity documented at the reaction level is representing the true reaction severity.  Existing systems that are capturing both condition criticality and reaction severity may use the term &quot;severity&quot; to represent both.  Criticality is the worst it could be in the future (i.e. situation-agnostic) whereas severity is situation-dependent." />
          <alias value="Severity" />
          <alias value="Seriousness" />
          <alias value="Contra-indication" />
          <alias value="Risk" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AllergyIntoleranceCriticality" />
            </extension>
            <strength value="required" />
            <description value="Estimate of the potential clinical harm, or seriousness, of a reaction to an identified substance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="AL1-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value &lt;= SeverityObservation (Severity Level)]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.code" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.code">
          <path value="AllergyIntolerance.code" />
          <short value="Code that identifies the allergy or intolerance" />
          <definition value="Code for an allergy or intolerance statement (either a positive or a negated/excluded statement).  This may be a code for a substance or pharmaceutical product that is considered to be responsible for the adverse reaction risk (e.g., &quot;Latex&quot;), an allergy or intolerance condition (e.g., &quot;Latex allergy&quot;), or a negated/excluded code for a specific substance or class (e.g., &quot;No latex allergy&quot;) or a general or categorical negated statement (e.g.,  &quot;No known allergy&quot;, &quot;No known drug allergies&quot;)." />
          <comment value="It is strongly recommended that this element be populated using a terminology, where possible. For example, some terminologies used include RxNorm, SNOMED CT, DM+D, NDFRT, ICD-9, IDC-10, UNI, ATC and CPT. Plain text should only be used if there is no appropriate terminology available. Additional details can be specified in the text.&#xD;&#xD;When a substance or product code is specified for the 'code' element, the &quot;default&quot; semantic context is that this is a positive statement of an allergy or intolerance (depending on the value of the 'type' element, if present) condition to the specified substance/product.  In the corresponding SNOMED CT allergy model, the specified substance/product is the target (destination) of the &quot;Causative agent&quot; relationship.&#xD;&#xD;The 'substanceExposureRisk' extension is available as a structured and more flexible alternative to the 'code' element for making positive or negative allergy or intolerance statements.  This extension provides the capability to make &quot;no known allergy&quot; (or &quot;no risk of adverse reaction&quot;) statements regarding any coded substance/product (including cases when a pre-coordinated &quot;no allergy to x&quot; concept for that substance/product does not exist).  If the 'substanceExposureRisk' extension is present, the AllergyIntolerance.code element SHALL be omitted." />
          <alias value="Code" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AllergyIntoleranceCode" />
            </extension>
            <strength value="example" />
            <description value="Type of the substance/product, allergy or intolerance condition, or negation/exclusion codes for reporting no known allergies." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/allergyintolerance-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="AL1-3 / IAM-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="substance/product:&#xD;&#xD;.participation[typeCode=CAGNT].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code &lt;= ExposureAgentEntityType]&#xD;&#xD;negated/excluded substance/product:&#xD;&#xD;.participation[typeCode=CAGNT, negationInd=true].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code &lt;= ExposureAgentEntityType]&#xD;&#xD;positive or negated/excluded condition/situation:&#xD;&#xD;Observation.code=ASSERTION; Observation.value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.patient" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.patient">
          <path value="AllergyIntolerance.patient" />
          <short value="Who the sensitivity is for" />
          <definition value="The patient who has the allergy or intolerance." />
          <alias value="Patient" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="(PID-3)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.onsetX" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.onsetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.onsetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.onset[x]">
          <path value="AllergyIntolerance.onset[x]" />
          <short value="When allergy or intolerance was identified" />
          <definition value="Estimated or actual date,  date-time, or age when allergy or intolerance was identified." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="effectiveTime.low" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.assertedDate" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.assertedDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.assertedDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.assertedDate">
          <path value="AllergyIntolerance.assertedDate" />
          <short value="Date record was believed accurate" />
          <definition value="The date on which the existance of the AllergyIntolerance was first asserted or acknowledged." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="IAM-20" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.recorder" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.recorder" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.recorder" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.recorder">
          <path value="AllergyIntolerance.recorder" />
          <short value="Who recorded the sensitivity" />
          <definition value="Individual who recorded the record and takes responsibility for its content." />
          <alias value="Author" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.asserter" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.asserter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.asserter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.asserter">
          <path value="AllergyIntolerance.asserter" />
          <short value="Source of the information about the allergy" />
          <definition value="The source of the information about the allergy that is recorded." />
          <comment value="The recorder takes repsonsibility for the content, but can reference the source from where they got it." />
          <alias value="Source" />
          <alias value="Informant" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="IAM-14 (if patient) / IAM-18 (if practitioner)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=INF].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.lastOccurrence" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.lastOccurrence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.lastOccurrence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.lastOccurrence">
          <path value="AllergyIntolerance.lastOccurrence" />
          <short value="Date(/time) of last known occurrence of a reaction" />
          <definition value="Represents the date and/or time of the last known occurrence of a reaction event." />
          <comment value="This date may be replicated by one of the Onset of Reaction dates. Where a textual representation of the date of last occurrence is required e.g. 'In Childhood, '10 years ago' the Comment element should be used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code &lt;= CommonClinicalObservationType, value &lt;= ObservationValue (Reaction Type)].effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.note" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.note">
          <path value="AllergyIntolerance.note" />
          <short value="Additional text not captured in other fields" />
          <definition value="Additional narrative about the propensity for the Adverse Reaction, not captured in other fields." />
          <comment value="For example: including reason for flagging a seriousness of 'High Risk'; and instructions related to future exposure or administration of the substance, such as administration within an Intensive Care Unit or under corticosteroid cover. The notes should be related to an allergy or intolerance as a condition in general and not related to any particular episode of it. For episode notes and descriptions, use AllergyIntolerance.event.description and  AllergyIntolerance.event.notes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="subjectOf.observationEvent[code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.reaction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.reaction">
          <path value="AllergyIntolerance.reaction" />
          <short value="Adverse Reaction Events linked to exposure to substance" />
          <definition value="Details about each adverse reaction event linked to exposure to the identified substance." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code &lt;= CommonClinicalObservationType, value &lt;= ObservationValue (Reaction Type)]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.substance" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.reaction.substance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.substance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.reaction.substance">
          <path value="AllergyIntolerance.reaction.substance" />
          <short value="Specific substance or pharmaceutical product considered to be responsible for event" />
          <definition value="Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'." />
          <comment value="Coding of the specific substance (or pharmaceutical product) with a terminology capable of triggering decision support should be used wherever possible.  The 'code' element allows for the use of a specific substance or pharmaceutical product, or a group or class of substances. In the case of an allergy or intolerance to a class of substances, (for example, &quot;penicillins&quot;), the 'reaction.substance' element could be used to code the specific substance that was identifed as having caused the reaction (for example, &quot;amoxycillin&quot;). Duplication of the value in the 'code' and 'reaction.substance' elements is acceptable when a specific substance has been recorded in 'code'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SubstanceCode" />
            </extension>
            <strength value="example" />
            <description value="Codes defining the type of the substance (including pharmaceutical products)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/substance-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code &lt;= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code &lt;= ExposureAgentEntityType]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.manifestation" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.reaction.manifestation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.manifestation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.reaction.manifestation">
          <path value="AllergyIntolerance.reaction.manifestation" />
          <short value="Clinical symptoms/signs associated with the Event" />
          <definition value="Clinical symptoms and/or signs that are observed or associated with the adverse reaction event." />
          <comment value="Manifestation can be expressed as a single word, phrase or brief description. For example: nausea, rash or no reaction. It is preferable that manifestation should be coded with a terminology, where possible. The values entered here may be used to display on an application screen as part of a list of adverse reactions, as recommended in the UK NHS CUI guidelines.  Terminologies commonly used include, but are not limited to, SNOMED CT or ICD10." />
          <alias value="Symptoms" />
          <alias value="Signs" />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Manifestation" />
            </extension>
            <strength value="example" />
            <description value="Clinical symptoms and/or signs that are observed or associated with an Adverse Reaction Event." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-findings" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="AL1-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.description" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.reaction.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.reaction.description">
          <path value="AllergyIntolerance.reaction.description" />
          <short value="Description of the event as a whole" />
          <definition value="Text description about the reaction as a whole, including details of the manifestation if required." />
          <comment value="Use the description to provide any details of a particular event of the occurred reaction such as circumstances, reaction specifics, what happened before/after. Information, related to the event, but not describing a particular care should be captured in the comment field. For example: at the age of four, the patient was given penicillin for strep throat and subsequently developed severe hives." />
          <alias value="Narrative" />
          <alias value="Text" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.onset" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.reaction.onset" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.onset" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.reaction.onset">
          <path value="AllergyIntolerance.reaction.onset" />
          <short value="Date(/time) when manifestations showed" />
          <definition value="Record of the date and/or time of the onset of the Reaction." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="AL1-6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="effectiveTime.low" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.severity" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.reaction.severity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.severity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.reaction.severity">
          <path value="AllergyIntolerance.reaction.severity" />
          <short value="mild | moderate | severe (of event as a whole)" />
          <definition value="Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations." />
          <comment value="It is acknowledged that this assessment is very subjective. There may be some some specific practice domains where objective scales have been applied. Objective scales can be included in this model as extensions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AllergyIntoleranceSeverity" />
            </extension>
            <strength value="required" />
            <description value="Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/reaction-event-severity" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value &lt;= SeverityObservation (Severity Level)]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.exposureRoute" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.reaction.exposureRoute" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.exposureRoute" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.reaction.exposureRoute">
          <path value="AllergyIntolerance.reaction.exposureRoute" />
          <short value="How the subject was exposed to the substance" />
          <definition value="Identification of the route by which the subject was exposed to the substance." />
          <comment value="Coding of the route of exposure with a terminology should be used wherever possible." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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="outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code &lt;= ExposureCode].routeCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.note" />
    <resource>
      <DataElement>
        <id value="AllergyIntolerance.reaction.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AllergyIntolerance.reaction.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AllergyIntolerance.reaction.note">
          <path value="AllergyIntolerance.reaction.note" />
          <short value="Text about event not captured in other fields" />
          <definition value="Additional text about the adverse reaction event not captured in other fields." />
          <comment value="Use this field to record information indirectly related to a particular event and not captured in the description. For example: Clinical records are no longer available, recorded based on information provided to the patient by her mother and her mother is deceased." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="subjectOf.observationEvent[code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan" />
    <resource>
      <DataElement>
        <id value="CarePlan" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan">
          <path value="CarePlan" />
          <short value="Healthcare plan for patient or group" />
          <definition value="Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions." />
          <alias value="Care Team" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[classCode=PCPR, moodCode=INT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.careprovision" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.identifier" />
    <resource>
      <DataElement>
        <id value="CarePlan.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.identifier">
          <path value="CarePlan.identifier" />
          <short value="External Ids for this plan" />
          <definition value="This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." />
          <requirements value="Need to allow connection to a wider workflow." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PTH-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.definition" />
    <resource>
      <DataElement>
        <id value="CarePlan.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.definition">
          <path value="CarePlan.definition" />
          <short value="Protocol or definition" />
          <definition value="Identifies the protocol, questionnaire, guideline or other specification the care plan should be conducted in accordance with." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.definition" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.basedOn" />
    <resource>
      <DataElement>
        <id value="CarePlan.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.basedOn">
          <path value="CarePlan.basedOn" />
          <short value="Fulfills care plan" />
          <definition value="A care plan that is fulfilled in whole or in part by this care plan." />
          <requirements value="Allows tracing of the care plan and tracking whether proposals/recommendations were acted upon." />
          <alias value="fulfills" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.basedOn" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.replaces" />
    <resource>
      <DataElement>
        <id value="CarePlan.replaces" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.replaces" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.replaces">
          <path value="CarePlan.replaces" />
          <short value="CarePlan replaced by this CarePlan" />
          <definition value="Completed or terminated care plan whose function is taken by this new care plan." />
          <comment value="The replacement could be because the initial care plan was immediately rejected (due to an issue) or because the previous care plan was completed, but the need for the action described by the care plan remains ongoing." />
          <requirements value="Allows tracing the continuation of a therapy or administrative process instantiated through multiple care plans." />
          <alias value="supersedes" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.replaces" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.partOf" />
    <resource>
      <DataElement>
        <id value="CarePlan.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.partOf">
          <path value="CarePlan.partOf" />
          <short value="Part of referenced CarePlan" />
          <definition value="A larger care plan of which this particular care plan is a component or step." />
          <comment value="Each care plan is an independent request, such that having a care plan be part of another care plan can cause issues with cascading statuses.  As such, this element is still being discussed." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.status" />
    <resource>
      <DataElement>
        <id value="CarePlan.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.status">
          <path value="CarePlan.status" />
          <short value="draft | active | suspended | completed | entered-in-error | cancelled | unknown" />
          <definition value="Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record." />
          <comment value="The unknown code is not to be used to convey other statuses.  The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the care plan.&#xA;&#xA;This element is labeled as a modifier because the status contains the code entered-in-error] that marks the plan as not currently valid." />
          <requirements value="Allows clinicians to determine whether the plan is actionable or not." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CarePlanStatus" />
            </extension>
            <strength value="required" />
            <description value="Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/care-plan-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status (uses different ValueSet)" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PTH-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode planned = new active = active completed = completed" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.intent" />
    <resource>
      <DataElement>
        <id value="CarePlan.intent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.intent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.intent">
          <path value="CarePlan.intent" />
          <short value="proposal | plan | order | option" />
          <definition value="Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain." />
          <comment value="This element is labeled as a modifier because the intent alters when and how the resource is actually applicable." />
          <requirements value="Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CarePlanIntent" />
            </extension>
            <strength value="required" />
            <description value="Codes indicating the degree of authority/intentionality associated with a care plan" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/care-plan-intent" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.intent" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.category" />
    <resource>
      <DataElement>
        <id value="CarePlan.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.category">
          <path value="CarePlan.category" />
          <short value="Type of plan" />
          <definition value="Identifies what &quot;kind&quot; of plan this is to support differentiation between multiple co-existing plans; e.g. &quot;Home health&quot;, &quot;psychiatric&quot;, &quot;asthma&quot;, &quot;disease management&quot;, &quot;wellness plan&quot;, etc." />
          <comment value="There may be multiple axis of categorization and one plan may serve multiple purposes.  In some cases, this may be redundant with references to CarePlan.concern." />
          <requirements value="Used for filtering what plan(s) are retrieved and displayed to different types of users." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CarePlanCategory" />
            </extension>
            <strength value="example" />
            <description value="Identifies what &quot;kind&quot; of plan this is to support differentiation between multiple co-existing plans; e.g. &quot;Home health&quot;, &quot;psychiatric&quot;, &quot;asthma&quot;, &quot;disease management&quot;, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/care-plan-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.supportingInfo" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.title" />
    <resource>
      <DataElement>
        <id value="CarePlan.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.title">
          <path value="CarePlan.title" />
          <short value="Human-friendly name for the CarePlan" />
          <definition value="Human-friendly name for the CarePlan." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.description" />
    <resource>
      <DataElement>
        <id value="CarePlan.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.description">
          <path value="CarePlan.description" />
          <short value="Summary of nature of plan" />
          <definition value="A description of the scope and nature of the plan." />
          <requirements value="Provides more detail than conveyed by category." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.subject" />
    <resource>
      <DataElement>
        <id value="CarePlan.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.subject">
          <path value="CarePlan.subject" />
          <short value="Who care plan is for" />
          <definition value="Identifies the patient or group whose intended care is described by the plan." />
          <alias value="patient" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PAT].role[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.context" />
    <resource>
      <DataElement>
        <id value="CarePlan.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.context">
          <path value="CarePlan.context" />
          <short value="Created in context of" />
          <definition value="Identifies the original context in which this particular CarePlan was created." />
          <comment value="Activities conducted as a result of the care plan may well occur as part of other encounters/episodes." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.context" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Associated PV1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="." />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.period" />
    <resource>
      <DataElement>
        <id value="CarePlan.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.period">
          <path value="CarePlan.period" />
          <short value="Time period plan covers" />
          <definition value="Indicates when the plan did (or is intended to) come into effect and end." />
          <comment value="Any activities scheduled as part of the plan should be constrained to the specified period regardless of whether the activities are planned within a single encounter/episode or across multiple encounters/episodes (e.g. the longitudinal management of a chronic condition)." />
          <requirements value="Allows tracking what plan(s) are in effect at a particular time." />
          <alias value="timing" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.occurrencePeriod" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="GOL-7 / GOL-8" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.author" />
    <resource>
      <DataElement>
        <id value="CarePlan.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.author">
          <path value="CarePlan.author" />
          <short value="Who is responsible for contents of the plan" />
          <definition value="Identifies the individual(s) or ogranization who is responsible for the content of the care plan." />
          <comment value="Collaborative care plans may have multiple authors." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.agent (if only one author)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.careTeam" />
    <resource>
      <DataElement>
        <id value="CarePlan.careTeam" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.careTeam" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.careTeam">
          <path value="CarePlan.careTeam" />
          <short value="Who's involved in plan?" />
          <definition value="Identifies all people and organizations who are expected to be involved in the care envisioned by this plan." />
          <requirements value="Allows representation of care teams, helps scope care plan.  In some cases may be a determiner of access permissions." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.performer (similar but does not entail CareTeam)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.addresses" />
    <resource>
      <DataElement>
        <id value="CarePlan.addresses" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.addresses" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.addresses">
          <path value="CarePlan.addresses" />
          <short value="Health issues this plan addresses" />
          <definition value="Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan." />
          <requirements value="Links plan to the conditions it manages.  The element can identify risks addressed by the plan as well as active conditions.  (The Condition resource can include things like &quot;at risk for hypertension&quot; or &quot;fall risk&quot;.)  Also scopes plans - multiple plans may exist addressing different concerns." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonReference" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRB-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.supportingInfo" />
    <resource>
      <DataElement>
        <id value="CarePlan.supportingInfo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.supportingInfo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.supportingInfo">
          <path value="CarePlan.supportingInfo" />
          <short value="Information considered as part of plan" />
          <definition value="Identifies portions of the patient's record that specifically influenced the formation of the plan.  These might include co-morbidities, recent procedures, limitations, recent assessments, etc." />
          <comment value="Use &quot;concern&quot; to identify specific conditions addressed by the care plan." />
          <requirements value="Identifies barriers and other considerations associated with the care plan." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.supportingInfo" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.goal" />
    <resource>
      <DataElement>
        <id value="CarePlan.goal" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.goal" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.goal">
          <path value="CarePlan.goal" />
          <short value="Desired outcome of plan" />
          <definition value="Describes the intended objective(s) of carrying out the care plan." />
          <comment value="Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline." />
          <requirements value="Provides context for plan.  Allows plan effectiveness to be evaluated by clinicians." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Goal" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="GOL.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode&lt;=OBJ]." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity">
          <path value="CarePlan.activity" />
          <short value="Action to occur as part of plan" />
          <definition value="Identifies a planned action to occur as part of the plan.  For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." />
          <requirements value="Allows systems to prompt for performance of planned activities, and validate plans against best practice." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="cpl-3" />
            <severity value="error" />
            <human value="Provide a reference or detail, not both" />
            <expression value="detail.empty() or reference.empty()" />
            <xpath value="not(exists(f:detail)) or not(exists(f:reference))" />
          </constraint>
          <mapping>
            <identity value="workflow" />
            <map value="no mapping&#xA;NOTE: This is a list of contained Request-Event tuples!" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.outcomeCodeableConcept" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.outcomeCodeableConcept" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.outcomeCodeableConcept" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.outcomeCodeableConcept">
          <path value="CarePlan.activity.outcomeCodeableConcept" />
          <short value="Results of the activity" />
          <definition value="Identifies the outcome at the point when the status of the activity is assessed.  For example, the outcome of an education activity could be patient understands (or not)." />
          <comment value="Note that this should not duplicate the activity status (e.g. completed or in progress)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CarePlanActivityOutcome" />
            </extension>
            <strength value="example" />
            <description value="Identifies the results of the activity" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/care-plan-activity-outcome" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.outcomeReference" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.outcomeReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.outcomeReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.outcomeReference">
          <path value="CarePlan.activity.outcomeReference" />
          <short value="Appointment, Encounter, Procedure, etc." />
          <definition value="Details of the outcome or action resulting from the activity.  The reference to an &quot;event&quot; resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself.  The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource)." />
          <comment value="The activity outcome is independent of the outcome of the related goal(s).  For example, if the goal is to achieve a target body weight of 150 lb and an activity is defined to diet, then the activity outcome could be calories consumed whereas the goal outcome is an observation for the actual body weight measured." />
          <requirements value="Links plan to resulting actions." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event that is outcome of Request in activity.reference" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=FLFS].source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.progress" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.progress" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.progress" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.progress">
          <path value="CarePlan.activity.progress" />
          <short value="Comments about the activity status/progress" />
          <definition value="Notes about the adherence/status/progress of the activity." />
          <comment value="This element should NOT be used to describe the activity to be performed - that occurs either within the resource pointed to by activity.detail.reference or in activity.detail.description." />
          <requirements value="Can be used to capture information about adherence, progress, concerns, etc." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status (Annotation instead of CodableConcept)" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="NTE?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.reference" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.reference">
          <path value="CarePlan.activity.reference" />
          <short value="Activity details defined in specific resource" />
          <definition value="The details of the proposed activity represented in a specific resource." />
          <comment value="Standard extension exists ([goal-pertainstogoal](extension-goal-pertainstogoal.html)) that allows goals to be referenced from any of the referenced resources in CarePlan.activity.reference.  &#xD;The goal should be visible when the resource referenced by CarePlan.activity.reference is viewed indepedently from the CarePlan.  Requests that are pointed to by a CarePlan using this element should *not* point to this CarePlan using the &quot;basedOn&quot; element.  i.e. Requests that are part of a CarePlan are not &quot;based on&quot; the CarePlan." />
          <requirements value="Details in a form consistent with other applications and contexts of use." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Appointment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CommunicationRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Task" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/VisionPrescription" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RequestGroup" />
          </type>
          <condition value="cpl-3" />
          <mapping>
            <identity value="workflow" />
            <map value="Request that resulted in Event in activity.actionResulting" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail">
          <path value="CarePlan.activity.detail" />
          <short value="In-line definition of activity" />
          <definition value="A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc." />
          <requirements value="Details in a simple form for generic care plan systems." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="cpl-3" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.category" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.category">
          <path value="CarePlan.activity.detail.category" />
          <short value="diet | drug | encounter | observation | procedure | supply | other" />
          <definition value="High-level categorization of the type of activity in a care plan." />
          <requirements value="May determine what types of extensions are permitted." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CarePlanActivityCategory" />
            </extension>
            <strength value="example" />
            <description value="High-level categorization of the type of activity in a care plan." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/care-plan-activity-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.supportingInformation" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=LIST].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.definition" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.definition">
          <path value="CarePlan.activity.detail.definition" />
          <short value="Protocol or definition" />
          <definition value="Identifies the protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with." />
          <requirements value="Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.definition" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.code" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.code">
          <path value="CarePlan.activity.detail.code" />
          <short value="Detail type of activity" />
          <definition value="Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter." />
          <comment value="Tends to be less relevant for activities involving particular products.  Codes should not convey negation - use &quot;prohibited&quot; instead." />
          <requirements value="Allows matching performed to planned as well as validation against protocols." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CarePlanActivityType" />
            </extension>
            <strength value="example" />
            <description value="Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/care-plan-activity" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.code" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBR-4 / RXE-2 / RXO-1  / RXD-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.reasonCode" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.reasonCode">
          <path value="CarePlan.activity.detail.reasonCode" />
          <short value="Why activity should be done or why activity was prohibited" />
          <definition value="Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited." />
          <comment value="This could be a diagnosis code.  If a full condition record exists or additional detail is needed, use reasonCondition instead." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CarePlanActivityReason" />
            </extension>
            <strength value="example" />
            <description value="Identifies why a care plan activity is needed.  Can include any health condition codes as well as such concepts as &quot;general wellness&quot;, prophylaxis, surgical preparation, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/activity-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.reasonReference" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.reasonReference">
          <path value="CarePlan.activity.detail.reasonReference" />
          <short value="Condition triggering need for activity" />
          <definition value="Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan." />
          <comment value="Conditions can be identified at the activity level that are not identified as reasons for the overall plan." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonReference" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.goal" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.goal" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.goal" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.goal">
          <path value="CarePlan.activity.detail.goal" />
          <short value="Goals this activity relates to" />
          <definition value="Internal reference that identifies the goals that this activity is intended to contribute towards meeting." />
          <requirements value="So that participants know the link explicitly." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Goal" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.goal" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode&lt;=OBJ]." />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.status" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.status">
          <path value="CarePlan.activity.detail.status" />
          <short value="not-started | scheduled | in-progress | on-hold | completed | cancelled | unknown" />
          <definition value="Identifies what progress is being made for the specific activity." />
          <comment value="Some aspects of status can be inferred based on the resources linked in actionTaken.  Note that &quot;status&quot; is only as current as the plan was most recently updated.  &#xA;The unknown code is not to be used to convey other statuses.  The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the activity." />
          <requirements value="Indicates progress against the plan, whether the activity is still relevant for the plan." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CarePlanActivityStatus" />
            </extension>
            <strength value="required" />
            <description value="Indicates where the activity is at in its overall life cycle." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/care-plan-activity-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status (uses different ValueSet)" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC-5?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode not-started = new scheduled = not-started (and fulfillment relationship to appointent) in-progress = active on-hold = suspended completed = completed cancelled = aborted" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.statusReason" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.statusReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.statusReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.statusReason">
          <path value="CarePlan.activity.detail.statusReason" />
          <short value="Reason for current status" />
          <definition value="Provides reason why the activity isn't yet started, is on hold, was cancelled, etc." />
          <comment value="Will generally not be present if status is &quot;complete&quot;.  Be sure to prompt to update this (or at least remove the existing value) if the status is changed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.prohibited" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.prohibited" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.prohibited" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.prohibited">
          <path value="CarePlan.activity.detail.prohibited" />
          <short value="Do NOT do" />
          <definition value="If true, indicates that the described activity is one that must NOT be engaged in when following the plan.  If false, indicates that the described activity is one that should be engaged in when following the plan." />
          <comment value="This element is labeled as a modifier because it marks an activity as an activity that is not to be performed." />
          <requirements value="Captures intention to not do something that may have been previously typical." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isModifier value="true" />
          <mapping>
            <identity value="rim" />
            <map value="actionNegationInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.scheduledX" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.scheduledX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.scheduledX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.scheduled[x]">
          <path value="CarePlan.activity.detail.scheduled[x]" />
          <short value="When activity is to occur" />
          <definition value="The period, timing or frequency upon which the described activity is to occur." />
          <requirements value="Allows prompting for activities and detection of missed planned activities." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.occurrence" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="TQ1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.location" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.location">
          <path value="CarePlan.activity.detail.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 identify a type of location." />
          <requirements value="Helps in planning of activity." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBR-24(???!!)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=LOC].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.performer" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.performer">
          <path value="CarePlan.activity.detail.performer" />
          <short value="Who will be responsible?" />
          <definition value="Identifies who's expected to be involved in the activity." />
          <comment value="A performer MAY also be a participant in the care plan." />
          <requirements value="Helps in planning of activity." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.performer" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRT-5 : ( PRV-4 e {provider participations} ) / PRT-5 : ( PRV-4 e {non-provider person participations} ) / PRT-5 : ( PRV-4 = (patient non-subject of care) ) / PRT-8" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PFM]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.productX" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.productX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.productX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.product[x]">
          <path value="CarePlan.activity.detail.product[x]" />
          <short value="What is to be administered/supplied" />
          <definition value="Identifies the food, drug or other product to be consumed or supplied in the activity." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CarePlanProduct" />
            </extension>
            <strength value="example" />
            <description value="A product supplied or administered as part of a care plan activity." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RXE-2 / RXO-1 / RXD-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRD].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.dailyAmount" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.dailyAmount" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.dailyAmount" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.dailyAmount">
          <path value="CarePlan.activity.detail.dailyAmount" />
          <short value="How to consume/day?" />
          <definition value="Identifies the quantity expected to be consumed in a given day." />
          <requirements value="Allows rough dose checking." />
          <alias value="daily dose" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXO-23 / RXE-19 / RXD-12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.quantity" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.quantity">
          <path value="CarePlan.activity.detail.quantity" />
          <short value="How much to administer/supply/consume" />
          <definition value="Identifies the quantity expected to be supplied, administered or consumed by the subject." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXO-11 / RXE-10 / RXD-4 / RXG-5 / RXA-6 /  TQ1-2.1  *and*  RXO-12 /  RXE-11 / RXD-5 / RXG-7 / RXA-7 / TQ1-2.2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP][classCode=SPLY].quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.description" />
    <resource>
      <DataElement>
        <id value="CarePlan.activity.detail.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.activity.detail.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.activity.detail.description">
          <path value="CarePlan.activity.detail.description" />
          <short value="Extra info describing activity to perform" />
          <definition value="This provides a textual description of constraints on the intended activity occurrence, including relation to other activities.  It may also include objectives, pre-conditions and end-conditions.  Finally, it may convey specifics about the activity such as body site, method, route, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.note" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="NTE?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CarePlan.note" />
    <resource>
      <DataElement>
        <id value="CarePlan.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CarePlan.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CarePlan.note">
          <path value="CarePlan.note" />
          <short value="Comments about the plan" />
          <definition value="General notes about the care plan not covered elsewhere." />
          <requirements value="Used to capture information that applies to the plan as a whole that doesn't fit into discrete elements." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.note" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="NTE?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition" />
    <resource>
      <DataElement>
        <id value="StructureDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition">
          <path value="StructureDefinition" />
          <short value="Structural Definition" />
          <definition value="A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types." />
          <alias value="Template" />
          <alias value="Profile" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="sdf-9" />
            <requirements value="Because these 3 fields seem to be have overlapping meaning with the ones in the root of StructureDefinition" />
            <severity value="error" />
            <human value="In any snapshot or differential, no label, code or requirements on the an element without a &quot;.&quot; in the path (e.g. the first element)" />
            <expression value="children().element.first().label.empty() and children().element.first().code.empty() and children().element.first().requirements.empty()" />
            <xpath value="not(exists(f:snapshot/f:element[not(contains(f:path/@value, '.')) and (f:label or f:code or f:requirements)])) and not(exists(f:differential/f:element[not(contains(f:path/@value, '.')) and (f:label or f:code or f:requirements)]))" />
          </constraint>
          <constraint>
            <key value="sdf-19" />
            <requirements value="custom types only in logical models" />
            <severity value="error" />
            <human value="Custom types can only be used in logical models" />
            <expression value="kind = 'logical' or (differential.element.type.code.all(hasValue() implies matches('^[a-zA-Z0-9]+$')) and snapshot.element.type.code.all(hasValue() implies matches('^[a-zA-Z0-9]+$')))" />
            <xpath value="f:kind/@value = 'logical' or count(f:differential/f:element/f:type/f:code[@value and not(matches(string(@value), '^[a-zA-Z0-9]+$'))]|f:snapshot/f:element/f:type/f:code[@value and not(matches(string(@value), '^[a-zA-Z0-9]+$'))]) =0" />
          </constraint>
          <constraint>
            <key value="sdf-16" />
            <requirements value="element ids need to be unique" />
            <severity value="error" />
            <human value="All element definitions must have unique ids (snapshot)" />
            <expression value="snapshot.element.id.trace('ids').isDistinct()" />
            <xpath value="count(*/f:element)=count(*/f:element/@id)" />
          </constraint>
          <constraint>
            <key value="sdf-18" />
            <requirements value="contextInvariant" />
            <severity value="error" />
            <human value="Context Invariants can only be used for extensions" />
            <expression value="contextInvariant.exists() implies type = 'Extension'" />
            <xpath value="not(exists(f:contextInvariant)) or (f:type/@value = 'Extension')" />
          </constraint>
          <constraint>
            <key value="sdf-17" />
            <requirements value="element ids need to be unique" />
            <severity value="error" />
            <human value="All element definitions must have unique ids (diff)" />
            <expression value="differential.element.id.trace('ids').isDistinct()" />
            <xpath value="count(*/f:element)=count(*/f:element/@id)" />
          </constraint>
          <constraint>
            <key value="sdf-12" />
            <requirements value="Ensure that element.base appears with base or not" />
            <severity value="error" />
            <human value="element.base cannot appear if there is no base on the structure definition" />
            <expression value="snapshot.exists() implies (snapshot.element.base.exists() = baseDefinition.exists())" />
            <xpath value="f:baseDefinition or not(exists(f:snapshot/f:element/f:base) or exists(f:differential/f:element/f:base))" />
          </constraint>
          <constraint>
            <key value="sdf-11" />
            <requirements value="Ensure that the type is not inconsistent with the other information in the structure" />
            <severity value="error" />
            <human value="If there's a type, its content must match the path name in the first element of a snapshot" />
            <expression value="snapshot.empty() or snapshot.element.first().path = type" />
            <xpath value="not(exists(f:snapshot)) or (f:type/@value = f:snapshot/f:element[1]/f:path/@value)" />
          </constraint>
          <constraint>
            <key value="sdf-14" />
            <requirements value="elements have id" />
            <severity value="error" />
            <human value="All element definitions must have an id" />
            <expression value="snapshot.element.all(id.exists()) and differential.element.all(id.exists())" />
            <xpath value="count(*/f:element)=count(*/f:element/@id)" />
          </constraint>
          <constraint>
            <key value="sdf-1" />
            <severity value="error" />
            <human value="Element paths must be unique unless the structure is a constraint" />
            <expression value="derivation = 'constraint' or snapshot.element.select(path).isDistinct()" />
            <xpath value="(f:derivation/@value = 'constraint') or (count(f:snapshot/f:element) = count(distinct-values(f:snapshot/f:element/f:path/@value)))" />
          </constraint>
          <constraint>
            <key value="sdf-7" />
            <severity value="error" />
            <human value="If the structure describes a base Resource or Type, the URL has to start with &quot;http://hl7.org/fhir/StructureDefinition/&quot; and the tail must match the id" />
            <expression value="(derivation = 'constraint') or (kind = 'logical') or (url = 'http://hl7.org/fhir/StructureDefinition/'+id)" />
            <xpath value="(f:derivation/@value = 'constraint') or (f:kind/@value = 'logical') or (f:url/@value=concat('http://hl7.org/fhir/StructureDefinition/', f:id/@value))" />
          </constraint>
          <constraint>
            <key value="sdf-6" />
            <severity value="error" />
            <human value="A structure must have either a differential, or a snapshot (or both)" />
            <expression value="snapshot.exists() or differential.exists()" />
            <xpath value="exists(f:snapshot) or exists(f:differential)" />
          </constraint>
          <constraint>
            <key value="sdf-5" />
            <severity value="error" />
            <human value="If the structure defines an extension then the structure must have context information" />
            <expression value="type != 'Extension' or derivation = 'specialization' or (context.exists() and contextType.exists())" />
            <xpath value="not(f:type/@value = 'extension') or (f:derivation/@value = 'specialization') or (exists(f:context) and exists(f:contextType))" />
          </constraint>
          <constraint>
            <key value="sdf-4" />
            <requirements value="Ensure that the base types are abstract" />
            <severity value="error" />
            <human value="If the structure is not abstract, then there SHALL be a baseDefinition" />
            <expression value="abstract = true or baseDefinition.exists()" />
            <xpath value="(f:abstract/@value=true()) or exists(f:baseDefinition)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.content" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.url" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.url">
          <path value="StructureDefinition.url" />
          <short value="Logical URI to reference this structure definition (globally unique)" />
          <definition value="An absolute URI that is used to identify this structure 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 structure definition is (or will be) published. The URL SHOULD include the major version of the structure 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the structure definition to be referenced by a single globally unique identifier." />
          <alias value="url" />
          <alias value="authoritative-url" />
          <alias value="destination" />
          <alias value="identity" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.identifier" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.identifier">
          <path value="StructureDefinition.identifier" />
          <short value="Additional identifier for the structure definition" />
          <definition value="A formal identifier that is used to identify this structure definition when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this structure definition outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="iso11179" />
            <map value="Identifier part" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.version" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.version">
          <path value="StructureDefinition.version" />
          <short value="Business version of the structure definition" />
          <definition value="The identifier that is used to identify this version of the structure definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the structure definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different structure definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the structure definition with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="iso11179" />
            <map value="Version" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.name" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.name">
          <path value="StructureDefinition.name" />
          <short value="Name for this structure definition (computer friendly)" />
          <definition value="A natural language name identifying the structure 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.title" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.title">
          <path value="StructureDefinition.title" />
          <short value="Name for this structure definition (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the structure definition." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc. Applications don't have to use this name, but can always fall back to it. The title also corresponds to the label for the root element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.status" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.status">
          <path value="StructureDefinition.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this structure definition. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of structure definitions that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired structure definition without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="iso11179" />
            <map value="Registration status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.experimental" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.experimental">
          <path value="StructureDefinition.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this structure 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 structure definition that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental structure definition in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level structure definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="iso11179" />
            <map value="Registration status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.date" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.date">
          <path value="StructureDefinition.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the structure definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the structure 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 structure definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.publisher" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.publisher">
          <path value="StructureDefinition.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the structure definition." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the structure definition is the organization or individual primarily responsible for the maintenance and upkeep of the structure 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 structure definition. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the structure definition.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="iso11179" />
            <map value="Registration Authority" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.contact" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.contact">
          <path value="StructureDefinition.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.description" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.description">
          <path value="StructureDefinition.description" />
          <short value="Natural language description of the structure definition" />
          <definition value="A free text natural language description of the structure definition from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the structure 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 structure 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="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.useContext" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.useContext">
          <path value="StructureDefinition.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate structure definition instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.jurisdiction" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.jurisdiction">
          <path value="StructureDefinition.jurisdiction" />
          <short value="Intended jurisdiction for structure definition (if applicable)" />
          <definition value="A legal or geographic region in which the structure definition is intended to be used." />
          <comment value="It may be possible for the structure definition to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.purpose" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.purpose">
          <path value="StructureDefinition.purpose" />
          <short value="Why this structure definition is defined" />
          <definition value="Explaination of why this structure definition is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the structure definition Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this structure definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.copyright" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.copyright">
          <path value="StructureDefinition.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the structure definition." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the structure definition and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.keyword" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.keyword" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.keyword" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.keyword">
          <path value="StructureDefinition.keyword" />
          <short value="Assist with indexing and finding" />
          <definition value="A set of key words or terms from external terminologies that may be used to assist with indexing and searching of templates." />
          <requirements value="Assist in searching for appropriate StructureDefinitions." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="StructureDefinitionCode" />
            </extension>
            <strength value="example" />
            <description value="Codes for the meaning of the defined structure (SNOMED CT and LOINC codes, as an example)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/profile-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="iso11179" />
            <map value="keywords" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.fhirVersion" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.fhirVersion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.fhirVersion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.fhirVersion">
          <path value="StructureDefinition.fhirVersion" />
          <short value="FHIR Version this StructureDefinition targets" />
          <definition value="The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 3.0.1 for this version." />
          <comment value="A StructureDefinition does not need to specify the target it applies to,as StructureDefinitions will often be valid across multiple versions of FHIR. FHIR tooling can determine whether a StructureDefinition is consistent with a particular StructureDefinition if desired." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.mapping" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.mapping">
          <path value="StructureDefinition.mapping" />
          <short value="External specification that the content is mapped to" />
          <definition value="An external specification that the content is mapped to." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="sdf-2" />
            <severity value="error" />
            <human value="Must have at least a name or a uri (or both)" />
            <expression value="name.exists() or uri.exists()" />
            <xpath value="exists(f:uri) or exists(f:name)" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping.identity" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.mapping.identity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping.identity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.mapping.identity">
          <path value="StructureDefinition.mapping.identity" />
          <short value="Internal id when this mapping is used" />
          <definition value="An Internal id that is used to identify this mapping set when specific mappings are made." />
          <comment value="The specification is described once, with general comments, and then specific mappings are made that reference this declaration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping.uri" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.mapping.uri" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping.uri" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.mapping.uri">
          <path value="StructureDefinition.mapping.uri" />
          <short value="Identifies what this mapping refers to" />
          <definition value="An absolute URI that identifies the specification that this mapping is expressed to." />
          <comment value="A formal identity for the specification being mapped to helps with identifying maps consistently." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <condition value="sdf-2" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping.name" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.mapping.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.mapping.name">
          <path value="StructureDefinition.mapping.name" />
          <short value="Names what this mapping refers to" />
          <definition value="A name for the specification that is being mapped to." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="sdf-2" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping.comment" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.mapping.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.mapping.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.mapping.comment">
          <path value="StructureDefinition.mapping.comment" />
          <short value="Versions, Issues, Scope limitations etc." />
          <definition value="Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.kind" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.kind" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.kind" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.kind">
          <path value="StructureDefinition.kind" />
          <short value="primitive-type | complex-type | resource | logical" />
          <definition value="Defines the kind of structure that this definition is describing." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="StructureDefinitionKind" />
            </extension>
            <strength value="required" />
            <description value="Defines the type of structure that a definition is describing." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/structure-definition-kind" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.abstract" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.abstract" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.abstract" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.abstract">
          <path value="StructureDefinition.abstract" />
          <short value="Whether the structure is abstract" />
          <definition value="Whether structure this definition describes is abstract or not  - that is, whether the structure is not intended to be instantiated. For Resources and Data types, abstract types will never be exchanged  between systems." />
          <comment value="Abstract Resources cannot be instantiated - a concrete sub-type must be used. Abstract datatypes and extensions cannot be used in an instance. For logical models, the exact implication of &quot;abstract&quot; will rest with the author, depending how the logical model is used. Flagging a constraint structure as abstract conveys design intent but makes no difference to how the structure definition is handled. Note that inline declared elements that are given the type &quot;Element&quot; in the profile, but have children described, are anonymous concrete types that specialise Element." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.contextType" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.contextType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.contextType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.contextType">
          <path value="StructureDefinition.contextType" />
          <short value="resource | datatype | extension" />
          <definition value="If this is an extension, Identifies the context within FHIR resources where the extension can be used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="sdf-5" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ExtensionContext" />
            </extension>
            <strength value="required" />
            <description value="How an extension context is interpreted." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/extension-context" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.context" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.context">
          <path value="StructureDefinition.context" />
          <short value="Where the extension can be used in instances" />
          <definition value="Identifies the types of resource or data type elements to which the extension can be applied." />
          <comment value="If the context is an element that can have multiple types, then use (e.g.) value[x] if the extension works on all choice types, or otherwise an enumeration of explicitly named elements if not. Note that a context of &quot;string&quot; doesn't mean that the extension can be used with one of the string patterns such as &quot;id&quot; etc." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <condition value="sdf-5" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.contextInvariant" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.contextInvariant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.contextInvariant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.contextInvariant">
          <path value="StructureDefinition.contextInvariant" />
          <short value="FHIRPath invariants - when the extension can be used" />
          <definition value="A set of rules as Fluent Invariants about when the extension can be used (e.g. co-occurrence variants for the extension)." />
          <comment value="All the rules must be true. When evaluating the invariant, the fluentpath focus is the element that holds the extension, and %extension refers to the extension itself." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <condition value="sdf-18" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.type" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.type">
          <path value="StructureDefinition.type" />
          <short value="Type defined or constrained by this structure" />
          <definition value="The type this structure describes. If the derivation kind is 'specialization' then this is the master definition for a type, and there is always one of these (a data type, an extension, a resource, including abstract ones). Otherwise the structure definition is a constraint on the stated type (and in this case, the type cannot be an abstract type)." />
          <comment value="Note that in the case of constraints, the type could be determined by chasing through the baseDefinition references until a concrete structure (derivation = specialization) is reached, or by looking at the path of the first element in the snapshot - if present - but providing the type directly makes for simpler tooling and indexing." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="sdf-4" />
          <condition value="sdf-11" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRDefinedTypeExt" />
            </extension>
            <strength value="extensible" />
            <description value="Either a resource or a data type, including logical model types" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/defined-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.baseDefinition" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.baseDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.baseDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.baseDefinition">
          <path value="StructureDefinition.baseDefinition" />
          <short value="Definition that this type is constrained/specialized from" />
          <definition value="An absolute URI that is the base structure from which this type is derived, either by specialization or constraint." />
          <comment value="If differential constraints are specified in this structure, they are applied to the base in a &quot;differential&quot; fashion. If there is no base, then the differential constraints cannot be provided (snapshot only). Differential structures are useful for the editing perspective, and snapshot structures are suitable for operational use. The FHIR Project provides a number of tools/services to populate snapshots from differential constraints. Logical Models have a base of &quot;Element&quot; or another logical model." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <condition value="sdf-4" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.derivation" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.derivation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.derivation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.derivation">
          <path value="StructureDefinition.derivation" />
          <short value="specialization | constraint - How relates to base definition" />
          <definition value="How the type relates to the baseDefinition." />
          <comment value="If the definition is a specialization, then it adds new elements in the differential, and the snapshot includes the inherited elements.&#xA;&#xA;If the definition is a constraint, then it can not define new elements, it can only make new rules about existing content (see [Profiling Resources](profiling.html#resources))." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="sdf-12" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TypeDerivationRule" />
            </extension>
            <strength value="required" />
            <description value="How a type relates to its baseDefinition." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/type-derivation-rule" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.snapshot" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.snapshot" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.snapshot" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.snapshot">
          <path value="StructureDefinition.snapshot" />
          <short value="Snapshot view of the structure" />
          <definition value="A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base StructureDefinition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="sdf-6" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="sdf-15" />
            <requirements value="No Type on the root element (snapshot)" />
            <severity value="error" />
            <human value="The first element in a snapshot has no type" />
            <expression value="element.first().type.empty()" />
            <xpath value="not(f:element[1]/f:type)" />
          </constraint>
          <constraint>
            <key value="sdf-8" />
            <severity value="error" />
            <human value="In any snapshot, all the elements must be in the specified type" />
            <expression value="element.first().path = %resource.type and element.tail().all(path.startsWith(%resource.type&amp;'.'))" />
            <xpath value="f:element[1]/f:path/@value=parent::f:StructureDefinition/f:type/@value and count(f:element[position()!=1])=count(f:element[position()!=1][starts-with(f:path/@value, concat(ancestor::f:StructureDefinition/f:type/@value, '.'))])" />
          </constraint>
          <constraint>
            <key value="sdf-3" />
            <severity value="error" />
            <human value="Each element definition in a snapshot must have a formal definition and cardinalities" />
            <expression value="element.all(definition and min and max)" />
            <xpath value="count(f:element) = count(f:element[exists(f:definition) and exists(f:min) and exists(f:max)])" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.snapshot.element" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.snapshot.element" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.snapshot.element" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.snapshot.element">
          <path value="StructureDefinition.snapshot.element" />
          <short value="Definition of elements in the resource (if no StructureDefinition)" />
          <definition value="Captures constraints on each element within the resource." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="ElementDefinition" />
          </type>
          <condition value="sdf-3" />
          <mapping>
            <identity value="iso11179" />
            <map value="--" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.differential" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.differential" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.differential" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.differential">
          <path value="StructureDefinition.differential" />
          <short value="Differential view of the structure" />
          <definition value="A differential view is expressed relative to the base StructureDefinition - a statement of differences that it applies." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="sdf-6" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="sdf-15a" />
            <requirements value="No Type on the root element (differential)" />
            <severity value="error" />
            <human value="If the first element in a differential has no &quot;.&quot; in the path, it has no type" />
            <expression value="element.first().path.contains('.').not() implies element.first().type.empty()" />
            <xpath value="not(f:element[1][not(contains(f:path/@value, '.'))]/f:type)" />
          </constraint>
          <constraint>
            <key value="sdf-20" />
            <requirements value="no slicing on root" />
            <severity value="error" />
            <human value="No slicing on the root element" />
            <expression value="element.first().slicing.empty()" />
            <xpath value="not(f:element[1]/f:slicing)" />
          </constraint>
          <constraint>
            <key value="sdf-8a" />
            <severity value="error" />
            <human value="In any differential, all the elements must be in the specified type" />
            <expression value="element.first().path.startsWith(%resource.type) and element.tail().all(path.startsWith(%resource.type&amp;'.'))" />
            <xpath value="count(f:element)=count(f:element[f:path/@value=ancestor::f:StructureDefinition/f:type/@value or starts-with(f:path/@value, concat(ancestor::f:StructureDefinition/f:type/@value, '.'))])" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureDefinition.differential.element" />
    <resource>
      <DataElement>
        <id value="StructureDefinition.differential.element" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureDefinition.differential.element" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureDefinition.differential.element">
          <path value="StructureDefinition.differential.element" />
          <short value="Definition of elements in the resource (if no StructureDefinition)" />
          <definition value="Captures constraints on each element within the resource." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="ElementDefinition" />
          </type>
          <mapping>
            <identity value="iso11179" />
            <map value="--" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare">
          <path value="EpisodeOfCare" />
          <short value="An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility" />
          <definition value="An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time." />
          <alias value="Case Program Problem" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.encounter" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.identifier" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.identifier">
          <path value="EpisodeOfCare.identifier" />
          <short value="Business Identifier(s) relevant for this EpisodeOfCare" />
          <definition value="The EpisodeOfCare may be known by different identifiers for different contexts of use, such as when an external agency is tracking the Episode for funding purposes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.status" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.status">
          <path value="EpisodeOfCare.status" />
          <short value="planned | waitlist | active | onhold | finished | cancelled | entered-in-error" />
          <definition value="planned | waitlist | active | onhold | finished | cancelled." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the episode as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EpisodeOfCareStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the episode of care." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/episode-of-care-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.statusHistory" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.statusHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.statusHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.statusHistory">
          <path value="EpisodeOfCare.statusHistory" />
          <short value="Past list of status codes (the current status may be included to cover the start date of the status)" />
          <definition value="The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource)." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.statusHistory.status" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.statusHistory.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.statusHistory.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.statusHistory.status">
          <path value="EpisodeOfCare.statusHistory.status" />
          <short value="planned | waitlist | active | onhold | finished | cancelled | entered-in-error" />
          <definition value="planned | waitlist | active | onhold | finished | cancelled." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EpisodeOfCareStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the episode of care." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/episode-of-care-status" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.statusHistory.period" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.statusHistory.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.statusHistory.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.statusHistory.period">
          <path value="EpisodeOfCare.statusHistory.period" />
          <short value="Duration the EpisodeOfCare was in the specified status" />
          <definition value="The period during this EpisodeOfCare that the specific status applied." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.type" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.type">
          <path value="EpisodeOfCare.type" />
          <short value="Type/class  - e.g. specialist referral, disease management" />
          <definition value="A classification of the type of episode of care; e.g. specialist referral, disease management, type of funded care." />
          <comment value="The type can be very important in processing as this could be used in determining if the EpisodeOfCare is relevant to specific government reporting, or other types of classifications." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EpisodeOfCareType" />
            </extension>
            <strength value="example" />
            <description value="The type of the episode of care" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/episodeofcare-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.diagnosis" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.diagnosis" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.diagnosis" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.diagnosis">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Diagnosis" />
          </extension>
          <path value="EpisodeOfCare.diagnosis" />
          <short value="The list of diagnosis relevant to this episode of care" />
          <definition value="The list of diagnosis relevant to this episode of care." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.diagnosis.condition" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.diagnosis.condition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.diagnosis.condition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.diagnosis.condition">
          <path value="EpisodeOfCare.diagnosis.condition" />
          <short value="Conditions/problems/diagnoses this episode of care is for" />
          <definition value="A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.diagnosis.role" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.diagnosis.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.diagnosis.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.diagnosis.role">
          <path value="EpisodeOfCare.diagnosis.role" />
          <short value="Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …)" />
          <definition value="Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosisRole" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="preferred" />
            <description value="The type of diagnosis this condition represents" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/diagnosis-role" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.diagnosis.rank" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.diagnosis.rank" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.diagnosis.rank" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.diagnosis.rank">
          <path value="EpisodeOfCare.diagnosis.rank" />
          <short value="Ranking of the diagnosis (for each role type)" />
          <definition value="Ranking of the diagnosis (for each role type)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.patient" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.patient">
          <path value="EpisodeOfCare.patient" />
          <short value="The patient who is the focus of this episode of care" />
          <definition value="The patient who is the focus of this episode of care." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.managingOrganization" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.managingOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.managingOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.managingOrganization">
          <path value="EpisodeOfCare.managingOrganization" />
          <short value="Organization that assumes care" />
          <definition value="The organization that has assumed the specific responsibilities for the specified duration." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.period" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.period">
          <path value="EpisodeOfCare.period" />
          <short value="Interval during responsibility is assumed" />
          <definition value="The interval during which the managing organization assumes the defined responsibility." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.referralRequest" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.referralRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.referralRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.referralRequest">
          <path value="EpisodeOfCare.referralRequest" />
          <short value="Originating Referral Request(s)" />
          <definition value="Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.careManager" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.careManager" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.careManager" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.careManager">
          <path value="EpisodeOfCare.careManager" />
          <short value="Care manager/care co-ordinator for the patient" />
          <definition value="The practitioner that is the care manager/care co-ordinator for this patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.team" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.team" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.team" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.team">
          <path value="EpisodeOfCare.team" />
          <short value="Other practitioners facilitating this episode of care" />
          <definition value="The list of practitioners that may be facilitating this episode of care for specific purposes." />
          <alias value="CareTeam" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EpisodeOfCare.account" />
    <resource>
      <DataElement>
        <id value="EpisodeOfCare.account" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EpisodeOfCare.account" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EpisodeOfCare.account">
          <path value="EpisodeOfCare.account" />
          <short value="The set of accounts that may be used for billing for this EpisodeOfCare" />
          <definition value="The set of accounts that may be used for billing for this EpisodeOfCare." />
          <comment value="The billing system may choose to allocate billable items associated with the EpisodeOfCare to different referenced Accounts based on internal business rules." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Account" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationOutcome" />
    <resource>
      <DataElement>
        <id value="OperationOutcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationOutcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationOutcome">
          <path value="OperationOutcome" />
          <short value="Information about the success/failure of an action" />
          <definition value="A collection of error, warning or information messages that result from a system action." />
          <comment value="Can result from the failure of a REST call or be part of the response message returned from a request message.  If sent with extensions overriding particular issues, might even appear as part of a request message." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Grouping is handled through multiple repetitions from whatever context references the outcomes (no specific grouper required)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.exchange" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationOutcome.issue" />
    <resource>
      <DataElement>
        <id value="OperationOutcome.issue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationOutcome.issue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationOutcome.issue">
          <path value="OperationOutcome.issue" />
          <short value="A single issue associated with the action" />
          <definition value="An error, warning or information message that results from a system action." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ERR" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="AcknowledgementDetail or Observation[classCode=&quot;ALRT&quot; and moodCode=&quot;EVN&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.severity" />
    <resource>
      <DataElement>
        <id value="OperationOutcome.issue.severity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.severity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationOutcome.issue.severity">
          <path value="OperationOutcome.issue.severity" />
          <short value="fatal | error | warning | information" />
          <definition value="Indicates whether the issue indicates a variation from successful processing." />
          <comment value="This is labeled as &quot;Is Modifier&quot; because applications should not confuse hints and warnings with errors." />
          <requirements value="Indicates how relevant the issue is to the overall success of the action." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IssueSeverity" />
            </extension>
            <strength value="required" />
            <description value="How the issue affects the success of the action." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/issue-severity" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="ERR-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./typeCode[parent::AcknowledgmentDetail] or unique(./inboundRelationship[parent::Observation and typeCode='SUBJ' and isNormalActRelationship()]/source[classCode=&quot;OBS&quot; and moodCode=&quot;EVN&quot; and implies(code, ActCode#SEV and isNormalAct())/value[xsi:type=&quot;CD&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.code" />
    <resource>
      <DataElement>
        <id value="OperationOutcome.issue.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationOutcome.issue.code">
          <path value="OperationOutcome.issue.code" />
          <short value="Error or warning code" />
          <definition value="Describes the type of the issue. The system that creates an OperationOutcome SHALL choose the most applicable code from the IssueType value set, and may additional provide its own code for the error in the details element." />
          <requirements value="Expresses the issue in a human and computer-friendly way, allowing the requesting system to behave differently based on the type of issue." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IssueType" />
            </extension>
            <strength value="required" />
            <description value="A code that describes the type of issue." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/issue-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="ERR-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.details" />
    <resource>
      <DataElement>
        <id value="OperationOutcome.issue.details" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.details" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationOutcome.issue.details">
          <path value="OperationOutcome.issue.details" />
          <short value="Additional details about the error" />
          <definition value="Additional details about the error. This may be a text description of the error, or a system code that identifies the error." />
          <comment value="A human readable description of the error issue SHOULD be placed in details.text." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IssueDetails" />
            </extension>
            <strength value="example" />
            <description value="A code that provides details as the exact issue." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/operation-outcome" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="ERR-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.diagnostics" />
    <resource>
      <DataElement>
        <id value="OperationOutcome.issue.diagnostics" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.diagnostics" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationOutcome.issue.diagnostics">
          <path value="OperationOutcome.issue.diagnostics" />
          <short value="Additional diagnostic information about the issue" />
          <definition value="Additional diagnostic information about the issue.  Typically, this may be a description of how a value is erroneous, or a stack dump to help trace the issue." />
          <comment value="Typically this field is used to provide troubleshooting information about the error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ERR-8" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./text[parent::AcknowledgmentDetail]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.location" />
    <resource>
      <DataElement>
        <id value="OperationOutcome.issue.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationOutcome.issue.location">
          <path value="OperationOutcome.issue.location" />
          <short value="Path of element(s) related to issue" />
          <definition value="For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.  For HTTP errors, will be &quot;http.&quot; + the parameter name." />
          <comment value="The root of the XPath is the resource or bundle that generated OperationOutcome.  Each XPath SHALL resolve to a single node.  The XPath syntax is used whether the referenced instance is expressed in XML or JSON. Note that expression is being trialed as an alternative to XPath." />
          <requirements value="Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ERR-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./location[parent::AcknowledgmentDetail]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.expression" />
    <resource>
      <DataElement>
        <id value="OperationOutcome.issue.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationOutcome.issue.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationOutcome.issue.expression">
          <path value="OperationOutcome.issue.expression" />
          <short value="FHIRPath of element(s) related to issue" />
          <definition value="A simple FHIRPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised." />
          <comment value="The root of the FHIRPath is the resource or bundle that generated OperationOutcome.  Each FHIRPath SHALL resolve to a single node." />
          <requirements value="Allows systems to highlight or otherwise guide users to elements implicated in issues to allow them to be fixed more easily." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ERR-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./location[parent::AcknowledgmentDetail]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure" />
    <resource>
      <DataElement>
        <id value="Procedure" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure">
          <path value="Procedure" />
          <short value="An action that is being or was performed on a patient" />
          <definition value="An action that is or was performed on a patient. This can be a physical intervention like an operation, or less invasive like counseling or hypnotherapy." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="pro-1" />
            <severity value="error" />
            <human value="Reason not done is only permitted if notDone indicator is true" />
            <expression value="notDoneReason.empty() or notDone = true" />
            <xpath value="not(exists(f:notDoneReason)) or f:notDone/@value=true()" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Procedure[moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.identifier" />
    <resource>
      <DataElement>
        <id value="Procedure.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.identifier">
          <path value="Procedure.identifier" />
          <short value="External Identifiers for this procedure" />
          <definition value="This records identifiers associated with this procedure that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." />
          <requirements value="Need to allow connection to a wider workflow." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Some combination of ORC-2 / ORC-3 / OBR-2 / OBR-3 / IPC-1 / IPC-2 / IPC-3 / IPC-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.definition" />
    <resource>
      <DataElement>
        <id value="Procedure.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.definition">
          <path value="Procedure.definition" />
          <short value="Instantiates protocol or definition" />
          <definition value="A protocol, guideline, orderset or other definition that was adhered to in whole or in part by this procedure." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.basedOn" />
    <resource>
      <DataElement>
        <id value="Procedure.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.basedOn">
          <path value="Procedure.basedOn" />
          <short value="A request for this procedure" />
          <definition value="A reference to a resource that contains details of the request for this procedure." />
          <alias value="fulfills" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target[classCode=(various e.g. PROC, OBS, PCPR, ACT,  moodCode=RQO].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.partOf" />
    <resource>
      <DataElement>
        <id value="Procedure.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.partOf">
          <path value="Procedure.partOf" />
          <short value="Part of referenced event" />
          <definition value="A larger event of which this particular procedure is a component or step." />
          <comment value="The MedicationAdministration has a partOf reference to Procedure, but this is not a circular reference.  For a surgical procedure, the anesthesia related medicationAdministration is part of the procedure.  For an IV medication administration,  the procedure to insert the IV port is part of the medication administration." />
          <alias value="container" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=SBADM or PROC or OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.status" />
    <resource>
      <DataElement>
        <id value="Procedure.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.status">
          <path value="Procedure.status" />
          <short value="preparation | in-progress | suspended | aborted | completed | entered-in-error | unknown" />
          <definition value="A code specifying the state of the procedure. Generally this will be in-progress or completed state." />
          <comment value="The unknown code is not to be used to convey other statuses.  The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the procedure.&#xA;&#xA;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the procedure." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/event-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.notDone" />
    <resource>
      <DataElement>
        <id value="Procedure.notDone" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.notDone" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.notDone">
          <path value="Procedure.notDone" />
          <short value="True if procedure was not performed as scheduled" />
          <definition value="Set this to true if the record is saying that the procedure was NOT performed." />
          <comment value="If true, it means the procedure did not occur as described.  Typically it would be accompanied by attributes describing the type of activity.  It might also be accompanied by body site information or time information (i.e. no procedure was done to the left arm or no procedure was done in this 2-year period).  Specifying additional information such as performer, outcome, etc. is generally inappropriate.  For example, it's not that useful to say &quot;There was no appendectomy done at 12:03pm June 6th by Dr. Smith with a successful outcome&quot; as it implies that there *could* have been an appendectomy done at any other time, by any other clinician or with any other outcome.&#xA;&#xA;This element is labeled as a modifier because it indicates that a procedure didn't happen." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".actionNegationInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.notDoneReason" />
    <resource>
      <DataElement>
        <id value="Procedure.notDoneReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.notDoneReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.notDoneReason">
          <path value="Procedure.notDoneReason" />
          <short value="Reason procedure was not performed" />
          <definition value="A code indicating why the procedure was not performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="pro-1" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureNegationReason" />
            </extension>
            <strength value="example" />
            <description value="A code that identifies the reason a procedure was not performed." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-not-performed-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".reason.Observation.value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.category" />
    <resource>
      <DataElement>
        <id value="Procedure.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.category">
          <path value="Procedure.category" />
          <short value="Classification of the procedure" />
          <definition value="A code that classifies the procedure for searching, sorting and display purposes (e.g. &quot;Surgical Procedure&quot;)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureCategory" />
            </extension>
            <strength value="example" />
            <description value="A code that classifies a procedure for searching, sorting and display purposes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;LIST&quot;, moodCode=&quot;EVN&quot;].code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.code" />
    <resource>
      <DataElement>
        <id value="Procedure.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.code">
          <path value="Procedure.code" />
          <short value="Identification of the procedure" />
          <definition value="The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. &quot;Laparoscopic Appendectomy&quot;)." />
          <requirements value="0..1 to account for primarily narrative only resources." />
          <alias value="type" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureCode" />
            </extension>
            <strength value="example" />
            <description value="A code to identify a specific procedure ." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBR-44/OBR-45" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.subject" />
    <resource>
      <DataElement>
        <id value="Procedure.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.subject">
          <path value="Procedure.subject" />
          <short value="Who the procedure was performed on" />
          <definition value="The person, animal or group on which the procedure was performed." />
          <alias value="patient" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.context" />
    <resource>
      <DataElement>
        <id value="Procedure.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.context">
          <path value="Procedure.context" />
          <short value="Encounter or episode associated with the procedure" />
          <definition value="The encounter during which the procedure was performed." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PV1-19" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.performedX" />
    <resource>
      <DataElement>
        <id value="Procedure.performedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.performedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.performed[x]">
          <path value="Procedure.performed[x]" />
          <short value="Date/Period the procedure was performed" />
          <definition value="The date(time)/period over which the procedure was performed. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OBR-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.performer" />
    <resource>
      <DataElement>
        <id value="Procedure.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.performer">
          <path value="Procedure.performer" />
          <short value="The people who performed the procedure" />
          <definition value="Limited to 'real' people rather than equipment." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.performer.role" />
    <resource>
      <DataElement>
        <id value="Procedure.performer.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.performer.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.performer.role">
          <path value="Procedure.performer.role" />
          <short value="The role the actor was in" />
          <definition value="For example: surgeon, anaethetist, endoscopist." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedurePerformerRole" />
            </extension>
            <strength value="example" />
            <description value="A code that identifies the role of a performer of the procedure." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/performer-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="Some combination of STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17 / OBX-25" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".functionCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.performer.actor" />
    <resource>
      <DataElement>
        <id value="Procedure.performer.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.performer.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.performer.actor">
          <path value="Procedure.performer.actor" />
          <short value="The reference to the practitioner" />
          <definition value="The practitioner who was involved in the procedure." />
          <requirements value="A reference to Device supports use cases, such as pacemakers." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC-19/PRT-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.performer.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="Procedure.performer.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.performer.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.performer.onBehalfOf">
          <path value="Procedure.performer.onBehalfOf" />
          <short value="Organization the device or practitioner was acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of." />
          <requirements value="Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when performing the action." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.location" />
    <resource>
      <DataElement>
        <id value="Procedure.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.location">
          <path value="Procedure.location" />
          <short value="Where the procedure happened" />
          <definition value="The location where the procedure actually happened.  E.g. a newborn at home, a tracheostomy at a restaurant." />
          <requirements value="Ties a procedure to where the records are likely kept." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=LOC].role[classCode=SDLOC]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.reasonCode" />
    <resource>
      <DataElement>
        <id value="Procedure.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.reasonCode">
          <path value="Procedure.reasonCode" />
          <short value="Coded reason procedure performed" />
          <definition value="The coded reason why the procedure was performed. This may be coded entity of some type, or may simply be present as text." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureReason" />
            </extension>
            <strength value="example" />
            <description value="A code that identifies the reason a procedure is  required." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.reasonReference" />
    <resource>
      <DataElement>
        <id value="Procedure.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.reasonReference">
          <path value="Procedure.reasonReference" />
          <short value="Condition that is the reason the procedure performed" />
          <definition value="The condition that is the reason why the procedure was performed." />
          <comment value="e.g. endoscopy for dilatation and biopsy, combination diagnosis and therapeutic." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.bodySite" />
    <resource>
      <DataElement>
        <id value="Procedure.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.bodySite">
          <path value="Procedure.bodySite" />
          <short value="Target body sites" />
          <definition value="Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBX-20" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".targetSiteCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.outcome" />
    <resource>
      <DataElement>
        <id value="Procedure.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.outcome">
          <path value="Procedure.outcome" />
          <short value="The result of procedure" />
          <definition value="The outcome of the procedure - did it resolve reasons for the procedure being performed?" />
          <comment value="If outcome contains narrative text only, it can be captured using the CodeableConcept.text." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureOutcome" />
            </extension>
            <strength value="example" />
            <description value="An outcome of a procedure - whether it was resolved or otherwise." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-outcome" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=OUT].target.text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.report" />
    <resource>
      <DataElement>
        <id value="Procedure.report" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.report" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.report">
          <path value="Procedure.report" />
          <short value="Any report resulting from the procedure" />
          <definition value="This could be a histology result, pathology report, surgical report, etc.." />
          <comment value="There could potentially be multiple reports - e.g. if this was a procedure which took multiple biopsies resulting in a number of anatomical pathology reports." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.complication" />
    <resource>
      <DataElement>
        <id value="Procedure.complication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.complication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.complication">
          <path value="Procedure.complication" />
          <short value="Complication following the procedure" />
          <definition value="Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues." />
          <comment value="If complications are only expressed by the narrative text, they can be captured using the CodeableConcept.text." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureComplication" />
            </extension>
            <strength value="example" />
            <description value="Codes describing complications that resulted from a procedure." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=OUTC].target[classCode=OBS, code=&quot;complication&quot;, moodCode=EVN].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.complicationDetail" />
    <resource>
      <DataElement>
        <id value="Procedure.complicationDetail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.complicationDetail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.complicationDetail">
          <path value="Procedure.complicationDetail" />
          <short value="A condition that is a result of the procedure" />
          <definition value="Any complications that occurred during the procedure, or in the immediate post-performance period." />
          <requirements value="This is used to document a condition that is a result of the procedure, not the condition that was the reason for the procedure." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=OUTC].target[classCode=OBS, code=&quot;complication&quot;, moodCode=EVN].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.followUp" />
    <resource>
      <DataElement>
        <id value="Procedure.followUp" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.followUp" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.followUp">
          <path value="Procedure.followUp" />
          <short value="Instructions for follow up" />
          <definition value="If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or could potentially be more complex in which case the CarePlan resource can be used." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureFollowUp" />
            </extension>
            <strength value="example" />
            <description value="Specific follow up required for a procedure e.g. removal of sutures." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-followup" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=ACT, moodCode=INT].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.note" />
    <resource>
      <DataElement>
        <id value="Procedure.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.note">
          <path value="Procedure.note" />
          <short value="Additional information about the procedure" />
          <definition value="Any other notes about the procedure.  E.g. the operative notes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="NTE" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.focalDevice" />
    <resource>
      <DataElement>
        <id value="Procedure.focalDevice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.focalDevice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.focalDevice">
          <path value="Procedure.focalDevice" />
          <short value="Device changed in procedure" />
          <definition value="A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=DEV].role[classCode=MANU]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.focalDevice.action" />
    <resource>
      <DataElement>
        <id value="Procedure.focalDevice.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.focalDevice.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.focalDevice.action">
          <path value="Procedure.focalDevice.action" />
          <short value="Kind of change to device" />
          <definition value="The kind of change that happened to the device during the procedure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceActionKind" />
            </extension>
            <strength value="preferred" />
            <description value="A kind of change that happened to the device during the procedure." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/device-action" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;procedure device action&quot;].value=:procedure device action codes" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.focalDevice.manipulated" />
    <resource>
      <DataElement>
        <id value="Procedure.focalDevice.manipulated" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.focalDevice.manipulated" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.focalDevice.manipulated">
          <path value="Procedure.focalDevice.manipulated" />
          <short value="Device that was changed" />
          <definition value="The device that was manipulated (changed) during the procedure." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=DEV].role[classCode=SDLOC]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.usedReference" />
    <resource>
      <DataElement>
        <id value="Procedure.usedReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.usedReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.usedReference">
          <path value="Procedure.usedReference" />
          <short value="Items used during procedure" />
          <definition value="Identifies medications, devices and any other substance used as part of the procedure." />
          <comment value="For devices actually implanted or removed, use Procedure.device." />
          <requirements value="Used for tracking contamination, etc." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=DEV].role[classCode=MANU] or&#xA;.participation[typeCode=CSM].role[classCode=ADMM] (for Medication or Substance)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Procedure.usedCode" />
    <resource>
      <DataElement>
        <id value="Procedure.usedCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Procedure.usedCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Procedure.usedCode">
          <path value="Procedure.usedCode" />
          <short value="Coded items used during the procedure" />
          <definition value="Identifies coded items that were used as part of the procedure." />
          <comment value="For devices actually implanted or removed, use Procedure.device." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureUsed" />
            </extension>
            <strength value="example" />
            <description value="Codes describing items used during a procedure" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/device-kind" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=Dev].role[classCode=MANU]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List" />
    <resource>
      <DataElement>
        <id value="List" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List">
          <path value="List" />
          <short value="Information summarized from a list of other resources" />
          <definition value="A set of information summarized from a list of other resources." />
          <alias value="Collection" />
          <alias value="WorkingList" />
          <alias value="Organizer" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="lst-2" />
            <severity value="error" />
            <human value="The deleted flag can only be used if the mode of the list is &quot;changes&quot;" />
            <expression value="mode = 'changes' or entry.deleted.empty()" />
            <xpath value="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))" />
          </constraint>
          <constraint>
            <key value="lst-1" />
            <severity value="error" />
            <human value="A list can only have an emptyReason if it is empty" />
            <expression value="emptyReason.empty() or entry.empty()" />
            <xpath value="not(exists(f:emptyReason) and exists(f:entry))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[classCode&lt;ORG,moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.documents" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.identifier" />
    <resource>
      <DataElement>
        <id value="List.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.identifier">
          <path value="List.identifier" />
          <short value="Business identifier" />
          <definition value="Identifier for the List assigned for business purposes outside the context of FHIR." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.status" />
    <resource>
      <DataElement>
        <id value="List.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.status">
          <path value="List.status" />
          <short value="current | retired | entered-in-error" />
          <definition value="Indicates the current state of this list." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ListStatus" />
            </extension>
            <strength value="required" />
            <description value="The current state of the list" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/list-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".status[current=active;retired=obsolete;entered-in-error=nullified]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.mode" />
    <resource>
      <DataElement>
        <id value="List.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.mode">
          <path value="List.mode" />
          <short value="working | snapshot | changes" />
          <definition value="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted." />
          <comment value="This element is labeled as a modifier because a change list must not be mis-understood as a complete list." />
          <requirements value="Lists are used in various ways, and it must be known in what way it is safe to use them." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ListMode" />
            </extension>
            <strength value="required" />
            <description value="The processing mode that applies to this list" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/list-mode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS&quot;].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.title" />
    <resource>
      <DataElement>
        <id value="List.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.title">
          <path value="List.title" />
          <short value="Descriptive name for the list" />
          <definition value="A label for the list assigned by the author." />
          <requirements value="Allows customization beyond just the code identifying the kind of list." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <example>
            <label value="General" />
            <valueString value="Dr. Jane's Patients" />
          </example>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.code" />
    <resource>
      <DataElement>
        <id value="List.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.code">
          <path value="List.code" />
          <short value="What the purpose of this list is" />
          <definition value="This code defines the purpose of the list - why it was created." />
          <comment value="If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code." />
          <requirements value="Lists often contain subsets of resources rather than an exhaustive list.  The code identifies what type of subset is included." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ListPurpose" />
            </extension>
            <strength value="example" />
            <description value="What the purpose of a list is" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/list-example-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.subject" />
    <resource>
      <DataElement>
        <id value="List.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.subject">
          <path value="List.subject" />
          <short value="If all resources have the same subject" />
          <definition value="The common subject (or patient) of the resources that are in the list, if there is one." />
          <comment value="Some purely arbitrary lists do not have a common subject, so this is optional." />
          <requirements value="The primary purpose of listing the subject explicitly is to help with finding the right list." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode&lt;SUB].role (and sometimes .player)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.encounter" />
    <resource>
      <DataElement>
        <id value="List.encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.encounter">
          <path value="List.encounter" />
          <short value="Context in which list created" />
          <definition value="The encounter that is the context in which this list was created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.date" />
    <resource>
      <DataElement>
        <id value="List.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.date">
          <path value="List.date" />
          <short value="When the list was prepared" />
          <definition value="The date that the list was prepared." />
          <comment value="The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs." />
          <requirements value="Identifies how current the list is which affects relevance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode&lt;AUT].time[type=TS]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.source" />
    <resource>
      <DataElement>
        <id value="List.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.source">
          <path value="List.source" />
          <short value="Who and/or what defined the list contents (aka Author)" />
          <definition value="The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list." />
          <comment value="The primary source is the entity that made the decisions what items are in the list. This may be software or user." />
          <requirements value="Allows follow-up as well as context." />
          <alias value="Author" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode&lt;AUT].role[classCode=REL].player[classCode=PSN,determinerCode=INST] or .participation[typeCode&lt;AUT].role[classCode=REL].player[classCode=DEV,determinerCode=INST]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.orderedBy" />
    <resource>
      <DataElement>
        <id value="List.orderedBy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.orderedBy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.orderedBy">
          <path value="List.orderedBy" />
          <short value="What order the list has" />
          <definition value="What order applies to the items in the list." />
          <comment value="Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order." />
          <requirements value="Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ListOrder" />
            </extension>
            <strength value="preferred" />
            <description value="What order applies to the items in a list" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/list-order" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].sequenceNumber &gt; 1" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.note" />
    <resource>
      <DataElement>
        <id value="List.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.note">
          <path value="List.note" />
          <short value="Comments about the list" />
          <definition value="Comments that apply to the overall list." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].act.text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.entry" />
    <resource>
      <DataElement>
        <id value="List.entry" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.entry" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.entry">
          <path value="List.entry" />
          <short value="Entries in the list" />
          <definition value="Entries in this list." />
          <comment value="If there are no entries in the list, an emptyReason SHOULD be provided." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="lst-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.entry.flag" />
    <resource>
      <DataElement>
        <id value="List.entry.flag" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.entry.flag" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.entry.flag">
          <path value="List.entry.flag" />
          <short value="Status/Workflow information about this item" />
          <definition value="The flag allows the system constructing the list to indicate the role and significance of the item in the list." />
          <comment value="The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is &quot;changes&quot;." />
          <requirements value="This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ListItemFlag" />
            </extension>
            <strength value="example" />
            <description value="Codes that provide further information about the reason and meaning of the item in the list" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/list-item-flag" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.entry.deleted" />
    <resource>
      <DataElement>
        <id value="List.entry.deleted" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.entry.deleted" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.entry.deleted">
          <path value="List.entry.deleted" />
          <short value="If this item is actually marked as deleted" />
          <definition value="True if this item is marked as deleted in the list." />
          <comment value="If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is &quot;changes&quot;. A deleted entry should be displayed in narrative as deleted.&#xA;&#xA;This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list." />
          <requirements value="The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as &quot;deleted&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <condition value="lst-2" />
          <isModifier value="true" />
          <mapping>
            <identity value="rim" />
            <map value="added: .updateMode=(&quot;A&quot;,&quot;AR&quot;)  retained: .updateMode=&quot;NC&quot;  updated: .updateMode=&quot;R&quot;  deleted: .updateMode=&quot;D&quot;" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.entry.date" />
    <resource>
      <DataElement>
        <id value="List.entry.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.entry.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.entry.date">
          <path value="List.entry.date" />
          <short value="When item added to list" />
          <definition value="When this item was added to the list." />
          <comment value="This is only useful and meaningful when the mode is &quot;working&quot;." />
          <requirements value="The date may be significant for understanding the meaning of items in a working list." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".availabilityTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.entry.item" />
    <resource>
      <DataElement>
        <id value="List.entry.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.entry.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.entry.item">
          <path value="List.entry.item" />
          <short value="Actual entry" />
          <definition value="A reference to the actual resource from which data was derived." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".target or .role or .role.entity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/List.emptyReason" />
    <resource>
      <DataElement>
        <id value="List.emptyReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/List.emptyReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="List.emptyReason">
          <path value="List.emptyReason" />
          <short value="Why list is empty" />
          <definition value="If the list is empty, why the list is empty." />
          <comment value="The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases." />
          <requirements value="Allows capturing things like &quot;none exist&quot; or &quot;not asked&quot; which can be important for most lists." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="lst-1" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ListEmptyReason" />
            </extension>
            <strength value="preferred" />
            <description value="If a list is empty, why it is empty" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/list-empty-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ,code&lt;{ListEmptyReason}].value[type=CD]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap" />
    <resource>
      <DataElement>
        <id value="ConceptMap" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap">
          <path value="ConceptMap" />
          <short value="A map from one set of concepts to one or more other concepts" />
          <definition value="A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.terminology" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.url" />
    <resource>
      <DataElement>
        <id value="ConceptMap.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.url">
          <path value="ConceptMap.url" />
          <short value="Logical URI to reference this concept map (globally unique)" />
          <definition value="An absolute URI that is used to identify this concept map 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 concept map is (or will be) published. The URL SHOULD include the major version of the concept map. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the concept map to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.identifier" />
    <resource>
      <DataElement>
        <id value="ConceptMap.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.identifier">
          <path value="ConceptMap.identifier" />
          <short value="Additional identifier for the concept map" />
          <definition value="A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this concept map outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.version" />
    <resource>
      <DataElement>
        <id value="ConceptMap.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.version">
          <path value="ConceptMap.version" />
          <short value="Business version of the concept map" />
          <definition value="The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different concept map instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the concept map with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.name" />
    <resource>
      <DataElement>
        <id value="ConceptMap.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.name">
          <path value="ConceptMap.name" />
          <short value="Name for this concept map (computer friendly)" />
          <definition value="A natural language name identifying the concept map. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.title" />
    <resource>
      <DataElement>
        <id value="ConceptMap.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.title">
          <path value="ConceptMap.title" />
          <short value="Name for this concept map (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the concept map." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.status" />
    <resource>
      <DataElement>
        <id value="ConceptMap.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.status">
          <path value="ConceptMap.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this concept map. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of concept maps that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired concept map without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.experimental" />
    <resource>
      <DataElement>
        <id value="ConceptMap.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.experimental">
          <path value="ConceptMap.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this concept map is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of concept map that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental concept map in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level concept map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.date" />
    <resource>
      <DataElement>
        <id value="ConceptMap.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.date">
          <path value="ConceptMap.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the concept map was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the concept map 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 concept map. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.publisher" />
    <resource>
      <DataElement>
        <id value="ConceptMap.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.publisher">
          <path value="ConceptMap.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the concept map." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the concept map is the organization or individual primarily responsible for the maintenance and upkeep of the concept map. 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 concept map. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the concept map.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.contact" />
    <resource>
      <DataElement>
        <id value="ConceptMap.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.contact">
          <path value="ConceptMap.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.description" />
    <resource>
      <DataElement>
        <id value="ConceptMap.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.description">
          <path value="ConceptMap.description" />
          <short value="Natural language description of the concept map" />
          <definition value="A free text natural language description of the concept map from a consumer's perspective." />
          <comment value="The description is not intended to describe the semantics of the concept map. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.useContext" />
    <resource>
      <DataElement>
        <id value="ConceptMap.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.useContext">
          <path value="ConceptMap.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate concept map instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.jurisdiction" />
    <resource>
      <DataElement>
        <id value="ConceptMap.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.jurisdiction">
          <path value="ConceptMap.jurisdiction" />
          <short value="Intended jurisdiction for concept map (if applicable)" />
          <definition value="A legal or geographic region in which the concept map is intended to be used." />
          <comment value="It may be possible for the concept map to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.purpose" />
    <resource>
      <DataElement>
        <id value="ConceptMap.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.purpose">
          <path value="ConceptMap.purpose" />
          <short value="Why this concept map is defined" />
          <definition value="Explaination of why this concept map is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the concept map Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this concept map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.copyright" />
    <resource>
      <DataElement>
        <id value="ConceptMap.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.copyright">
          <path value="ConceptMap.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map." />
          <comment value="null Frequently, the copyright differs between the concept map, and codes that are included. The copyright statement should clearly differentiate between these when required." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the concept map and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.sourceX" />
    <resource>
      <DataElement>
        <id value="ConceptMap.sourceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.sourceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.source[x]">
          <path value="ConceptMap.source[x]" />
          <short value="Identifies the source of the concepts which are being mapped" />
          <definition value="The source value set that specifies the concepts that are being mapped." />
          <comment value="Should be a version specific reference. URIs SHOULD be absolute. If there is no source or target value set, the is no specified context for the map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.targetX" />
    <resource>
      <DataElement>
        <id value="ConceptMap.targetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.targetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.target[x]">
          <path value="ConceptMap.target[x]" />
          <short value="Provides context to the mappings" />
          <definition value="The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made." />
          <comment value="Should be a version specific reference. URIs SHOULD be absolute. If there is no source or target value set, the is no specified context for the map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group">
          <path value="ConceptMap.group" />
          <short value="Same source and target systems" />
          <definition value="A group of mappings that all have the same source and target system." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.source" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.source">
          <path value="ConceptMap.group.source" />
          <short value="Code System (if value set crosses code systems)" />
          <definition value="An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.sourceVersion" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.sourceVersion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.sourceVersion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.sourceVersion">
          <path value="ConceptMap.group.sourceVersion" />
          <short value="Specific version of the  code system" />
          <definition value="The specific version of the code system, as determined by the code system authority." />
          <comment value="The specification of a particular code system version may be required for code systems which lack concept permanence." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.target" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.target">
          <path value="ConceptMap.group.target" />
          <short value="System of the target (if necessary)" />
          <definition value="An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems)." />
          <comment value="Target may be omitted if all the targget element equivalence values are 'unmatched'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.targetVersion" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.targetVersion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.targetVersion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.targetVersion">
          <path value="ConceptMap.group.targetVersion" />
          <short value="Specific version of the  code system" />
          <definition value="The specific version of the code system, as determined by the code system authority." />
          <comment value="The specification of a particular code system version may be required for code systems which lack concept permanence." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SourceElement" />
          </extension>
          <path value="ConceptMap.group.element" />
          <short value="Mappings for a concept from the source set" />
          <definition value="Mappings for an individual concept in the source to one or more concepts in the target." />
          <comment value="Generally, the ideal is that there would only be one mapping for each concept in the source value set, but a given concept may be mapped multiple times with different comments or dependencies." />
          <alias value="code" />
          <alias value="concept" />
          <alias value="item" />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.code" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.code">
          <path value="ConceptMap.group.element.code" />
          <short value="Identifies element being mapped" />
          <definition value="Identity (code or path) or the element/item being mapped." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.display" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.display">
          <path value="ConceptMap.group.element.display" />
          <short value="Display for the code" />
          <definition value="The display for the code. The display is only provided to help editors when editing the concept map." />
          <comment value="The display is ignored when processing the map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="TargetElement" />
          </extension>
          <path value="ConceptMap.group.element.target" />
          <short value="Concept in target system for element" />
          <definition value="A concept from the target value set that this concept maps to." />
          <comment value="Ideally there would only be one map, with equal or equivalent mapping. But multiple maps are allowed for several narrower options, or to assert that other concepts are unmatched." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="cmd-1" />
            <severity value="error" />
            <human value="If the map is narrower or inexact, there SHALL be some comments" />
            <expression value="comment.exists() or equivalence.empty() or ((equivalence != 'narrower') and (equivalence != 'inexact'))" />
            <xpath value="exists(f:comment) or not(exists(f:equivalence)) or ((f:equivalence/@value != 'narrower') and (f:equivalence/@value != 'inexact'))" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.code" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.code">
          <path value="ConceptMap.group.element.target.code" />
          <short value="Code that identifies the target element" />
          <definition value="Identity (code or path) or the element/item that the map refers to." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.display" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.display">
          <path value="ConceptMap.group.element.target.display" />
          <short value="Display for the code" />
          <definition value="The display for the code. The display is only provided to help editors when editing the concept map." />
          <comment value="The display is ignored when processing the map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.equivalence" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.equivalence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.equivalence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.equivalence">
          <path value="ConceptMap.group.element.target.equivalence" />
          <short value="relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint" />
          <definition value="The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source)." />
          <comment value="This element is labeled as a modifier because it may indicate that a target does not apply." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <defaultValueCode value="equivalent" />
          <isModifier value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConceptMapEquivalence" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The degree of equivalence between concepts." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/concept-map-equivalence" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.comment" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.comment">
          <path value="ConceptMap.group.element.target.comment" />
          <short value="Description of status/issues in mapping" />
          <definition value="A description of status/issues in mapping that conveys additional information not represented in  the structured data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="cmd-1" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.dependsOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.dependsOn">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="OtherElement" />
          </extension>
          <path value="ConceptMap.group.element.target.dependsOn" />
          <short value="Other elements required for this mapping (from context)" />
          <definition value="A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn.property" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.dependsOn.property" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn.property" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.dependsOn.property">
          <path value="ConceptMap.group.element.target.dependsOn.property" />
          <short value="Reference to property mapping depends on" />
          <definition value="A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somwhere that is labeled to correspond with a code system property." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn.system" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.dependsOn.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.dependsOn.system">
          <path value="ConceptMap.group.element.target.dependsOn.system" />
          <short value="Code System (if necessary)" />
          <definition value="An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <meaningWhenMissing value="The code is in the source (dependsOn) or target (product) system" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn.code" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.dependsOn.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.dependsOn.code">
          <path value="ConceptMap.group.element.target.dependsOn.code" />
          <short value="Value of the referenced element" />
          <definition value="Identity (code or path) or the element/item/ValueSet that the map depends on / refers to." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn.display" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.dependsOn.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.dependsOn.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.dependsOn.display">
          <path value="ConceptMap.group.element.target.dependsOn.display" />
          <short value="Display for the code" />
          <definition value="The display for the code. The display is only provided to help editors when editing the concept map." />
          <comment value="The display is ignored when processing the map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.product" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.element.target.product" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.element.target.product" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.element.target.product">
          <path value="ConceptMap.group.element.target.product" />
          <short value="Other concepts that this mapping also produces" />
          <definition value="A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ConceptMap.group.element.target.dependsOn" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.unmapped" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.unmapped">
          <path value="ConceptMap.group.unmapped" />
          <short value="When no match in the mappings" />
          <definition value="What to do when there is no match in the mappings in the group." />
          <comment value="This only applies if the source code is in the system defined for the group." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="cmd-3" />
            <severity value="error" />
            <human value="If the mode is 'other-map', a code must be provided" />
            <expression value="(mode = 'other-map') implies url.exists()" />
            <xpath value="(f:mode/@value != 'other-map') or exists(f:url)" />
          </constraint>
          <constraint>
            <key value="cmd-2" />
            <severity value="error" />
            <human value="If the mode is 'fixed', a code must be provided" />
            <expression value="(mode = 'fixed') implies code.exists()" />
            <xpath value="(f:mode/@value != 'fixed') or exists(f:code)" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped.mode" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.unmapped.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.unmapped.mode">
          <path value="ConceptMap.group.unmapped.mode" />
          <short value="provided | fixed | other-map" />
          <definition value="Defines which action to take if there is no match in the group. One of 3 actions is possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConceptMapGroupUnmappedMode" />
            </extension>
            <strength value="required" />
            <description value="Defines which action to take if there is no match in the group." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/conceptmap-unmapped-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped.code" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.unmapped.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.unmapped.code">
          <path value="ConceptMap.group.unmapped.code" />
          <short value="Fixed code when mode = fixed" />
          <definition value="The fixed code to use when the mode = 'fixed'  - all unmapped codes are mapped to a single fixed code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped.display" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.unmapped.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.unmapped.display">
          <path value="ConceptMap.group.unmapped.display" />
          <short value="Display for the code" />
          <definition value="The display for the code. The display is only provided to help editors when editing the concept map." />
          <comment value="The display is ignored when processing the map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped.url" />
    <resource>
      <DataElement>
        <id value="ConceptMap.group.unmapped.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ConceptMap.group.unmapped.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ConceptMap.group.unmapped.url">
          <path value="ConceptMap.group.unmapped.url" />
          <short value="Canonical URL for other concept map" />
          <definition value="The canonical URL of the map to use if this map contains no mapping." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet" />
    <resource>
      <DataElement>
        <id value="ValueSet" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet">
          <path value="ValueSet" />
          <short value="A set of codes drawn from one or more code systems" />
          <definition value="A value set specifies a set of codes drawn from one or more code systems." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="vsd-5" />
            <severity value="error" />
            <human value="Value set SHALL contain at least one of a compose or an expansion element" />
            <expression value="compose.exists() or expansion.exists()" />
            <xpath value="exists(f:compose) or exists(f:expansion)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.terminology" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.url" />
    <resource>
      <DataElement>
        <id value="ValueSet.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.url">
          <path value="ValueSet.url" />
          <short value="Logical URI to reference this value set (globally unique)" />
          <definition value="An absolute URI that is used to identify this value set 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 value set is (or will be) published. The URL SHOULD include the major version of the value set. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the value set to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.identifier" />
    <resource>
      <DataElement>
        <id value="ValueSet.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.identifier">
          <path value="ValueSet.identifier" />
          <short value="Additional identifier for the value set" />
          <definition value="A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this value set outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="define.xml2.0" />
            <map value="Identifier part" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.version" />
    <resource>
      <DataElement>
        <id value="ValueSet.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.version">
          <path value="ValueSet.version" />
          <short value="Business version of the value set" />
          <definition value="The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different value set instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the value set with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.name" />
    <resource>
      <DataElement>
        <id value="ValueSet.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.name">
          <path value="ValueSet.name" />
          <short value="Name for this value set (computer friendly)" />
          <definition value="A natural language name identifying the value set. 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 that it is computable friendly. A name should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a name." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.title" />
    <resource>
      <DataElement>
        <id value="ValueSet.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.title">
          <path value="ValueSet.title" />
          <short value="Name for this value set (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the value set." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.status" />
    <resource>
      <DataElement>
        <id value="ValueSet.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.status">
          <path value="ValueSet.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this value set. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of value sets that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired value set without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.experimental" />
    <resource>
      <DataElement>
        <id value="ValueSet.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.experimental">
          <path value="ValueSet.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of value set that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental value set in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level value set." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.date" />
    <resource>
      <DataElement>
        <id value="ValueSet.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.date">
          <path value="ValueSet.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the value set was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the value set changes. (e.g. the 'content logical definition')." />
          <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 value set. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.publisher" />
    <resource>
      <DataElement>
        <id value="ValueSet.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.publisher">
          <path value="ValueSet.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the value set." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the value set is the organization or individual primarily responsible for the maintenance and upkeep of the value set. 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 value set. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the value set.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.contact" />
    <resource>
      <DataElement>
        <id value="ValueSet.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.contact">
          <path value="ValueSet.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.description" />
    <resource>
      <DataElement>
        <id value="ValueSet.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.description">
          <path value="ValueSet.description" />
          <short value="Natural language description of the value set" />
          <definition value="A free text natural language description of the value set from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the value set 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 value set 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). The description is not intended to describe the semantics of the Value Set - there are no intrinsic semantics separate from the codes contained in its expansion. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes. A description should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a description." />
          <alias value="Scope" />
          <alias value="Purpose" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.useContext" />
    <resource>
      <DataElement>
        <id value="ValueSet.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.useContext">
          <path value="ValueSet.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate value set instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.jurisdiction" />
    <resource>
      <DataElement>
        <id value="ValueSet.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.jurisdiction">
          <path value="ValueSet.jurisdiction" />
          <short value="Intended jurisdiction for value set (if applicable)" />
          <definition value="A legal or geographic region in which the value set is intended to be used." />
          <comment value="It may be possible for the value set to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.immutable" />
    <resource>
      <DataElement>
        <id value="ValueSet.immutable" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.immutable" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.immutable">
          <path value="ValueSet.immutable" />
          <short value="Indicates whether or not any change to the content logical definition may occur" />
          <definition value="If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change." />
          <comment value="Normally immutability is set to 'false', which is the default assumption if it is not populated.  Note that the implication is that if this is set to 'true', there may be only one ValueSet version for this definition. Immutability tends to be set to 'true' in one of two cases: - Where the value set, by the nature of its usage, cannot change.  For example &quot;All specializations of ACT in ActClassCode&quot; - Where there's no safe way to express the &quot;Purpose&quot; such that someone else could safely make changes to the value set definition. Source workflow control must guarantee that the same URI always yields the same definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.purpose" />
    <resource>
      <DataElement>
        <id value="ValueSet.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.purpose">
          <path value="ValueSet.purpose" />
          <short value="Why this value set is defined" />
          <definition value="Explaination of why this value set is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the value set Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this value set." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.copyright" />
    <resource>
      <DataElement>
        <id value="ValueSet.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.copyright">
          <path value="ValueSet.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set." />
          <comment value="null Frequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the value set and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.extensible" />
    <resource>
      <DataElement>
        <id value="ValueSet.extensible" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.extensible" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.extensible">
          <path value="ValueSet.extensible" />
          <short value="Whether this is intended to be used with an extensible binding" />
          <definition value="Whether this is intended to be used with an extensible binding or not." />
          <requirements value="It is not required to say whether this intent applies." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose">
          <path value="ValueSet.compose" />
          <short value="Definition of the content of the value set (CLD)" />
          <definition value="A set of criteria that define the content logical definition of the value set by including or excluding codes from outside this value set. This I also known as the &quot;Content Logical Definition&quot; (CLD)." />
          <alias value="Content Logical Definition" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="vsd-5" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.lockedDate" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.lockedDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.lockedDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.lockedDate">
          <path value="ValueSet.compose.lockedDate" />
          <short value="Fixed date for version-less references (transitive)" />
          <definition value="If a locked date is defined, then the Content Logical Definition must be evaluated using the current version as of the locked date for referenced code system(s) and value set instances where ValueSet.compose.include.version is not defined." />
          <comment value="With a defined lockedDate the value set is considered &quot;Locked&quot;. Otherwise, the value set may have different expansions as underlying code systems and/or value sets evolve.  The interpretation of lockedDate is often dependent on the context - e.g. a SNOMED CT derived value set with a lockedDate will have a different expansion in USA than in UK.  If a value set specifies a version for include and exclude statements, and also specifies a locked date, the specified versions need to be available that date, or the value set will not be usable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.inactive" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.inactive" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.inactive" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.inactive">
          <path value="ValueSet.compose.inactive" />
          <short value="Whether inactive codes are in the value set" />
          <definition value="Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable ExpansionProfile (but generally, inactive codes would be expected to be included)." />
          <comment value="Note that in the FHIR terminology framework, &quot;deprecated&quot; does not mean inactive, but in some code systems (e.g. LOINC, deprecated means inactive). Code systems should define what codes are considered to be inactive. If this is not clearly defined (including in the FHIR code system resource), then all codes are assumed to be active." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ConceptSet" />
          </extension>
          <path value="ValueSet.compose.include" />
          <short value="Include one or more codes from a code system or other value set(s)" />
          <definition value="Include one or more codes from a code system or other value set(s)." />
          <comment value="All the conditions in an include must be true. If a system is listed, all the codes from the system are listed. If one or more filters are listed, all of the filters must apply. If one or more value sets are listed, the codes must be in all the value sets. E.g. each include is 'include all the codes that meet all these conditions'." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="vsd-2" />
            <severity value="error" />
            <human value="A value set with concepts or filters SHALL include a system" />
            <expression value="(concept.exists() or filter.exists()) implies system.exists()" />
            <xpath value="not(exists(f:concept) or exists(f:filter)) or exists(f:system)" />
          </constraint>
          <constraint>
            <key value="vsd-3" />
            <severity value="error" />
            <human value="Cannot have both concept and filter" />
            <expression value="concept.empty() or filter.empty()" />
            <xpath value="not(exists(f:concept)) or not(exists(f:filter))" />
          </constraint>
          <constraint>
            <key value="vsd-1" />
            <severity value="error" />
            <human value="A value set include/exclude SHALL have a value set or a system" />
            <expression value="valueSet.exists() or system.exists()" />
            <xpath value="exists(f:valueSet) or exists(f:system)" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.system" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.system">
          <path value="ValueSet.compose.include.system" />
          <short value="The system the codes come from" />
          <definition value="An absolute URI which is the code system from which the selected codes come from." />
          <comment value="If there are no codes or filters, the entire code system is included. Note that the set of codes that are included may contain abstract codes. See ''Coding.system'' for further documentation about the correct value for the system element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <condition value="vsd-1" />
          <condition value="vsd-2" />
          <isSummary value="true" />
          <mapping>
            <identity value="define.xml2.0" />
            <map value="ODM/Study/MetaDataVersion/CodeList/ExternalCodeList/Href" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.version" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.version">
          <path value="ValueSet.compose.include.version" />
          <short value="Specific version of the code system referred to" />
          <definition value="The version of the code system that the codes are selected from." />
          <comment value="This is used when selecting the descendants of a concept - they may change between versions. If no version is specified, then the exact contents of the value set may not be known until a context of use binds it to a particular version." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="define.xml2.0" />
            <map value="ODM/Study/MetaDataVersion/CodeList/ExternalCodeList/Version" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.concept" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.concept">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ConceptReference" />
          </extension>
          <path value="ValueSet.compose.include.concept" />
          <short value="A concept defined in the system" />
          <definition value="Specifies a concept to be included or excluded." />
          <comment value="The list of concepts is considered ordered, though the order may not have any particular significance. Typically, the order of an expansion follows that defined in the compose element." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="vsd-3" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.code" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.concept.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.concept.code">
          <path value="ValueSet.compose.include.concept.code" />
          <short value="Code or expression from system" />
          <definition value="Specifies a code for the concept to be included or excluded." />
          <comment value="Expressions are allowed if defined by the underlying code system." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.display" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.concept.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.concept.display">
          <path value="ValueSet.compose.include.concept.display" />
          <short value="Text to display for this code for this value set in this valueset" />
          <definition value="The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system." />
          <comment value="The value set resource allows for an alternative display to be specified for when this concept is used in this particular value set. See notes in the value set narrative about the correct use of this element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.designation" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.concept.designation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.designation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.concept.designation">
          <path value="ValueSet.compose.include.concept.designation" />
          <short value="Additional representations for this concept" />
          <definition value="Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.designation.language" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.concept.designation.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.designation.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.concept.designation.language">
          <path value="ValueSet.compose.include.concept.designation.language" />
          <short value="Human language of the designation" />
          <definition value="The language this designation is defined for." />
          <comment value="In the absence of a language, the resource language applies." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.designation.use" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.concept.designation.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.designation.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.concept.designation.use">
          <path value="ValueSet.compose.include.concept.designation.use" />
          <short value="Details how this designation would be used" />
          <definition value="A code that details how this designation would be used." />
          <comment value="If no use is provided, the designation can be assumed to be suitable for general display to a human user." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConceptDesignationUse" />
            </extension>
            <strength value="extensible" />
            <description value="Details of how a designation would be used." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/designation-use" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.designation.value" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.concept.designation.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.concept.designation.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.concept.designation.value">
          <path value="ValueSet.compose.include.concept.designation.value" />
          <short value="The text value for this designation" />
          <definition value="The text value for this designation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.filter" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.filter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.filter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.filter">
          <path value="ValueSet.compose.include.filter" />
          <short value="Select codes/concepts by their properties (including relationships)" />
          <definition value="Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true." />
          <comment value="Selecting codes by specifying filters based on properties is only possible where the underlying code system defines appropriate properties. Note that in some cases, the underlying code system defines the logical concepts but not the literal codes for the concepts. In such cases, the literal definitions may be provided by a third party." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="vsd-3" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.filter.property" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.filter.property" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.filter.property" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.filter.property">
          <path value="ValueSet.compose.include.filter.property" />
          <short value="A property defined by the code system" />
          <definition value="A code that identifies a property defined in the code system." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.filter.op" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.filter.op" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.filter.op" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.filter.op">
          <path value="ValueSet.compose.include.filter.op" />
          <short value="= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists" />
          <definition value="The kind of operation to perform as a part of the filter criteria." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FilterOperator" />
            </extension>
            <strength value="required" />
            <description value="The kind of operation to perform as a part of a property based filter." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/filter-operator" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.filter.value" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.filter.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.filter.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.filter.value">
          <path value="ValueSet.compose.include.filter.value" />
          <short value="Code from the system, or regex criteria, or boolean value for exists" />
          <definition value="The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'." />
          <comment value="Use regex matching with care - full regex matching on every SNOMED CT term is prohibitive, for example." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.valueSet" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.include.valueSet" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.include.valueSet" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.include.valueSet">
          <path value="ValueSet.compose.include.valueSet" />
          <short value="Select only contents included in this value set" />
          <definition value="Selects concepts found in this value set. This is an absolute URI that is a reference to ValueSet.url." />
          <comment value="The value set URI is either a logical reference to a defined value set such as a [SNOMED CT reference set]{snomedct.html#implicit}, or a direct reference to a value set definition using ValueSet.url. The reference may not refer to an actual FHIR ValueSet resource; in this case, whatever is referred to is an implicit definition of a value set that needs to be clear about how versions are resolved." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
          <condition value="vsd-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.compose.exclude" />
    <resource>
      <DataElement>
        <id value="ValueSet.compose.exclude" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.compose.exclude" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.compose.exclude">
          <path value="ValueSet.compose.exclude" />
          <short value="Explicitly exclude codes from a code system or other value sets" />
          <definition value="Exclude one or more codes from the value set based on code system filters and/or other value sets." />
          <comment value="Usually this is used to selectively exclude codes that were included by subsumption in the inclusions. Any display names specified for the codes are ignored." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ValueSet.compose.include" />
          <condition value="vsd-2" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion">
          <path value="ValueSet.expansion" />
          <short value="Used when the value set is &quot;expanded&quot;" />
          <definition value="A value set can also be &quot;expanded&quot;, where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed." />
          <comment value="Expansion is performed to produce a collection of codes that are ready to use for data entry or validation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="vsd-5" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.identifier" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.identifier">
          <path value="ValueSet.expansion.identifier" />
          <short value="Uniquely identifies this expansion" />
          <definition value="An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so." />
          <comment value="Typically, this uri is a UUID (e.g. urn:uuid:8230ff20-c97a-4167-a59d-dc2cb9df16dd)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.timestamp" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.timestamp" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.timestamp" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.timestamp">
          <path value="ValueSet.expansion.timestamp" />
          <short value="Time ValueSet expansion happened" />
          <definition value="The time at which the expansion was produced by the expanding system." />
          <comment value="This SHOULD be a fully populated instant, but in some circumstances, value sets are expanded by hand, and the expansion is published without that precision." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.total" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.total" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.total" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.total">
          <path value="ValueSet.expansion.total" />
          <short value="Total number of codes in the expansion" />
          <definition value="The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter." />
          <comment value="Paging only applies to flat expansions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.offset" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.offset" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.offset" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.offset">
          <path value="ValueSet.expansion.offset" />
          <short value="Offset at which this resource starts" />
          <definition value="If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present." />
          <comment value="Paging only applies to flat expansions. If a filter is applied, the count is the number of concepts that matched the filter, not the number of concepts in an unfiltered view of the expansion." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <meaningWhenMissing value="Paging is not being used" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.parameter" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.parameter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.parameter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.parameter">
          <path value="ValueSet.expansion.parameter" />
          <short value="Parameter that controlled the expansion process" />
          <definition value="A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion." />
          <comment value="The server decides which parameters to include here, but at a minimum, the list SHOULD include the date, filter, and profile parameters passed to the $expand operation (if any)." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.parameter.name" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.parameter.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.parameter.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.parameter.name">
          <path value="ValueSet.expansion.parameter.name" />
          <short value="Name as assigned by the server" />
          <definition value="The name of the parameter." />
          <comment value="The names are assigned at the discretion of the server." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.parameter.valueX" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.parameter.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.parameter.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.parameter.value[x]">
          <path value="ValueSet.expansion.parameter.value[x]" />
          <short value="Value of the named parameter" />
          <definition value="The value of the parameter." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="code" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.contains" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.contains">
          <path value="ValueSet.expansion.contains" />
          <short value="Codes in the value set" />
          <definition value="The codes that are contained in the value set expansion." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="vsd-6" />
            <severity value="error" />
            <human value="SHALL have a code or a display" />
            <expression value="code.exists() or display.exists()" />
            <xpath value="exists(f:code) or exists(f:display)" />
          </constraint>
          <constraint>
            <key value="vsd-9" />
            <severity value="error" />
            <human value="Must have a code if not abstract" />
            <expression value="code.exists() or abstract = true" />
            <xpath value="exists(f:code) or (f:abstract/@value = true())" />
          </constraint>
          <constraint>
            <key value="vsd-10" />
            <severity value="error" />
            <human value="Must have a system if a code is present" />
            <expression value="code.empty() or system.exists()" />
            <xpath value="exists(f:system) or not(exists(f:code))" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.system" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.contains.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.contains.system">
          <path value="ValueSet.expansion.contains.system" />
          <short value="System value for the code" />
          <definition value="An absolute URI which is the code system in which the code for this item in the expansion is defined." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.abstract" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.contains.abstract" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.abstract" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.contains.abstract">
          <path value="ValueSet.expansion.contains.abstract" />
          <short value="If user cannot select this entry" />
          <definition value="If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value." />
          <comment value="This should not be understood to exclude its use for searching (e.g. by subsumption testing). The client should know whether it is appropriate for the user to select an abstract code or not." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.inactive" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.contains.inactive" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.inactive" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.contains.inactive">
          <path value="ValueSet.expansion.contains.inactive" />
          <short value="If concept is inactive in the code system" />
          <definition value="If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data." />
          <comment value="This should only have a value if the concept is inactive." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.version" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.contains.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.contains.version">
          <path value="ValueSet.expansion.contains.version" />
          <short value="Version in which this code/display is defined" />
          <definition value="The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence." />
          <comment value="The exact value of the version string is specified by the system from which the code is derived." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.code" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.contains.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.contains.code">
          <path value="ValueSet.expansion.contains.code" />
          <short value="Code - if blank, this is not a selectable code" />
          <definition value="The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="vsd-6" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.display" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.contains.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.contains.display">
          <path value="ValueSet.expansion.contains.display" />
          <short value="User display for the concept" />
          <definition value="The recommended display for this item in the expansion." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="vsd-6" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.designation" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.contains.designation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.designation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.contains.designation">
          <path value="ValueSet.expansion.contains.designation" />
          <short value="Additional representations for this item" />
          <definition value="Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation." />
          <comment value="The designations provided must be based on the value set and code system definitions." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ValueSet.compose.include.concept.designation" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.contains" />
    <resource>
      <DataElement>
        <id value="ValueSet.expansion.contains.contains" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ValueSet.expansion.contains.contains" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ValueSet.expansion.contains.contains">
          <path value="ValueSet.expansion.contains.contains" />
          <short value="Codes contained under this entry" />
          <definition value="Other codes and entries contained under this entry in the hierarchy." />
          <comment value="If the expansion uses this element, there is  no implication about the logical relationship between them, and the  structure cannot be used for logical inferencing. The structure  exists to provide navigational assistance for helping human users to  locate codes in the expansion." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ValueSet.expansion.contains" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition" />
    <resource>
      <DataElement>
        <id value="OperationDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition">
          <path value="OperationDefinition" />
          <short value="Definition of an operation or a named query" />
          <definition value="A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction)." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Definition" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.behavior" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.url" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.url">
          <path value="OperationDefinition.url" />
          <short value="Logical URI to reference this operation definition (globally unique)" />
          <definition value="An absolute URI that is used to identify this operation 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 operation definition is (or will be) published. The URL SHOULD include the major version of the operation 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the operation definition to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.url" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.version" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.version">
          <path value="OperationDefinition.version" />
          <short value="Business version of the operation definition" />
          <definition value="The identifier that is used to identify this version of the operation definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the operation definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different operation definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the operation definition with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.version" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.name" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.name">
          <path value="OperationDefinition.name" />
          <short value="Name for this operation definition (computer friendly)" />
          <definition value="A natural language name identifying the operation 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.status" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.status">
          <path value="OperationDefinition.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this operation definition. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of operation definitions that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired operation definition without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="Definition.status (different ValueSet)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.kind" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.kind" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.kind" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.kind">
          <path value="OperationDefinition.kind" />
          <short value="operation | query" />
          <definition value="Whether this is an operation or a named query." />
          <comment value="Named queries are invoked differently, and have different capabilities." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="OperationKind" />
            </extension>
            <strength value="required" />
            <description value="Whether an operation is a normal operation or a query." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/operation-kind" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.experimental" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.experimental">
          <path value="OperationDefinition.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this operation 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 operation definition that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental operation definition in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level operation definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.experimental" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.date" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.date">
          <path value="OperationDefinition.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the operation definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the operation 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 operation definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.date" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.publisher" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.publisher">
          <path value="OperationDefinition.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the operation definition." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the operation definition is the organization or individual primarily responsible for the maintenance and upkeep of the operation 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 operation definition. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the operation definition.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.publisher" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.contact" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.contact">
          <path value="OperationDefinition.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.contact" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.description" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.description">
          <path value="OperationDefinition.description" />
          <short value="Natural language description of the operation definition" />
          <definition value="A free text natural language description of the operation definition from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the operation 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 operation 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="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.useContext" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.useContext">
          <path value="OperationDefinition.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate operation definition instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.useContext" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.jurisdiction" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.jurisdiction">
          <path value="OperationDefinition.jurisdiction" />
          <short value="Intended jurisdiction for operation definition (if applicable)" />
          <definition value="A legal or geographic region in which the operation definition is intended to be used." />
          <comment value="It may be possible for the operation definition to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.purpose" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.purpose">
          <path value="OperationDefinition.purpose" />
          <short value="Why this operation definition is defined" />
          <definition value="Explaination of why this operation definition is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the operation definition Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this operation definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.idempotent" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.idempotent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.idempotent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.idempotent">
          <path value="OperationDefinition.idempotent" />
          <short value="Whether content is unchanged by the operation" />
          <definition value="Operations that are idempotent (see [HTTP specification definition of idempotent](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)) may be invoked by performing an HTTP GET operation instead of a POST." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.code" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.code">
          <path value="OperationDefinition.code" />
          <short value="Name used to invoke the operation" />
          <definition value="The name used to invoke the operation." />
          <comment value="The code does not include the '$' prefix that is always included in the URL when the operation is invoked." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.comment" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.comment">
          <path value="OperationDefinition.comment" />
          <short value="Additional information about use" />
          <definition value="Additional information about how to use this operation or named query." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.base" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.base" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.base" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.base">
          <path value="OperationDefinition.base" />
          <short value="Marks this as a profile of the base" />
          <definition value="Indicates that this operation definition is a constraining profile on the base." />
          <comment value="A constrained profile can make optional parameters required or not used and clarify documentation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationDefinition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.definition" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.resource" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.resource">
          <path value="OperationDefinition.resource" />
          <short value="Types this operation applies to" />
          <definition value="The types on which this operation can be executed." />
          <comment value="If the type is an abstract resource (&quot;Resource&quot; or &quot;DomainResource&quot;) then the operation can be invoked on any concrete specialization." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.subjectCodableConcept" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.system" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.system" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.system" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.system">
          <path value="OperationDefinition.system" />
          <short value="Invoke at the system level?" />
          <definition value="Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.type" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.type">
          <path value="OperationDefinition.type" />
          <short value="Invole at the type level?" />
          <definition value="Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.instance" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.instance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.instance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.instance">
          <path value="OperationDefinition.instance" />
          <short value="Invoke on an instance?" />
          <definition value="Indicates whether this operation can be invoked on a particular instance of one of the given types." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter">
          <path value="OperationDefinition.parameter" />
          <short value="Parameters for the operation/query" />
          <definition value="The parameters for the operation/query." />
          <comment value="Query Definitions only have one output parameter, named &quot;result&quot;. This may not be described, but can be to allow a profile to be defined." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="opd-1" />
            <severity value="error" />
            <human value="Either a type must be provided, or parts" />
            <expression value="type.exists() or part.exists()" />
            <xpath value="exists(f:type) or exists(f:part)" />
          </constraint>
          <constraint>
            <key value="opd-2" />
            <severity value="error" />
            <human value="A search type can only be specified for parameters of type string" />
            <expression value="searchType implies type = 'string'" />
            <xpath value="not(exists(f:searchType)) or (f:type/@value = 'string')" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.name" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.name">
          <path value="OperationDefinition.parameter.name" />
          <short value="Name in Parameters.parameter.name or in URL" />
          <definition value="The name of used to identify the parameter." />
          <comment value="This name must be a token (start with a letter in a..z, and only contain letters, numerals, and underscore. Note that for search parameters (type = string, with a search type), the name may be altered by the search modifiers." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.use" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.use">
          <path value="OperationDefinition.parameter.use" />
          <short value="in | out" />
          <definition value="Whether this is an input or an output parameter." />
          <comment value="If a parameter name is used for both an input and an output parameter, the parameter should be defined twice." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="OperationParameterUse" />
            </extension>
            <strength value="required" />
            <description value="Whether an operation parameter is an input or an output parameter." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/operation-parameter-use" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.min" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.min" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.min" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.min">
          <path value="OperationDefinition.parameter.min" />
          <short value="Minimum Cardinality" />
          <definition value="The minimum number of times this parameter SHALL appear in the request or response." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.max" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.max" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.max" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.max">
          <path value="OperationDefinition.parameter.max" />
          <short value="Maximum Cardinality (a number or *)" />
          <definition value="The maximum number of times this element is permitted to appear in the request or response." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.documentation" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.documentation">
          <path value="OperationDefinition.parameter.documentation" />
          <short value="Description of meaning/use" />
          <definition value="Describes the meaning or use of this parameter." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.type" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.type">
          <path value="OperationDefinition.parameter.type" />
          <short value="What type this parameter has" />
          <definition value="The type for this parameter." />
          <comment value="if there is no stated parameter, then the parameter is a multi-part parameter; type and must have at least one part defined." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="opd-1" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRAllTypes" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Either an abstract type, a resource or a data type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/all-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.searchType" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.searchType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.searchType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.searchType">
          <path value="OperationDefinition.parameter.searchType" />
          <short value="number | date | string | token | reference | composite | quantity | uri" />
          <definition value="How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="opd-2" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SearchParamType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Data types allowed to be used for search parameters." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/search-param-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.profile" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.profile">
          <path value="OperationDefinition.parameter.profile" />
          <short value="Profile on the type" />
          <definition value="A profile the specifies the rules that this parameter must conform to." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.binding" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.binding" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.binding" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.binding">
          <path value="OperationDefinition.parameter.binding" />
          <short value="ValueSet details if this is coded" />
          <definition value="Binds to a value set if this parameter is coded (code, Coding, CodeableConcept)." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.binding.strength" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.binding.strength" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.binding.strength" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.binding.strength">
          <path value="OperationDefinition.parameter.binding.strength" />
          <short value="required | extensible | preferred | example" />
          <definition value="Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances." />
          <comment value="For further discussion, see [Using Terminologies](terminologies.html)." />
          <alias value="conformance" />
          <alias value="extensibility" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BindingStrength" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Indication of the degree of conformance expectations associated with a binding." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/binding-strength" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.binding.valueSetX" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.binding.valueSetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.binding.valueSetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.binding.valueSet[x]">
          <path value="OperationDefinition.parameter.binding.valueSet[x]" />
          <short value="Source of value set" />
          <definition value="Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used." />
          <comment value="For value sets with a referenceResource, the display can contain the value set description.  The reference may be version-specific or not." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.part" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.parameter.part" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.parameter.part" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.parameter.part">
          <path value="OperationDefinition.parameter.part" />
          <short value="Parts of a nested Parameter" />
          <definition value="The parts of a nested Parameter." />
          <comment value="Query Definitions only have one output parameter, named &quot;result&quot;. This may not be described, but can be to allow a profile to be defined." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#OperationDefinition.parameter" />
          <condition value="opd-1" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.overload" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.overload" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.overload" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.overload">
          <path value="OperationDefinition.overload" />
          <short value="Define overloaded variants for when  generating code" />
          <definition value="Defines an appropriate combination of parameters to use when invoking this operation, to help code generators when generating overloaded parameter sets for this operation." />
          <comment value="The combinations are suggestions as to which sets of parameters to use together, but the combinations are not intended to be authoritative." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.overload.parameterName" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.overload.parameterName" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.overload.parameterName" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.overload.parameterName">
          <path value="OperationDefinition.overload.parameterName" />
          <short value="Name of parameter to include in overload" />
          <definition value="Name of parameter to include in overload." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/OperationDefinition.overload.comment" />
    <resource>
      <DataElement>
        <id value="OperationDefinition.overload.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/OperationDefinition.overload.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="OperationDefinition.overload.comment">
          <path value="OperationDefinition.overload.comment" />
          <short value="Comments to go on overload" />
          <definition value="Comments to go on overload." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization" />
    <resource>
      <DataElement>
        <id value="Immunization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization">
          <path value="Immunization" />
          <short value="Immunization event information" />
          <definition value="Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="imm-2" />
            <severity value="error" />
            <human value="If immunization was administered (notGiven=false) then explanation.reasonNotGiven SHALL be absent." />
            <expression value="(notGiven = true) or explanation.reasonNotGiven.empty()" />
            <xpath value="not(f:notGiven/@value=false() and exists(f:explanation/f:reasonNotGiven))" />
          </constraint>
          <constraint>
            <key value="imm-1" />
            <severity value="error" />
            <human value="If immunization was not administered (notGiven=true) then there SHALL be no reaction nor explanation.reason present" />
            <expression value="(notGiven = true).not() or (reaction.empty() and explanation.reason.empty())" />
            <xpath value="not(f:notGiven/@value=true() and (count(f:reaction) &gt; 0 or exists(f:explanation/f:reason)))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="VXU_V04" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="SubstanceAdministration" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.medication" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.identifier" />
    <resource>
      <DataElement>
        <id value="Immunization.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.identifier">
          <path value="Immunization.identifier" />
          <short value="Business identifier" />
          <definition value="A unique identifier assigned to this immunization record." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.status" />
    <resource>
      <DataElement>
        <id value="Immunization.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.status">
          <path value="Immunization.status" />
          <short value="completed | entered-in-error" />
          <definition value="Indicates the current status of the vaccination event." />
          <comment value="Will generally be set to show that the immunization has been completed.&#xA;&#xA;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImmunizationStatus" />
            </extension>
            <strength value="required" />
            <description value="A set of codes indicating the current status of an Immunization" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/immunization-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.notGiven" />
    <resource>
      <DataElement>
        <id value="Immunization.notGiven" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.notGiven" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.notGiven">
          <path value="Immunization.notGiven" />
          <short value="Flag for whether immunization was given" />
          <definition value="Indicates if the vaccination was or was not given." />
          <comment value="This element is labeled as a modifier because it indicates that an immunization didn't happen." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.notDone" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="[actionNegationInd=true].reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccineCode" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccineCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccineCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccineCode">
          <path value="Immunization.vaccineCode" />
          <short value="Vaccine product administered" />
          <definition value="Vaccine that was administered or was to be administered." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="VaccineCode" />
            </extension>
            <strength value="example" />
            <description value="The code for vaccine product administered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/vaccine-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.code" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacturedMaterial/realmCode/code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.patient" />
    <resource>
      <DataElement>
        <id value="Immunization.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.patient">
          <path value="Immunization.patient" />
          <short value="Who was immunized" />
          <definition value="The patient who either received or did not receive the immunization." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".partipication[ttypeCode=].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.encounter" />
    <resource>
      <DataElement>
        <id value="Immunization.encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.encounter">
          <path value="Immunization.encounter" />
          <short value="Encounter administered as part of" />
          <definition value="The visit or admission or other contact between patient and health care provider the immunization was performed as part of." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.context" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PV1-19" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="component-&gt;EncounterEvent" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.date" />
    <resource>
      <DataElement>
        <id value="Immunization.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.date">
          <path value="Immunization.date" />
          <short value="Vaccination administration date" />
          <definition value="Date vaccine administered or was to be administered." />
          <comment value="When immunizations are given a specific date and time should always be known.   When immunizations are patient reported, a specific date might not be known.  Although partial dates are allowed, an adult patient might not be able to recall the year a childhood immunization was given." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence.occurrenceDateTime" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/effectiveTime/value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.primarySource" />
    <resource>
      <DataElement>
        <id value="Immunization.primarySource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.primarySource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.primarySource">
          <path value="Immunization.primarySource" />
          <short value="Indicates context the data was recorded in" />
          <definition value="An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded." />
          <comment value="Reflects the “reliability” of the content." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXA-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="immunization.uncertaintycode (if primary source=false, uncertainty=U)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.reportOrigin" />
    <resource>
      <DataElement>
        <id value="Immunization.reportOrigin" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.reportOrigin" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.reportOrigin">
          <path value="Immunization.reportOrigin" />
          <short value="Indicates the source of a secondarily reported record" />
          <definition value="The source of the data when the report of the immunization event is not based on information from the person who administered the vaccine." />
          <comment value="Should not be populated if primarySource = True, will not be required even if primarySource = False." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImmunizationReportOrigin" />
            </extension>
            <strength value="example" />
            <description value="The source of the data for a record which is not from a primary source." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/immunization-origin" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RXA-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=INF].role[classCode=PAT] (this syntax for self-reported)&#xA;.participation[typeCode=INF].role[classCode=LIC] (this syntax for health care professional)&#xA;.participation[typeCode=INF].role[classCode=PRS] (this syntax for family member)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.location" />
    <resource>
      <DataElement>
        <id value="Immunization.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.location">
          <path value="Immunization.location" />
          <short value="Where vaccination occurred" />
          <definition value="The service delivery location where the vaccine administration occurred." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXA-27  (or RXA-11, deprecated as of v2.7)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=LOC].COCT_MT240000UV" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.manufacturer" />
    <resource>
      <DataElement>
        <id value="Immunization.manufacturer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.manufacturer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.manufacturer">
          <path value="Immunization.manufacturer" />
          <short value="Vaccine manufacturer" />
          <definition value="Name of vaccine manufacturer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXA-17" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=ORG]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacuturerOrganization/name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.lotNumber" />
    <resource>
      <DataElement>
        <id value="Immunization.lotNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.lotNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.lotNumber">
          <path value="Immunization.lotNumber" />
          <short value="Vaccine lot number" />
          <definition value="Lot number of the  vaccine product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXA-15" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].id" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacturedMaterial/lotNumberText" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.expirationDate" />
    <resource>
      <DataElement>
        <id value="Immunization.expirationDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.expirationDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.expirationDate">
          <path value="Immunization.expirationDate" />
          <short value="Vaccine expiration date" />
          <definition value="Date vaccine batch expires." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXA-16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.site" />
    <resource>
      <DataElement>
        <id value="Immunization.site" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.site" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.site">
          <path value="Immunization.site" />
          <short value="Body site vaccine  was administered" />
          <definition value="Body site where vaccine was administered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImmunizationSite" />
            </extension>
            <strength value="example" />
            <description value="The site at which the vaccine was administered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/immunization-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RXR-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="observation.targetSiteCode" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/approachSiteCode/code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.route" />
    <resource>
      <DataElement>
        <id value="Immunization.route" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.route" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.route">
          <path value="Immunization.route" />
          <short value="How vaccine entered body" />
          <definition value="The path by which the vaccine product is taken into the body." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImmunizationRoute" />
            </extension>
            <strength value="example" />
            <description value="The route by which the vaccine was administered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/immunization-route" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RXR-1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".routeCode" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/routeCode/code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.doseQuantity" />
    <resource>
      <DataElement>
        <id value="Immunization.doseQuantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.doseQuantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.doseQuantity">
          <path value="Immunization.doseQuantity" />
          <short value="Amount of vaccine administered" />
          <definition value="The quantity of vaccine product that was administered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXA-6 / RXA-7.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".doseQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.practitioner" />
    <resource>
      <DataElement>
        <id value="Immunization.practitioner" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.practitioner" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.practitioner">
          <path value="Immunization.practitioner" />
          <short value="Who performed event" />
          <definition value="Indicates who or what performed the event." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC-12 / RXA-10" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.practitioner.role" />
    <resource>
      <DataElement>
        <id value="Immunization.practitioner.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.practitioner.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.practitioner.role">
          <path value="Immunization.practitioner.role" />
          <short value="What type of performance was done" />
          <definition value="Describes the type of performance (e.g. ordering provider, administering provider, etc.)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImmunizationRole" />
            </extension>
            <strength value="extensible" />
            <description value="The role a practitioner plays in the immunization event" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/immunization-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.role" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation.functionCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.practitioner.actor" />
    <resource>
      <DataElement>
        <id value="Immunization.practitioner.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.practitioner.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.practitioner.actor">
          <path value="Immunization.practitioner.actor" />
          <short value="Individual who was performing" />
          <definition value="The device, practitioner, etc. who performed the action." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.actor" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.note" />
    <resource>
      <DataElement>
        <id value="Immunization.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.note">
          <path value="Immunization.note" />
          <short value="Vaccination notes" />
          <definition value="Extra information about the immunization that is not conveyed by the other attributes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="note" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.explanation" />
    <resource>
      <DataElement>
        <id value="Immunization.explanation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.explanation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.explanation">
          <path value="Immunization.explanation" />
          <short value="Administration/non-administration reasons" />
          <definition value="Reasons why a vaccine was or was not administered." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.explanation.reason" />
    <resource>
      <DataElement>
        <id value="Immunization.explanation.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.explanation.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.explanation.reason">
          <path value="Immunization.explanation.reason" />
          <short value="Why immunization occurred" />
          <definition value="Reasons why a vaccine was administered." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ImmunizationReason" />
            </extension>
            <strength value="example" />
            <description value="The reason why a vaccine was administered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/immunization-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.reasonCodeableConcept" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="[actionNegationInd=false].reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.explanation.reasonNotGiven" />
    <resource>
      <DataElement>
        <id value="Immunization.explanation.reasonNotGiven" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.explanation.reasonNotGiven" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.explanation.reasonNotGiven">
          <path value="Immunization.explanation.reasonNotGiven" />
          <short value="Why immunization did not occur" />
          <definition value="Reason why a vaccine was not administered." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NoImmunizationReason" />
            </extension>
            <strength value="example" />
            <description value="The reason why a vaccine was not administered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/no-immunization-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.notDoneReason" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-18" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="[actionNegationInd=true].reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.reaction" />
    <resource>
      <DataElement>
        <id value="Immunization.reaction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.reaction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.reaction">
          <path value="Immunization.reaction" />
          <short value="Details of a reaction that follows immunization" />
          <definition value="Categorical data indicating that an adverse event is associated in time to an immunization." />
          <comment value="A reaction may be an indication of an allergy or intolerance and, if this is determined to be the case,  it should be recorded as a new [AllergyIntolerance](allergyintolerance.html) resource instance as most systems will not query against  past Immunization.reaction elements." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="OBX-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=obs].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.reaction.date" />
    <resource>
      <DataElement>
        <id value="Immunization.reaction.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.reaction.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.reaction.date">
          <path value="Immunization.reaction.date" />
          <short value="When reaction started" />
          <definition value="Date of reaction to the immunization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-14 (ideally this would be reported in an IAM segment, but IAM is not part of the HL7 v2 VXU message - most likely would appear in OBX segments if at all)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.reaction.detail" />
    <resource>
      <DataElement>
        <id value="Immunization.reaction.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.reaction.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.reaction.detail">
          <path value="Immunization.reaction.detail" />
          <short value="Additional information on reaction" />
          <definition value="Details of the reaction." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.reaction.reported" />
    <resource>
      <DataElement>
        <id value="Immunization.reaction.reported" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.reaction.reported" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.reaction.reported">
          <path value="Immunization.reaction.reported" />
          <short value="Indicates self-reported reaction" />
          <definition value="Self-reported indicator." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="(no such concept seems to exist for allergy/adverse reaction in HL7 v2)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=INF].role[classCode=PAT] (this syntax for self-reported=true)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccinationProtocol" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccinationProtocol">
          <path value="Immunization.vaccinationProtocol" />
          <short value="What protocol was followed" />
          <definition value="Contains information about the protocol(s) under which the vaccine was administered." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="(HL7 v2 doesn't seem to provide for this)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=INST].target[classCode=SBADM]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.doseSequence" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccinationProtocol.doseSequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.doseSequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccinationProtocol.doseSequence">
          <path value="Immunization.vaccinationProtocol.doseSequence" />
          <short value="Dose number within series" />
          <definition value="Nominal position in a series." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].sequenceNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.description" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccinationProtocol.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccinationProtocol.description">
          <path value="Immunization.vaccinationProtocol.description" />
          <short value="Details of vaccine protocol" />
          <definition value="Contains the description about the protocol under which the vaccine was administered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].source[classCode=SBADM].text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.authority" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccinationProtocol.authority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.authority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccinationProtocol.authority">
          <path value="Immunization.vaccinationProtocol.authority" />
          <short value="Who is responsible for protocol" />
          <definition value="Indicates the authority who published the protocol.  E.g. ACIP." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].source[classCode=SBADM].participation[typeCode=AUT].COCT_MT090200UV" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.series" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccinationProtocol.series" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.series" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccinationProtocol.series">
          <path value="Immunization.vaccinationProtocol.series" />
          <short value="Name of vaccine series" />
          <definition value="One possible path to achieve presumed immunity against a disease - within the context of an authority." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=INST].target[classCode=SBADM]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.seriesDoses" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccinationProtocol.seriesDoses" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.seriesDoses" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccinationProtocol.seriesDoses">
          <path value="Immunization.vaccinationProtocol.seriesDoses" />
          <short value="Recommended number of doses for immunity" />
          <definition value="The recommended number of doses to achieve immunity." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=INST].target[classCode=SBADM].inboundRelationship[typeCode=COMP].source[classCode=SBADM].text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.targetDisease" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccinationProtocol.targetDisease" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.targetDisease" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccinationProtocol.targetDisease">
          <path value="Immunization.vaccinationProtocol.targetDisease" />
          <short value="Disease immunized against" />
          <definition value="The targeted disease." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="VaccinationProtocoltargetDisease" />
            </extension>
            <strength value="example" />
            <description value="The disease target of the vaccination protocol" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-target" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship.target[classCode=OBS].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.doseStatus" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccinationProtocol.doseStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.doseStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccinationProtocol.doseStatus">
          <path value="Immunization.vaccinationProtocol.doseStatus" />
          <short value="Indicates if dose counts towards immunity" />
          <definition value="Indicates if the immunization event should &quot;count&quot; against  the protocol." />
          <comment value="May need to differentiate between status declarations by a provider vs. a CDS engine." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="VaccinationProtocolDoseStatus" />
            </extension>
            <strength value="example" />
            <description value="The status of the vaccination protocol (i.e. should this count)" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].playedRole[classCode=INGR].scopedRole.scoper[classCode=MMAT].playedRole[classCode=HLTHCHRT].participation[typeCode=SBJ].observation[classCode=OBS].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.doseStatusReason" />
    <resource>
      <DataElement>
        <id value="Immunization.vaccinationProtocol.doseStatusReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Immunization.vaccinationProtocol.doseStatusReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Immunization.vaccinationProtocol.doseStatusReason">
          <path value="Immunization.vaccinationProtocol.doseStatusReason" />
          <short value="Why dose does (not) count" />
          <definition value="Provides an explanation as to why an immunization event should or should not count against the protocol." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="VaccinationProtocolDoseStatusReason" />
            </extension>
            <strength value="example" />
            <description value="The reason for the determining if a vaccination should count or why vaccination should not count." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].playedRole[classCode=INGR].scopedRole.scoper[classCode=MMAT].playedRole[classCode=HLTHCHRT].participation[typeCode=SBJ].observation[classCode=OBS].reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest" />
    <resource>
      <DataElement>
        <id value="MedicationRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest">
          <path value="MedicationRequest" />
          <short value="Ordering of medication for patient or group" />
          <definition value="An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called &quot;MedicationRequest&quot; rather than &quot;MedicationPrescription&quot; or &quot;MedicationOrder&quot; to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns." />
          <alias value="Prescription" />
          <alias value="Order" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="..Request" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="CombinedMedicationRequest" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.medication" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.identifier" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.identifier">
          <path value="MedicationRequest.identifier" />
          <short value="External ids for this request" />
          <definition value="This records identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. For example a re-imbursement system might issue its own id for each prescription that is created.  This is particularly important where FHIR only provides part of an entire workflow process where records must be tracked through an entire system." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…identifer" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Header/PrescriberOrderNumber" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC-2-Placer Order Number / ORC-3-Filler Order Number" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.definition" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.definition">
          <path value="MedicationRequest.definition" />
          <short value="Protocol or definition" />
          <definition value="Protocol or definition followed by this request." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…definition" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target[classCode=unspecified]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.basedOn" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.basedOn">
          <path value="MedicationRequest.basedOn" />
          <short value="What request fulfills" />
          <definition value="A plan or request that is fulfilled in whole or in part by this medication request." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…basedOn" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.groupIdentifier" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.groupIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.groupIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.groupIdentifier">
          <path value="MedicationRequest.groupIdentifier" />
          <short value="Composite request this is part of" />
          <definition value="A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition or prescription." />
          <requirements value="Requests are linked either by a &quot;basedOn&quot; relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…groupIdentifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.status" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.status">
          <path value="MedicationRequest.status" />
          <short value="active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown" />
          <definition value="A code specifying the current state of the order.  Generally this will be active or completed state." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationRequestStatus" />
            </extension>
            <strength value="required" />
            <description value="A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-request-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…status" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.intent" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.intent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.intent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.intent">
          <path value="MedicationRequest.intent" />
          <short value="proposal | plan | order | instance-order" />
          <definition value="Whether the request is a proposal, plan, or an original order." />
          <comment value="It is expected that the type of requester will be restricted for different stages of a MedicationRequest.  For example, Proposals can be created by a patient, relatedPerson, Practitioner or Device.  Plans can be created by Practitioners, Patients, RelatedPersons and Devices.  Original orders can be created by a Practitioner only.&#xD;&#xD;An instance-order is an instantiation of a request or order and may be used to populate Medication Administration Record.&#xA;&#xA;This element is labeled as a modifier because the intent alters when and how the resource is actually applicable." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationRequestIntent" />
            </extension>
            <strength value="required" />
            <description value="The kind of medication order" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-request-intent" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…intent" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.category" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.category">
          <path value="MedicationRequest.category" />
          <short value="Type of medication usage" />
          <definition value="Indicates the type of medication order and where the medication is expected to be consumed or administered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationRequestCategory" />
            </extension>
            <strength value="preferred" />
            <description value="A coded concept identifying where the medication ordered is expected to be consumed or administered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-request-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed/Directions&#xD;&#xD;or &#xD;&#xD;Message/Body/NewRx/MedicationPrescribed/StructuredSIG" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=&quot;type of medication usage&quot;].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.priority" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.priority">
          <path value="MedicationRequest.priority" />
          <short value="routine | urgent | stat | asap" />
          <definition value="Indicates how quickly the Medication Request should be addressed with respect to other requests." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationRequestPriority" />
            </extension>
            <strength value="required" />
            <description value="Identifies the level of importance to be assigned to actioning the request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-request-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…priority" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".priorityCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.medicationX" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.medicationX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.medicationX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.medication[x]">
          <path value="MedicationRequest.medication[x]" />
          <short value="Medication to be taken" />
          <definition value="Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications." />
          <comment value="If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended.  For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource. ." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationCode" />
            </extension>
            <strength value="example" />
            <description value="A coded concept identifying substance or product that can be ordered." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…code" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed&#xD;&#xD;Medication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode&#xD;&#xD;Medication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier&#xD;&#xD;Medication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="consumable.administrableMedication" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.subject" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.subject">
          <path value="MedicationRequest.subject" />
          <short value="Who or group medication request is for" />
          <definition value="A link to a resource representing the person or set of individuals to whom the medication will be given." />
          <comment value="The subject on a medication request is mandatory.  For the secondary use case where the actual subject is not provided, there still must be an anonymized subject specified." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…subject" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/Patient&#xD;&#xD;(need detail to link to specific patient … Patient.Identification in SCRIPT)" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3-Patient ID List" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.context" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.context">
          <path value="MedicationRequest.context" />
          <short value="Created during encounter/admission/stay" />
          <definition value="A link to an encounter, or episode of care, that identifies the particular occurrence or set occurrences of contact between patient and health care provider." />
          <comment value="SubstanceAdministration-&gt;component-&gt;EncounterEvent." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…context" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PV1-19-Visit Number" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=&quot;type of encounter or episode&quot;]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.supportingInformation" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.supportingInformation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.supportingInformation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.supportingInformation">
          <path value="MedicationRequest.supportingInformation" />
          <short value="Information to support ordering of the medication" />
          <definition value="Include additional information (for example, patient height and weight) that supports the ordering of the medication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.authoredOn" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.authoredOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.authoredOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.authoredOn">
          <path value="MedicationRequest.authoredOn" />
          <short value="When request was initially authored" />
          <definition value="The date (and perhaps time) when the prescription was initially written or authored on." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…authoredOn" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed/WrittenDate" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="author.time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.requester" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.requester" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.requester" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.requester">
          <path value="MedicationRequest.requester" />
          <short value="Who/What requested the Request" />
          <definition value="The individual, organization or device that initiated the request and has responsibility for its activation." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="mps-1" />
            <severity value="error" />
            <human value="onBehalfOf can only be specified if agent is practitioner or device" />
            <expression value="(agent.resolve().empty()) or (agent.resolve() is Device) or (agent.resolve() is Practitioner) or onBehalfOf.exists().not()" />
            <xpath value="contains(f:agent/f:reference/@value, '/Practitioner/') or contains(f:agent/f:reference/@value, '/Device/') or not(exists(f:onBehalfOf))" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…requester" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.requester.agent" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.requester.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.requester.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.requester.agent">
          <path value="MedicationRequest.requester.agent" />
          <short value="Who ordered the initial medication(s)" />
          <definition value="The healthcare professional responsible for authorizing the initial prescription." />
          <comment value="It is expected that the type of requester will be restricted for different stages of a MedicationRequest.  For example, Proposals can be created by a patient, relatedPerson, Practitioner or Device.  Plans can be created by Practitioners, Patients, RelatedPersons and Devices.  Original orders can be created by a Practitioner only." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="….agent" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/Prescriber&#xD;&#xD;(need detail to link to specific prescriber … Prescriber.Identification in SCRIPT)" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.requester.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.requester.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.requester.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.requester.onBehalfOf">
          <path value="MedicationRequest.requester.onBehalfOf" />
          <short value="Organization agent is acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of." />
          <requirements value="Practitioners and Devices can be associated with multiple organizations. This element indicates which organization they were acting on behalf of when authoring the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <condition value="mps-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="….onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.recorder" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.recorder" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.recorder" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.recorder">
          <path value="MedicationRequest.recorder" />
          <short value="Person who entered the request" />
          <definition value="The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=TRANS].role[classCode=ASSIGNED].code (HealthcareProviderType)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.reasonCode" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.reasonCode">
          <path value="MedicationRequest.reasonCode" />
          <short value="Reason or indication for writing the prescription" />
          <definition value="The reason or the indication for ordering the medication." />
          <comment value="This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationRequestReason" />
            </extension>
            <strength value="example" />
            <description value="A coded concept indicating why the medication was ordered." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…reasonCode" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="reason.observation.reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.reasonReference" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.reasonReference">
          <path value="MedicationRequest.reasonReference" />
          <short value="Condition or Observation that supports why the prescription is being written" />
          <definition value="Condition or observation that supports why the medication was ordered." />
          <comment value="This is a reference to a condition or observation that is the reason for the medication order.  If only a code exists, use reasonCode." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…reasonReference" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="reason.observation[code=ASSERTION].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.note" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.note">
          <path value="MedicationRequest.note" />
          <short value="Information about the prescription" />
          <definition value="Extra information about the prescription that could not be conveyed by the other attributes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…note" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed/Note" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.dosageInstruction" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.dosageInstruction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.dosageInstruction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.dosageInstruction">
          <path value="MedicationRequest.dosageInstruction" />
          <short value="How the medication should be taken" />
          <definition value="Indicates how the medication is to be used by the patient." />
          <comment value="There are examples where a medication request may include the option of an oral dose or an Intravenous or Intramuscular dose.  For example, &quot;Ondansetron 8mg orally or IV twice a day as needed for nausea&quot; or &quot;Compazine® (prochlorperazine) 5-10mg PO or 25mg PR bid prn nausea or vomiting&quot;.  In these cases, two medication requests would be created that could be grouped together.  The decision on which dose and route of administration to use is based on the patient's condition at the time the dose is needed." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Dosage" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…occurrence[x]" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="see dosageInstruction mapping" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.dispenseRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.dispenseRequest">
          <path value="MedicationRequest.dispenseRequest" />
          <short value="Medication supply authorization" />
          <definition value="Indicates the specific details for the dispense or medication supply part of a medication request (also known as a Medication Prescription or Medication Order).  Note that this information is not always sent with the order.  There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed/ExpirationDate" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="component.supplyEvent" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.validityPeriod" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.dispenseRequest.validityPeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.validityPeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.dispenseRequest.validityPeriod">
          <path value="MedicationRequest.dispenseRequest.validityPeriod" />
          <short value="Time period supply is authorized for" />
          <definition value="This indicates the validity period of a prescription (stale dating the Prescription)." />
          <comment value="It reflects the prescribers' perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations." />
          <requirements value="Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed/Refills" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.numberOfRepeatsAllowed" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.numberOfRepeatsAllowed" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed">
          <path value="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed" />
          <short value="Number of refills authorized" />
          <definition value="An integer indicating the number of times, in addition to the original dispense, (aka refills or repeats) that the patient can receive the prescribed medication. Usage Notes: This integer does not include the original order dispense. This means that if an order indicates dispense 30 tablets plus &quot;3 repeats&quot;, then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets." />
          <comment value="If displaying &quot;number of authorized fills&quot;, add 1 to this number." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed/Quantity" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXE-12-Number of Refills" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="repeatNumber" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.quantity" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.dispenseRequest.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.dispenseRequest.quantity">
          <path value="MedicationRequest.dispenseRequest.quantity" />
          <short value="Amount of medication to supply per dispense" />
          <definition value="The amount that is to be dispensed for one fill." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed/DaysSupply" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.expectedSupplyDuration" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.dispenseRequest.expectedSupplyDuration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.expectedSupplyDuration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.dispenseRequest.expectedSupplyDuration">
          <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration" />
          <short value="Number of days supply per dispense" />
          <definition value="Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last." />
          <comment value="In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Duration" />
          </type>
          <mapping>
            <identity value="script10.6" />
            <map value="Message/Body/NewRx/MedicationPrescribed/Substitutions" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="expectedUseTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.performer" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.dispenseRequest.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.dispenseRequest.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.dispenseRequest.performer">
          <path value="MedicationRequest.dispenseRequest.performer" />
          <short value="Intended dispenser" />
          <definition value="Indicates the intended dispensing Organization specified by the prescriber." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=SPLY, moodCode=RQO] .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.substitution" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.substitution" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.substitution" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.substitution">
          <path value="MedicationRequest.substitution" />
          <short value="Any restrictions on medication substitution" />
          <definition value="Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen. This block explains the prescriber's intent. If nothing is specified substitution may be done." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="script10.6" />
            <map value="specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="subjectOf.substitutionPersmission" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.substitution.allowed" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.substitution.allowed" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.substitution.allowed" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.substitution.allowed">
          <path value="MedicationRequest.substitution.allowed" />
          <short value="Whether substitution is allowed or not" />
          <definition value="True if the prescriber allows a different drug to be dispensed from what was prescribed." />
          <comment value="This element is labeled as a modifer because whether substitution is allow or not cannot be ignored." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <mapping>
            <identity value="script10.6" />
            <map value="specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXO-9-Allow Substitutions / RXE-9-Substitution Status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.substitution.reason" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.substitution.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.substitution.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.substitution.reason">
          <path value="MedicationRequest.substitution.reason" />
          <short value="Why should (not) substitution be made" />
          <definition value="Indicates the reason for the substitution, or why substitution must or must not be performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationIntendedSubstitutionReason" />
            </extension>
            <strength value="example" />
            <description value="A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="script10.6" />
            <map value="not mapped" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXE-9 Substition status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.priorPrescription" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.priorPrescription" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.priorPrescription" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.priorPrescription">
          <path value="MedicationRequest.priorPrescription" />
          <short value="An order/prescription that is being replaced" />
          <definition value="A link to a resource representing an earlier order related order or prescription." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…replaces" />
          </mapping>
          <mapping>
            <identity value="script10.6" />
            <map value="not mapped" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=?RPLC or ?SUCC]/target[classCode=SBADM,moodCode=RQO]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.detectedIssue" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.detectedIssue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.detectedIssue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.detectedIssue">
          <path value="MedicationRequest.detectedIssue" />
          <short value="Clinical Issue with action" />
          <definition value="Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc." />
          <alias value="Contraindication" />
          <alias value="Drug Utilization Review (DUR)" />
          <alias value="Alert" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DetectedIssue" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationRequest.eventHistory" />
    <resource>
      <DataElement>
        <id value="MedicationRequest.eventHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationRequest.eventHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationRequest.eventHistory">
          <path value="MedicationRequest.eventHistory" />
          <short value="A list of events of interest in the lifecycle" />
          <definition value="Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource." />
          <comment value="This may not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Provenance" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…relevantHistory" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device" />
    <resource>
      <DataElement>
        <id value="Device" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device">
          <path value="Device" />
          <short value="Item used in healthcare" />
          <definition value="This resource identifies an instance or a type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device.  Medical devices include durable (reusable) medical equipment, implantable devices, as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health.  Non-medical devices may include items such as a machine, cellphone, computer, application, etc." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Device" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.device" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.identifier" />
    <resource>
      <DataElement>
        <id value="Device.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.identifier">
          <path value="Device.identifier" />
          <short value="Instance identifier" />
          <definition value="Unique instance identifiers assigned to a device by manufacturers other organizations or owners." />
          <comment value="The barcode string from a barcode present on a device label or package may identify the instance, include names given to the device in local usage, or may identify the type of device. If the identifier identifies the type of device, Device.type element should be used.  For [UDI](device.html#5.11.3.2.2),  this element corresponds to the variable portion of the UDI that identifies the serial number of a specific device. See [UDI mappings](device-mappings.html#udi) for a complete mapping of UDI parts to Device." />
          <alias value="Serial Number" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="udi" />
            <map value="The serial number which is a component of the production identifier (PI), a conditional, variable portion of a UDI.   The identifier.type code should be set to “SNO”(Serial Number) and the system left empty." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.udi" />
    <resource>
      <DataElement>
        <id value="Device.udi" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.udi" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.udi">
          <path value="Device.udi" />
          <short value="Unique Device Identifier (UDI) Barcode string" />
          <definition value="[Unique device identifier (UDI)](device.html#5.11.3.2.2) assigned to device label or package." />
          <comment value="UDI may identify an unique instance of a device, or it may only identify the type of the device.  See [UDI mappings](device-mappings.html#udi) for a complete mapping of UDI parts to Device." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id and .code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.udi.deviceIdentifier" />
    <resource>
      <DataElement>
        <id value="Device.udi.deviceIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.udi.deviceIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.udi.deviceIdentifier">
          <path value="Device.udi.deviceIdentifier" />
          <short value="Mandatory fixed portion of UDI" />
          <definition value="The device identifier (DI) is a mandatory, fixed portion of a UDI that identifies the labeler and the specific version or model of a device." />
          <alias value="DI" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="udi" />
            <map value="The device identifier (DI), a mandatory, fixed portion of a UDI that identifies the labeler and the specific version or model of a device." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role.id.extension" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.udi.name" />
    <resource>
      <DataElement>
        <id value="Device.udi.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.udi.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.udi.name">
          <path value="Device.udi.name" />
          <short value="Device Name as appears on UDI label" />
          <definition value="Name of device as used in labeling or catalog." />
          <comment value="Use the `Device.type`  for a generic type or kind of device name.  Note the [GUDID](http://www.fda.gov/medicaldevices/deviceregulationandguidance/uniquedeviceidentification/globaludidatabasegudid/default.htm) lists the name as the 'Brand Name'." />
          <alias value="Brand Name" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="udi" />
            <map value="Propietary/Trade Name of the medical Device as used in the labeling or catalog" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".displayName" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.udi.jurisdiction" />
    <resource>
      <DataElement>
        <id value="Device.udi.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.udi.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.udi.jurisdiction">
          <path value="Device.udi.jurisdiction" />
          <short value="Regional UDI authority" />
          <definition value="The identity of the authoritative source for UDI generation within a  jurisdiction.  All UDIs are globally unique within a single namespace. with the appropriate repository uri as the system.  For example,  UDIs of devices managed in the U.S. by the FDA, the value is  http://hl7.org/fhir/NamingSystem/fda-udi." />
          <requirements value="Allows a recipient of a UDI to know which database will contain the UDI-associated metadata." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="Role.scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.udi.carrierHRF" />
    <resource>
      <DataElement>
        <id value="Device.udi.carrierHRF" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.udi.carrierHRF" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.udi.carrierHRF">
          <path value="Device.udi.carrierHRF" />
          <short value="UDI Human Readable Barcode String" />
          <definition value="The full UDI carrier as the human readable form (HRF) representation of the barcode string as printed on the packaging of the device." />
          <comment value="If separate barcodes for DI and PI are present, concatenate the string with DI first and in order of human readable expression on label." />
          <alias value="Human Readable Form" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="udi" />
            <map value="A unique device identifier (UDI) on a device label in plain text" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role.id.extension" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.udi.carrierAIDC" />
    <resource>
      <DataElement>
        <id value="Device.udi.carrierAIDC" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.udi.carrierAIDC" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.udi.carrierAIDC">
          <path value="Device.udi.carrierAIDC" />
          <short value="UDI Machine Readable Barcode String" />
          <definition value="The full UDI carrier of the Automatic Identification and Data Capture (AIDC) technology representation of the barcode string as printed on the packaging of the device - E.g a barcode or RFID.   Because of limitations on character sets in XML and the need to round-trip JSON data through XML, AIDC Formats *SHALL* be base64 encoded." />
          <comment value="The AIDC form of UDIs should be scanned or otherwise used for the identification of the device whenever possible to minimize errors in records resulting from manual transcriptions. If separate barcodes for DI and PI are present, concatenate the string with DI first and in order of human readable expression on label." />
          <alias value="Automatic Identification and Data Capture" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="udi" />
            <map value="A unique device identifier (UDI) on a device label a form that uses automatic identification and data capture (AIDC) technology." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role.id.extension" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.udi.issuer" />
    <resource>
      <DataElement>
        <id value="Device.udi.issuer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.udi.issuer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.udi.issuer">
          <path value="Device.udi.issuer" />
          <short value="UDI Issuing Organization" />
          <definition value="Organization that is charged with issuing UDIs for devices.  For example, the US FDA issuers include :&#xA;1) GS1: &#xA;http://hl7.org/fhir/NamingSystem/gs1-di, &#xA;2) HIBCC:&#xA;http://hl7.org/fhir/NamingSystem/hibcc-dI, &#xA;3) ICCBBA for blood containers:&#xA;http://hl7.org/fhir/NamingSystem/iccbba-blood-di, &#xA;4) ICCBA for other devices:&#xA;http://hl7.org/fhir/NamingSystem/iccbba-other-di." />
          <alias value="Barcode System" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="udi" />
            <map value="All UDIs are to be issued under a system operated by an Jurisdiction-accredited issuing agency.&#xA;GS1 DIs: &#xA; http://hl7.org/fhir/NamingSystem/gs1&#xA;HIBCC DIs:&#xA; http://hl7.org/fhir/NamingSystem/hibcc&#xA;ICCBBA DIs for blood containers:&#xA; http://hl7.org/fhir/NamingSystem/iccbba-blood&#xA;ICCBA DIs for other devices:&#xA; http://hl7.org/fhir/NamingSystem/iccbba-other" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Role.id.root" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.udi.entryType" />
    <resource>
      <DataElement>
        <id value="Device.udi.entryType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.udi.entryType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.udi.entryType">
          <path value="Device.udi.entryType" />
          <short value="barcode | rfid | manual +" />
          <definition value="A coded entry to indicate how the data was entered." />
          <requirements value="Supports a way to distinguish hand entered from machine read data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="UDIEntryType" />
            </extension>
            <strength value="required" />
            <description value="Codes to identify how UDI data was entered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/udi-entry-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="NA" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.status" />
    <resource>
      <DataElement>
        <id value="Device.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.status">
          <path value="Device.status" />
          <short value="active | inactive | entered-in-error | unknown" />
          <definition value="Status of the Device availability." />
          <comment value="This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the device (record)as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRDeviceStatus" />
            </extension>
            <strength value="required" />
            <description value="The availability status of the device." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/device-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.type" />
    <resource>
      <DataElement>
        <id value="Device.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.type">
          <path value="Device.type" />
          <short value="What kind of device this is" />
          <definition value="Code or identifier to identify a kind of device." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceKind" />
            </extension>
            <strength value="example" />
            <description value="Codes to identify medical devices" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/device-kind" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="udi" />
            <map value="Type description using GMDN or other code system" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.lotNumber" />
    <resource>
      <DataElement>
        <id value="Device.lotNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.lotNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.lotNumber">
          <path value="Device.lotNumber" />
          <short value="Lot number of manufacture" />
          <definition value="Lot number assigned by the manufacturer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="udi" />
            <map value="The lot or batch number within which a device was manufactured - which is a component of the production identifier (PI), a conditional, variable portion of a UDI." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".lotNumberText" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.manufacturer" />
    <resource>
      <DataElement>
        <id value="Device.manufacturer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.manufacturer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.manufacturer">
          <path value="Device.manufacturer" />
          <short value="Name of device manufacturer" />
          <definition value="A name of the manufacturer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="udi" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".playedRole[typeCode=MANU].scoper.name" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.manufactureDate" />
    <resource>
      <DataElement>
        <id value="Device.manufactureDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.manufactureDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.manufactureDate">
          <path value="Device.manufactureDate" />
          <short value="Date when the device was made" />
          <definition value="The date and time when the device was manufactured." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="udi" />
            <map value="The date a specific device was manufactured - which is a component of the production identifier (PI), a conditional, variable portion of a UDI.  For FHIR, The datetime syntax must converted to YYYY-MM-DD[THH:MM:SS].  If hour is present, the minutes and seconds should both be set to “00”." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".existenceTime.low" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.expirationDate" />
    <resource>
      <DataElement>
        <id value="Device.expirationDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.expirationDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.expirationDate">
          <path value="Device.expirationDate" />
          <short value="Date and time of expiry of this device (if applicable)" />
          <definition value="The date and time beyond which this device is no longer valid or should not be used (if applicable)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="udi" />
            <map value="the expiration date of a specific device -  which is a component of the production identifier (PI), a conditional, variable portion of a UDI.  For FHIR, The datetime syntax must converted to YYYY-MM-DD[THH:MM:SS].  If hour is present, the minutes and seconds should both be set to “00”." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".expirationTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.model" />
    <resource>
      <DataElement>
        <id value="Device.model" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.model" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.model">
          <path value="Device.model" />
          <short value="Model id assigned by the manufacturer" />
          <definition value="The &quot;model&quot; is an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".playedRole[typeCode=MANU].code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.version" />
    <resource>
      <DataElement>
        <id value="Device.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.version">
          <path value="Device.version" />
          <short value="Version number (i.e. software)" />
          <definition value="The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".softwareName (included as part)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.patient" />
    <resource>
      <DataElement>
        <id value="Device.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.patient">
          <path value="Device.patient" />
          <short value="Patient to whom Device is affixed" />
          <definition value="Patient information, If the device is affixed to a person." />
          <requirements value="If the device is implanted in a patient, then need to associate the device to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".playedRole[typeCode=USED].scoper.playedRole[typeCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.owner" />
    <resource>
      <DataElement>
        <id value="Device.owner" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.owner" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.owner">
          <path value="Device.owner" />
          <short value="Organization responsible for device" />
          <definition value="An organization that is responsible for the provision and ongoing maintenance of the device." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".playedRole[typeCode=OWN].scoper" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.contact" />
    <resource>
      <DataElement>
        <id value="Device.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.contact">
          <path value="Device.contact" />
          <short value="Details for human/organization for support" />
          <definition value="Contact details for an organization or a particular human that is responsible for the device." />
          <comment value="used for troubleshooting etc." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".scopedRole[typeCode=CON].player" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.location" />
    <resource>
      <DataElement>
        <id value="Device.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.location">
          <path value="Device.location" />
          <short value="Where the resource is found" />
          <definition value="The place where the device can be found." />
          <requirements value="Device.location can be used to track device location." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".playedRole[typeCode=LOCE].scoper" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.url" />
    <resource>
      <DataElement>
        <id value="Device.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.url">
          <path value="Device.url" />
          <short value="Network address to contact device" />
          <definition value="A network address on which the device may be contacted directly." />
          <comment value="If the device is running a FHIR server, the network address should  be the Base URL from which a conformance statement may be retrieved." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".telecom" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.note" />
    <resource>
      <DataElement>
        <id value="Device.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.note">
          <path value="Device.note" />
          <short value="Device notes and comments" />
          <definition value="Descriptive information, usage information or implantation information that is not captured in an existing element." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Device.safety" />
    <resource>
      <DataElement>
        <id value="Device.safety" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Device.safety" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Device.safety">
          <path value="Device.safety" />
          <short value="Safety Characteristics of Device" />
          <definition value="Provides additional safety characteristics about a medical device.  For example devices containing latex." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceSafety" />
            </extension>
            <strength value="example" />
            <description value="Codes used to identify medical devices safety characterics. These codes are derived in part from the [United States Food and Drug Administration recommendations](http://www.fda.gov/downloads/medicaldevices/deviceregulationandguidance/guidancedocuments/ucm107708.pdf) and are provided here as a suggestive example." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/device-safety" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="NA" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription" />
    <resource>
      <DataElement>
        <id value="VisionPrescription" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription">
          <path value="VisionPrescription" />
          <short value="Prescription for vision correction products for a patient" />
          <definition value="An authorization for the supply of glasses and/or contact lenses to a patient." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="CombinedVisionRequest" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.careprovision" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.identifier" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.identifier">
          <path value="VisionPrescription.identifier" />
          <short value="Business identifier" />
          <definition value="Business identifier which may be used by other parties to reference or identify the prescription." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC-2-Placer Order Number / ORC-3-Filler Order Number" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.status" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.status">
          <path value="VisionPrescription.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="VisionStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.patient" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.patient">
          <path value="VisionPrescription.patient" />
          <short value="Who prescription is for" />
          <definition value="A link to a resource representing the person to whom the vision products will be supplied." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3-Patient ID List" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="subject.role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.encounter" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.encounter">
          <path value="VisionPrescription.encounter" />
          <short value="Created during encounter / admission / stay" />
          <definition value="A link to a resource that identifies the particular occurrence of contact between patient and health care provider." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.context" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PV1-19-Visit Number" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="componentOf.patientEncounter" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dateWritten" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dateWritten" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dateWritten" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dateWritten">
          <path value="VisionPrescription.dateWritten" />
          <short value="When prescription was authorized" />
          <definition value="The date (and perhaps time) when the prescription was written." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="author.time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.prescriber" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.prescriber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.prescriber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.prescriber">
          <path value="VisionPrescription.prescriber" />
          <short value="Who authorizes the vision product" />
          <definition value="The healthcare professional responsible for authorizing the prescription." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="author.role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.reasonX" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.reasonX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.reasonX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.reason[x]">
          <path value="VisionPrescription.reason[x]" />
          <short value="Reason or indication for writing the prescription" />
          <definition value="Can be the reason or the indication for writing the prescription." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="ORC-16-Order Control Code Reason" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="reason.observation or reason.observation[code=ASSERTION].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense">
          <path value="VisionPrescription.dispense" />
          <short value="Vision supply authorization" />
          <definition value="Deals with details of the dispense part of the supply specification." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="component.supplyEvent" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.product" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.product" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.product" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.product">
          <path value="VisionPrescription.dispense.product" />
          <short value="Product to be supplied" />
          <definition value="Identifies the type of vision correction product which is required for the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="VisionProduct" />
            </extension>
            <strength value="example" />
            <description value="A coded concept describing the vision products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/vision-product" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="consumable.role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.eye" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.eye" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.eye" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.eye">
          <path value="VisionPrescription.dispense.eye" />
          <short value="right | left" />
          <definition value="The eye for which the lens applies." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="VisionEyes" />
            </extension>
            <strength value="required" />
            <description value="A coded concept listing the eye codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/vision-eye-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.sphere" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.sphere" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.sphere" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.sphere">
          <path value="VisionPrescription.dispense.sphere" />
          <short value="Lens sphere" />
          <definition value="Lens power measured in diopters (0.25 units)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.cylinder" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.cylinder" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.cylinder" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.cylinder">
          <path value="VisionPrescription.dispense.cylinder" />
          <short value="Lens cylinder" />
          <definition value="Power adjustment for astigmatism measured in diopters (0.25 units)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.axis" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.axis" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.axis" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.axis">
          <path value="VisionPrescription.dispense.axis" />
          <short value="Lens axis" />
          <definition value="Adjustment for astigmatism measured in integer degrees." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.prism" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.prism" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.prism" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.prism">
          <path value="VisionPrescription.dispense.prism" />
          <short value="Lens prism" />
          <definition value="Amount of prism to compensate for eye alignment in fractional units." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.base" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.base" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.base" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.base">
          <path value="VisionPrescription.dispense.base" />
          <short value="up | down | in | out" />
          <definition value="The relative base, or reference lens edge, for the prism." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="VisionBase" />
            </extension>
            <strength value="required" />
            <description value="A coded concept listing the base codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/vision-base-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.add" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.add" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.add" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.add">
          <path value="VisionPrescription.dispense.add" />
          <short value="Lens add" />
          <definition value="Power adjustment for multifocal lenses measured in diopters (0.25 units)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.power" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.power" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.power" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.power">
          <path value="VisionPrescription.dispense.power" />
          <short value="Contact lens power" />
          <definition value="Contact lens power measured in diopters (0.25 units)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.backCurve" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.backCurve" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.backCurve" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.backCurve">
          <path value="VisionPrescription.dispense.backCurve" />
          <short value="Contact lens back curvature" />
          <definition value="Back curvature measured in millimeters." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.diameter" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.diameter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.diameter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.diameter">
          <path value="VisionPrescription.dispense.diameter" />
          <short value="Contact lens diameter" />
          <definition value="Contact lens diameter measured in millimeters." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.duration" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.duration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.duration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.duration">
          <path value="VisionPrescription.dispense.duration" />
          <short value="Lens wear duration" />
          <definition value="The recommended maximum wear period for the lens." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.color" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.color" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.color" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.color">
          <path value="VisionPrescription.dispense.color" />
          <short value="Color required" />
          <definition value="Special color or pattern." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.brand" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.brand" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.brand" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.brand">
          <path value="VisionPrescription.dispense.brand" />
          <short value="Brand required" />
          <definition value="Brand recommendations or restrictions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.note" />
    <resource>
      <DataElement>
        <id value="VisionPrescription.dispense.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/VisionPrescription.dispense.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="VisionPrescription.dispense.note">
          <path value="VisionPrescription.dispense.note" />
          <short value="Notes for coatings" />
          <definition value="Notes for special requirements such as coatings and lens materials." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media" />
    <resource>
      <DataElement>
        <id value="Media" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media">
          <path value="Media" />
          <short value="A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference" />
          <definition value="A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="mda-1" />
            <severity value="error" />
            <human value="Height can only be used for a photo or video" />
            <expression value="height.empty() or type != 'audio'" />
            <xpath value="not(f:type/@value='audio') or not(f:height)" />
          </constraint>
          <constraint>
            <key value="mda-2" />
            <severity value="error" />
            <human value="Width can only be used for a photo or video" />
            <expression value="width.empty() or type != 'audio'" />
            <xpath value="not(f:type/@value='audio') or not(f:width)" />
          </constraint>
          <constraint>
            <key value="mda-3" />
            <severity value="error" />
            <human value="Frames can only be used for a photo" />
            <expression value="frames.empty() or type = 'photo'" />
            <xpath value="(f:type/@value='photo') or not(f:frames)" />
          </constraint>
          <constraint>
            <key value="mda-4" />
            <severity value="error" />
            <human value="Duration can only be used for an audio or a video" />
            <expression value="duration.empty() or type != 'photo'" />
            <xpath value="not(f:type/@value='photo') or not(f:duration)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[classCode=&quot;DGIMG&quot;, moodCode=&quot;EVN&quot;]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.structure" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.identifier" />
    <resource>
      <DataElement>
        <id value="Media.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.identifier">
          <path value="Media.identifier" />
          <short value="Identifier(s) for the image" />
          <definition value="Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers." />
          <comment value="The identifier label and use can be used to determine what kind of identifier it is." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="0008,0018 | ~0008,0050 | 0020,000D | 0020,000E" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.basedOn" />
    <resource>
      <DataElement>
        <id value="Media.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.basedOn">
          <path value="Media.basedOn" />
          <short value="Procedure that caused this media to be created" />
          <definition value="A procedure that is fulfilled in whole or in part by the creation of this media." />
          <requirements value="Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon." />
          <alias value="fulfills" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.type" />
    <resource>
      <DataElement>
        <id value="Media.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.type">
          <path value="Media.type" />
          <short value="photo | video | audio" />
          <definition value="Whether the media is a photo (still image), an audio recording, or a video recording." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DigitalMediaType" />
            </extension>
            <strength value="required" />
            <description value="Whether the media is a photo, video, or audio" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/digital-media-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.subtype" />
    <resource>
      <DataElement>
        <id value="Media.subtype" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.subtype" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.subtype">
          <path value="Media.subtype" />
          <short value="The type of acquisition equipment/process" />
          <definition value="Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DigitalMediaSubtype" />
            </extension>
            <strength value="example" />
            <description value="Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/digital-media-subtype" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;LIST&quot;, moodCode=&quot;EVN&quot;].code" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="0008,0060 | 0008,1032" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.view" />
    <resource>
      <DataElement>
        <id value="Media.view" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.view" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.view">
          <path value="Media.view" />
          <short value="Imaging view, e.g. Lateral or Antero-posterior" />
          <definition value="The name of the imaging view e.g. Lateral or Antero-posterior (AP)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MediaView" />
            </extension>
            <strength value="example" />
            <description value="Imaging view (projection) used when collecting an image" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/media-view" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="DiagnosticImage.subjectOrientationCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.subject" />
    <resource>
      <DataElement>
        <id value="Media.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.subject">
          <path value="Media.subject" />
          <short value="Who/What this Media is a record of" />
          <definition value="Who/What this Media is a record of." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;SUBJ&quot;]???" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="~0010,0020" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.context" />
    <resource>
      <DataElement>
        <id value="Media.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.context">
          <path value="Media.context" />
          <short value="Encounter / Episode associated with media" />
          <definition value="The encounter or episode of care that establishes the context for this media." />
          <comment value="This will typically be the encounter the media occurred within." />
          <requirements value="Links the media to the Encounter context." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=COMP].source[classCode&lt;=PCPR, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.occurrenceX" />
    <resource>
      <DataElement>
        <id value="Media.occurrenceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.occurrenceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.occurrence[x]">
          <path value="Media.occurrence[x]" />
          <short value="When Media was collected" />
          <definition value="The date and time(s) at which the media was collected." />
          <alias value="timing" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.operator" />
    <resource>
      <DataElement>
        <id value="Media.operator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.operator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.operator">
          <path value="Media.operator" />
          <short value="The person who generated the image" />
          <definition value="The person who administered the collection of the image." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;PERF&quot;]???" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="0008,1060?" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.reasonCode" />
    <resource>
      <DataElement>
        <id value="Media.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.reasonCode">
          <path value="Media.reasonCode" />
          <short value="Why was event performed?" />
          <definition value="Describes why the event occurred in coded or textual form." />
          <comment value="Textual reasons can be caprued using reasonCode.text." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MediaReason" />
            </extension>
            <strength value="example" />
            <description value="The reason for the media" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.bodySite" />
    <resource>
      <DataElement>
        <id value="Media.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.bodySite">
          <path value="Media.bodySite" />
          <short value="Body part in media" />
          <definition value="Indicates the site on the subject's body where the media was collected (i.e. the target site)." />
          <comment value="If the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use The standard extension[ body-site-instance](extension-body-site-instance.html)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 123037004 |Body structure|" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="targetSiteCode" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="718497002 |Inherent location|" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.device" />
    <resource>
      <DataElement>
        <id value="Media.device" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.device" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.device">
          <path value="Media.device" />
          <short value="Observing Device" />
          <definition value="The device used to collect the media." />
          <comment value="An extension should be used if further typing of the device is needed.  Scondary devices used to support collecting a media can be represented using either extension or through the Observation.related element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceMetric" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 49062001 |Device|" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=DEV]" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="424226004 |Using device|" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.height" />
    <resource>
      <DataElement>
        <id value="Media.height" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.height" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.height">
          <path value="Media.height" />
          <short value="Height of the image in pixels (photo/video)" />
          <definition value="Height of the image in pixels (photo/video)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <condition value="mda-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;EVN&quot;,code=&quot;&lt;CODE&gt;&quot;].value" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="0028,0010" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.width" />
    <resource>
      <DataElement>
        <id value="Media.width" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.width" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.width">
          <path value="Media.width" />
          <short value="Width of the image in pixels (photo/video)" />
          <definition value="Width of the image in pixels (photo/video)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <condition value="mda-2" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;EVN&quot;,code=&quot;&lt;CODE&gt;&quot;].value" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="0028,0011" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.frames" />
    <resource>
      <DataElement>
        <id value="Media.frames" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.frames" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.frames">
          <path value="Media.frames" />
          <short value="Number of frames if &gt; 1 (photo)" />
          <definition value="The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <defaultValuePositiveInt value="1" />
          <condition value="mda-3" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;EVN&quot;,code=&quot;&lt;CODE&gt;&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.duration" />
    <resource>
      <DataElement>
        <id value="Media.duration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.duration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.duration">
          <path value="Media.duration" />
          <short value="Length in seconds (audio / video)" />
          <definition value="The duration of the recording in seconds - for audio and video." />
          <comment value="The duration might differ from occurrencePeriod if recording was paused." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <condition value="mda-4" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;EVN&quot;,code=&quot;&lt;CODE&gt;&quot;].value" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="~0028,0002" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.content" />
    <resource>
      <DataElement>
        <id value="Media.content" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.content" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.content">
          <path value="Media.content" />
          <short value="Actual Media - reference or data" />
          <definition value="The actual content of the media - inline or by direct reference to the media source file." />
          <comment value="Recommended content types: image/jpeg, image/png, image/tiff, video/mpeg, audio/mp4, application/dicom. Application/dicom can contain the transfer syntax as a parameter.  For an media that covers a period of time (video/sound), the content.creationTime is the end time. Creation time is used for tracking, organizing versions and searching." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Media.note" />
    <resource>
      <DataElement>
        <id value="Media.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Media.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Media.note">
          <path value="Media.note" />
          <short value="Comments made about the media" />
          <definition value="Comments made about the media by the performer, subject or other participants." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="NTE" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest">
          <path value="ProcedureRequest" />
          <short value="A request for a procedure or diagnostic to be performed" />
          <definition value="A record of a request for diagnostic investigations, treatments, or operations to be performed." />
          <alias value="diagnostic request" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[moodCode&lt;=INT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.identifier" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.identifier">
          <path value="ProcedureRequest.identifier" />
          <short value="Identifiers assigned to this order" />
          <definition value="Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller." />
          <comment value="The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2).  For further discussion and examples see the resource notes section below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.2, ORC.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.definition" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.definition">
          <path value="ProcedureRequest.definition" />
          <short value="Protocol or definition" />
          <definition value="Protocol or definition followed by this request." />
          <alias value="protocol" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.definition" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.basedOn" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.basedOn">
          <path value="ProcedureRequest.basedOn" />
          <short value="What request fulfills" />
          <definition value="Plan/proposal/order fulfilled by this request." />
          <alias value="fulfills" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.basedOn" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.8 (plus others)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.replaces" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.replaces" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.replaces" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.replaces">
          <path value="ProcedureRequest.replaces" />
          <short value="What request replaces" />
          <definition value="The request takes the place of the referenced completed or terminated request(s)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.replaces" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Handled by message location of ORC (ORC.1=RO or RU)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RPLC].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.requisition" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.requisition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.requisition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.requisition">
          <path value="ProcedureRequest.requisition" />
          <short value="Composite Request ID" />
          <definition value="A shared identifier common to all procedure or diagnostic requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier." />
          <comment value="Requests are linked either by a &quot;basedOn&quot; relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation." />
          <requirements value="Some business processes need to know if multiple items were ordered as part of the same &quot;requisition&quot; for billing or other purposes." />
          <alias value="grouperId" />
          <alias value="groupIdentifier" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ORC.4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.status" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.status">
          <path value="ProcedureRequest.status" />
          <short value="draft | active | suspended | completed | entered-in-error | cancelled" />
          <definition value="The status of the order." />
          <comment value="The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](event.html) for general discussion) or using the [Task](task.html) resource.&#xA;&#xA;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureRequestStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of a procedure or diagnostic order." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.5" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="Action.currentStatus" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.intent" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.intent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.intent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.intent">
          <path value="ProcedureRequest.intent" />
          <short value="proposal | plan | order +" />
          <definition value="Whether the request is a proposal, plan, an original order or a reflex order." />
          <comment value="This element is labeled as a modifier because the intent alters when and how the resource is actually applicable." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureRequestIntent" />
            </extension>
            <strength value="required" />
            <description value="The kind of procedure or diagnostic request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-intent" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.intent" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.priority" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.priority">
          <path value="ProcedureRequest.priority" />
          <short value="routine | urgent | asap | stat" />
          <definition value="Indicates how quickly the ProcedureRequest should be addressed with respect to other requests." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <meaningWhenMissing value="If missing, this task should be performed with normal priority" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureRequestPriority" />
            </extension>
            <strength value="required" />
            <description value="Identifies the level of importance to be assigned to actioning the request" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.priority" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="TQ1.9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".priorityCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.doNotPerform" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.doNotPerform" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.doNotPerform" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.doNotPerform">
          <path value="ProcedureRequest.doNotPerform" />
          <short value="True if procedure should not be performed" />
          <definition value="Set this to true if the record is saying that the procedure should NOT be performed." />
          <comment value="This element is labeled as a [modifier](conformance-rules.html#isModifier.html) because it indicates that a procedure shouldn't happen, instead of a request for it to happen.  In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition.  If the ProcedureRequest.code and ProcedureRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation." />
          <requirements value="Used for do not ambulate, do not elevate head of bed, do not flush NG tube, do not take blood pressure on a certain arm, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".actionNegationInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.category" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.category">
          <path value="ProcedureRequest.category" />
          <short value="Classification of procedure" />
          <definition value="A code that classifies the procedure for searching, sorting and display purposes (e.g. &quot;Surgical Procedure&quot;)." />
          <comment value="There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource.  The level of granularity is defined by the category concepts in the value set." />
          <requirements value="Used for filtering what procedure request are retrieved and displayed." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureRequestCategory" />
            </extension>
            <strength value="example" />
            <description value="Classification of the procedure" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;LIST&quot;, moodCode=&quot;INT&quot;].code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.code" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.code">
          <path value="ProcedureRequest.code" />
          <short value="What is being requested/ordered" />
          <definition value="A code that identifies a particular procedure, diagnostic investigation, or panel of investigations, that have been requested." />
          <comment value="Many laboratory and radiology procedure codes embed the specimen/organ system in the test ordeer name, for example,  serum or serum/plasma glucose, or a chest xray. The specimen may not be recorded separately from the test code." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureRequestCode" />
            </extension>
            <strength value="example" />
            <description value="Codes for tests/services that can be performed by procedure or diagnostic services.  For laboratory, LOINC is  (preferred)[http://build.fhir.org/terminologies.html#preferred] and a valueset using LOINC Order codes is available [here](valueset-diagnostic-requests.html)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.code" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="Procedure.procedureCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.subject" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.subject">
          <path value="ProcedureRequest.subject" />
          <short value="Individual the service is ordered for" />
          <definition value="On whom or what the procedure or diagnostic is to be performed. This is usually a human patient, but can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Accompanying PID segment" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.subject" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.context" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.context">
          <path value="ProcedureRequest.context" />
          <short value="Encounter or Episode during which request was created" />
          <definition value="An encounter or episode of care that provides additional information about the healthcare context in which this request is made." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.context" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Accompanying PV1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=COMP].source[classCode&lt;=PCPR, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.encounter" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.occurrenceX" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.occurrenceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.occurrenceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.occurrence[x]">
          <path value="ProcedureRequest.occurrence[x]" />
          <short value="When procedure should occur" />
          <definition value="The date/time at which the diagnostic testing should occur." />
          <alias value="schedule" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.occurrence[x]" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Accompanying TQ1/TQ2 segments" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="Procedure.procedureSchedule" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.asNeededX" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.asNeededX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.asNeededX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.asNeeded[x]">
          <path value="ProcedureRequest.asNeeded[x]" />
          <short value="Preconditions for procedure or diagnostic" />
          <definition value="If a CodeableConcept is present, it indicates the pre-condition for performing the procedure.  For example &quot;pain&quot;, &quot;on flare-up&quot;, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureAsNeededReason" />
            </extension>
            <strength value="example" />
            <description value="A coded concept identifying the pre-condition that should hold prior to performing a procedure.  For example &quot;pain&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="boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false CodeableConcept: precondition.observationEventCriterion[code=&quot;Assertion&quot;].value" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="Proposal.prnReason.reason" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.authoredOn" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.authoredOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.authoredOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.authoredOn">
          <path value="ProcedureRequest.authoredOn" />
          <short value="Date request signed" />
          <definition value="When the request transitioned to being actionable." />
          <alias value="orderedOn" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="Proposal.proposedAtTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.requester" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.requester" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.requester" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.requester">
          <path value="ProcedureRequest.requester" />
          <short value="Who/what is requesting procedure or diagnostic" />
          <definition value="The individual who initiated the request and has responsibility for its activation." />
          <comment value="This not the dispatcher, but rather who is the authorizer." />
          <alias value="author" />
          <alias value="orderer" />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.statementAuthor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.requester.agent" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.requester.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.requester.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.requester.agent">
          <path value="ProcedureRequest.requester.agent" />
          <short value="Individual making the request" />
          <definition value="The device, practitioner or organization who initiated the request." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.agent" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.12" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.statementAuthor" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.requester.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.requester.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.requester.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.requester.onBehalfOf">
          <path value="ProcedureRequest.requester.onBehalfOf" />
          <short value="Organization agent is acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of." />
          <requirements value="Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when authoring the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.performerType" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.performerType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.performerType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.performerType">
          <path value="ProcedureRequest.performerType" />
          <short value="Performer role" />
          <definition value="Desired type of performer for doing the diagnostic testing." />
          <comment value="this is a  role, not  a participation type.  I.e. does not describe the task, but describes the capacity.  For example, “compounding pharmacy” or “psychiatrist” or “internal referral”." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureRequestParticipantRole" />
            </extension>
            <strength value="example" />
            <description value="Indicates specific responsibility of an individual within the care team, such as &quot;Primary physician&quot;, &quot;Team coordinator&quot;, &quot;Caregiver&quot;, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/participant-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.performerType" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRT" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.performer" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.performer">
          <path value="ProcedureRequest.performer" />
          <short value="Requested perfomer" />
          <definition value="The desired perfomer for doing the diagnostic testing.  For example, the surgeon, dermatopathologist, endoscopist, etc." />
          <comment value="If needed, use an [extension](extensibility.html) for listing alternative performers and/or roles and/or preference." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.Performer" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRT" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.reasonCode" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.reasonCode">
          <path value="ProcedureRequest.reasonCode" />
          <short value="Explanation/Justification for test" />
          <definition value="An explanation or justification for why this diagnostic investigation is being requested in coded or textual form.   This is often for billing purposes.  May relate to the resources referred to in supportingInformation." />
          <comment value="This may be used to decide how the diagnostic investigation will be performed, or even if it will be performed at all.   Use CodeableConcept text element if the data is free (uncoded) text as shown in the [CT Scan example](procedurerequest-example-di.html)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureRequestReason" />
            </extension>
            <strength value="example" />
            <description value="Diagnosis or problem codes justifying the reason for requesting the procedure or diagnostic investigation." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/procedure-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonCod" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.reasonReference" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.reasonReference">
          <path value="ProcedureRequest.reasonReference" />
          <short value="Explanation/Justification for test" />
          <definition value="Indicates another resource that provides a justification for why this diagnostic investigation is being requested.   May relate to the resources referred to in supportingInformation." />
          <comment value="This may be used to decide how the diagnostic investigation will be performed, or even if it will be performed at all.   Use CodeableConcept text element if the data is free (uncoded) text as shown in the [CT Scan example](procedurerequest-example-di.html)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonReference" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC.16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.supportingInfo" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.supportingInfo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.supportingInfo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.supportingInfo">
          <path value="ProcedureRequest.supportingInfo" />
          <short value="Additional clinical information" />
          <definition value="Additional clinical information about the patient or specimen that may influence the procedure or diagnostics or their interpretations.     This information includes diagnosis, clinical findings and other observations.  In laboratory ordering these are typically referred to as &quot;ask at order entry questions (AOEs)&quot;.  This includes observations explicitly requested by the producer (filler) to provide context or supporting information needed to complete the order. For example,  reporting the amount of inspired oxygen for blood gas measurements." />
          <alias value="Ask at order entry question" />
          <alias value="AOE" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.supportingInformation" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Accompanying segments" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=PERT].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.specimen" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.specimen" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.specimen" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.specimen">
          <path value="ProcedureRequest.specimen" />
          <short value="Procedure Samples" />
          <definition value="One or more specimens that the laboratory procedure will use." />
          <comment value="Many diagnostic procedures need a specimen, but the request itself is not actually about the specimen. This element is for when the diagnostic is requested on already existing specimens and the request points to the specimen it applies to.    Conversely, If the request is entered first with an unknown specimen, The [Specimen](specimen.html) resource references to the ProcedureRequest." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="SPM" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SPC].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.bodySite" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.bodySite">
          <path value="ProcedureRequest.bodySite" />
          <short value="Location on Body" />
          <definition value="Anatomic location where the procedure should be performed. This is the target site." />
          <comment value="Only used if not implicit in the code found in ProcedureRequest.type.  If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately)  then use the standard extension [procedurerequest-targetBodySite](extension-procedurerequest-targetbodysite.html)." />
          <requirements value="Knowing where the procedure is performed is important for tracking if multiple sites are possible." />
          <alias value="location" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="SPM" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="targetSiteCode" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="Procedure.targetBodySite" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.note" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.note">
          <path value="ProcedureRequest.note" />
          <short value="Comments" />
          <definition value="Any other notes and comments made about the service request. For example, letting provider know that &quot;patient hates needles&quot; or other provider instructions." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.note" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="NTE" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" />
          </mapping>
          <mapping>
            <identity value="quick" />
            <map value="ClinicalStatement.additionalText" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcedureRequest.relevantHistory" />
    <resource>
      <DataElement>
        <id value="ProcedureRequest.relevantHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcedureRequest.relevantHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcedureRequest.relevantHistory">
          <path value="ProcedureRequest.relevantHistory" />
          <short value="Request provenance" />
          <definition value="Key events in the history of the request." />
          <comment value="This may not include provenances for all versions of the request – only those deemed “relevant” or important.&#xD;This SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude&#xD;All Provenances should have some historical version of this Request as their subject." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Provenance" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.relevantHistory" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse">
          <path value="EligibilityResponse" />
          <short value="EligibilityResponse resource" />
          <definition value="This resource provides eligibility and plan details from the processing of an Eligibility resource." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.support" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.identifier" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.identifier">
          <path value="EligibilityResponse.identifier" />
          <short value="Business Identifier" />
          <definition value="The Response business identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.status" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.status">
          <path value="EligibilityResponse.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the response as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EligibilityResponseStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.created" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.created">
          <path value="EligibilityResponse.created" />
          <short value="Creation date" />
          <definition value="The date when the enclosed suite of services were performed or completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.requestProvider" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.requestProvider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.requestProvider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.requestProvider">
          <path value="EligibilityResponse.requestProvider" />
          <short value="Responsible practitioner" />
          <definition value="The practitioner who is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B01" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.requestOrganization" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.requestOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.requestOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.requestOrganization">
          <path value="EligibilityResponse.requestOrganization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.request" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.request">
          <path value="EligibilityResponse.request" />
          <short value="Eligibility reference" />
          <definition value="Original request resource reference." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EligibilityRequest" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.basedOn" />
          </mapping>
          <mapping>
            <identity value="cdanetv4" />
            <map value="A02|G01" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.outcome" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.outcome">
          <path value="EligibilityResponse.outcome" />
          <short value="complete | error | partial" />
          <definition value="Transaction status: error, complete." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RemittanceOutcome" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The outcome of the processing." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/remittance-outcome" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.disposition" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.disposition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.disposition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.disposition">
          <path value="EligibilityResponse.disposition" />
          <short value="Disposition Message" />
          <definition value="A description of the status of the adjudication." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurer" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurer">
          <path value="EligibilityResponse.insurer" />
          <short value="Insurer issuing the coverage" />
          <definition value="The Insurer who produced this adjudicated response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.inforce" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.inforce" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.inforce" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.inforce">
          <path value="EligibilityResponse.inforce" />
          <short value="Coverage inforce indicator" />
          <definition value="Flag indicating if the coverage provided is inforce currently  if no service date(s) specified or for the whole duration of the service dates." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Insurance" />
          </extension>
          <path value="EligibilityResponse.insurance" />
          <short value="Details by insurance coverage" />
          <definition value="The insurer may provide both the details for the requested coverage as well as details for additional coverages known to the insurer." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.coverage" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.coverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.coverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.coverage">
          <path value="EligibilityResponse.insurance.coverage" />
          <short value="Updated Coverage details" />
          <definition value="A suite of updated or additional Coverages from the Insurer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Coverage" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.contract" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.contract" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.contract" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.contract">
          <path value="EligibilityResponse.insurance.contract" />
          <short value="Contract details" />
          <definition value="The contract resource which may provide more detailed information." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Benefits" />
          </extension>
          <path value="EligibilityResponse.insurance.benefitBalance" />
          <short value="Benefits by Category" />
          <definition value="Benefits and optionally current balances by Category." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.category" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.category">
          <path value="EligibilityResponse.insurance.benefitBalance.category" />
          <short value="Type of services covered" />
          <definition value="Dental, Vision, Medical, Pharmacy, Rehab etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit categories such as: oral, medical, vision etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-category" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.subCategory" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.subCategory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.subCategory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.subCategory">
          <path value="EligibilityResponse.insurance.benefitBalance.subCategory" />
          <short value="Detailed services covered within the type" />
          <definition value="Dental: basic, major, ortho; Vision exam, glasses, contacts; etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.excluded" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.excluded" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.excluded" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.excluded">
          <path value="EligibilityResponse.insurance.benefitBalance.excluded" />
          <short value="Excluded from the plan" />
          <definition value="True if the indicated class of service is excluded from the plan, missing or False indicated the service is included in the coverage." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.name" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.name">
          <path value="EligibilityResponse.insurance.benefitBalance.name" />
          <short value="Short name for the benefit" />
          <definition value="A short name or tag for the benefit, for example MED01, or DENT2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.description" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.description">
          <path value="EligibilityResponse.insurance.benefitBalance.description" />
          <short value="Description of the benefit or services covered" />
          <definition value="A richer description of the benefit, for example 'DENT2 covers 100% of basic, 50% of major but exclused Ortho, Implants and Costmetic services'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.network" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.network" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.network" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.network">
          <path value="EligibilityResponse.insurance.benefitBalance.network" />
          <short value="In or out of network" />
          <definition value="Network designation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitNetwork" />
            </extension>
            <strength value="example" />
            <description value="Code to classify in or out of network services" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-network" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.unit" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.unit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.unit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.unit">
          <path value="EligibilityResponse.insurance.benefitBalance.unit" />
          <short value="Individual or family" />
          <definition value="Unit designation: individual or family." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitUnit" />
            </extension>
            <strength value="example" />
            <description value="Unit covered/serviced - individual or family" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-unit" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.term" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.term" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.term" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.term">
          <path value="EligibilityResponse.insurance.benefitBalance.term" />
          <short value="Annual or lifetime" />
          <definition value="The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual vistis'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitTerm" />
            </extension>
            <strength value="example" />
            <description value="Coverage unit - annual, lifetime" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-term" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.financial" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.financial" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.financial" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.financial">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Benefit" />
          </extension>
          <path value="EligibilityResponse.insurance.benefitBalance.financial" />
          <short value="Benefit Summary" />
          <definition value="Benefits Used to date." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.financial.type" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.financial.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.financial.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.financial.type">
          <path value="EligibilityResponse.insurance.benefitBalance.financial.type" />
          <short value="Deductable, visits, benefit amount" />
          <definition value="Deductable, visits, benefit amount." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitType" />
            </extension>
            <strength value="example" />
            <description value="Deductable, visits, co-pay, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.financial.allowedX" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.financial.allowedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.financial.allowedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.financial.allowed[x]">
          <path value="EligibilityResponse.insurance.benefitBalance.financial.allowed[x]" />
          <short value="Benefits allowed" />
          <definition value="Benefits allowed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.financial.usedX" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.insurance.benefitBalance.financial.usedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.insurance.benefitBalance.financial.usedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.insurance.benefitBalance.financial.used[x]">
          <path value="EligibilityResponse.insurance.benefitBalance.financial.used[x]" />
          <short value="Benefits used" />
          <definition value="Benefits used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.form" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.form" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.form" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.form">
          <path value="EligibilityResponse.form" />
          <short value="Printed Form Identifier" />
          <definition value="The form to be used for printing the content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Forms" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="The forms codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/forms" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G42" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.error" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.error" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.error" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.error">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Errors" />
          </extension>
          <path value="EligibilityResponse.error" />
          <short value="Processing errors" />
          <definition value="Mutually exclusive with Services Provided (Item)." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityResponse.error.code" />
    <resource>
      <DataElement>
        <id value="EligibilityResponse.error.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityResponse.error.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityResponse.error.code">
          <path value="EligibilityResponse.error.code" />
          <short value="Error code detailing processing issues" />
          <definition value="An error code,from a specified code system, which details why the eligibility check could not be performed." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdjudicationError" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="The error codes for adjudication processing." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adjudication-error" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence" />
    <resource>
      <DataElement>
        <id value="Sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence">
          <path value="Sequence" />
          <short value="Information about a biological sequence" />
          <definition value="Raw data describing a biological sequence." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="seq-3" />
            <severity value="error" />
            <human value="Only 0 and 1 are valid for coordinateSystem" />
            <expression value="coordinateSystem = 1 or coordinateSystem = 0" />
            <xpath value="count(f:coordinateSystem[@value=0 and @value=1]) = 1" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.diagnostics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.identifier" />
    <resource>
      <DataElement>
        <id value="Sequence.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.identifier">
          <path value="Sequence.identifier" />
          <short value="Unique ID for this particular sequence. This is a FHIR-defined id" />
          <definition value="A unique identifier for this particular sequence instance. This is a FHIR-defined id." />
          <requirements value="Allows sequences to be distinguished and referenced." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.type" />
    <resource>
      <DataElement>
        <id value="Sequence.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.type">
          <path value="Sequence.type" />
          <short value="aa | dna | rna" />
          <definition value="Amino Acid Sequence/ DNA Sequence / RNA Sequence." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="sequenceType" />
            </extension>
            <strength value="example" />
            <description value="Type if a sequence -- DNA, RNA, or amino acid sequence" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/sequence-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.coordinateSystem" />
    <resource>
      <DataElement>
        <id value="Sequence.coordinateSystem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.coordinateSystem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.coordinateSystem">
          <path value="Sequence.coordinateSystem" />
          <short value="Base number of coordinate system (0 for 0-based numbering or coordinates, inclusive start, exclusive end, 1 for 1-based numbering, inclusive start, inclusive end)" />
          <definition value="Whether the sequence is numbered starting at 0 (0-based numbering or coordinates, inclusive start, exclusive end) or starting at 1 (1-based numbering, inclusive start and inclusive end)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.patient" />
    <resource>
      <DataElement>
        <id value="Sequence.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.patient">
          <path value="Sequence.patient" />
          <short value="Who and/or what this is about" />
          <definition value="The patient whose sequencing results are described by this resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.specimen" />
    <resource>
      <DataElement>
        <id value="Sequence.specimen" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.specimen" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.specimen">
          <path value="Sequence.specimen" />
          <short value="Specimen used for sequencing" />
          <definition value="Specimen used for sequencing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.device" />
    <resource>
      <DataElement>
        <id value="Sequence.device" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.device" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.device">
          <path value="Sequence.device" />
          <short value="The method for sequencing" />
          <definition value="The method for sequencing, for example, chip information." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.performer" />
    <resource>
      <DataElement>
        <id value="Sequence.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.performer">
          <path value="Sequence.performer" />
          <short value="Who should be responsible for test result" />
          <definition value="The organization or lab that should be responsible for this result." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quantity" />
    <resource>
      <DataElement>
        <id value="Sequence.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quantity">
          <path value="Sequence.quantity" />
          <short value="The number of copies of the seqeunce of interest.  (RNASeq)" />
          <definition value="The number of copies of the seqeunce of interest. (RNASeq)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq" />
    <resource>
      <DataElement>
        <id value="Sequence.referenceSeq" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.referenceSeq">
          <path value="Sequence.referenceSeq" />
          <short value="A sequence used as reference" />
          <definition value="A sequence that is used as a reference to describe variants that are present in a sequence analyzed." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="seq-4" />
            <severity value="error" />
            <human value="Only +1 and -1 are valid for strand" />
            <expression value="strand.empty() or strand = 1 or strand = -1" />
            <xpath value="not(exists(f:strand)) or count(f:strand[@value=-1 and @value=1]) = 1" />
          </constraint>
          <constraint>
            <key value="seq-5" />
            <severity value="error" />
            <human value="GenomeBuild and chromosome must be both contained if either one of them is contained" />
            <expression value="(chromosome.empty() and genomeBuild.empty()) or (chromosome.exists() and genomeBuild.exists())" />
            <xpath value="(exists(f:chromosome) and exists(f:genomeBuild)) or (not(exists(f:chromosome)) and not(exists(f:genomeBuild)))" />
          </constraint>
          <constraint>
            <key value="seq-6" />
            <severity value="error" />
            <human value="Have and only have one of the following elements in referenceSeq : 1. genomeBuild ; 2 referenceSeqId; 3. referenceSeqPointer;  4. referenceSeqString;" />
            <expression value="(genomeBuild.count()+referenceSeqId.count()+ referenceSeqPointer.count()+ referenceSeqString.count()) = 1" />
            <xpath value="count(f:genomeBuild)+count(f:referenceSeqId)+count(f:referenceSeqPointer)+count(f:referenceSeqString)=1" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.chromosome" />
    <resource>
      <DataElement>
        <id value="Sequence.referenceSeq.chromosome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.chromosome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.referenceSeq.chromosome">
          <path value="Sequence.referenceSeq.chromosome" />
          <short value="Chromosome containing genetic finding" />
          <definition value="Structural unit composed of a nucleic acid molecule which controls its own replication through the interaction of specific proteins at one or more origins of replication ([SO:0000340](http://www.sequenceontology.org/browser/current_svn/term/SO:0000340))." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="chromosome-human" />
            </extension>
            <strength value="example" />
            <description value="Chromosome number for human" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/chromosome-human" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.genomeBuild" />
    <resource>
      <DataElement>
        <id value="Sequence.referenceSeq.genomeBuild" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.genomeBuild" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.referenceSeq.genomeBuild">
          <path value="Sequence.referenceSeq.genomeBuild" />
          <short value="The Genome Build used for reference, following GRCh build versions e.g. 'GRCh 37'" />
          <definition value="The Genome Build used for reference, following GRCh build versions e.g. 'GRCh 37'.  Version number must be included if a versioned release of a primary build was used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.referenceSeqId" />
    <resource>
      <DataElement>
        <id value="Sequence.referenceSeq.referenceSeqId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.referenceSeqId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.referenceSeq.referenceSeqId">
          <path value="Sequence.referenceSeq.referenceSeqId" />
          <short value="Reference identifier" />
          <definition value="Reference identifier of reference sequence submitted to NCBI. It must match the type in the Sequence.type field. For example, the prefix, “NG_” identifies reference sequence for genes, “NM_” for messenger RNA transcripts, and “NP_” for amino acid sequences." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="sequenceReference" />
            </extension>
            <strength value="example" />
            <description value="Reference identifier" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/sequence-referenceSeq" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.referenceSeqPointer" />
    <resource>
      <DataElement>
        <id value="Sequence.referenceSeq.referenceSeqPointer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.referenceSeqPointer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.referenceSeq.referenceSeqPointer">
          <path value="Sequence.referenceSeq.referenceSeqPointer" />
          <short value="A Pointer to another Sequence entity as reference sequence" />
          <definition value="A Pointer to another Sequence entity as reference sequence." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Sequence" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.referenceSeqString" />
    <resource>
      <DataElement>
        <id value="Sequence.referenceSeq.referenceSeqString" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.referenceSeqString" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.referenceSeq.referenceSeqString">
          <path value="Sequence.referenceSeq.referenceSeqString" />
          <short value="A string to represent reference sequence" />
          <definition value="A string like &quot;ACGT&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.strand" />
    <resource>
      <DataElement>
        <id value="Sequence.referenceSeq.strand" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.strand" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.referenceSeq.strand">
          <path value="Sequence.referenceSeq.strand" />
          <short value="Directionality of DNA ( +1/-1)" />
          <definition value="Directionality of DNA sequence. Available values are &quot;1&quot; for the plus strand (5' to 3')/Watson/Sense/positive  and &quot;-1&quot; for the minus strand(3' to 5')/Crick/Antisense/negative." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.windowStart" />
    <resource>
      <DataElement>
        <id value="Sequence.referenceSeq.windowStart" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.windowStart" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.referenceSeq.windowStart">
          <path value="Sequence.referenceSeq.windowStart" />
          <short value="Start position of the window on the  reference sequence" />
          <definition value="Start position of the window on the reference sequence. If the coordinate system is either 0-based or 1-based, then start position is inclusive." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.windowEnd" />
    <resource>
      <DataElement>
        <id value="Sequence.referenceSeq.windowEnd" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.referenceSeq.windowEnd" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.referenceSeq.windowEnd">
          <path value="Sequence.referenceSeq.windowEnd" />
          <short value="End position of the window on the reference sequence" />
          <definition value="End position of the window on the reference sequence. If the coordinate system is 0-based then end is is exclusive and does not include the last position. If the coordinate system is 1-base, then end is inclusive and includes the last position." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.variant" />
    <resource>
      <DataElement>
        <id value="Sequence.variant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.variant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.variant">
          <path value="Sequence.variant" />
          <short value="Variant in sequence" />
          <definition value="The definition of variant here originates from Sequence ontology ([variant_of](http://www.sequenceontology.org/browser/current_svn/term/variant_of)). This element can represent amino acid or nucleic sequence change(including insertion,deletion,SNP,etc.)  It can represent some complex mutation or segment variation with the assist of CIGAR string." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.variant.start" />
    <resource>
      <DataElement>
        <id value="Sequence.variant.start" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.variant.start" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.variant.start">
          <path value="Sequence.variant.start" />
          <short value="Start position of the variant on the  reference sequence" />
          <definition value="Start position of the variant on the  reference sequence.If the coordinate system is either 0-based or 1-based, then start position is inclusive." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.variant.end" />
    <resource>
      <DataElement>
        <id value="Sequence.variant.end" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.variant.end" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.variant.end">
          <path value="Sequence.variant.end" />
          <short value="End position of the variant on the reference sequence" />
          <definition value="End position of the variant on the reference sequence.If the coordinate system is 0-based then end is is exclusive and does not include the last position. If the coordinate system is 1-base, then end is inclusive and includes the last position." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.variant.observedAllele" />
    <resource>
      <DataElement>
        <id value="Sequence.variant.observedAllele" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.variant.observedAllele" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.variant.observedAllele">
          <path value="Sequence.variant.observedAllele" />
          <short value="Allele that was observed" />
          <definition value="An allele is one of a set of coexisting sequence variants of a gene ([SO:0001023](http://www.sequenceontology.org/browser/current_svn/term/SO:0001023)).  Nucleotide(s)/amino acids from start position of sequence to stop position of sequence on the positive (+) strand of the observed  sequence. When the sequence  type is DNA, it should be the sequence on the positive (+) strand. This will lay in the range between variant.start and variant.end." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.variant.referenceAllele" />
    <resource>
      <DataElement>
        <id value="Sequence.variant.referenceAllele" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.variant.referenceAllele" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.variant.referenceAllele">
          <path value="Sequence.variant.referenceAllele" />
          <short value="Allele in the reference sequence" />
          <definition value="An allele is one of a set of coexisting sequence variants of a gene ([SO:0001023](http://www.sequenceontology.org/browser/current_svn/term/SO:0001023)). Nucleotide(s)/amino acids from start position of sequence to stop position of sequence on the positive (+) strand of the reference sequence. When the sequence  type is DNA, it should be the sequence on the positive (+) strand. This will lay in the range between variant.start and variant.end." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.variant.cigar" />
    <resource>
      <DataElement>
        <id value="Sequence.variant.cigar" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.variant.cigar" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.variant.cigar">
          <path value="Sequence.variant.cigar" />
          <short value="Extended CIGAR string for aligning the sequence with reference bases" />
          <definition value="Extended CIGAR string for aligning the sequence with reference bases. See detailed documentation [here](http://support.illumina.com/help/SequencingAnalysisWorkflow/Content/Vault/Informatics/Sequencing_Analysis/CASAVA/swSEQ_mCA_ExtendedCIGARFormat.htm)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.variant.variantPointer" />
    <resource>
      <DataElement>
        <id value="Sequence.variant.variantPointer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.variant.variantPointer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.variant.variantPointer">
          <path value="Sequence.variant.variantPointer" />
          <short value="Pointer to observed variant information" />
          <definition value="A pointer to an Observation containing variant information." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.observedSeq" />
    <resource>
      <DataElement>
        <id value="Sequence.observedSeq" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.observedSeq" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.observedSeq">
          <path value="Sequence.observedSeq" />
          <short value="Sequence that was observed" />
          <definition value="Sequence that was observed. It is the result marked by referenceSeq along with variant records on referenceSeq. This shall starts from referenceSeq.windowStart and end by referenceSeq.windowEnd." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality" />
    <resource>
      <DataElement>
        <id value="Sequence.quality" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality">
          <path value="Sequence.quality" />
          <short value="An set of value as quality of sequence" />
          <definition value="An experimental feature attribute that defines the quality of the feature in a quantitative way, such as a phred quality score ([SO:0001686](http://www.sequenceontology.org/browser/current_svn/term/SO:0001686))." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.type" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.type">
          <path value="Sequence.quality.type" />
          <short value="indel | snp | unknown" />
          <definition value="INDEL / SNP / Undefined variant." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="qualityType" />
            </extension>
            <strength value="required" />
            <description value="Type for quality report" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/quality-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.standardSequence" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.standardSequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.standardSequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.standardSequence">
          <path value="Sequence.quality.standardSequence" />
          <short value="Standard sequence for comparison" />
          <definition value="Gold standard sequence used for comparing against." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="qualityStandardSequence" />
            </extension>
            <strength value="example" />
            <description value="Reference identifier of the sequence that used to mark the quality of tested samples." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/sequence-quality-standardSequence" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.start" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.start" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.start" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.start">
          <path value="Sequence.quality.start" />
          <short value="Start position of the sequence" />
          <definition value="Start position of the sequence. If the coordinate system is either 0-based or 1-based, then start position is inclusive." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.end" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.end" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.end" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.end">
          <path value="Sequence.quality.end" />
          <short value="End position of the sequence" />
          <definition value="End position of the sequence.If the coordinate system is 0-based then end is is exclusive and does not include the last position. If the coordinate system is 1-base, then end is inclusive and includes the last position." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.score" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.score" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.score" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.score">
          <path value="Sequence.quality.score" />
          <short value="Quality score for the comparison" />
          <definition value="The score of an experimentally derived feature such as a p-value ([SO:0001685](http://www.sequenceontology.org/browser/current_svn/term/SO:0001685))." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.method" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.method" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.method" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.method">
          <path value="Sequence.quality.method" />
          <short value="Method to get quality" />
          <definition value="Which method is used to get sequence quality." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="qualityMethod" />
            </extension>
            <strength value="example" />
            <description value="The method used to evaluate the numerical quality of the observed sequence." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/sequence-quality-method" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.truthTP" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.truthTP" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.truthTP" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.truthTP">
          <path value="Sequence.quality.truthTP" />
          <short value="True positives from the perspective of the truth data" />
          <definition value="True positives, from the perspective of the truth data, i.e. the number of sites in the Truth Call Set for which there are paths through the Query Call Set that are consistent with all of the alleles at this site, and for which there is an accurate genotype call for the event." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.queryTP" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.queryTP" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.queryTP" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.queryTP">
          <path value="Sequence.quality.queryTP" />
          <short value="True positives from the perspective of the query data" />
          <definition value="True positives, from the perspective of the query data, i.e. the number of sites in the Query Call Set for which there are paths through the Truth Call Set that are consistent with all of the alleles at this site, and for which there is an accurate genotype call for the event." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.truthFN" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.truthFN" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.truthFN" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.truthFN">
          <path value="Sequence.quality.truthFN" />
          <short value="False negatives" />
          <definition value="False negatives, i.e. the number of sites in the Truth Call Set for which there is no path through the Query Call Set that is consistent with all of the alleles at this site, or sites for which there is an inaccurate genotype call for the event. Sites with correct variant but incorrect genotype are counted here." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.queryFP" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.queryFP" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.queryFP" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.queryFP">
          <path value="Sequence.quality.queryFP" />
          <short value="False positives" />
          <definition value="False positives, i.e. the number of sites in the Query Call Set for which there is no path through the Truth Call Set that is consistent with this site. Sites with correct variant but incorrect genotype are counted here." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.gtFP" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.gtFP" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.gtFP" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.gtFP">
          <path value="Sequence.quality.gtFP" />
          <short value="False positives where the non-REF alleles in the Truth and Query Call Sets match" />
          <definition value="The number of false positives where the non-REF alleles in the Truth and Query Call Sets match (i.e. cases where the truth is 1/1 and the query is 0/1 or similar)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.precision" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.precision" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.precision" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.precision">
          <path value="Sequence.quality.precision" />
          <short value="Precision of comparison" />
          <definition value="QUERY.TP / (QUERY.TP + QUERY.FP)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.recall" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.recall" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.recall" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.recall">
          <path value="Sequence.quality.recall" />
          <short value="Recall of comparison" />
          <definition value="TRUTH.TP / (TRUTH.TP + TRUTH.FN)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.quality.fScore" />
    <resource>
      <DataElement>
        <id value="Sequence.quality.fScore" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.quality.fScore" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.quality.fScore">
          <path value="Sequence.quality.fScore" />
          <short value="F-score" />
          <definition value="Harmonic mean of Recall and Precision, computed as: 2 * precision * recall / (precision + recall)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.readCoverage" />
    <resource>
      <DataElement>
        <id value="Sequence.readCoverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.readCoverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.readCoverage">
          <path value="Sequence.readCoverage" />
          <short value="Average number of reads representing a given nucleotide in the reconstructed sequence" />
          <definition value="Coverage (read depth or depth) is the average number of reads representing a given nucleotide in the reconstructed sequence." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.repository" />
    <resource>
      <DataElement>
        <id value="Sequence.repository" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.repository" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.repository">
          <path value="Sequence.repository" />
          <short value="External repository which contains detailed report related with observedSeq in this resource" />
          <definition value="Configurations of the external repository. The repository shall store target's observedSeq or records related with target's observedSeq." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.repository.type" />
    <resource>
      <DataElement>
        <id value="Sequence.repository.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.repository.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.repository.type">
          <path value="Sequence.repository.type" />
          <short value="directlink | openapi | login | oauth | other" />
          <definition value="Click and see / RESTful API / Need login to see / RESTful API with authentication / Other ways to see resource." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="repositoryType" />
            </extension>
            <strength value="required" />
            <description value="Type for access of external URI" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/repository-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.repository.url" />
    <resource>
      <DataElement>
        <id value="Sequence.repository.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.repository.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.repository.url">
          <path value="Sequence.repository.url" />
          <short value="URI of the repository" />
          <definition value="URI of an external repository which contains further details about the genetics data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.repository.name" />
    <resource>
      <DataElement>
        <id value="Sequence.repository.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.repository.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.repository.name">
          <path value="Sequence.repository.name" />
          <short value="Repository's name" />
          <definition value="URI of an external repository which contains further details about the genetics data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.repository.datasetId" />
    <resource>
      <DataElement>
        <id value="Sequence.repository.datasetId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.repository.datasetId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.repository.datasetId">
          <path value="Sequence.repository.datasetId" />
          <short value="Id of the dataset that used to call for dataset in repository" />
          <definition value="Id of the variant in this external repository. The server will understand how to use this id to call for more info about datasets in external repository." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.repository.variantsetId" />
    <resource>
      <DataElement>
        <id value="Sequence.repository.variantsetId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.repository.variantsetId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.repository.variantsetId">
          <path value="Sequence.repository.variantsetId" />
          <short value="Id of the variantset that used to call for variantset in repository" />
          <definition value="Id of the variantset in this external repository. The server will understand how to use this id to call for more info about variantsets in external repository." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.repository.readsetId" />
    <resource>
      <DataElement>
        <id value="Sequence.repository.readsetId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.repository.readsetId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.repository.readsetId">
          <path value="Sequence.repository.readsetId" />
          <short value="Id of the read" />
          <definition value="Id of the read in this external repository." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Sequence.pointer" />
    <resource>
      <DataElement>
        <id value="Sequence.pointer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Sequence.pointer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Sequence.pointer">
          <path value="Sequence.pointer" />
          <short value="Pointer to next atomic sequence" />
          <definition value="Pointer to next atomic sequence which at most contains one variant." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Sequence" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric" />
    <resource>
      <DataElement>
        <id value="DeviceMetric" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric">
          <path value="DeviceMetric" />
          <short value="Measurement, calculation or setting capability of a medical device" />
          <definition value="Describes a measurement, calculation or setting capability of a medical device." />
          <comment value="For the initial scope, this DeviceMetric resource is only applicable to describe a single metric node in the containment tree that is produced by the context scanner in any medical device that implements or derives from the ISO/IEEE 11073 standard." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.device" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.identifier" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.identifier">
          <path value="DeviceMetric.identifier" />
          <short value="Unique identifier of this DeviceMetric" />
          <definition value="Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID.  It should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.type" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.type">
          <path value="DeviceMetric.type" />
          <short value="Identity of metric, for example Heart Rate or PEEP Setting" />
          <definition value="Describes the type of the metric. For example: Heart Rate, PEEP Setting, etc." />
          <comment value="DeviceMetric.type can be referred to either IEEE 11073-10101 or LOINC." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MetricType" />
            </extension>
            <strength value="preferred" />
            <description value="Describes the metric type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/devicemetric-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.unit" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.unit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.unit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.unit">
          <path value="DeviceMetric.unit" />
          <short value="Unit of Measure for the Metric" />
          <definition value="Describes the unit that an observed value determined for this metric will have. For example: Percent, Seconds, etc." />
          <comment value="DeviceMetric.unit can refer to either UCUM or preferable a RTMMS coding system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MetricUnit" />
            </extension>
            <strength value="preferred" />
            <description value="Describes the unit of the metric." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/devicemetric-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.source" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.source">
          <path value="DeviceMetric.source" />
          <short value="Describes the link to the source Device" />
          <definition value="Describes the link to the  Device that this DeviceMetric belongs to and that contains administrative device information such as manufacturer, serial number, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.parent" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.parent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.parent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.parent">
          <path value="DeviceMetric.parent" />
          <short value="Describes the link to the parent DeviceComponent" />
          <definition value="Describes the link to the  DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceComponent" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.operationalStatus" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.operationalStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.operationalStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.operationalStatus">
          <path value="DeviceMetric.operationalStatus" />
          <short value="on | off | standby | entered-in-error" />
          <definition value="Indicates current operational state of the device. For example: On, Off, Standby, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceMetricOperationalStatus" />
            </extension>
            <strength value="required" />
            <description value="Describes the operational status of the DeviceMetric." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/metric-operational-status" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.color" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.color" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.color" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.color">
          <path value="DeviceMetric.color" />
          <short value="black | red | green | yellow | blue | magenta | cyan | white" />
          <definition value="Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceMetricColor" />
            </extension>
            <strength value="required" />
            <description value="Describes the typical color of representation." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/metric-color" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.category" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.category">
          <path value="DeviceMetric.category" />
          <short value="measurement | setting | calculation | unspecified" />
          <definition value="Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceMetricCategory" />
            </extension>
            <strength value="required" />
            <description value="Describes the category of the metric." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/metric-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.measurementPeriod" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.measurementPeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.measurementPeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.measurementPeriod">
          <path value="DeviceMetric.measurementPeriod" />
          <short value="Describes the measurement repetition time" />
          <definition value="Describes the measurement repetition time. This is not necessarily the same as the update period. The measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour. The update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Timing" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.calibration" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.calibration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.calibration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.calibration">
          <path value="DeviceMetric.calibration" />
          <short value="Describes the calibrations that have been performed or that are required to be performed" />
          <definition value="Describes the calibrations that have been performed or that are required to be performed." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.calibration.type" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.calibration.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.calibration.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.calibration.type">
          <path value="DeviceMetric.calibration.type" />
          <short value="unspecified | offset | gain | two-point" />
          <definition value="Describes the type of the calibration method." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceMetricCalibrationType" />
            </extension>
            <strength value="required" />
            <description value="Describes the type of a metric calibration." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/metric-calibration-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.calibration.state" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.calibration.state" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.calibration.state" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.calibration.state">
          <path value="DeviceMetric.calibration.state" />
          <short value="not-calibrated | calibration-required | calibrated | unspecified" />
          <definition value="Describes the state of the calibration." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DeviceMetricCalibrationState" />
            </extension>
            <strength value="required" />
            <description value="Describes the state of a metric calibration." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/metric-calibration-state" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DeviceMetric.calibration.time" />
    <resource>
      <DataElement>
        <id value="DeviceMetric.calibration.time" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DeviceMetric.calibration.time" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DeviceMetric.calibration.time">
          <path value="DeviceMetric.calibration.time" />
          <short value="Describes the time last calibration has been performed" />
          <definition value="Describes the time last calibration has been performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Flag" />
    <resource>
      <DataElement>
        <id value="Flag" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Flag" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Flag">
          <path value="Flag" />
          <short value="Key information to flag to healthcare providers" />
          <definition value="Prospective warnings of potential issues when providing care to the patient." />
          <alias value="Barriers to Care" />
          <alias value="Alert" />
          <alias value="Warning" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=ISSUE, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.encounter" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Flag.identifier" />
    <resource>
      <DataElement>
        <id value="Flag.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Flag.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Flag.identifier">
          <path value="Flag.identifier" />
          <short value="Business identifier" />
          <definition value="Identifier assigned to the flag for external use (outside the FHIR environment)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Flag.status" />
    <resource>
      <DataElement>
        <id value="Flag.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Flag.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Flag.status">
          <path value="Flag.status" />
          <short value="active | inactive | entered-in-error" />
          <definition value="Supports basic workflow." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FlagStatus" />
            </extension>
            <strength value="required" />
            <description value="Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or entered in error." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/flag-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Flag.category" />
    <resource>
      <DataElement>
        <id value="Flag.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Flag.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Flag.category">
          <path value="Flag.category" />
          <short value="Clinical, administrative, etc." />
          <definition value="Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FlagCategory" />
            </extension>
            <strength value="example" />
            <description value="A general category for flags for filtering/display purposes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/flag-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Flag.code" />
    <resource>
      <DataElement>
        <id value="Flag.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Flag.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Flag.code">
          <path value="Flag.code" />
          <short value="Coded or textual message to display to user" />
          <definition value="The coded value or textual component of the flag to display to the user." />
          <comment value="If non coded, use CodeableConcept.text.  This element should always be included in the narrative." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FlagCode" />
            </extension>
            <strength value="example" />
            <description value="Detail codes identifying specific flagged issues." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/flag-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Flag.subject" />
    <resource>
      <DataElement>
        <id value="Flag.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Flag.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Flag.subject">
          <path value="Flag.subject" />
          <short value="Who/What is flag about?" />
          <definition value="The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role[classCode=PAT | LOCE | ASSIGNED]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Flag.period" />
    <resource>
      <DataElement>
        <id value="Flag.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Flag.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Flag.period">
          <path value="Flag.period" />
          <short value="Time period when flag is active" />
          <definition value="The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Flag.encounter" />
    <resource>
      <DataElement>
        <id value="Flag.encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Flag.encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Flag.encounter">
          <path value="Flag.encounter" />
          <short value="Alert relevant during encounter" />
          <definition value="This alert is only relevant during the encounter." />
          <comment value="If both Flag.encounter and Flag.period are valued, then Flag.period.start shall not be before Encounter.period.start and Flag.period.end shall not be after Encounter.period.end." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Flag.author" />
    <resource>
      <DataElement>
        <id value="Flag.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Flag.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Flag.author">
          <path value="Flag.author" />
          <short value="Flag creator" />
          <definition value="The person, organization or device that created the flag." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem" />
    <resource>
      <DataElement>
        <id value="CodeSystem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem">
          <path value="CodeSystem" />
          <short value="A set of codes drawn from one or more code systems" />
          <definition value="A code system resource specifies a set of codes drawn from one or more code systems." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="csd-1" />
            <severity value="error" />
            <human value="Within a code system definition, all the codes SHALL be unique" />
            <expression value="(concept.code | descendants().concept.code).isDistinct()" />
            <xpath value="count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.terminology" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.url" />
    <resource>
      <DataElement>
        <id value="CodeSystem.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.url">
          <path value="CodeSystem.url" />
          <short value="Logical URI to reference this code system (globally unique) (Coding.system)" />
          <definition value="An absolute URI that is used to identify this code system 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 code system is (or will be) published. The URL SHOULD include the major version of the code system. For more information see [Technical and Business Versions](resource.html#versions). This is used in [Coding]{datatypes.html#Coding}.system." />
          <comment value="Can be a urn:uuid: or a urn:oid:, but real http: addresses are preferred.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the code system to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.identifier" />
    <resource>
      <DataElement>
        <id value="CodeSystem.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.identifier">
          <path value="CodeSystem.identifier" />
          <short value="Additional identifier for the code system" />
          <definition value="A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this code system outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.version" />
    <resource>
      <DataElement>
        <id value="CodeSystem.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.version">
          <path value="CodeSystem.version" />
          <short value="Business version of the code system (Coding.version)" />
          <definition value="The identifier that is used to identify this version of the code system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the code system author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. This is used in [Coding]{datatypes.html#Coding}.version." />
          <comment value="There may be different code system instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the code system with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.name" />
    <resource>
      <DataElement>
        <id value="CodeSystem.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.name">
          <path value="CodeSystem.name" />
          <short value="Name for this code system (computer friendly)" />
          <definition value="A natural language name identifying the code system. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.title" />
    <resource>
      <DataElement>
        <id value="CodeSystem.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.title">
          <path value="CodeSystem.title" />
          <short value="Name for this code system (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the code system." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.status" />
    <resource>
      <DataElement>
        <id value="CodeSystem.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.status">
          <path value="CodeSystem.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this code system. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of code systems that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired code system without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.experimental" />
    <resource>
      <DataElement>
        <id value="CodeSystem.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.experimental">
          <path value="CodeSystem.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this code system is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of code system that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental code system in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level code system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.date" />
    <resource>
      <DataElement>
        <id value="CodeSystem.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.date">
          <path value="CodeSystem.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the code system was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the code system 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 code system. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.publisher" />
    <resource>
      <DataElement>
        <id value="CodeSystem.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.publisher">
          <path value="CodeSystem.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the code system." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the code system is the organization or individual primarily responsible for the maintenance and upkeep of the code system. 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 code system. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the code system.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.contact" />
    <resource>
      <DataElement>
        <id value="CodeSystem.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.contact">
          <path value="CodeSystem.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.description" />
    <resource>
      <DataElement>
        <id value="CodeSystem.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.description">
          <path value="CodeSystem.description" />
          <short value="Natural language description of the code system" />
          <definition value="A free text natural language description of the code system from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the code system 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 code system 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)." />
          <alias value="Scope" />
          <alias value="Purpose" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.useContext" />
    <resource>
      <DataElement>
        <id value="CodeSystem.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.useContext">
          <path value="CodeSystem.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate code system instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.jurisdiction" />
    <resource>
      <DataElement>
        <id value="CodeSystem.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.jurisdiction">
          <path value="CodeSystem.jurisdiction" />
          <short value="Intended jurisdiction for code system (if applicable)" />
          <definition value="A legal or geographic region in which the code system is intended to be used." />
          <comment value="It may be possible for the code system to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.purpose" />
    <resource>
      <DataElement>
        <id value="CodeSystem.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.purpose">
          <path value="CodeSystem.purpose" />
          <short value="Why this code system is defined" />
          <definition value="Explaination of why this code system is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the code system Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this code system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.copyright" />
    <resource>
      <DataElement>
        <id value="CodeSystem.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.copyright">
          <path value="CodeSystem.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system." />
          <comment value="... Sometimes, the copyright differs between the code system and the codes that are included. The copyright statement should clearly differentiate between these when required." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the code system and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.caseSensitive" />
    <resource>
      <DataElement>
        <id value="CodeSystem.caseSensitive" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.caseSensitive" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.caseSensitive">
          <path value="CodeSystem.caseSensitive" />
          <short value="If code comparison is case sensitive" />
          <definition value="If code comparison is case sensitive when codes within this system are compared to each other." />
          <comment value="If this value is missing, then it is not specified whether a code system is case sensitive or not. When the rule is not known, Postel's law should be followed: produce codes with the correct case, and accept codes in any case. This element is primarily provided to support validation software." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.valueSet" />
    <resource>
      <DataElement>
        <id value="CodeSystem.valueSet" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.valueSet" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.valueSet">
          <path value="CodeSystem.valueSet" />
          <short value="Canonical URL for value set with entire code system" />
          <definition value="Canonical URL of value set that contains the entire code system." />
          <comment value="The definition of the value set SHALL include all codes from this code system, and it SHALL be immutable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.hierarchyMeaning" />
    <resource>
      <DataElement>
        <id value="CodeSystem.hierarchyMeaning" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.hierarchyMeaning" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.hierarchyMeaning">
          <path value="CodeSystem.hierarchyMeaning" />
          <short value="grouped-by | is-a | part-of | classified-with" />
          <definition value="The meaning of the hierarchy of concepts." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CodeSystemHierarchyMeaning" />
            </extension>
            <strength value="required" />
            <description value="The meaning of the hierarchy of concepts in a code system" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.compositional" />
    <resource>
      <DataElement>
        <id value="CodeSystem.compositional" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.compositional" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.compositional">
          <path value="CodeSystem.compositional" />
          <short value="If code system defines a post-composition grammar" />
          <definition value="True If code system defines a post-composition grammar." />
          <comment value="Note that the code system resource does not define what the compositional grammar is, only whether or not there is one." />
          <alias value="grammar" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.versionNeeded" />
    <resource>
      <DataElement>
        <id value="CodeSystem.versionNeeded" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.versionNeeded" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.versionNeeded">
          <path value="CodeSystem.versionNeeded" />
          <short value="If definitions are not stable" />
          <definition value="This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system." />
          <comment value="Best practice is that code systems do not redefine concepts, or that if concepts are redefined, a new code system definition is created. But this is not always possible, so some code systems may be defined as 'versionNeeded'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.content" />
    <resource>
      <DataElement>
        <id value="CodeSystem.content" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.content" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.content">
          <path value="CodeSystem.content" />
          <short value="not-present | example | fragment | complete" />
          <definition value="How much of the content of the code system - the concepts and codes it defines - are represented in this resource." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CodeSystemContentMode" />
            </extension>
            <strength value="required" />
            <description value="How much of the content of the code system - the concepts and codes it defines - are represented in a code system resource" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/codesystem-content-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.count" />
    <resource>
      <DataElement>
        <id value="CodeSystem.count" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.count" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.count">
          <path value="CodeSystem.count" />
          <short value="Total concepts in the code system" />
          <definition value="The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts." />
          <comment value="The count of concepts defined in this resource cannot be more than this value, but may be less for several reasons - see the content value." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.filter" />
    <resource>
      <DataElement>
        <id value="CodeSystem.filter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.filter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.filter">
          <path value="CodeSystem.filter" />
          <short value="Filter that can be used in a value set" />
          <definition value="A filter that can be used in a value set compose statement when selecting concepts using a filter." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.filter.code" />
    <resource>
      <DataElement>
        <id value="CodeSystem.filter.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.filter.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.filter.code">
          <path value="CodeSystem.filter.code" />
          <short value="Code that identifies the filter" />
          <definition value="The code that identifies this filter when it is used in the instance." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.filter.description" />
    <resource>
      <DataElement>
        <id value="CodeSystem.filter.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.filter.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.filter.description">
          <path value="CodeSystem.filter.description" />
          <short value="How or why the filter is used" />
          <definition value="A description of how or why the filter is used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.filter.operator" />
    <resource>
      <DataElement>
        <id value="CodeSystem.filter.operator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.filter.operator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.filter.operator">
          <path value="CodeSystem.filter.operator" />
          <short value="Operators that can be used with filter" />
          <definition value="A list of operators that can be used with the filter." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FilterOperator" />
            </extension>
            <strength value="required" />
            <description value="The kind of operation to perform as a part of a property based filter." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/filter-operator" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.filter.value" />
    <resource>
      <DataElement>
        <id value="CodeSystem.filter.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.filter.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.filter.value">
          <path value="CodeSystem.filter.value" />
          <short value="What to use for the value" />
          <definition value="A description of what the value for the filter should be." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.property" />
    <resource>
      <DataElement>
        <id value="CodeSystem.property" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.property" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.property">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Property" />
          </extension>
          <path value="CodeSystem.property" />
          <short value="Additional information supplied about each concept" />
          <definition value="A property defines an additional slot through which additional information can be provided about a concept." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.property.code" />
    <resource>
      <DataElement>
        <id value="CodeSystem.property.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.property.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.property.code">
          <path value="CodeSystem.property.code" />
          <short value="Identifies the property on the concepts, and when referred to in operations" />
          <definition value="A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.property.uri" />
    <resource>
      <DataElement>
        <id value="CodeSystem.property.uri" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.property.uri" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.property.uri">
          <path value="CodeSystem.property.uri" />
          <short value="Formal identifier for the property" />
          <definition value="Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.property.description" />
    <resource>
      <DataElement>
        <id value="CodeSystem.property.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.property.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.property.description">
          <path value="CodeSystem.property.description" />
          <short value="Why the property is defined, and/or what it conveys" />
          <definition value="A description of the property- why it is defined, and how its value might be used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.property.type" />
    <resource>
      <DataElement>
        <id value="CodeSystem.property.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.property.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.property.type">
          <path value="CodeSystem.property.type" />
          <short value="code | Coding | string | integer | boolean | dateTime" />
          <definition value="The type of the property value. Properties of type &quot;code&quot; contain a code defined by the code system (e.g. a reference to anotherr defined concept)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PropertyType" />
            </extension>
            <strength value="required" />
            <description value="The type of a property value" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/concept-property-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ConceptDefinition" />
          </extension>
          <path value="CodeSystem.concept" />
          <short value="Concepts in the code system" />
          <definition value="Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meaning of the hierarchical relationships are." />
          <comment value="If this is empty, it means that the code system resource does not represent the content of the code system." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.code" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.code">
          <path value="CodeSystem.concept.code" />
          <short value="Code that identifies concept" />
          <definition value="A code - a text symbol - that uniquely identifies the concept within the code system." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.display" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.display">
          <path value="CodeSystem.concept.display" />
          <short value="Text to display to the user" />
          <definition value="A human readable string that is the recommended default way to present this concept to a user." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.definition" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.definition">
          <path value="CodeSystem.concept.definition" />
          <short value="Formal definition" />
          <definition value="The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.designation" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.designation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.designation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.designation">
          <path value="CodeSystem.concept.designation" />
          <short value="Additional representations for the concept" />
          <definition value="Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc." />
          <requirements value="Many concept definition systems support multiple representations, in multiple languages, and for multiple purposes." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.designation.language" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.designation.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.designation.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.designation.language">
          <path value="CodeSystem.concept.designation.language" />
          <short value="Human language of the designation" />
          <definition value="The language this designation is defined for." />
          <comment value="In the absence of a language, the resource language applies." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.designation.use" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.designation.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.designation.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.designation.use">
          <path value="CodeSystem.concept.designation.use" />
          <short value="Details how this designation would be used" />
          <definition value="A code that details how this designation would be used." />
          <comment value="If no use is provided, the designation can be assumed to be suitable for general display to a human user." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConceptDesignationUse" />
            </extension>
            <strength value="extensible" />
            <description value="Details of how a designation would be used." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/designation-use" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.designation.value" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.designation.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.designation.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.designation.value">
          <path value="CodeSystem.concept.designation.value" />
          <short value="The text value for this designation" />
          <definition value="The text value for this designation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.property" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.property" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.property" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.property">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ConceptProperty" />
          </extension>
          <path value="CodeSystem.concept.property" />
          <short value="Property value for the concept" />
          <definition value="A property value for this concept." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.property.code" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.property.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.property.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.property.code">
          <path value="CodeSystem.concept.property.code" />
          <short value="Reference to CodeSystem.property.code" />
          <definition value="A code that is a reference to CodeSystem.property.code." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.property.valueX" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.property.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.property.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.property.value[x]">
          <path value="CodeSystem.concept.property.value[x]" />
          <short value="Value of the property for this concept" />
          <definition value="The value of this property." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CodeSystem.concept.concept" />
    <resource>
      <DataElement>
        <id value="CodeSystem.concept.concept" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CodeSystem.concept.concept" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CodeSystem.concept.concept">
          <path value="CodeSystem.concept.concept" />
          <short value="Child Concepts (is-a/contains/categorizes)" />
          <definition value="Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) - see hierarchyMeaning." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#CodeSystem.concept" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AppointmentResponse" />
    <resource>
      <DataElement>
        <id value="AppointmentResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AppointmentResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AppointmentResponse">
          <path value="AppointmentResponse" />
          <short value="A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection" />
          <definition value="A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="apr-1" />
            <severity value="error" />
            <human value="Either the participantType or actor must be specified" />
            <expression value="participantType.exists() or actor.exists()" />
            <xpath value="(exists(f:participantType) or exists(f:actor))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Appointment[@moodCode &amp;lt;= 'PRMS']" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="VEVENT" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.scheduling" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AppointmentResponse.identifier" />
    <resource>
      <DataElement>
        <id value="AppointmentResponse.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AppointmentResponse.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AppointmentResponse.identifier">
          <path value="AppointmentResponse.identifier" />
          <short value="External Ids for this item" />
          <definition value="This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="UID" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AppointmentResponse.appointment" />
    <resource>
      <DataElement>
        <id value="AppointmentResponse.appointment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AppointmentResponse.appointment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AppointmentResponse.appointment">
          <path value="AppointmentResponse.appointment" />
          <short value="Appointment this response relates to" />
          <definition value="Appointment that this response is replying to." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Appointment" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="scheduleRequest.ActAppointmentRequest[@moodCode &amp;lt;= 'ARQ']" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AppointmentResponse.start" />
    <resource>
      <DataElement>
        <id value="AppointmentResponse.start" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AppointmentResponse.start" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AppointmentResponse.start">
          <path value="AppointmentResponse.start" />
          <short value="Time from appointment, or requested new start time" />
          <definition value="Date/Time that the appointment is to take place, or requested new start time." />
          <comment value="This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the start time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime.low" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AppointmentResponse.end" />
    <resource>
      <DataElement>
        <id value="AppointmentResponse.end" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AppointmentResponse.end" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AppointmentResponse.end">
          <path value="AppointmentResponse.end" />
          <short value="Time from appointment, or requested new end time" />
          <definition value="This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime.high" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AppointmentResponse.participantType" />
    <resource>
      <DataElement>
        <id value="AppointmentResponse.participantType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AppointmentResponse.participantType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AppointmentResponse.participantType">
          <path value="AppointmentResponse.participantType" />
          <short value="Role of participant in the appointment" />
          <definition value="Role of participant in the appointment." />
          <comment value="The role of the participant can be used to declare what the actor will be doing in the scope of the referenced appointment.&#xD;&#xD;If the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.&#xD;&#xD;This value SHALL be the same as specified on the referenced Appointment so that they can be matched, and subsequently updated." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ParticipantType" />
            </extension>
            <strength value="extensible" />
            <description value="Role of participant in encounter." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-participant-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="(performer | reusableDevice | subject | location).@typeCode" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AppointmentResponse.actor" />
    <resource>
      <DataElement>
        <id value="AppointmentResponse.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AppointmentResponse.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AppointmentResponse.actor">
          <path value="AppointmentResponse.actor" />
          <short value="Person, Location/HealthcareService or Device" />
          <definition value="A Person, Location/HealthcareService or Device that is participating in the appointment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3-Patient ID List" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="performer.person | reusableDevice.manufacturedDevice | subject.patient | location.serviceDeliveryLocation" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AppointmentResponse.participantStatus" />
    <resource>
      <DataElement>
        <id value="AppointmentResponse.participantStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AppointmentResponse.participantStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AppointmentResponse.participantStatus">
          <path value="AppointmentResponse.participantStatus" />
          <short value="accepted | declined | tentative | in-process | completed | needs-action | entered-in-error" />
          <definition value="Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty." />
          <comment value="This element is labeled as a modifier because the status contains the code entered-in-error that marks the participant as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ParticipantStatus" />
            </extension>
            <strength value="required" />
            <description value="The Participation status of an appointment." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/participationstatus" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="(performer | reusableDevice | subject | location).statusCode" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="ATTENDEE;CN=&quot;Brian Postlethwaite&quot;;RSVP=TRUE:mailto:BPostlethwaite@data.com (rsvpparam | partstatparam)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AppointmentResponse.comment" />
    <resource>
      <DataElement>
        <id value="AppointmentResponse.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AppointmentResponse.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AppointmentResponse.comment">
          <path value="AppointmentResponse.comment" />
          <short value="Additional comments" />
          <definition value="Additional comments about the appointment." />
          <comment value="This comment is particularly important when the responder is declining, tentatively accepting or requesting another time to indicate the reasons why." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="COMMENT" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap" />
    <resource>
      <DataElement>
        <id value="StructureMap" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap">
          <path value="StructureMap" />
          <short value="A Map of relationships between 2 structures that can be used to transform data" />
          <definition value="A Map of relationships between 2 structures that can be used to transform data." />
          <alias value="Template" />
          <alias value="Profile" />
          <min value="1" />
          <max value="1" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.content" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.url" />
    <resource>
      <DataElement>
        <id value="StructureMap.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.url">
          <path value="StructureMap.url" />
          <short value="Logical URI to reference this structure map (globally unique)" />
          <definition value="An absolute URI that is used to identify this structure map 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 structure map is (or will be) published. The URL SHOULD include the major version of the structure map. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the structure map to be referenced by a single globally unique identifier." />
          <alias value="url" />
          <alias value="authoritative-url" />
          <alias value="destination" />
          <alias value="identity" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.identifier" />
    <resource>
      <DataElement>
        <id value="StructureMap.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.identifier">
          <path value="StructureMap.identifier" />
          <short value="Additional identifier for the structure map" />
          <definition value="A formal identifier that is used to identify this structure map when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this structure map outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.version" />
    <resource>
      <DataElement>
        <id value="StructureMap.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.version">
          <path value="StructureMap.version" />
          <short value="Business version of the structure map" />
          <definition value="The identifier that is used to identify this version of the structure map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the structure map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different structure map instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the structure map with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.name" />
    <resource>
      <DataElement>
        <id value="StructureMap.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.name">
          <path value="StructureMap.name" />
          <short value="Name for this structure map (computer friendly)" />
          <definition value="A natural language name identifying the structure map. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.title" />
    <resource>
      <DataElement>
        <id value="StructureMap.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.title">
          <path value="StructureMap.title" />
          <short value="Name for this structure map (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the structure map." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.status" />
    <resource>
      <DataElement>
        <id value="StructureMap.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.status">
          <path value="StructureMap.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this structure map. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of structure maps that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired structure map without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.experimental" />
    <resource>
      <DataElement>
        <id value="StructureMap.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.experimental">
          <path value="StructureMap.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this structure map is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of structure map that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental structure map in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level structure map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.date" />
    <resource>
      <DataElement>
        <id value="StructureMap.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.date">
          <path value="StructureMap.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the structure map was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the structure map 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 structure map. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.publisher" />
    <resource>
      <DataElement>
        <id value="StructureMap.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.publisher">
          <path value="StructureMap.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the structure map." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the structure map is the organization or individual primarily responsible for the maintenance and upkeep of the structure map. 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 structure map. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the structure map.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.contact" />
    <resource>
      <DataElement>
        <id value="StructureMap.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.contact">
          <path value="StructureMap.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.description" />
    <resource>
      <DataElement>
        <id value="StructureMap.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.description">
          <path value="StructureMap.description" />
          <short value="Natural language description of the structure map" />
          <definition value="A free text natural language description of the structure map from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the structure map 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 structure map 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="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.useContext" />
    <resource>
      <DataElement>
        <id value="StructureMap.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.useContext">
          <path value="StructureMap.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate structure map instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.jurisdiction" />
    <resource>
      <DataElement>
        <id value="StructureMap.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.jurisdiction">
          <path value="StructureMap.jurisdiction" />
          <short value="Intended jurisdiction for structure map (if applicable)" />
          <definition value="A legal or geographic region in which the structure map is intended to be used." />
          <comment value="It may be possible for the structure map to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.purpose" />
    <resource>
      <DataElement>
        <id value="StructureMap.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.purpose">
          <path value="StructureMap.purpose" />
          <short value="Why this structure map is defined" />
          <definition value="Explaination of why this structure map is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the structure map Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this structure map." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.copyright" />
    <resource>
      <DataElement>
        <id value="StructureMap.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.copyright">
          <path value="StructureMap.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the structure map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the structure map." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the structure map and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.structure" />
    <resource>
      <DataElement>
        <id value="StructureMap.structure" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.structure" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.structure">
          <path value="StructureMap.structure" />
          <short value="Structure Definition used by this map" />
          <definition value="A structure definition used by this map. The structure definition may describe instances that are converted, or the instances that are produced." />
          <comment value="It is not necessary for a structure map to identify any dependent structures, though not losting them may restrict its usefulness." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.structure.url" />
    <resource>
      <DataElement>
        <id value="StructureMap.structure.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.structure.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.structure.url">
          <path value="StructureMap.structure.url" />
          <short value="Canonical URL for structure definition" />
          <definition value="The canonical URL that identifies the structure." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.structure.mode" />
    <resource>
      <DataElement>
        <id value="StructureMap.structure.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.structure.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.structure.mode">
          <path value="StructureMap.structure.mode" />
          <short value="source | queried | target | produced" />
          <definition value="How the referenced structure is used in this mapping." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="StructureMapModelMode" />
            </extension>
            <strength value="required" />
            <description value="How the referenced structure is used in this mapping" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/map-model-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.structure.alias" />
    <resource>
      <DataElement>
        <id value="StructureMap.structure.alias" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.structure.alias" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.structure.alias">
          <path value="StructureMap.structure.alias" />
          <short value="Name for type in this map" />
          <definition value="The name used for this type in the map." />
          <comment value="This is needed if both types have the same name (e.g. version conversion)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.structure.documentation" />
    <resource>
      <DataElement>
        <id value="StructureMap.structure.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.structure.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.structure.documentation">
          <path value="StructureMap.structure.documentation" />
          <short value="Documentation on use of structure" />
          <definition value="Documentation that describes how the structure is used in the mapping." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.import" />
    <resource>
      <DataElement>
        <id value="StructureMap.import" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.import" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.import">
          <path value="StructureMap.import" />
          <short value="Other maps used by this map (canonical URLs)" />
          <definition value="Other maps used by this map (canonical URLs)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group" />
    <resource>
      <DataElement>
        <id value="StructureMap.group" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group">
          <path value="StructureMap.group" />
          <short value="Named sections for reader convenience" />
          <definition value="Organizes the mapping into managable chunks for human review/ease of maintenance." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.name" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.name">
          <path value="StructureMap.group.name" />
          <short value="Human-readable label" />
          <definition value="A unique name for the group for the convenience of human readers." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.extends" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.extends" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.extends" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.extends">
          <path value="StructureMap.group.extends" />
          <short value="Another group that this group adds rules to" />
          <definition value="Another group that this group adds rules to." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.typeMode" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.typeMode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.typeMode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.typeMode">
          <path value="StructureMap.group.typeMode" />
          <short value="none | types | type-and-types" />
          <definition value="If this is the default rule set to apply for thie source type, or this combination of types." />
          <comment value="Not applicable if the underlying model is untyped. There can only be one default mapping for any particular type combination." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="StructureMapGroupTypeMode" />
            </extension>
            <strength value="required" />
            <description value="If this is the default rule set to apply for the source type, or this combination of types" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/map-group-type-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.documentation" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.documentation">
          <path value="StructureMap.group.documentation" />
          <short value="Additional description/explaination for group" />
          <definition value="Additional supporting documentation that explains the purpose of the group and the types of mappings within it." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.input" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.input" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.input" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.input">
          <path value="StructureMap.group.input" />
          <short value="Named instance provided when invoking the map" />
          <definition value="A name assigned to an instance of data. The instance must be provided when the mapping is invoked." />
          <comment value="If no inputs are named, then the entry mappings are type based." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.input.name" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.input.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.input.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.input.name">
          <path value="StructureMap.group.input.name" />
          <short value="Name for this instance of data" />
          <definition value="Name for this instance of data." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.input.type" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.input.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.input.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.input.type">
          <path value="StructureMap.group.input.type" />
          <short value="Type for this instance of data" />
          <definition value="Type for this instance of data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.input.mode" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.input.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.input.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.input.mode">
          <path value="StructureMap.group.input.mode" />
          <short value="source | target" />
          <definition value="Mode for this instance of data." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="StructureMapInputMode" />
            </extension>
            <strength value="required" />
            <description value="Mode for this instance of data" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/map-input-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.input.documentation" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.input.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.input.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.input.documentation">
          <path value="StructureMap.group.input.documentation" />
          <short value="Documentation for this instance of data" />
          <definition value="Documentation for this instance of data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule">
          <path value="StructureMap.group.rule" />
          <short value="Transform Rule from source to target" />
          <definition value="Transform Rule from source to target." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.name" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.name">
          <path value="StructureMap.group.rule.name" />
          <short value="Name of the rule for internal references" />
          <definition value="Name of the rule for internal references." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source">
          <path value="StructureMap.group.rule.source" />
          <short value="Source inputs to the mapping" />
          <definition value="Source inputs to the mapping." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.context" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.context">
          <path value="StructureMap.group.rule.source.context" />
          <short value="Type or variable this rule applies to" />
          <definition value="Type or variable this rule applies to." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.min" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.min" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.min" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.min">
          <path value="StructureMap.group.rule.source.min" />
          <short value="Specified minimum cardinality" />
          <definition value="Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.max" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.max" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.max" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.max">
          <path value="StructureMap.group.rule.source.max" />
          <short value="Specified maximum cardinality (number or *)" />
          <definition value="Specified maximum cardinality for the element - a number or a &quot;*&quot;. This is optional; if present, it acts an implicit check on the input content (* just serves as documentation; it's the default value)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.type" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.type">
          <path value="StructureMap.group.rule.source.type" />
          <short value="Rule only applies if source has this type" />
          <definition value="Specified type for the element. This works as a condition on the mapping - use for polymorphic elements." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.defaultValueX" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.defaultValueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.defaultValueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.defaultValue[x]">
          <path value="StructureMap.group.rule.source.defaultValue[x]" />
          <short value="Default value if no value exists" />
          <definition value="A value to use if there is no existing value in the source object." />
          <comment value="If there's a default value on an item that can repeat, it will only be used once." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="code" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="instant" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="markdown" />
          </type>
          <type>
            <code value="oid" />
          </type>
          <type>
            <code value="positiveInt" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="unsignedInt" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Annotation" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="ContactPoint" />
          </type>
          <type>
            <code value="Count" />
          </type>
          <type>
            <code value="Distance" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="HumanName" />
          </type>
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Money" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Reference" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Signature" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <type>
            <code value="Meta" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.element" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.element" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.element" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.element">
          <path value="StructureMap.group.rule.source.element" />
          <short value="Optional field for this source" />
          <definition value="Optional field for this source." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.listMode" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.listMode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.listMode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.listMode">
          <path value="StructureMap.group.rule.source.listMode" />
          <short value="first | not_first | last | not_last | only_one" />
          <definition value="How to handle the list mode for this element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="StructureMapSourceListMode" />
            </extension>
            <strength value="required" />
            <description value="If field is a list, how to manage the source" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/map-source-list-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.variable" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.variable" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.variable" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.variable">
          <path value="StructureMap.group.rule.source.variable" />
          <short value="Named context for field, if a field is specified" />
          <definition value="Named context for field, if a field is specified." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.condition" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.condition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.condition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.condition">
          <path value="StructureMap.group.rule.source.condition" />
          <short value="FHIRPath expression  - must be true or the rule does not apply" />
          <definition value="FHIRPath expression  - must be true or the rule does not apply." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.check" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.source.check" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.source.check" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.source.check">
          <path value="StructureMap.group.rule.source.check" />
          <short value="FHIRPath expression  - must be true or the mapping engine throws an error instead of completing" />
          <definition value="FHIRPath expression  - must be true or the mapping engine throws an error instead of completing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target">
          <path value="StructureMap.group.rule.target" />
          <short value="Content to create because of this mapping rule" />
          <definition value="Content to create because of this mapping rule." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="smp-2" />
            <severity value="error" />
            <human value="Must have a contextType if you have a context" />
            <expression value="context.exists() implies contextType.exists()" />
            <xpath value="not(f:context) or (f:contextType)" />
          </constraint>
          <constraint>
            <key value="smp-1" />
            <severity value="error" />
            <human value="Can only have a element if you have a context" />
            <expression value="element.exists() implies context.exists()" />
            <xpath value="not(f:element) or (f:context)" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.context" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target.context">
          <path value="StructureMap.group.rule.target.context" />
          <short value="Type or variable this rule applies to" />
          <definition value="Type or variable this rule applies to." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.contextType" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target.contextType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.contextType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target.contextType">
          <path value="StructureMap.group.rule.target.contextType" />
          <short value="type | variable" />
          <definition value="How to interpret the context." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="StructureMapContextType" />
            </extension>
            <strength value="required" />
            <description value="How to interpret the context" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/map-context-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.element" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target.element" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.element" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target.element">
          <path value="StructureMap.group.rule.target.element" />
          <short value="Field to create in the context" />
          <definition value="Field to create in the context." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.variable" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target.variable" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.variable" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target.variable">
          <path value="StructureMap.group.rule.target.variable" />
          <short value="Named context for field, if desired, and a field is specified" />
          <definition value="Named context for field, if desired, and a field is specified." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.listMode" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target.listMode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.listMode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target.listMode">
          <path value="StructureMap.group.rule.target.listMode" />
          <short value="first | share | last | collate" />
          <definition value="If field is a list, how to manage the list." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="StructureMapTargetListMode" />
            </extension>
            <strength value="required" />
            <description value="If field is a list, how to manage the production" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/map-target-list-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.listRuleId" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target.listRuleId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.listRuleId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target.listRuleId">
          <path value="StructureMap.group.rule.target.listRuleId" />
          <short value="Internal rule reference for shared list items" />
          <definition value="Internal rule reference for shared list items." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.transform" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target.transform" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.transform" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target.transform">
          <path value="StructureMap.group.rule.target.transform" />
          <short value="create | copy +" />
          <definition value="How the data is copied / created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="StructureMapTransform" />
            </extension>
            <strength value="required" />
            <description value="How data is copied/created" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/map-transform" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.parameter" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target.parameter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.parameter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target.parameter">
          <path value="StructureMap.group.rule.target.parameter" />
          <short value="Parameters to the transform" />
          <definition value="Parameters to the transform." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.parameter.valueX" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.target.parameter.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.target.parameter.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.target.parameter.value[x]">
          <path value="StructureMap.group.rule.target.parameter.value[x]" />
          <short value="Parameter value - variable or literal" />
          <definition value="Parameter value - variable or literal." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.rule" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.rule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.rule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.rule">
          <path value="StructureMap.group.rule.rule" />
          <short value="Rules contained in this rule" />
          <definition value="Rules contained in this rule." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#StructureMap.group.rule" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.dependent" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.dependent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.dependent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.dependent">
          <path value="StructureMap.group.rule.dependent" />
          <short value="Which other rules to apply in the context of this rule" />
          <definition value="Which other rules to apply in the context of this rule." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.dependent.name" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.dependent.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.dependent.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.dependent.name">
          <path value="StructureMap.group.rule.dependent.name" />
          <short value="Name of a rule or group to apply" />
          <definition value="Name of a rule or group to apply." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.dependent.variable" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.dependent.variable" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.dependent.variable" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.dependent.variable">
          <path value="StructureMap.group.rule.dependent.variable" />
          <short value="Variable to pass to the rule or group" />
          <definition value="Variable to pass to the rule or group." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.documentation" />
    <resource>
      <DataElement>
        <id value="StructureMap.group.rule.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/StructureMap.group.rule.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="StructureMap.group.rule.documentation">
          <path value="StructureMap.group.rule.documentation" />
          <short value="Documentation for this instance of data" />
          <definition value="Documentation for this instance of data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent" />
    <resource>
      <DataElement>
        <id value="AdverseEvent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent">
          <path value="AdverseEvent" />
          <short value="Medical care, research study or other healthcare event causing physical injury" />
          <definition value="Actual or  potential/avoided event causing unintended physical injury resulting from or contributed to by medical care, a research study or other healthcare setting factors that requires additional monitoring, treatment, or hospitalization, or that results in death." />
          <alias value="AE" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.identifier" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.identifier">
          <path value="AdverseEvent.identifier" />
          <short value="Business identifier for the event" />
          <definition value="The identifier(s) of this adverse event that are assigned by business processes and/or used to refer to it when a direct URL reference to the resource itsefl is not appropriate." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.category" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.category">
          <path value="AdverseEvent.category" />
          <short value="AE | PAE &#xD;An adverse event is an event that caused harm to a patient,  an adverse reaction is a something that is a subject-specific event that is a result of an exposure to a medication, food, device or environmental substance, a potential adverse event is something that occurred and that could have caused harm to a patient but did not" />
          <definition value="The type of event which is important to characterize what occurred and caused harm to the subject, or had the potential to cause harm to the subject." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdverseEventCategory" />
            </extension>
            <strength value="required" />
            <description value="Overall categorization of the event, e.g. real or potential" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adverse-event-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.type" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.type">
          <path value="AdverseEvent.type" />
          <short value="actual | potential" />
          <definition value="This element defines the specific type of event that occurred or that was prevented from occurring." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdverseEventType" />
            </extension>
            <strength value="example" />
            <description value="Detailed type of event" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adverse-event-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.subject" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.subject">
          <path value="AdverseEvent.subject" />
          <short value="Subject or group impacted by event" />
          <definition value="This subject or group impacted by the event.  With a prospective adverse event, there will be no subject as the adverse event was prevented." />
          <alias value="patient" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ResearchSubject" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.date" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.date">
          <path value="AdverseEvent.date" />
          <short value="When the event occurred" />
          <definition value="The date (and perhaps time) when the adverse event occurred." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.reaction" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.reaction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.reaction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.reaction">
          <path value="AdverseEvent.reaction" />
          <short value="Adverse Reaction Events linked to exposure to substance" />
          <definition value="Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.location" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.location">
          <path value="AdverseEvent.location" />
          <short value="Location where adverse event occurred" />
          <definition value="The information about where the adverse event occurred." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.seriousness" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.seriousness" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.seriousness" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.seriousness">
          <path value="AdverseEvent.seriousness" />
          <short value="Mild | Moderate | Severe" />
          <definition value="Describes the seriousness or severity of the adverse event." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdverseEventSeriousness" />
            </extension>
            <strength value="example" />
            <description value="Overall seriousness of this event for the patient" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adverse-event-seriousness" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.outcome" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.outcome">
          <path value="AdverseEvent.outcome" />
          <short value="resolved | recovering | ongoing | resolvedWithSequelae | fatal | unknown" />
          <definition value="Describes the type of outcome from the adverse event." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdverseEventOutcome" />
            </extension>
            <strength value="required" />
            <description value="TODO (and should this be required?)" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adverse-event-outcome" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.recorder" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.recorder" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.recorder" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.recorder">
          <path value="AdverseEvent.recorder" />
          <short value="Who recorded the adverse event" />
          <definition value="Information on who recorded the adverse event.  May be the patient or a practitioner." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.eventParticipant" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.eventParticipant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.eventParticipant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.eventParticipant">
          <path value="AdverseEvent.eventParticipant" />
          <short value="Who  was involved in the adverse event or the potential adverse event" />
          <definition value="Parties that may or should contribute or have contributed information to the Act. Such information includes information leading to the decision to perform the Act and how to perform the Act (e.g. consultant), information that the Act itself seeks to reveal (e.g. informant of clinical history), or information about what Act was performed (e.g. informant witness)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.description" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.description">
          <path value="AdverseEvent.description" />
          <short value="Description of the adverse event" />
          <definition value="Describes the adverse event in text." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.suspectEntity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.suspectEntity">
          <path value="AdverseEvent.suspectEntity" />
          <short value="The suspected agent causing the adverse event" />
          <definition value="Describes the entity that is suspected to have caused the adverse event." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.instance" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.suspectEntity.instance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.instance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.suspectEntity.instance">
          <path value="AdverseEvent.suspectEntity.instance" />
          <short value="Refers to the specific entity that caused the adverse event" />
          <definition value="Identifies the actual instance of what caused the adverse event.  May be a substance, medication, medication administration, medication statement or a device." />
          <alias value="Substance or Medication or Device" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causality" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.suspectEntity.causality" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causality" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.suspectEntity.causality">
          <path value="AdverseEvent.suspectEntity.causality" />
          <short value="causality1 | causality2" />
          <definition value="causality1 | causality2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdverseEventCausality" />
            </extension>
            <strength value="required" />
            <description value="TODO" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adverse-event-causality" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityAssessment" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.suspectEntity.causalityAssessment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityAssessment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.suspectEntity.causalityAssessment">
          <path value="AdverseEvent.suspectEntity.causalityAssessment" />
          <short value="assess1 | assess2" />
          <definition value="assess1 | assess2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdverseEventCausalityAssessment" />
            </extension>
            <strength value="example" />
            <description value="TODO" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adverse-event-causality-assess" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityProductRelatedness" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.suspectEntity.causalityProductRelatedness" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityProductRelatedness" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.suspectEntity.causalityProductRelatedness">
          <path value="AdverseEvent.suspectEntity.causalityProductRelatedness" />
          <short value="AdverseEvent.suspectEntity.causalityProductRelatedness" />
          <definition value="AdverseEvent.suspectEntity.causalityProductRelatedness." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityMethod" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.suspectEntity.causalityMethod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityMethod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.suspectEntity.causalityMethod">
          <path value="AdverseEvent.suspectEntity.causalityMethod" />
          <short value="method1 | method2" />
          <definition value="method1 | method2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdverseEventCausalityMethod" />
            </extension>
            <strength value="example" />
            <description value="TODO" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adverse-event-causality-method" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityAuthor" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.suspectEntity.causalityAuthor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityAuthor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.suspectEntity.causalityAuthor">
          <path value="AdverseEvent.suspectEntity.causalityAuthor" />
          <short value="AdverseEvent.suspectEntity.causalityAuthor" />
          <definition value="AdverseEvent.suspectEntity.causalityAuthor." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityResult" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.suspectEntity.causalityResult" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.suspectEntity.causalityResult" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.suspectEntity.causalityResult">
          <path value="AdverseEvent.suspectEntity.causalityResult" />
          <short value="result1 | result2" />
          <definition value="result1 | result2." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdverseEventCausalityResult" />
            </extension>
            <strength value="example" />
            <description value="TODO" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adverse-event-causality-result" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.subjectMedicalHistory" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.subjectMedicalHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.subjectMedicalHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.subjectMedicalHistory">
          <path value="AdverseEvent.subjectMedicalHistory" />
          <short value="AdverseEvent.subjectMedicalHistory" />
          <definition value="AdverseEvent.subjectMedicalHistory." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.referenceDocument" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.referenceDocument" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.referenceDocument" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.referenceDocument">
          <path value="AdverseEvent.referenceDocument" />
          <short value="AdverseEvent.referenceDocument" />
          <definition value="AdverseEvent.referenceDocument." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AdverseEvent.study" />
    <resource>
      <DataElement>
        <id value="AdverseEvent.study" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AdverseEvent.study" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AdverseEvent.study">
          <path value="AdverseEvent.study" />
          <short value="AdverseEvent.study" />
          <definition value="AdverseEvent.study." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ResearchStudy" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse">
          <path value="GuidanceResponse" />
          <short value="The formal response to a guidance request" />
          <definition value="A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.requestId" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.requestId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.requestId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.requestId">
          <path value="GuidanceResponse.requestId" />
          <short value="The id of the request associated with this response, if any" />
          <definition value="The id of the request associated with this response. If an id was given as part of the request, it will be reproduced here to enable the requester to more easily identify the response in a multi-request scenario." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.identifier" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.identifier">
          <path value="GuidanceResponse.identifier" />
          <short value="Business identifier" />
          <definition value="Allows a service to provide a unique, business identifier for the response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.module" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.module" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.module" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.module">
          <path value="GuidanceResponse.module" />
          <short value="A reference to a knowledge module" />
          <definition value="A reference to the knowledge module that was invoked." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceDefinition" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.status" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.status">
          <path value="GuidanceResponse.status" />
          <short value="success | data-requested | data-required | in-progress | failure | entered-in-error" />
          <definition value="The status of the response. If the evaluation is completed successfully, the status will indicate success. However, in order to complete the evaluation, the engine may require more information. In this case, the status will be data-required, and the response will contain a description of the additional required information. If the evaluation completed successfully, but the engine determines that a potentially more accurate response could be provided if more data was available, the status will be data-requested, and the response will contain a description of the additional requested information." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GuidanceResponseStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of a guidance response" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/guidance-response-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.subject" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.subject">
          <path value="GuidanceResponse.subject" />
          <short value="Patient the request was performed for" />
          <definition value="The patient for which the request was processed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.context" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.context">
          <path value="GuidanceResponse.context" />
          <short value="Encounter or Episode during which the response was returned" />
          <definition value="Allows the context of the guidance response to be provided if available. In a service context, this would likely be unavailable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.occurrenceDateTime" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.occurrenceDateTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.occurrenceDateTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.occurrenceDateTime">
          <path value="GuidanceResponse.occurrenceDateTime" />
          <short value="When the guidance response was processed" />
          <definition value="Indicates when the guidance response was processed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.performer" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.performer">
          <path value="GuidanceResponse.performer" />
          <short value="Device returning the guidance" />
          <definition value="Provides a reference to the device that performed the guidance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.reasonX" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.reasonX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.reasonX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.reason[x]">
          <path value="GuidanceResponse.reason[x]" />
          <short value="Reason for the response" />
          <definition value="Indicates the reason the request was initiated. This is typically provided as a parameter to the evaluation and echoed by the service, although for some use cases, such as subscription- or event-based scenarios, it may provide an indication of the cause for the response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.note" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.note">
          <path value="GuidanceResponse.note" />
          <short value="Additional notes about the response" />
          <definition value="Provides a mechanism to communicate additional information about the response." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.evaluationMessage" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.evaluationMessage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.evaluationMessage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.evaluationMessage">
          <path value="GuidanceResponse.evaluationMessage" />
          <short value="Messages resulting from the evaluation of the artifact or artifacts" />
          <definition value="Messages resulting from the evaluation of the artifact or artifacts. As part of evaluating the request, the engine may produce informational or warning messages. These messages will be provided by this element." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationOutcome" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.outputParameters" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.outputParameters" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.outputParameters" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.outputParameters">
          <path value="GuidanceResponse.outputParameters" />
          <short value="The output parameters of the evaluation, if any" />
          <definition value="The output parameters of the evaluation, if any. Many modules will result in the return of specific resources such as procedure or communication requests that are returned as part of the operation result. However, modules may define specific outputs that would be returned as the result of the evaluation, and these would be returned in this element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Parameters" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.result" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.result" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.result" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.result">
          <path value="GuidanceResponse.result" />
          <short value="Proposed actions, if any" />
          <definition value="The actions, if any, produced by the evaluation of the artifact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RequestGroup" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/GuidanceResponse.dataRequirement" />
    <resource>
      <DataElement>
        <id value="GuidanceResponse.dataRequirement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/GuidanceResponse.dataRequirement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="GuidanceResponse.dataRequirement">
          <path value="GuidanceResponse.dataRequirement" />
          <short value="Additional required data" />
          <definition value="If the evaluation could not be completed due to lack of information, or additional information would potentially result in a more accurate response, this element will a description of the data required in order to proceed with the evaluation. A subsequent request to the service should include this data." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="DataRequirement" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation" />
    <resource>
      <DataElement>
        <id value="Observation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation">
          <path value="Observation" />
          <short value="Measurements and simple assertions" />
          <definition value="Measurements and simple assertions made about a patient, device or other subject." />
          <comment value="Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as lab reports, etc." />
          <alias value="Vital Signs" />
          <alias value="Measurement" />
          <alias value="Results" />
          <alias value="Tests" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="obs-7" />
            <severity value="error" />
            <human value="If code is the same as a component code then the value element associated with the code SHALL NOT be present" />
            <expression value="value.empty() or code!=component.code" />
            <xpath value="not(exists(f:*[starts-with(local-name(.), 'value')])) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)" />
          </constraint>
          <constraint>
            <key value="obs-6" />
            <severity value="error" />
            <human value="dataAbsentReason SHALL only be present if Observation.value[x] is not present" />
            <expression value="dataAbsentReason.empty() or value.empty()" />
            <xpath value="not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 363787002 |Observable entity|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=OBS, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.diagnostics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.identifier" />
    <resource>
      <DataElement>
        <id value="Observation.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.identifier">
          <path value="Observation.identifier" />
          <short value="Business Identifier for observation" />
          <definition value="A unique identifier assigned to this observation." />
          <requirements value="Allows observations to be distinguished and referenced." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX.21  For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.basedOn" />
    <resource>
      <DataElement>
        <id value="Observation.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.basedOn">
          <path value="Observation.basedOn" />
          <short value="Fulfills plan, proposal or order" />
          <definition value="A plan, proposal or order that is fulfilled in whole or in part by this event." />
          <requirements value="Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon." />
          <alias value="Fulfills" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.basedOn" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.status" />
    <resource>
      <DataElement>
        <id value="Observation.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.status">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
            <valueString value="default: final" />
          </extension>
          <path value="Observation.status" />
          <short value="registered | preliminary | final | amended +" />
          <definition value="The status of the result value." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <requirements value="Need to track the status of individual results. Some results are finalized before the whole report is finalized." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationStatus" />
            </extension>
            <strength value="required" />
            <description value="Codes providing the status of an observation." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 445584004 |Report by finality status|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="status  Amended &amp; Final are differentiated by whether it is the subject of a ControlAct event with a type of &quot;revise&quot;" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.category" />
    <resource>
      <DataElement>
        <id value="Observation.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.category">
          <path value="Observation.category" />
          <short value="Classification of  type of observation" />
          <definition value="A code that classifies the general type of observation being made." />
          <comment value="In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set." />
          <requirements value="Used for filtering what observations are retrieved and displayed." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationCategory" />
            </extension>
            <strength value="preferred" />
            <description value="Codes for high level observation categories." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;LIST&quot;, moodCode=&quot;EVN&quot;].code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.code" />
    <resource>
      <DataElement>
        <id value="Observation.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.code">
          <path value="Observation.code" />
          <short value="Type of observation (code / type)" />
          <definition value="Describes what was observed. Sometimes this is called the observation &quot;name&quot;." />
          <requirements value="Knowing what kind of observation is being made is essential to understanding the observation." />
          <alias value="Name" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationCode" />
            </extension>
            <strength value="example" />
            <description value="Codes identifying names of simple observations." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.code" />
          </mapping>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 363787002 |Observable entity| OR &lt; 386053000 |Evaluation procedure|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="116680003 |Is a|" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.subject" />
    <resource>
      <DataElement>
        <id value="Observation.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.subject">
          <path value="Observation.subject" />
          <short value="Who and/or what this is about" />
          <definition value="The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed.  Comments: Indirect characteristics may be those of a specimen, fetus, donor,  other observer (for example a relative or EMT), or any observation made about the subject." />
          <comment value="One would expect this element to be a cardinality  of 1..1.  The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.&#xD;&#xD;If the target of the observation is different than the subject, the general extension [observation-focal-subject](extension-observation-focal-subject.html).  may be used.  However, the distinction between the patient's own value for an observation versus that of the fetus, or the donor or blood product unit, etc., are often specified in the observation code." />
          <requirements value="Observations have no value if you don't know who or what they're about." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=SBJ]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.context" />
    <resource>
      <DataElement>
        <id value="Observation.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.context">
          <path value="Observation.context" />
          <short value="Healthcare event during which this observation is made" />
          <definition value="The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made." />
          <comment value="This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter or episode but still be tied to the context of the encounter or episode (e.g. pre-admission lab tests)." />
          <requirements value="For some observations it may be important to know the link between an observation and a particular encounter." />
          <alias value="Encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.context" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PV1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.effectiveX" />
    <resource>
      <DataElement>
        <id value="Observation.effectiveX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.effectiveX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.effective[x]">
          <path value="Observation.effective[x]" />
          <short value="Clinically relevant time/time-period for observation" />
          <definition value="The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the &quot;physiologically relevant time&quot;. This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself." />
          <comment value="At least a date should be present unless this observation is a historical report." />
          <requirements value="Knowing when an observation was deemed true is important to its relevance as well as determining trends." />
          <alias value="Occurrence" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence[x]" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-14, and/or OBX-19 after v2.4  (depends on who observation made)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.issued" />
    <resource>
      <DataElement>
        <id value="Observation.issued" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.issued" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.issued">
          <path value="Observation.issued" />
          <short value="Date/Time this was made available" />
          <definition value="The date and time this observation was made available to providers, typically after the results have been reviewed and verified." />
          <comment value="Updated when the result is updated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.performer" />
    <resource>
      <DataElement>
        <id value="Observation.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.performer">
          <path value="Observation.performer" />
          <short value="Who is responsible for the observation" />
          <definition value="Who was responsible for asserting the observed value as &quot;true&quot;." />
          <requirements value="May give a degree of confidence in the observation and also indicates where follow-up questions should be directed." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX.15 / (Practitioner)  OBX-16,  PRT-5:PRT-4='RO' /  (Device)  OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization)  OBX-23,  PRT-8:PRT-4='PO'" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=PRF]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.valueX" />
    <resource>
      <DataElement>
        <id value="Observation.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.value[x]">
          <path value="Observation.value[x]" />
          <short value="Actual result" />
          <definition value="The information determined as a result of making the observation, if the information has a simple value." />
          <comment value="Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is &quot;'value' + the type name&quot; with a capital on the first letter of the type).&#xD;&#xD;&#xD;If the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text.  A value set is bound to the ValueCodeableConcept element.    For further discussion and examples see the  [notes section](observation.html#notes) below." />
          <requirements value="An observation exists to have a value, though it may not if it is in error, or if it represents a group of observations." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <condition value="obs-7" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.notDone, Event.notDoneReason  (maps to valeu[x] or dataAbsentReason)" />
          </mapping>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 441742003 |Evaluation finding|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX.2, OBX.5, OBX.6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="value" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="363714003 |Interprets|" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.dataAbsentReason" />
    <resource>
      <DataElement>
        <id value="Observation.dataAbsentReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.dataAbsentReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.dataAbsentReason">
          <path value="Observation.dataAbsentReason" />
          <short value="Why the result is missing" />
          <definition value="Provides a reason why the expected value in the element Observation.value[x] is missing." />
          <comment value="Null or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  &quot;detected&quot;, &quot;not detected&quot;, &quot;inconclusive&quot;, or  &quot;specimen unsatisfactory&quot;.   The alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code &quot;error&quot; could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when &gt; 0.  Because of these options, use-case agreements are required to interpret general observations for null or exceptional values." />
          <requirements value="For many results it is necessary to handle exceptional values in measurements." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="obs-6" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationValueAbsentReason" />
            </extension>
            <strength value="extensible" />
            <description value="Codes specifying why the result (Observation.value[x]) is missing." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-valueabsentreason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.notDone, Event.notDoneReason  (maps to valeu[x] or dataAbsentReason)" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="value.nullFlavor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.interpretation" />
    <resource>
      <DataElement>
        <id value="Observation.interpretation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.interpretation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.interpretation">
          <path value="Observation.interpretation" />
          <short value="High, low, normal, etc." />
          <definition value="The assessment made based on the result of the observation.  Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag." />
          <requirements value="For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result." />
          <alias value="Abnormal Flag" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationInterpretation" />
            </extension>
            <strength value="extensible" />
            <description value="Codes identifying interpretations of observations." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-interpretation" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 260245000 |Findings values|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-8" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="interpretationCode" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="363713009 |Has interpretation|" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.comment" />
    <resource>
      <DataElement>
        <id value="Observation.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.comment">
          <path value="Observation.comment" />
          <short value="Comments about result" />
          <definition value="May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result." />
          <requirements value="Need to be able to provide free text additional information." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="subjectOf.observationEvent[code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.bodySite" />
    <resource>
      <DataElement>
        <id value="Observation.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.bodySite">
          <path value="Observation.bodySite" />
          <short value="Observed body part" />
          <definition value="Indicates the site on the subject's body where the observation was made (i.e. the target site)." />
          <comment value="Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   If the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ body-site-instance](extension-body-site-instance.html)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 123037004 |Body structure|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-20" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="targetSiteCode" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="718497002 |Inherent location|" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.method" />
    <resource>
      <DataElement>
        <id value="Observation.method" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.method" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.method">
          <path value="Observation.method" />
          <short value="How it was done" />
          <definition value="Indicates the mechanism used to perform the observation." />
          <comment value="Only used if not implicit in code for Observation.code." />
          <requirements value="In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationMethod" />
            </extension>
            <strength value="example" />
            <description value="Methods for simple observations." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-methods" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBX-17" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="methodCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.specimen" />
    <resource>
      <DataElement>
        <id value="Observation.specimen" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.specimen" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.specimen">
          <path value="Observation.specimen" />
          <short value="Specimen used for this observation" />
          <definition value="The specimen that was used when this observation was made." />
          <comment value="Should only be used if not implicit in code found in `Observation.code`.  Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
          </type>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 123038009 |Specimen|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="SPM segment" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=SPC].specimen" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="704319004 |Inherent in|" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.device" />
    <resource>
      <DataElement>
        <id value="Observation.device" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.device" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.device">
          <path value="Observation.device" />
          <short value="(Measurement) Device" />
          <definition value="The device used to generate the observation data." />
          <comment value="An extension should be used if further typing of the device is needed.  Devices used to support obtaining an observation can be represented using either an extension or through the Observation.related element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceMetric" />
          </type>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 49062001 |Device|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-17 / PRT -10" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=DEV]" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="424226004 |Using device|" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.referenceRange" />
    <resource>
      <DataElement>
        <id value="Observation.referenceRange" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.referenceRange" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.referenceRange">
          <path value="Observation.referenceRange" />
          <short value="Provides guide for interpretation" />
          <definition value="Guidance on how to interpret the value by comparison to a normal or recommended range." />
          <comment value="Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this may not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties." />
          <requirements value="Knowing what values are considered &quot;normal&quot; can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="obs-3" />
            <severity value="error" />
            <human value="Must have at least a low or a high or text" />
            <expression value="low.exists() or high.exists() or text.exists()" />
            <xpath value="(exists(f:low) or exists(f:high)or exists(f:text))" />
          </constraint>
          <mapping>
            <identity value="v2" />
            <map value="OBX.7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.referenceRange.low" />
    <resource>
      <DataElement>
        <id value="Observation.referenceRange.low" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.referenceRange.low" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.referenceRange.low">
          <path value="Observation.referenceRange.low" />
          <short value="Low Range, if relevant" />
          <definition value="The value of the low bound of the reference range.  The low bound of the reference range endpoint is inclusive of the value (e.g.  reference range is &gt;=5 - &lt;=9).   If the low bound is omitted,  it is assumed to be meaningless (e.g. reference range is &lt;=2.3)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <condition value="obs-3" />
          <mapping>
            <identity value="v2" />
            <map value="OBX-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="value:IVL_PQ.low" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.referenceRange.high" />
    <resource>
      <DataElement>
        <id value="Observation.referenceRange.high" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.referenceRange.high" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.referenceRange.high">
          <path value="Observation.referenceRange.high" />
          <short value="High Range, if relevant" />
          <definition value="The value of the high bound of the reference range.  The high bound of the reference range endpoint is inclusive of the value (e.g.  reference range is &gt;=5 - &lt;=9).   If the high bound is omitted,  it is assumed to be meaningless (e.g. reference range is &gt;= 2.3)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <condition value="obs-3" />
          <mapping>
            <identity value="v2" />
            <map value="OBX-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="value:IVL_PQ.high" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.referenceRange.type" />
    <resource>
      <DataElement>
        <id value="Observation.referenceRange.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.referenceRange.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.referenceRange.type">
          <path value="Observation.referenceRange.type" />
          <short value="Reference range qualifier" />
          <definition value="Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range." />
          <comment value="This SHOULD be populated if there is more than one range.  If this element is not present then the normal range is assumed." />
          <requirements value="Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc,  - for proper interpretation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationRangeMeaning" />
            </extension>
            <strength value="extensible" />
            <description value="Code for the meaning of a reference range." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/referencerange-meaning" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 260245000 |Findings values| OR  &#xD;&lt; 365860008 |General clinical state finding| &#xD;OR &#xD;&lt; 250171008 |Clinical history or observation findings| OR  &#xD;&lt; 415229000 |Racial group| OR &#xD;&lt; 365400002 |Finding of puberty stage| OR&#xD;&lt; 443938003 |Procedure carried out on subject|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-10" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="interpretationCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.referenceRange.appliesTo" />
    <resource>
      <DataElement>
        <id value="Observation.referenceRange.appliesTo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.referenceRange.appliesTo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.referenceRange.appliesTo">
          <path value="Observation.referenceRange.appliesTo" />
          <short value="Reference range population" />
          <definition value="Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race." />
          <comment value="This SHOULD be populated if there is more than one range.  If this element is not present then the normal population is assumed." />
          <requirements value="Need to be able to identify the target population for proper interpretation." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationRangeType" />
            </extension>
            <strength value="example" />
            <description value="Codes identifying the population the reference range applies to." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/referencerange-appliesto" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 260245000 |Findings values| OR  &#xD;&lt; 365860008 |General clinical state finding| &#xD;OR &#xD;&lt; 250171008 |Clinical history or observation findings| OR  &#xD;&lt; 415229000 |Racial group| OR &#xD;&lt; 365400002 |Finding of puberty stage| OR&#xD;&lt; 443938003 |Procedure carried out on subject|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-10" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="interpretationCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.referenceRange.age" />
    <resource>
      <DataElement>
        <id value="Observation.referenceRange.age" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.referenceRange.age" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.referenceRange.age">
          <path value="Observation.referenceRange.age" />
          <short value="Applicable age range, if relevant" />
          <definition value="The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so." />
          <requirements value="Some analytes vary greatly over age." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Range" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=&quot;age&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.referenceRange.text" />
    <resource>
      <DataElement>
        <id value="Observation.referenceRange.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.referenceRange.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.referenceRange.text">
          <path value="Observation.referenceRange.text" />
          <short value="Text based reference range in an observation" />
          <definition value="Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation.  An example would be a reference value of &quot;Negative&quot; or a list or table of 'normals'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="value:ST" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.related" />
    <resource>
      <DataElement>
        <id value="Observation.related" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.related" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.related">
          <path value="Observation.related" />
          <short value="Resource related to this observation" />
          <definition value="A  reference to another resource (usually another Observation) whose relationship is defined by the relationship type code." />
          <comment value="For a discussion on the ways Observations can assembled in groups together see [Notes below](observation.html#4.20.4)." />
          <requirements value="Normally, an observation will have either a value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and a set of related observations or sometimes a QuestionnaireResponse from which the measure is derived." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="Relationships established by OBX-4 usage" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="outBoundRelationship" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.related.type" />
    <resource>
      <DataElement>
        <id value="Observation.related.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.related.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.related.type">
          <path value="Observation.related.type" />
          <short value="has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by" />
          <definition value="A code specifying the kind of relationship that exists with the target resource." />
          <comment value="The &quot;derived-from&quot; type is the only logical choice when referencing the QuestionnaireAnswer resource." />
          <requirements value="A relationship type SHOULD be provided." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationRelationshipType" />
            </extension>
            <strength value="required" />
            <description value="Codes specifying how two observations are related." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-relationshiptypes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".typeCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.related.target" />
    <resource>
      <DataElement>
        <id value="Observation.related.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.related.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.related.target">
          <path value="Observation.related.target" />
          <short value="Resource that is related to this one" />
          <definition value="A reference to the observation or [QuestionnaireResponse](questionnaireresponse.html#) resource that is related to this observation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Sequence" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".targetObservation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.component" />
    <resource>
      <DataElement>
        <id value="Observation.component" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.component" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.component">
          <path value="Observation.component" />
          <short value="Component results" />
          <definition value="Some observations have multiple component observations.  These component observations are expressed as separate code value pairs that share the same attributes.  Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations." />
          <comment value="For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below." />
          <requirements value="Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable).   However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="containment by OBX-4?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="outBoundRelationship[typeCode=COMP]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.component.code" />
    <resource>
      <DataElement>
        <id value="Observation.component.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.component.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.component.code">
          <path value="Observation.component.code" />
          <short value="Type of component observation (code / type)" />
          <definition value="Describes what was observed. Sometimes this is called the observation &quot;code&quot;." />
          <requirements value="Knowing what kind of observation is being made is essential to understanding the observation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationCode" />
            </extension>
            <strength value="example" />
            <description value="Codes identifying names of simple observations." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 363787002 |Observable entity| OR &#xD;&lt; 386053000 |Evaluation procedure|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.component.valueX" />
    <resource>
      <DataElement>
        <id value="Observation.component.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.component.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.component.value[x]">
          <path value="Observation.component.value[x]" />
          <short value="Actual component result" />
          <definition value="The information determined as a result of making the observation, if the information has a simple value." />
          <comment value="Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.   For boolean values use valueCodeableConcept and select codes from &lt;http://hl7.org/fhir/ValueSet/v2-0136&gt; (these &quot;yes/no&quot; concepts can be mapped to the display name &quot;true/false&quot; or other mutually exclusive terms that may be needed&quot;).  The element, Observation.value[x], has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueRatio, valueChoice, valuePeriod, valueSampleData, or valueString (the name format is &quot;'value' + the type name&quot; with a capital on the first letter of the type)." />
          <requirements value="An observation exists to have a value, though it may not if it is in error, or if it represents a group of observations." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="SampledData" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="sct-concept" />
            <map value="363714003 |Interprets| &lt; 441742003 |Evaluation finding|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX.2, OBX.5, OBX.6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="value" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="363714003 |Interprets|" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.component.dataAbsentReason" />
    <resource>
      <DataElement>
        <id value="Observation.component.dataAbsentReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.component.dataAbsentReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.component.dataAbsentReason">
          <path value="Observation.component.dataAbsentReason" />
          <short value="Why the component result is missing" />
          <definition value="Provides a reason why the expected value in the element Observation.value[x] is missing." />
          <comment value="&quot;Null&quot; or exceptional values can be represented two ways in FHIR Observations.  One way is to simply include them in the value set and represent the exceptions in the value.  For example, measurement values for a serology test could be  &quot;detected&quot;, &quot;not detected&quot;, &quot;inconclusive&quot;, or  &quot;test not done&quot;.   The alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values.  For example, the dataAbsentReason code &quot;error&quot; could be used when the measurement was not completed.  Because of these options, use-case agreements are required to interpret general observations for exceptional values." />
          <requirements value="For many results it is necessary to handle exceptional values in measurements." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="obs-6" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationValueAbsentReason" />
            </extension>
            <strength value="extensible" />
            <description value="Codes specifying why the result (Observation.value[x]) is missing." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-valueabsentreason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="value.nullFlavor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.component.interpretation" />
    <resource>
      <DataElement>
        <id value="Observation.component.interpretation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.component.interpretation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.component.interpretation">
          <path value="Observation.component.interpretation" />
          <short value="High, low, normal, etc." />
          <definition value="The assessment made based on the result of the observation.  Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag." />
          <comment value="The component interpretation applies only to the individual component value.  For an overall interpretation all components together use thes Observation.interpretation element." />
          <requirements value="For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result." />
          <alias value="Abnormal Flag" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ObservationInterpretation" />
            </extension>
            <strength value="extensible" />
            <description value="Codes identifying interpretations of observations." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-interpretation" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 260245000 |Findings values|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBX-8" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="interpretationCode" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="363713009 |Has interpretation|" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Observation.component.referenceRange" />
    <resource>
      <DataElement>
        <id value="Observation.component.referenceRange" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Observation.component.referenceRange" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Observation.component.referenceRange">
          <path value="Observation.component.referenceRange" />
          <short value="Provides guide for interpretation of component result" />
          <definition value="Guidance on how to interpret the value by comparison to a normal or recommended range." />
          <comment value="Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this may not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties." />
          <requirements value="Knowing what values are considered &quot;normal&quot; can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#Observation.referenceRange" />
          <mapping>
            <identity value="v2" />
            <map value="OBX.7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration">
          <path value="MedicationAdministration" />
          <short value="Administration of medication to a patient" />
          <definition value="Describes the event of a patient consuming or otherwise being administered a medication.  This may be as simple as swallowing a tablet or it may be a long running infusion.  Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner." />
          <comment value="The WG will be updating the MedicationAdministration resource  to adjust each affected resource to align with the workflow pattern (see workflow.html)." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="mad-2" />
            <severity value="error" />
            <human value="Reason not given is only permitted if NotGiven is true" />
            <expression value="reasonNotGiven.empty() or notGiven = true" />
            <xpath value="not(exists(f:reasonNotGiven) and f:notGiven/@value=false())" />
          </constraint>
          <constraint>
            <key value="mad-3" />
            <severity value="error" />
            <human value="Reason given is only permitted if NotGiven is false" />
            <expression value="reasonCode.empty() or notGiven.empty() or notGiven = 'false'" />
            <xpath value="not(exists(f:reasonCode) and f:notGiven/@value=true())" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="..Event" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="SubstanceAdministration" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.medication" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.identifier" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.identifier">
          <path value="MedicationAdministration.identifier" />
          <short value="External identifier" />
          <definition value="External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource.  The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event.  Particularly important if these records have to be updated." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.definition" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.definition">
          <path value="MedicationAdministration.definition" />
          <short value="Instantiates protocol or definition" />
          <definition value="A protocol, guideline, orderset or other definition that was adhered to in whole or in part by this event." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…definition" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target[classCode=unspecified]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.partOf" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.partOf">
          <path value="MedicationAdministration.partOf" />
          <short value="Part of referenced event" />
          <definition value="A larger event of which this particular event is a component or step." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…part of" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP]/target[classCode=SBADM or PROC,moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.status" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.status">
          <path value="MedicationAdministration.status" />
          <short value="in-progress | on-hold | completed | entered-in-error | stopped | unknown" />
          <definition value="Will generally be set to show that the administration has been completed.  For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationAdministrationStatus" />
            </extension>
            <strength value="required" />
            <description value="A set of codes indicating the current status of a MedicationAdministration." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-admin-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…status" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-20-Completion Status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.category" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.category">
          <path value="MedicationAdministration.category" />
          <short value="Type of medication usage" />
          <definition value="Indicates the type of medication administration and where the medication is expected to be consumed or administered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationAdministrationCategory" />
            </extension>
            <strength value="preferred" />
            <description value="A coded concept describing where the medication administered is expected to occur" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-admin-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=&quot;type of medication usage&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.medicationX" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.medicationX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.medicationX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.medication[x]">
          <path value="MedicationAdministration.medication[x]" />
          <short value="What was administered" />
          <definition value="Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." />
          <comment value="If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended.  For example if you require form or lot number, then you must reference the Medication resource. ." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationCode" />
            </extension>
            <strength value="example" />
            <description value="Codes identifying substance or product that can be administered." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…code" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-5-Administered Code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CSM].role[classCode=ADMM]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.subject" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.subject">
          <path value="MedicationAdministration.subject" />
          <short value="Who received medication" />
          <definition value="The person or animal or group receiving the medication." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3-Patient ID List" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.context" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.context">
          <path value="MedicationAdministration.context" />
          <short value="Encounter or Episode of Care administered as part of" />
          <definition value="The visit, admission or other contact between patient and health care provider the medication administration was performed as part of." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…context" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PV1-19-Visit Number" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=&quot;type of encounter or episode&quot;]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.supportingInformation" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.supportingInformation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.supportingInformation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.supportingInformation">
          <path value="MedicationAdministration.supportingInformation" />
          <short value="Additional information to support administration" />
          <definition value="Additional information (for example, patient height and weight) that supports the administration of the medication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.effectiveX" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.effectiveX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.effectiveX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.effective[x]">
          <path value="MedicationAdministration.effective[x]" />
          <short value="Start and end time of administration" />
          <definition value="A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…occurrence[x]" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-3-Date/Time Start of Administration / RXA-4-Date/Time End of Administration" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.performer" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.performer">
          <path value="MedicationAdministration.performer" />
          <short value="Who administered substance" />
          <definition value="The individual who was responsible for giving the medication to the patient." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…performer" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-10-Administering Provider / PRT-5-Participation Person: PRT-4-Participation='AP' (RXA-10 is deprecated)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.performer.actor" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.performer.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.performer.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.performer.actor">
          <path value="MedicationAdministration.performer.actor" />
          <short value="Individual who was performing" />
          <definition value="The device, practitioner, etc. who performed the action." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="….actor" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.performer.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.performer.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.performer.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.performer.onBehalfOf">
          <path value="MedicationAdministration.performer.onBehalfOf" />
          <short value="Organization organization was acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="….onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".role.scopingOrganization" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.notGiven" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.notGiven" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.notGiven" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.notGiven">
          <path value="MedicationAdministration.notGiven" />
          <short value="True if medication not administered" />
          <definition value="Set this to true if the record is saying that the medication was NOT administered." />
          <comment value="This element is labeled as a modifier because it indicates that a administration didn't happen." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <meaningWhenMissing value="If this is missing, then the medication was administered" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…notDone" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-20-Completion Status='NA'" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".actionNegationInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.reasonNotGiven" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.reasonNotGiven" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.reasonNotGiven" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.reasonNotGiven">
          <path value="MedicationAdministration.reasonNotGiven" />
          <short value="Reason administration not performed" />
          <definition value="A code indicating why the administration was not performed." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="mad-2" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationAdministrationNegationReason" />
            </extension>
            <strength value="example" />
            <description value="A set of codes indicating the reason why the MedicationAdministration is negated." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…notDoneReason" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXA-9-Administration Notes / RXA-18 Substance/Treatment Refusal Reason" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=&quot;reason not given&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.reasonCode" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.reasonCode">
          <path value="MedicationAdministration.reasonCode" />
          <short value="Reason administration performed" />
          <definition value="A code indicating why the medication was given." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="mad-3" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationAdministrationReason" />
            </extension>
            <strength value="example" />
            <description value="A set of codes indicating the reason why the MedicationAdministration was made." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/reason-medication-given-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…reasonGivenCodeableConcept" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXE-27 Give Indication" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.reasonReference" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.reasonReference">
          <path value="MedicationAdministration.reasonReference" />
          <short value="Condition or Observation that supports why the medication was administered" />
          <definition value="Condition or observation that supports why the medication was administered." />
          <comment value="This is a reference to a condition that is the reason for the medication request.  If only a code exists, use reasonCode." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…reasonReference" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=&quot;reason for use ASSERTION&quot;].value" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="no mapping" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.prescription" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.prescription" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.prescription" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.prescription">
          <path value="MedicationAdministration.prescription" />
          <short value="Request administration performed against" />
          <definition value="The original request, instruction or authority to perform the administration." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…basedOn" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC-2-Placer Order Number / ORC-3-Filler Order Number" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="InFullfillmentOf-&gt;SubstanceAdministration" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.device" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.device" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.device" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.device">
          <path value="MedicationAdministration.device" />
          <short value="Device used to administer" />
          <definition value="The device used in administering the medication to the patient.  For example, a particular infusion pump." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PRT-10 Participation Device / RXR-3 Administrative Device" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="device-&gt;Access  OR device-&gt;AssignedDevice" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.note" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.note">
          <path value="MedicationAdministration.note" />
          <short value="Information about the administration" />
          <definition value="Extra information about the medication administration that is not conveyed by the other attributes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…note" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.dosage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.dosage">
          <path value="MedicationAdministration.dosage" />
          <short value="Details of how medication was taken" />
          <definition value="Describes the medication dosage information details e.g. dose, rate, site, route, etc." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="mad-1" />
            <severity value="error" />
            <human value="SHALL have at least one of dosage.dose or dosage.rate[x]" />
            <expression value="dose.exists() or rate.exists()" />
            <xpath value="exists(f:dose) or exists(f:*[starts-with(local-name(.), 'rate')])" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="component-&gt;SubstanceAdministrationEvent" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.text" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.dosage.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.dosage.text">
          <path value="MedicationAdministration.dosage.text" />
          <short value="Free text dosage instructions e.g. SIG" />
          <definition value="Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.&#xD;&#xD;The dosage instructions should reflect the dosage of the medication that was administered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.site" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.dosage.site" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.site" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.dosage.site">
          <path value="MedicationAdministration.dosage.site" />
          <short value="Body site administered to" />
          <definition value="A coded specification of the anatomic site where the medication first entered the body.  For example, &quot;left arm&quot;." />
          <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." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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="v2" />
            <map value="RXR-2 Administration Site / RXR-6 Administration Site Modifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".approachSiteCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.route" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.dosage.route" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.route" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.dosage.route">
          <path value="MedicationAdministration.dosage.route" />
          <short value="Path of substance into body" />
          <definition value="A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient.  For example, topical, intravenous, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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="v2" />
            <map value="RXR-1-Route" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".routeCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.method" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.dosage.method" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.method" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.dosage.method">
          <path value="MedicationAdministration.dosage.method" />
          <short value="How drug was administered" />
          <definition value="A coded value indicating the method by which the medication is intended to be or was introduced into or on the body.  This attribute will most often NOT be populated.  It is most commonly used for injections.  For example, Slow Push, Deep IV." />
          <comment value="One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration.  This means the codes used in route or form may pre-coordinate the method in the route code or the form code.  The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may  be used frequently." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationAdministrationMethod" />
            </extension>
            <strength value="example" />
            <description value="A coded concept describing the technique by which the medicine is administered." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/administration-method-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RXR-4-Administration Method" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".methodCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.dose" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.dosage.dose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.dose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.dosage.dose">
          <path value="MedicationAdministration.dosage.dose" />
          <short value="Amount of medication per dose" />
          <definition value="The amount of the medication given at one administration event.   Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection." />
          <comment value="If the administration is not instantaneous (rate is present), this can be specified to convey the total amount administered over period of time of a single administration." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXA-6 Administered Amount / RXA-7 Administered Units" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".doseQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.rateX" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.dosage.rateX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.dosage.rateX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.dosage.rate[x]">
          <path value="MedicationAdministration.dosage.rate[x]" />
          <short value="Dose quantity per unit of time" />
          <definition 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." />
          <comment value="If the rate changes over time, and you want to capture this in MedicationAdministration, then each change should be captured as a distinct MedicationAdministration, with a specific MedicationAdministration.dosage.rate, and the date time when the rate change occurred. Typically, the MedicationAdministration.dosage.rate element is not used to convey an average rate." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Ratio" />
          </type>
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXA-12-Administered Per (Time Unit)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".rateQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationAdministration.eventHistory" />
    <resource>
      <DataElement>
        <id value="MedicationAdministration.eventHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationAdministration.eventHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationAdministration.eventHistory">
          <path value="MedicationAdministration.eventHistory" />
          <short value="A list of events of interest in the lifecycle" />
          <definition value="A summary of the events of interest that have occurred, such as when the administration was verified." />
          <comment value="This may not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Provenance" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse">
          <path value="EnrollmentResponse" />
          <short value="EnrollmentResponse resource" />
          <definition value="This resource provides enrollment and plan details from the processing of an Enrollment resource." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.support" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse.identifier" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse.identifier">
          <path value="EnrollmentResponse.identifier" />
          <short value="Business Identifier" />
          <definition value="The Response business identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse.status" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse.status">
          <path value="EnrollmentResponse.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the response as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EnrollmentResponseStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse.request" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse.request">
          <path value="EnrollmentResponse.request" />
          <short value="Claim reference" />
          <definition value="Original request resource reference." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EnrollmentRequest" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="A02|G01" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse.outcome" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse.outcome">
          <path value="EnrollmentResponse.outcome" />
          <short value="complete | error | partial" />
          <definition value="Processing status: error, complete." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RemittanceOutcome" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The outcome of the processing." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/remittance-outcome" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse.disposition" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse.disposition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse.disposition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse.disposition">
          <path value="EnrollmentResponse.disposition" />
          <short value="Disposition Message" />
          <definition value="A description of the status of the adjudication." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse.created" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse.created">
          <path value="EnrollmentResponse.created" />
          <short value="Creation date" />
          <definition value="The date when the enclosed suite of services were performed or completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse.organization" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse.organization">
          <path value="EnrollmentResponse.organization" />
          <short value="Insurer" />
          <definition value="The Insurer who produced this adjudicated response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse.requestProvider" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse.requestProvider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse.requestProvider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse.requestProvider">
          <path value="EnrollmentResponse.requestProvider" />
          <short value="Responsible practitioner" />
          <definition value="The practitioner who is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B01" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EnrollmentResponse.requestOrganization" />
    <resource>
      <DataElement>
        <id value="EnrollmentResponse.requestOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EnrollmentResponse.requestOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EnrollmentResponse.requestOrganization">
          <path value="EnrollmentResponse.requestOrganization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Binary" />
    <resource>
      <DataElement>
        <id value="Binary" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Binary" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Binary">
          <path value="Binary" />
          <short value="Pure binary content defined by a format other than FHIR" />
          <definition value="A binary resource can contain any content, whether text, image, pdf, zip archive, etc." />
          <comment value="Typically, Binary resources are used for handling content such as:  * CDA Documents (i.e. with XDS) * PDF Documents * Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS)." />
          <min value="0" />
          <max value="*" />
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.structure" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Binary.contentType" />
    <resource>
      <DataElement>
        <id value="Binary.contentType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Binary.contentType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Binary.contentType">
          <path value="Binary.contentType" />
          <short value="MimeType of the binary content" />
          <definition value="MimeType of the binary content represented as a standard MimeType (BCP 13)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MimeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The mime type of an attachment. Any valid mime type is allowed." />
            <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Binary.securityContext" />
    <resource>
      <DataElement>
        <id value="Binary.securityContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Binary.securityContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Binary.securityContext">
          <path value="Binary.securityContext" />
          <short value="Access Control Management" />
          <definition value="Treat this binary as if it was this other resource for access control purposes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Binary.content" />
    <resource>
      <DataElement>
        <id value="Binary.content" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Binary.content" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Binary.content">
          <path value="Binary.content" />
          <short value="The actual content" />
          <definition value="The actual content, base64 encoded." />
          <comment value="If the content type is itself base64 encoding, then this will be base64 encoded twice - what is created by un-base64ing the content must be the specified content type." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library" />
    <resource>
      <DataElement>
        <id value="Library" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library">
          <path value="Library" />
          <short value="Represents a library of quality improvement components" />
          <definition value="The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act[classCode=GROUPER;moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.url" />
    <resource>
      <DataElement>
        <id value="Library.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.url">
          <path value="Library.url" />
          <short value="Logical URI to reference this library (globally unique)" />
          <definition value="An absolute URI that is used to identify this library 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 library is (or will be) published. The URL SHOULD include the major version of the library. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the library to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".identifier[scope=BUSN;reliability=ISS]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.identifier" />
    <resource>
      <DataElement>
        <id value="Library.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.identifier">
          <path value="Library.identifier" />
          <short value="Additional identifier for the library" />
          <definition value="A formal identifier that is used to identify this library when it is represented in other formats, or referenced in a specification, model, design or an instance. e.g. CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this library outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".identifier" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.version" />
    <resource>
      <DataElement>
        <id value="Library.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.version">
          <path value="Library.version" />
          <short value="Business version of the library" />
          <definition value="The identifier that is used to identify this version of the library when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the library author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts." />
          <comment value="There may be different library instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the library with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.name" />
    <resource>
      <DataElement>
        <id value="Library.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.name">
          <path value="Library.name" />
          <short value="Name for this library (computer friendly)" />
          <definition value="A natural language name identifying the library. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.title" />
    <resource>
      <DataElement>
        <id value="Library.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.title">
          <path value="Library.title" />
          <short value="Name for this library (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the library." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.status" />
    <resource>
      <DataElement>
        <id value="Library.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.status">
          <path value="Library.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this library. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of librarys that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired library without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="rim" />
            <map value=".status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.experimental" />
    <resource>
      <DataElement>
        <id value="Library.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.experimental">
          <path value="Library.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this library is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of library that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental library in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level library." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.type" />
    <resource>
      <DataElement>
        <id value="Library.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.type">
          <path value="Library.type" />
          <short value="logic-library | model-definition | asset-collection | module-definition" />
          <definition value="Identifies the type of library such as a Logic Library, Model Definition, Asset Collection, or Module Definition." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="LibraryType" />
            </extension>
            <strength value="extensible" />
            <description value="The type of knowledge asset this library contains" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/library-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.date" />
    <resource>
      <DataElement>
        <id value="Library.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.date">
          <path value="Library.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the library was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the library 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 library. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.publisher" />
    <resource>
      <DataElement>
        <id value="Library.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.publisher">
          <path value="Library.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the library." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the library is the organization or individual primarily responsible for the maintenance and upkeep of the library. 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 library. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the library.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.description" />
    <resource>
      <DataElement>
        <id value="Library.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.description">
          <path value="Library.description" />
          <short value="Natural language description of the library" />
          <definition value="A free text natural language description of the library from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the library 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 library 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="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.purpose" />
    <resource>
      <DataElement>
        <id value="Library.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.purpose">
          <path value="Library.purpose" />
          <short value="Why this library is defined" />
          <definition value="Explaination of why this library is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the library Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this library." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode.text" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.usage" />
    <resource>
      <DataElement>
        <id value="Library.usage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.usage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.usage">
          <path value="Library.usage" />
          <short value="Describes the clinical usage of the library" />
          <definition value="A detailed description of how the library is used from a clinical perspective." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.approvalDate" />
    <resource>
      <DataElement>
        <id value="Library.approvalDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.approvalDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.approvalDate">
          <path value="Library.approvalDate" />
          <short value="When the library was approved by publisher" />
          <definition value="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." />
          <comment value="The 'date' element may be more recent than the approval date because of minor changes / editorial corrections." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;].act[classCode=CACT;moodCode=EVN;code=&quot;approval&quot;].effectiveTime" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.lastReviewDate" />
    <resource>
      <DataElement>
        <id value="Library.lastReviewDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.lastReviewDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.lastReviewDate">
          <path value="Library.lastReviewDate" />
          <short value="When the library was last reviewed" />
          <definition value="The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date." />
          <comment value="If specified, this is usually after the approval date." />
          <requirements value="Gives a sense of how &quot;current&quot; the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;; subsetCode=&quot;RECENT&quot;].act[classCode=CACT;moodCode=EVN;code=&quot;review&quot;].effectiveTime" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.effectivePeriod" />
    <resource>
      <DataElement>
        <id value="Library.effectivePeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.effectivePeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.effectivePeriod">
          <path value="Library.effectivePeriod" />
          <short value="When the library is expected to be used" />
          <definition value="The period during which the library content was or is planned to be in active use." />
          <comment value="The effective period for a library  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015." />
          <requirements value="Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of a the library are or are expected to be used instead." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.useContext" />
    <resource>
      <DataElement>
        <id value="Library.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.useContext">
          <path value="Library.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate library instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.jurisdiction" />
    <resource>
      <DataElement>
        <id value="Library.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.jurisdiction">
          <path value="Library.jurisdiction" />
          <short value="Intended jurisdiction for library (if applicable)" />
          <definition value="A legal or geographic region in which the library is intended to be used." />
          <comment value="It may be possible for the library to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.topic" />
    <resource>
      <DataElement>
        <id value="Library.topic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.topic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.topic">
          <path value="Library.topic" />
          <short value="E.g. Education, Treatment, Assessment, etc" />
          <definition value="Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching." />
          <requirements value="Repositories must be able to determine how to categorize the library so that it can be found by topical searches." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.contributor" />
    <resource>
      <DataElement>
        <id value="Library.contributor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.contributor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.contributor">
          <path value="Library.contributor" />
          <short value="A content contributor" />
          <definition value="A contributor to the content of the library, 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 library." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Contributor" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT,VRF] {No support yet for editor nor clear whether VRF best corresponds to reviewer or endorser}" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.contact" />
    <resource>
      <DataElement>
        <id value="Library.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.contact">
          <path value="Library.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CALLBCK].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.copyright" />
    <resource>
      <DataElement>
        <id value="Library.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.copyright">
          <path value="Library.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the library and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the library." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the library and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.relatedArtifact" />
    <resource>
      <DataElement>
        <id value="Library.relatedArtifact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.relatedArtifact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.relatedArtifact">
          <path value="Library.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="Libraries 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="*" />
          <type>
            <code value="RelatedArtifact" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.parameter" />
    <resource>
      <DataElement>
        <id value="Library.parameter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.parameter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.parameter">
          <path value="Library.parameter" />
          <short value="Parameters defined by the library" />
          <definition value="The parameter element defines parameters used by the library." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ParameterDefinition" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.dataRequirement" />
    <resource>
      <DataElement>
        <id value="Library.dataRequirement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.dataRequirement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.dataRequirement">
          <path value="Library.dataRequirement" />
          <short value="What data is referenced by this library" />
          <definition value="Describes a set of data that must be provided in order to be able to successfully perform the computations defined by the library." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="DataRequirement" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (to add?)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Library.content" />
    <resource>
      <DataElement>
        <id value="Library.content" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Library.content" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Library.content">
          <path value="Library.content" />
          <short value="Contents of the library, either embedded or referenced" />
          <definition value="The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the contentType of the attachment determines how to interpret the content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Attachment" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement" />
    <resource>
      <DataElement>
        <id value="MedicationStatement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement">
          <path value="MedicationStatement" />
          <short value="Record of medication being taken by a patient" />
          <definition value="A record of a medication that is being consumed by a patient.   A MedicationStatement may indicate that the patient may be taking the medication now, or has taken the medication in the past or will be taking the medication in the future.  The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician.  A common scenario where this information is captured is during the history taking process during a patient visit or stay.   The medication information may come from sources such as the patient's memory, from a prescription bottle,  or from a list of medications the patient, clinician or other party maintains &#xD;&#xD;The primary difference between a medication statement and a medication administration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication.  A medication statement is often, if not always, less specific.  There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise.  As stated earlier, the medication statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains.  Medication administration is more formal and is not missing detailed information." />
          <comment value="When interpreting a medicationStatement, the value of the status and NotTaken needed to be considered:&#xD;MedicationStatement.status + MedicationStatement.wasNotTaken&#xD;Status=Active + NotTaken=T = Not currently taking&#xD;Status=Completed + NotTaken=T = Not taken in the past&#xD;Status=Intended + NotTaken=T = No intention of taking&#xD;Status=Active + NotTaken=F = Taking, but not as prescribed&#xD;Status=Active + NotTaken=F = Taking&#xD;Status=Intended +NotTaken= F = Will be taking (not started)&#xD;Status=Completed + NotTaken=F = Taken in past&#xD;Status=In Error + NotTaken=N/A = In Error." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="mst-1" />
            <severity value="error" />
            <human value="Reason not taken is only permitted if Taken is No" />
            <expression value="reasonNotTaken.exists().not() or (taken = 'n')" />
            <xpath value="not(exists(f:reasonNotTaken)) or f:taken/@value='n'" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="..Event" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="SubstanceAdministration" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.medication" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.identifier" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.identifier">
          <path value="MedicationStatement.identifier" />
          <short value="External identifier" />
          <definition value="External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource.  The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event.  Particularly important if these records have to be updated." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…identifer" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.basedOn" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.basedOn">
          <path value="MedicationStatement.basedOn" />
          <short value="Fulfils plan, proposal or order" />
          <definition value="A plan, proposal or order that is fulfilled in whole or in part by this event." />
          <requirements value="Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…basedOn" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.partOf" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.partOf">
          <path value="MedicationStatement.partOf" />
          <short value="Part of referenced event" />
          <definition value="A larger event of which this particular event is a component or step." />
          <requirements value="This should not be used when indicating which resource a MedicationStatement has been derived from.  If that is the use case, then MedicationStatement.derivedFrom should be used." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationDispense" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…part of" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP]/target[classCode=SPLY or SBADM or PROC or OBS,moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.context" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.context">
          <path value="MedicationStatement.context" />
          <short value="Encounter / Episode associated with MedicationStatement" />
          <definition value="The encounter or episode of care that establishes the context for this MedicationStatement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…context" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=&quot;type of encounter or episode&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.status" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.status">
          <path value="MedicationStatement.status" />
          <short value="active | completed | entered-in-error | intended | stopped | on-hold" />
          <definition value="A code representing the patient or other source's judgment about the state of the medication used that this statement is about.  Generally this will be active or completed." />
          <comment value="MedicationStatement is a statement at a point in time.  The status is only representative at the point when it was asserted.  The value set for MedicationStatement.status contains codes that assert the status of the use of the medication by the patient (for example, stopped or on hold) as well as codes that assert the status of the medication statement itself (for example, entered in error).&#xA;&#xA;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationStatementStatus" />
            </extension>
            <strength value="required" />
            <description value="A coded concept indicating the current status of a MedicationStatement." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-statement-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.category" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.category">
          <path value="MedicationStatement.category" />
          <short value="Type of medication usage" />
          <definition value="Indicates where type of medication statement and where the medication is expected to be consumed or administered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationStatementCategory" />
            </extension>
            <strength value="preferred" />
            <description value="A coded concept identifying where the medication included in the medicationstatement is expected to be consumed or administered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-statement-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=&quot;type of medication usage&quot;].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.medicationX" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.medicationX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.medicationX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.medication[x]">
          <path value="MedicationStatement.medication[x]" />
          <short value="What medication was taken" />
          <definition value="Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." />
          <comment value="If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended.  For example if you require form or lot number, then you must reference the Medication resource. ." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationCode" />
            </extension>
            <strength value="example" />
            <description value="A coded concept identifying the substance or product being taken." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=CSM].role[classCode=ADMM or MANU]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.effectiveX" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.effectiveX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.effectiveX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.effective[x]">
          <path value="MedicationStatement.effective[x]" />
          <short value="The date/time or interval when the medication was taken" />
          <definition value="The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the wasNotGiven element is true)." />
          <comment value="This attribute reflects the period over which the patient consumed the medication and is expected to be populated on the majority of Medication Statements. If the medication is still being taken at the time the statement is recorded, the &quot;end&quot; date will be omitted." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…occurrence[x]" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.dateAsserted" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.dateAsserted" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.dateAsserted" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.dateAsserted">
          <path value="MedicationStatement.dateAsserted" />
          <short value="When the statement was asserted?" />
          <definition value="The date when the medication statement was asserted by the information source." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.informationSource" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.informationSource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.informationSource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.informationSource">
          <path value="MedicationStatement.informationSource" />
          <short value="Person or organization that provided the information about the taking of this medication" />
          <definition value="The person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g Claim or MedicationRequest." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=INF].role[classCode=PAT, or codes for Practioner or Related Person (if PAT is the informer, then syntax for self-reported =true)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.subject" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.subject">
          <path value="MedicationStatement.subject" />
          <short value="Who is/was taking  the medication" />
          <definition value="The person, animal or group who is/was taking the medication." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3-Patient ID List" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.derivedFrom" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.derivedFrom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.derivedFrom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.derivedFrom">
          <path value="MedicationStatement.derivedFrom" />
          <short value="Additional supporting information" />
          <definition value="Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement." />
          <comment value="Likely references would be to MedicationRequest, MedicationDispense, Claim, Observation or QuestionnaireAnswers.  The most common use cases for deriving a MedicationStatement comes from creating a MedicationStatement from a MedicationRequest or from a lab observation or a claim.  it should be noted that the amount of information that is available varies from the type resource that you derive the MedicationStatement from." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=SPRT]/target[classCode=ACT,moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.taken" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.taken" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.taken" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.taken">
          <path value="MedicationStatement.taken" />
          <short value="y | n | unk | na" />
          <definition value="Indicator of the certainty of whether the medication was taken by the patient." />
          <comment value="This element is labeled as a modifier because it indicates that the medication was not taken." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationStatementTaken" />
            </extension>
            <strength value="required" />
            <description value="A coded concept identifying level of certainty if patient has taken or has not taken the medication" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-statement-taken" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…notDone" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".actionNegationInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.reasonNotTaken" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.reasonNotTaken" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.reasonNotTaken" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.reasonNotTaken">
          <path value="MedicationStatement.reasonNotTaken" />
          <short value="True if asserting medication was not given" />
          <definition value="A code indicating why the medication was not taken." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="mst-1" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationStatementNotTakenReason" />
            </extension>
            <strength value="example" />
            <description value="A coded concept indicating the reason why the medication was not taken" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/reason-medication-not-taken-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=&quot;reason not taken&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.reasonCode" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.reasonCode">
          <path value="MedicationStatement.reasonCode" />
          <short value="Reason for why the medication is being/was taken" />
          <definition value="A reason for why the medication is being/was taken." />
          <comment value="This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonForUseReference." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationReason" />
            </extension>
            <strength value="example" />
            <description value="A coded concept identifying why the medication is being taken." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…reasoneCodeableConcept" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.reasonReference" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.reasonReference">
          <path value="MedicationStatement.reasonReference" />
          <short value="Condition or observation that supports why the medication is being/was taken" />
          <definition value="Condition or observation that supports why the medication is being/was taken." />
          <comment value="This is a reference to a condition that is the reason why the medication is being/was taken.  If only a code exists, use reasonForUseCode." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…reasonReference" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=&quot;reason for use&quot;].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.note" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.note">
          <path value="MedicationStatement.note" />
          <short value="Further information about the statement" />
          <definition value="Provides extra information about the medication statement that is not conveyed by the other attributes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…note" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationStatement.dosage" />
    <resource>
      <DataElement>
        <id value="MedicationStatement.dosage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationStatement.dosage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationStatement.dosage">
          <path value="MedicationStatement.dosage" />
          <short value="Details of how medication is/was taken or should be taken" />
          <definition value="Indicates how the medication is/was or should be taken by the patient." />
          <comment value="The dates included in the dosage on a Medication Statement reflect the dates for a given dose.  For example, &quot;from November 1, 2016 to November 3, 2016, take one tablet daily and from November 4, 2016 to November 7, 2016, take two tablets daily.&quot;  It is expected that this specificity may only be populated where the patient brings in their labeled container or where the Medication Statement is derived from a MedicationRequest." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Dosage" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="refer dosageInstruction mapping" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest">
          <path value="CommunicationRequest" />
          <short value="A request for information to be sent to a receiver" />
          <definition value="A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.order" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.identifier" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.identifier">
          <path value="CommunicationRequest.identifier" />
          <short value="Unique identifier" />
          <definition value="A unique ID of this request for reference purposes. It must be provided if user wants it returned as part of any output, otherwise it will be autogenerated, if needed, by CDS system. Does not need to be the actual ID of the source system." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.basedOn" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.basedOn">
          <path value="CommunicationRequest.basedOn" />
          <short value="Fulfills plan or proposal" />
          <definition value="A plan or proposal that is fulfilled in whole or in part by this request." />
          <requirements value="Allows tracing of authorization for the request and tracking whether proposals/recommendations were acted upon." />
          <alias value="fulfills" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.basedOn" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.replaces" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.replaces" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.replaces" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.replaces">
          <path value="CommunicationRequest.replaces" />
          <short value="Request(s) replaced by this request" />
          <definition value="Completed or terminated request(s) whose function is taken by this new request." />
          <comment value="The replacement could be because the initial request was immediately rejected (due to an issue) or because the previous request was completed, but the need for the action described by the request remains ongoing." />
          <requirements value="Allows tracing the continuation of a therapy or administrative process instantiated through multiple requests." />
          <alias value="supersedes" />
          <alias value="prior" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CommunicationRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.replaces" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RPLC].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.groupIdentifier" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.groupIdentifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.groupIdentifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.groupIdentifier">
          <path value="CommunicationRequest.groupIdentifier" />
          <short value="Composite request this is part of" />
          <definition value="A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form." />
          <comment value="Requests are linked either by a &quot;basedOn&quot; relationship (i.e. one request is fulfilling another) or by having a common requisition.  Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation." />
          <alias value="grouperId" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.groupIdentifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.status" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.status">
          <path value="CommunicationRequest.status" />
          <short value="draft | active | suspended | cancelled | completed | entered-in-error | unknown" />
          <definition value="The status of the proposal or order." />
          <comment value="This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the request as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationRequestStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the communication request." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.category" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.category">
          <path value="CommunicationRequest.category" />
          <short value="Message category" />
          <definition value="The type of message to be sent such as alert, notification, reminder, instruction, etc." />
          <comment value="There may be multiple axes of categorization and one communication request may serve multiple purposes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationCategory" />
            </extension>
            <strength value="example" />
            <description value="Codes for general categories of communications such as alerts, instruction, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/communication-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.priority" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.priority">
          <path value="CommunicationRequest.priority" />
          <short value="Message urgency" />
          <definition value="Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <meaningWhenMissing value="If missing, this task should be performed with normal priority" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationPriority" />
            </extension>
            <strength value="required" />
            <description value="Codes indicating the relative importance of a communication request." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/request-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.priority" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.medium" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.medium" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.medium" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.medium">
          <path value="CommunicationRequest.medium" />
          <short value="A channel of communication" />
          <definition value="A channel that was used for this communication (e.g. email, fax)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationMedium" />
            </extension>
            <strength value="example" />
            <description value="Codes for communication mediums such as phone, fax, email, in person, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ParticipationMode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.subject" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.subject">
          <path value="CommunicationRequest.subject" />
          <short value="Focus of message" />
          <definition value="The patient or group that is the focus of this communication request." />
          <alias value="patient" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.subject" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.recipient" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.recipient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.recipient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.recipient">
          <path value="CommunicationRequest.recipient" />
          <short value="Message recipient" />
          <definition value="The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.performer" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.topic" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.topic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.topic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.topic">
          <path value="CommunicationRequest.topic" />
          <short value="Focal resources" />
          <definition value="The resources which were related to producing this communication request." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.supportingInfo" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.context" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.context">
          <path value="CommunicationRequest.context" />
          <short value="Encounter or episode leading to message" />
          <definition value="The encounter or episode of care within which the communication request was created." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.context" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.payload" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.payload" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.payload" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.payload">
          <path value="CommunicationRequest.payload" />
          <short value="Message payload" />
          <definition value="Text, attachment(s), or resource(s) to be communicated to the recipient." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.payload.contentX" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.payload.contentX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.payload.contentX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.payload.content[x]">
          <path value="CommunicationRequest.payload.content[x]" />
          <short value="Message part content" />
          <definition value="The communicated content (or for multi-part communications, one portion of the communication)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.supportingInfo IF Reference, Request.note if string; No mapping if Attachment" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.occurrenceX" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.occurrenceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.occurrenceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.occurrence[x]">
          <path value="CommunicationRequest.occurrence[x]" />
          <short value="When scheduled" />
          <definition value="The time when this communication is to occur." />
          <alias value="timing" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.occurrence" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.authoredOn" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.authoredOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.authoredOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.authoredOn">
          <path value="CommunicationRequest.authoredOn" />
          <short value="When request transitioned to being actionable" />
          <definition value="For draft requests, indicates the date of initial creation.  For requests with other statuses, indicates the date of activation." />
          <alias value="createdOn" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.sender" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.sender" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.sender" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.sender">
          <path value="CommunicationRequest.sender" />
          <short value="Message sender" />
          <definition value="The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.agent" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.requester" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.requester" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.requester" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.requester">
          <path value="CommunicationRequest.requester" />
          <short value="Who/what is requesting service" />
          <definition value="The individual who initiated the request and has responsibility for its activation." />
          <alias value="author" />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="cmr-1" />
            <severity value="error" />
            <human value="onBehalfOf can only be specified if agent is practitioner or device" />
            <expression value="(agent.resolve() is Practitioner) or (agent.resolve() is Device) or onBehalfOf.exists().not()" />
            <xpath value="contains(f:agent/f:reference/@value, '/Practitioner/') or contains(f:agent/f:reference/@value, '/Device/') or not(exists(f:onBehalfOf))" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.requester.agent" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.requester.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.requester.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.requester.agent">
          <path value="CommunicationRequest.requester.agent" />
          <short value="Individual making the request" />
          <definition value="The device, practitioner, etc. who initiated the request." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.agent" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".player" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.requester.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.requester.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.requester.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.requester.onBehalfOf">
          <path value="CommunicationRequest.requester.onBehalfOf" />
          <short value="Organization agent is acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of." />
          <requirements value="Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when authoring the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <condition value="cmr-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".scoper" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.reasonCode" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.reasonCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.reasonCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.reasonCode">
          <path value="CommunicationRequest.reasonCode" />
          <short value="Why is communication needed?" />
          <definition value="Describes why the request is being made in coded or textual form." />
          <comment value="Textual reasons can be caprued using reasonCode.text." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CommunicationReason" />
            </extension>
            <strength value="example" />
            <description value="Codes for describing reasons for the occurrence of a communication." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActReason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonCode" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.reasonReference" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.reasonReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.reasonReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.reasonReference">
          <path value="CommunicationRequest.reasonReference" />
          <short value="Why is communication needed?" />
          <definition value="Indicates another resource whose existence justifies this request." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonReference" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CommunicationRequest.note" />
    <resource>
      <DataElement>
        <id value="CommunicationRequest.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CommunicationRequest.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CommunicationRequest.note">
          <path value="CommunicationRequest.note" />
          <short value="Comments made about communication request" />
          <definition value="Comments made about the request by the requester, sender, recipient, subject or other participants." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.note" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript" />
    <resource>
      <DataElement>
        <id value="TestScript" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript">
          <path value="TestScript" />
          <short value="Describes a set of tests" />
          <definition value="A structured set of tests against a FHIR server implementation to determine compliance against the FHIR specification." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.misc" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.url" />
    <resource>
      <DataElement>
        <id value="TestScript.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.url">
          <path value="TestScript.url" />
          <short value="Logical URI to reference this test script (globally unique)" />
          <definition value="An absolute URI that is used to identify this test script 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 test script is (or will be) published. The URL SHOULD include the major version of the test script. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the test script to be referenced by a single globally unique identifier." />
          <alias value="url" />
          <alias value="authoritative-url" />
          <alias value="destination" />
          <alias value="identity" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.identifier" />
    <resource>
      <DataElement>
        <id value="TestScript.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.identifier">
          <path value="TestScript.identifier" />
          <short value="Additional identifier for the test script" />
          <definition value="A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this test script outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.version" />
    <resource>
      <DataElement>
        <id value="TestScript.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.version">
          <path value="TestScript.version" />
          <short value="Business version of the test script" />
          <definition value="The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different test script instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the test script with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.name" />
    <resource>
      <DataElement>
        <id value="TestScript.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.name">
          <path value="TestScript.name" />
          <short value="Name for this test script (computer friendly)" />
          <definition value="A natural language name identifying the test script. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.title" />
    <resource>
      <DataElement>
        <id value="TestScript.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.title">
          <path value="TestScript.title" />
          <short value="Name for this test script (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the test script." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.status" />
    <resource>
      <DataElement>
        <id value="TestScript.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.status">
          <path value="TestScript.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this test script. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of test scripts that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired test script without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.experimental" />
    <resource>
      <DataElement>
        <id value="TestScript.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.experimental">
          <path value="TestScript.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of test script that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental test script in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level test script." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.date" />
    <resource>
      <DataElement>
        <id value="TestScript.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.date">
          <path value="TestScript.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the test script was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the test script 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 test script. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.publisher" />
    <resource>
      <DataElement>
        <id value="TestScript.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.publisher">
          <path value="TestScript.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the test script." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the test script is the organization or individual primarily responsible for the maintenance and upkeep of the test script. 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 test script. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the test script.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.contact" />
    <resource>
      <DataElement>
        <id value="TestScript.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.contact">
          <path value="TestScript.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.description" />
    <resource>
      <DataElement>
        <id value="TestScript.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.description">
          <path value="TestScript.description" />
          <short value="Natural language description of the test script" />
          <definition value="A free text natural language description of the test script from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the test script 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 test script 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="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.useContext" />
    <resource>
      <DataElement>
        <id value="TestScript.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.useContext">
          <path value="TestScript.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate test script instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.jurisdiction" />
    <resource>
      <DataElement>
        <id value="TestScript.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.jurisdiction">
          <path value="TestScript.jurisdiction" />
          <short value="Intended jurisdiction for test script (if applicable)" />
          <definition value="A legal or geographic region in which the test script is intended to be used." />
          <comment value="It may be possible for the test script to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.purpose" />
    <resource>
      <DataElement>
        <id value="TestScript.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.purpose">
          <path value="TestScript.purpose" />
          <short value="Why this test script is defined" />
          <definition value="Explaination of why this test script is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the test script Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this test script." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.copyright" />
    <resource>
      <DataElement>
        <id value="TestScript.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.copyright">
          <path value="TestScript.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the test script and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.origin" />
    <resource>
      <DataElement>
        <id value="TestScript.origin" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.origin" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.origin">
          <path value="TestScript.origin" />
          <short value="An abstract server representing a client or sender in a message exchange" />
          <definition value="An abstract server used in operations within this test script in the origin element." />
          <comment value="The purpose of this element is to define the profile of an origin element used elsewhere in the script.  Test engines could then use the origin-profile mapping to offer a filtered list of test systems that can serve as the sender for the interaction." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.origin.index" />
    <resource>
      <DataElement>
        <id value="TestScript.origin.index" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.origin.index" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.origin.index">
          <path value="TestScript.origin.index" />
          <short value="The index of the abstract origin server starting at 1" />
          <definition value="Abstract name given to an origin server in this test script.  The name is provided as a number starting at 1." />
          <comment value="A given origin index (e.g. 1) can appear only once in the list (e.g. Origin 1 cannot be specified twice ... once as FormFiller and and again as FormProcessor within the same script as that could get confusing during test configuration). &#xA;&#xA;Different origin indices could play the same actor in the same test script (e.g. You could have two different test systems acting as Form-Filler).&#xA;&#xA;The origin indices provided elsewhere in the test script must be one of these origin indices." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.origin.profile" />
    <resource>
      <DataElement>
        <id value="TestScript.origin.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.origin.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.origin.profile">
          <path value="TestScript.origin.profile" />
          <short value="FHIR-Client | FHIR-SDC-FormFiller" />
          <definition value="The type of origin profile the test system supports." />
          <comment value="Must be a &quot;sender&quot;/&quot;client&quot; profile." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <meaningWhenMissing value="FHIR-Client" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TestScriptProfileOriginType" />
            </extension>
            <strength value="extensible" />
            <description value="The type of origin profile the test system supports." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/testscript-profile-origin-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.destination" />
    <resource>
      <DataElement>
        <id value="TestScript.destination" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.destination" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.destination">
          <path value="TestScript.destination" />
          <short value="An abstract server representing a destination or receiver in a message exchange" />
          <definition value="An abstract server used in operations within this test script in the destination element." />
          <comment value="The purpose of this element is to define the profile of a destination element used elsewhere in the script.  Test engines could then use the destination-profile mapping to offer a filtered list of test systems that can serve as the receiver for the interaction." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.destination.index" />
    <resource>
      <DataElement>
        <id value="TestScript.destination.index" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.destination.index" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.destination.index">
          <path value="TestScript.destination.index" />
          <short value="The index of the abstract destination server starting at 1" />
          <definition value="Abstract name given to a destination server in this test script.  The name is provided as a number starting at 1." />
          <comment value="A given destination index (e.g. 1) can appear only once in the list (e.g. Destination 1 cannot be specified twice ... once as Form-Manager and again as Form-Processor within the same script as that could get confusing during test configuration). &#xA;&#xA;Different destination indices could play the same actor in the same test script (e.g. You could have two different test systems acting as Form-Manager).&#xA;&#xA;The destination indices provided elsewhere in the test script must be one of these destination indices." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.destination.profile" />
    <resource>
      <DataElement>
        <id value="TestScript.destination.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.destination.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.destination.profile">
          <path value="TestScript.destination.profile" />
          <short value="FHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor" />
          <definition value="The type of destination profile the test system supports." />
          <comment value="Must be a &quot;receiver&quot;/&quot;server&quot; profile." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <meaningWhenMissing value="FHIR-Server" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TestScriptProfileDestinationType" />
            </extension>
            <strength value="extensible" />
            <description value="The type of destination profile the test system supports." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/testscript-profile-destination-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata">
          <path value="TestScript.metadata" />
          <short value="Required capability that is assumed to function correctly on the FHIR server being tested" />
          <definition value="The required capability must exist and are assumed to function correctly on the FHIR server being tested." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="inv-4" />
            <severity value="error" />
            <human value="TestScript metadata capability SHALL contain required or validated or both." />
            <expression value="capability.required.exists() or capability.validated.exists()" />
            <xpath value="f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.link" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.link" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.link" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.link">
          <path value="TestScript.metadata.link" />
          <short value="Links to the FHIR specification" />
          <definition value="A link to the FHIR specification that this test is covering." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.link.url" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.link.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.link.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.link.url">
          <path value="TestScript.metadata.link.url" />
          <short value="URL to the specification" />
          <definition value="URL to a particular requirement or feature within the FHIR specification." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.link.description" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.link.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.link.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.link.description">
          <path value="TestScript.metadata.link.description" />
          <short value="Short description" />
          <definition value="Short description of the link." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.capability" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.capability">
          <path value="TestScript.metadata.capability" />
          <short value="Capabilities  that are assumed to function correctly on the FHIR server being tested" />
          <definition value="Capabilities that must exist and are assumed to function correctly on the FHIR server being tested." />
          <comment value="When the metadata capabilities section is defined at TestScript.metadata or at TestScript.setup.metadata, and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then all the tests in the TestScript are skipped.  When the metadata capabilities section is defined at TestScript.test.metadata and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then only that test is skipped.  The &quot;metadata.capabilities.required&quot; and &quot;metadata.capabilities.validated&quot; elements only indicate whether the capabilities are the primary focus of the test script or not.  They do not impact the skipping logic.  Capabilities whose &quot;metadata.capabilities.validated&quot; flag is true are the primary focus of the test script." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.required" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.capability.required" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.required" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.capability.required">
          <path value="TestScript.metadata.capability.required" />
          <short value="Are the capabilities required?" />
          <definition value="Whether or not the test execution will require the given capabilities of the server in order for this test script to execute." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.validated" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.capability.validated" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.validated" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.capability.validated">
          <path value="TestScript.metadata.capability.validated" />
          <short value="Are the capabilities validated?" />
          <definition value="Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.description" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.capability.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.capability.description">
          <path value="TestScript.metadata.capability.description" />
          <short value="The expected capabilities of the server" />
          <definition value="Description of the capabilities that this test script is requiring the server to support." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.origin" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.capability.origin" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.origin" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.capability.origin">
          <path value="TestScript.metadata.capability.origin" />
          <short value="Which origin server these requirements apply to" />
          <definition value="Which origin server these requirements apply to." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.destination" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.capability.destination" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.destination" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.capability.destination">
          <path value="TestScript.metadata.capability.destination" />
          <short value="Which server these requirements apply to" />
          <definition value="Which server these requirements apply to." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.link" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.capability.link" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.link" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.capability.link">
          <path value="TestScript.metadata.capability.link" />
          <short value="Links to the FHIR specification" />
          <definition value="Links to the FHIR specification that describes this interaction and the resources involved in more detail." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.capabilities" />
    <resource>
      <DataElement>
        <id value="TestScript.metadata.capability.capabilities" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.metadata.capability.capabilities" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.metadata.capability.capabilities">
          <path value="TestScript.metadata.capability.capabilities" />
          <short value="Required Capability Statement" />
          <definition value="Minimum capabilities required of server for test script to execute successfully.   If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped." />
          <comment value="The conformance statement of the server has to contain at a minimum the contents of the reference pointed to by this element." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CapabilityStatement" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.fixture" />
    <resource>
      <DataElement>
        <id value="TestScript.fixture" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.fixture" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.fixture">
          <path value="TestScript.fixture" />
          <short value="Fixture in the test script - by reference (uri)" />
          <definition value="Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.fixture.autocreate" />
    <resource>
      <DataElement>
        <id value="TestScript.fixture.autocreate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.fixture.autocreate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.fixture.autocreate">
          <path value="TestScript.fixture.autocreate" />
          <short value="Whether or not to implicitly create the fixture during setup" />
          <definition value="Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.fixture.autodelete" />
    <resource>
      <DataElement>
        <id value="TestScript.fixture.autodelete" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.fixture.autodelete" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.fixture.autodelete">
          <path value="TestScript.fixture.autodelete" />
          <short value="Whether or not to implicitly delete the fixture during teardown" />
          <definition value="Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.fixture.resource" />
    <resource>
      <DataElement>
        <id value="TestScript.fixture.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.fixture.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.fixture.resource">
          <path value="TestScript.fixture.resource" />
          <short value="Reference of the resource" />
          <definition value="Reference to the resource (containing the contents of the resource needed for operations)." />
          <comment value="See http://build.fhir.org/resourcelist.html for complete list of resource types." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.profile" />
    <resource>
      <DataElement>
        <id value="TestScript.profile" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.profile" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.profile">
          <path value="TestScript.profile" />
          <short value="Reference of the validation profile" />
          <definition value="Reference to the profile to be used for validation." />
          <comment value="See http://build.fhir.org/resourcelist.html for complete list of resource types." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.variable" />
    <resource>
      <DataElement>
        <id value="TestScript.variable" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.variable" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.variable">
          <path value="TestScript.variable" />
          <short value="Placeholder for evaluated elements" />
          <definition value="Variable is set based either on element value in response body or on header field value in the response headers." />
          <comment value="Variables would be set based either on XPath/JSONPath expressions against fixtures (static and response), or headerField evaluations against response headers. If variable evaluates to nodelist or anything other than a primitive value, then test engine would report an error.  Variables would be used to perform clean replacements in &quot;operation.params&quot;, &quot;operation.requestHeader.value&quot;, and &quot;operation.url&quot; element values during operation calls and in &quot;assert.value&quot; during assertion evaluations. This limits the places that test engines would need to look for placeholders &quot;${}&quot;.  Variables are scoped to the whole script. They are NOT evaluated at declaration. They are evaluated by test engine when used for substitutions in &quot;operation.params&quot;, &quot;operation.requestHeader.value&quot;, and &quot;operation.url&quot; element values during operation calls and in &quot;assert.value&quot; during assertion evaluations.  See example testscript-search.xml." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="inv-3" />
            <severity value="error" />
            <human value="Variable can only contain one of expression, headerField or path." />
            <expression value="expression.empty() or headerField.empty() or path.empty()" />
            <xpath value="not(f:expression and f:headerField and f:path)" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.variable.name" />
    <resource>
      <DataElement>
        <id value="TestScript.variable.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.variable.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.variable.name">
          <path value="TestScript.variable.name" />
          <short value="Descriptive name for this variable" />
          <definition value="Descriptive name for this variable." />
          <comment value="Placeholders would contain the variable name wrapped in ${} in &quot;operation.params&quot;, &quot;operation.requestHeader.value&quot;, and &quot;operation.url&quot; elements.  These placeholders would need to be replaced by the variable value before the operation is executed." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.variable.defaultValue" />
    <resource>
      <DataElement>
        <id value="TestScript.variable.defaultValue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.variable.defaultValue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.variable.defaultValue">
          <path value="TestScript.variable.defaultValue" />
          <short value="Default, hard-coded, or user-defined value for this variable" />
          <definition value="A default, hard-coded, or user-defined value for this variable." />
          <comment value="The purpose of this element is to allow for a pre-defined value that can be used as a default or as an override value. Test engines can optionally use this as a placeholder for user-defined execution time values." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.variable.description" />
    <resource>
      <DataElement>
        <id value="TestScript.variable.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.variable.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.variable.description">
          <path value="TestScript.variable.description" />
          <short value="Natural language description of the variable" />
          <definition value="A free text natural language description of the variable and its purpose." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.variable.expression" />
    <resource>
      <DataElement>
        <id value="TestScript.variable.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.variable.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.variable.expression">
          <path value="TestScript.variable.expression" />
          <short value="The fluentpath expression against the fixture body" />
          <definition value="The fluentpath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified." />
          <comment value="If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define any combination of expression, headerField and path." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.variable.headerField" />
    <resource>
      <DataElement>
        <id value="TestScript.variable.headerField" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.variable.headerField" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.variable.headerField">
          <path value="TestScript.variable.headerField" />
          <short value="HTTP header field name for source" />
          <definition value="Will be used to grab the HTTP header field value from the headers that sourceId is pointing to." />
          <comment value="If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define both headerField and path." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.variable.hint" />
    <resource>
      <DataElement>
        <id value="TestScript.variable.hint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.variable.hint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.variable.hint">
          <path value="TestScript.variable.hint" />
          <short value="Hint help text for default value to enter" />
          <definition value="Displayable text string with hint help information to the user when entering a default value." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.variable.path" />
    <resource>
      <DataElement>
        <id value="TestScript.variable.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.variable.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.variable.path">
          <path value="TestScript.variable.path" />
          <short value="XPath or JSONPath against the fixture body" />
          <definition value="XPath or JSONPath to evaluate against the fixture body.  When variables are defined, only one of either expression, headerField or path must be specified." />
          <comment value="If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to.  If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to.  It is an error to define any combination of expression, headerField and path." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.variable.sourceId" />
    <resource>
      <DataElement>
        <id value="TestScript.variable.sourceId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.variable.sourceId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.variable.sourceId">
          <path value="TestScript.variable.sourceId" />
          <short value="Fixture Id of source expression or headerField within this variable" />
          <definition value="Fixture to evaluate the XPath/JSONPath expression or the headerField  against within this variable." />
          <comment value="This can be a statically defined fixture (at the top of the TestScript) or a dynamically set fixture created by responseId of the `action.operation` element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.rule" />
    <resource>
      <DataElement>
        <id value="TestScript.rule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.rule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.rule">
          <path value="TestScript.rule" />
          <short value="Assert rule used within the test script" />
          <definition value="Assert rule to be used in one or more asserts within the test script." />
          <comment value="Each rule should be treated by test engines as one assertion regardless of how many assertions are contained within the external rule template.  The impact of negative rule evaluation on test script execution is the same as an assertion failure which is described elsewhere in the TestScript resource." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.rule.resource" />
    <resource>
      <DataElement>
        <id value="TestScript.rule.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.rule.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.rule.resource">
          <path value="TestScript.rule.resource" />
          <short value="Assert rule resource reference" />
          <definition value="Reference to the resource (containing the contents of the rule needed for assertions)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.rule.param" />
    <resource>
      <DataElement>
        <id value="TestScript.rule.param" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.rule.param" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.rule.param">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="RuleParam" />
          </extension>
          <path value="TestScript.rule.param" />
          <short value="Rule parameter template" />
          <definition value="Each rule template can take one or more parameters for rule evaluation." />
          <comment value="The parameter value can be dynamic at runtime." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.rule.param.name" />
    <resource>
      <DataElement>
        <id value="TestScript.rule.param.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.rule.param.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.rule.param.name">
          <path value="TestScript.rule.param.name" />
          <short value="Parameter name matching external assert rule parameter" />
          <definition value="Descriptive name for this parameter that matches the external assert rule parameter name." />
          <comment value="The external rule template would be looking for the parameter by this name." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.rule.param.value" />
    <resource>
      <DataElement>
        <id value="TestScript.rule.param.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.rule.param.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.rule.param.value">
          <path value="TestScript.rule.param.value" />
          <short value="Parameter value defined either explicitly or dynamically" />
          <definition value="The explicit or dynamic value for the parameter that will be passed on to the external rule template." />
          <comment value="This value can be overwritten by the assert.rule.param.value i.e. TestScript.rule.param.value will be used if assert.rule.param.value is not specified.  The param value can be a string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before supplying this value to the external rule template." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.ruleset" />
    <resource>
      <DataElement>
        <id value="TestScript.ruleset" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.ruleset" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.ruleset">
          <path value="TestScript.ruleset" />
          <short value="Assert ruleset used within the test script" />
          <definition value="Contains one or more rules.  Offers a way to group rules so assertions could reference the group of rules and have them all applied." />
          <comment value="Each rule within a ruleset should be treated by test engines as one assertion regardless of how many assertions are contained within the external rule template.  The impact of negative rule evaluation on test script execution is the same as an assertion failure which is described elsewhere in the TestScript resource." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.ruleset.resource" />
    <resource>
      <DataElement>
        <id value="TestScript.ruleset.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.ruleset.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.ruleset.resource">
          <path value="TestScript.ruleset.resource" />
          <short value="Assert ruleset resource reference" />
          <definition value="Reference to the resource (containing the contents of the ruleset needed for assertions)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule" />
    <resource>
      <DataElement>
        <id value="TestScript.ruleset.rule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.ruleset.rule">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="RulesetRule" />
          </extension>
          <path value="TestScript.ruleset.rule" />
          <short value="The referenced rule within the ruleset" />
          <definition value="The referenced rule within the external ruleset template." />
          <comment value="This qualifies each param name so that  a parameter with the same name can be used differently by the different rules with the ruleset." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule.ruleId" />
    <resource>
      <DataElement>
        <id value="TestScript.ruleset.rule.ruleId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule.ruleId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.ruleset.rule.ruleId">
          <path value="TestScript.ruleset.rule.ruleId" />
          <short value="Id of referenced rule within the ruleset" />
          <definition value="Id of the referenced rule within the external ruleset template." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule.param" />
    <resource>
      <DataElement>
        <id value="TestScript.ruleset.rule.param" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule.param" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.ruleset.rule.param">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="RulesetRuleParam" />
          </extension>
          <path value="TestScript.ruleset.rule.param" />
          <short value="Ruleset rule parameter template" />
          <definition value="Each rule template can take one or more parameters for rule evaluation." />
          <comment value="The parameter value can be dynamic at runtime." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule.param.name" />
    <resource>
      <DataElement>
        <id value="TestScript.ruleset.rule.param.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule.param.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.ruleset.rule.param.name">
          <path value="TestScript.ruleset.rule.param.name" />
          <short value="Parameter name matching external assert ruleset rule parameter" />
          <definition value="Descriptive name for this parameter that matches the external assert ruleset rule parameter name." />
          <comment value="The external rule template would be looking for the parameter by this name." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule.param.value" />
    <resource>
      <DataElement>
        <id value="TestScript.ruleset.rule.param.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.ruleset.rule.param.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.ruleset.rule.param.value">
          <path value="TestScript.ruleset.rule.param.value" />
          <short value="Parameter value defined either explicitly or dynamically" />
          <definition value="The value for the parameter that will be passed on to the external ruleset rule template." />
          <comment value="This value can be overwritten by the assert.ruleset.rule.param.value i.e. TestScript.ruleset.rule.param.value will be used if assert.ruleset.rule.param.value is not specified.  The param value can be a string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before supplying this value to the external rule template." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup" />
    <resource>
      <DataElement>
        <id value="TestScript.setup" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup">
          <path value="TestScript.setup" />
          <short value="A series of required setup operations before tests are executed" />
          <definition value="A series of required setup operations before tests are executed." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SetupAction" />
          </extension>
          <path value="TestScript.setup.action" />
          <short value="A setup operation or assert to perform" />
          <definition value="Action would contain either an operation or an assertion." />
          <comment value="An action should contain either an operation or an assertion but not both.  It can contain any number of variables." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="inv-1" />
            <severity value="error" />
            <human value="Setup action SHALL contain either an operation or assert but not both." />
            <expression value="operation.exists() xor assert.exists()" />
            <xpath value="(f:operation or f:assert) and not(f:operation and f:assert)" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation">
          <path value="TestScript.setup.action.operation" />
          <short value="The setup operation to perform" />
          <definition value="The operation to perform." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="inv-7" />
            <severity value="error" />
            <human value="Setup operation SHALL contain either sourceId or targetId or params or url." />
            <expression value="sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))" />
            <xpath value="f:sourceId or ((f:targetId or f:url or f:params) and (count(f:targetId) + count(f:url) + count(f:params) =1)) or (f:type/f:code/@value='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.type" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.type">
          <path value="TestScript.setup.action.operation.type" />
          <short value="The operation code type that will be executed" />
          <definition value="Server interaction or operation type." />
          <comment value="See http://build.fhir.org/http.html for list of server interactions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TestScriptOperationCode" />
            </extension>
            <strength value="extensible" />
            <description value="The allowable operation code types." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/testscript-operation-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.resource" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.resource">
          <path value="TestScript.setup.action.operation.resource" />
          <short value="Resource type" />
          <definition value="The type of the resource.  See http://build.fhir.org/resourcelist.html." />
          <comment value="If &quot;url&quot; element is specified, then &quot;targetId&quot;, &quot;params&quot;, and &quot;resource&quot; elements will be ignored as &quot;url&quot; element will have everything needed for constructing the request url.  If &quot;params&quot; element is specified, then &quot;targetId&quot; element is ignored. For FHIR operations that require a resource (e.g. &quot;read&quot; and &quot;vread&quot; operations), the &quot;resource&quot; element must be specified when &quot;params&quot; element is specified.  If &quot;url&quot; and &quot;params&quot; elements are absent, then the request url will be constructed from &quot;targetId&quot; fixture if present. For &quot;read&quot; operation, the resource and id values will be extracted from &quot;targetId&quot; fixture and used to construct the url. For &quot;vread&quot; and &quot;history&quot; operations, the versionId value will also be used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRDefinedType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Either a resource or a data type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/defined-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.label" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.label" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.label" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.label">
          <path value="TestScript.setup.action.operation.label" />
          <short value="Tracking/logging operation label" />
          <definition value="The label would be used for tracking/logging purposes by test engines." />
          <comment value="This has no impact on the verification itself." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.description" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.description">
          <path value="TestScript.setup.action.operation.description" />
          <short value="Tracking/reporting operation description" />
          <definition value="The description would be used by test engines for tracking and reporting purposes." />
          <comment value="This has no impact on the verification itself." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.accept" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.accept" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.accept" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.accept">
          <path value="TestScript.setup.action.operation.accept" />
          <short value="xml | json | ttl | none" />
          <definition value="The content-type or mime-type to use for RESTful operation in the 'Accept' header." />
          <comment value="If this is specified, then test engine shall set the 'Accept' header to the corresponding value.    If 'xml' is specified, then 'Accept' header of 'application/fhir+xml' will be set.  If 'json' is specified, then 'application/fhir+json' will be used.    If you'd like to explicitly set the 'Accept' to some other value then use the 'requestHeader' element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <meaningWhenMissing value="xml" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContentType" />
            </extension>
            <strength value="required" />
            <description value="The content or mime type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/content-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.contentType" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.contentType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.contentType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.contentType">
          <path value="TestScript.setup.action.operation.contentType" />
          <short value="xml | json | ttl | none" />
          <definition value="The content-type or mime-type to use for RESTful operation in the 'Content-Type' header." />
          <comment value="If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value.    If 'xml' is specified, then 'Content-Type' header of 'application/fhir+xml' will be set.    If 'json' is specified, then 'application/fhir+json' will be used.    If you'd like to explicitly set the 'Content-Type' to some other value then use the 'requestHeader' element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <meaningWhenMissing value="xml" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContentType" />
            </extension>
            <strength value="required" />
            <description value="The content or mime type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/content-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.destination" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.destination" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.destination" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.destination">
          <path value="TestScript.setup.action.operation.destination" />
          <short value="Server responding to the request" />
          <definition value="The server where the request message is destined for.  Must be one of the server numbers listed in TestScript.destination section." />
          <comment value="If multiple TestScript.destination elements are defined and operation.destination is undefined, test engine will report an error as it cannot determine what destination to use for the exchange." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.encodeRequestUrl" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.encodeRequestUrl" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.encodeRequestUrl" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.encodeRequestUrl">
          <path value="TestScript.setup.action.operation.encodeRequestUrl" />
          <short value="Whether or not to send the request url in encoded format" />
          <definition value="Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.origin" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.origin" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.origin" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.origin">
          <path value="TestScript.setup.action.operation.origin" />
          <short value="Server initiating the request" />
          <definition value="The server where the request message originates from.  Must be one of the server numbers listed in TestScript.origin section." />
          <comment value="If absent, test engine will send the message.  When present, test engine will not send the request message but will wait for the request message to be sent from this origin server." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.params" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.params" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.params" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.params">
          <path value="TestScript.setup.action.operation.params" />
          <short value="Explicitly defined path parameters" />
          <definition value="Path plus parameters after [type].  Used to set parts of the request URL explicitly." />
          <comment value="If &quot;url&quot; element is specified, then &quot;targetId&quot;, &quot;params&quot;, and &quot;resource&quot; elements will be ignored as &quot;url&quot; element will have everything needed for constructing the request url.  If &quot;params&quot; element is specified, then &quot;targetId&quot; element is ignored.  For FHIR operations that require a resource (e.g. &quot;read&quot; and &quot;vread&quot; operations), the &quot;resource&quot; element must be specified when &quot;params&quot; element is specified.  If &quot;url&quot; and &quot;params&quot; elements are absent, then the request url will be constructed from &quot;targetId&quot; fixture if present.  For &quot;read&quot; operation, the resource and id values will be extracted from &quot;targetId&quot; fixture and used to construct the url.  For &quot;vread&quot; and &quot;history&quot; operations, the versionId value will also be used.   Test engines would append whatever is specified for &quot;params&quot; to the URL after the resource type without tampering with the string (beyond encoding the URL for HTTP).  The &quot;params&quot; element does not correspond exactly to &quot;search parameters&quot;.  Nor is it the &quot;path&quot;.  It corresponds to the part of the URL that comes after the [type] (when &quot;resource&quot; element is specified); e.g. It corresponds to &quot;/[id]/_history/[vid] {?_format=[mime-type]}&quot; in the following operation: GET [base]/[type]/[id]/_history/[vid] {?_format=[mime-type]}  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.requestHeader" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.requestHeader" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.requestHeader" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.requestHeader">
          <path value="TestScript.setup.action.operation.requestHeader" />
          <short value="Each operation can have one or more header elements" />
          <definition value="Header elements would be used to set HTTP headers." />
          <comment value="This gives control to test-script writers to set headers explicitly based on test requirements.  It will allow for testing using:  - &quot;If-Modified-Since&quot; and &quot;If-None-Match&quot; headers.  See http://build.fhir.org/http.html#2.1.0.5.1 - &quot;If-Match&quot; header.  See http://build.fhir.org/http.html#2.1.0.11 - Conditional Create using &quot;If-None-Exist&quot;.  See http://build.fhir.org/http.html#2.1.0.13.1 - Invalid &quot;Content-Type&quot; header for negative testing. - etc." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.requestHeader.field" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.requestHeader.field" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.requestHeader.field" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.requestHeader.field">
          <path value="TestScript.setup.action.operation.requestHeader.field" />
          <short value="HTTP header field name" />
          <definition value="The HTTP header field e.g. &quot;Accept&quot;." />
          <comment value="If header element is specified, then field is required." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.requestHeader.value" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.requestHeader.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.requestHeader.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.requestHeader.value">
          <path value="TestScript.setup.action.operation.requestHeader.value" />
          <short value="HTTP headerfield value" />
          <definition value="The value of the header e.g. &quot;application/fhir+xml&quot;." />
          <comment value="If header element is specified, then value is required.  No conversions will be done by the test engine e.g. &quot;xml&quot; to &quot;application/fhir+xml&quot;.  The values will be set in HTTP headers &quot;as-is&quot;.  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.requestId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.requestId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.requestId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.requestId">
          <path value="TestScript.setup.action.operation.requestId" />
          <short value="Fixture Id of mapped request" />
          <definition value="The fixture id (maybe new) to map to the request." />
          <comment value="If a requestId is supplied, then the resulting request (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by &quot;requestId&quot;.  If requestId is not specified, it is the test engine's responsibility to store the request and use it as the requestId in subsequent assertions when assertion path and/or headerField is specified, direction is equal to request, and the requestId in not specified." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.responseId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.responseId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.responseId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.responseId">
          <path value="TestScript.setup.action.operation.responseId" />
          <short value="Fixture Id of mapped response" />
          <definition value="The fixture id (maybe new) to map to the response." />
          <comment value="If a responseId is supplied, and the server responds, then the resulting response (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by &quot;responseId&quot;.  If responseId is not specified, it is the test engine's responsibility to store the response and use it as the responseId in subsequent assertions when assertion path and/or headerField is specified and the responseId is not specified." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.sourceId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.sourceId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.sourceId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.sourceId">
          <path value="TestScript.setup.action.operation.sourceId" />
          <short value="Fixture Id of body for PUT and POST requests" />
          <definition value="The id of the fixture used as the body of a PUT or POST request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.targetId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.targetId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.targetId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.targetId">
          <path value="TestScript.setup.action.operation.targetId" />
          <short value="Id of fixture used for extracting the [id],  [type], and [vid] for GET requests" />
          <definition value="Id of fixture used for extracting the [id],  [type], and [vid] for GET requests." />
          <comment value="If &quot;url&quot; element is specified, then &quot;targetId&quot;, &quot;params&quot;, and &quot;resource&quot; elements will be ignored as &quot;url&quot; element will have everything needed for constructing the request url.  If &quot;params&quot; element is specified, then &quot;targetId&quot; element is ignored.  For FHIR operations that require a resource (e.g. &quot;read&quot; and &quot;vread&quot; operations), the &quot;resource&quot; element must be specified when &quot;params&quot; element is specified.  If &quot;url&quot; and &quot;params&quot; elements are absent, then the request url will be constructed from &quot;targetId&quot; fixture if present.  For &quot;read&quot; operation, the resource and id values will be extracted from &quot;targetId&quot; fixture and used to construct the url.  For &quot;vread&quot; and &quot;history&quot; operations, the versionId value will also be used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.url" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.operation.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.operation.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.operation.url">
          <path value="TestScript.setup.action.operation.url" />
          <short value="Request URL" />
          <definition value="Complete request URL." />
          <comment value="Used to set the request URL explicitly.  If &quot;url&quot; element is defined, then &quot;targetId&quot;, &quot;resource&quot;, and &quot;params&quot; elements will be ignored.  Test engines would use whatever is specified in &quot;url&quot; without tampering with the string (beyond encoding the URL for HTTP).  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert">
          <path value="TestScript.setup.action.assert" />
          <short value="The assertion to perform" />
          <definition value="Evaluates the results of previous operations to determine if the server under test behaves appropriately." />
          <comment value="In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="inv-5" />
            <severity value="error" />
            <human value="Only a single assertion SHALL be present within setup action assert element." />
            <expression value="contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + rule.count() + ruleset.count() + validateProfileId.count() &lt;=1" />
            <xpath value="count(f:contentType) + count(f:expression) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:requestMethod) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:rule) + count(f:ruleset) + count(f:validateProfileId)  &lt;=1" />
          </constraint>
          <constraint>
            <key value="inv-10" />
            <severity value="error" />
            <human value="Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither." />
            <expression value="compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())" />
            <xpath value="(f:compareToSourceId and f:compareToSourceExpression) or (f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourceExpression or f:compareToSourcePath)" />
          </constraint>
          <constraint>
            <key value="inv-12" />
            <severity value="error" />
            <human value="Setup action assert response and responseCode SHALL be empty when direction equals request" />
            <expression value="(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'" />
            <xpath value="((count(f:response) + count(f:responseCode)) = 0 and (f:direction/@value='request')) or (count(f:direction) = 0) or (f:direction/@value='response')" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.label" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.label" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.label" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.label">
          <path value="TestScript.setup.action.assert.label" />
          <short value="Tracking/logging assertion label" />
          <definition value="The label would be used for tracking/logging purposes by test engines." />
          <comment value="This has no impact on the verification itself." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.description" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.description">
          <path value="TestScript.setup.action.assert.description" />
          <short value="Tracking/reporting assertion description" />
          <definition value="The description would be used by test engines for tracking and reporting purposes." />
          <comment value="This has no impact on the verification itself." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.direction" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.direction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.direction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.direction">
          <path value="TestScript.setup.action.assert.direction" />
          <short value="response | request" />
          <definition value="The direction to use for the assertion." />
          <comment value="If the direction is specified as &quot;response&quot; (the default), then the processing of this assert is against the received response message. If the direction is specified as &quot;request&quot;, then the processing of this assert is against the sent request message." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AssertionDirectionType" />
            </extension>
            <strength value="required" />
            <description value="The type of direction to use for assertion." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/assert-direction-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.compareToSourceId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.compareToSourceId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.compareToSourceId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.compareToSourceId">
          <path value="TestScript.setup.action.assert.compareToSourceId" />
          <short value="Id of the source fixture to be evaluated" />
          <definition value="Id of the source fixture used as the contents to be evaluated by either the &quot;source/expression&quot; or &quot;sourceId/path&quot; definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.compareToSourceExpression" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.compareToSourceExpression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.compareToSourceExpression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.compareToSourceExpression">
          <path value="TestScript.setup.action.assert.compareToSourceExpression" />
          <short value="The fluentpath expression to evaluate against the source fixture" />
          <definition value="The fluentpath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both." />
          <comment value="Thefhirpath expression to be evaluated against the expected fixture to compare to. Ignored if &quot;assert.value&quot; is used. The evaluation will be done before the assertion is evaluated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.compareToSourcePath" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.compareToSourcePath" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.compareToSourcePath" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.compareToSourcePath">
          <path value="TestScript.setup.action.assert.compareToSourcePath" />
          <short value="XPath or JSONPath expression to evaluate against the source fixture" />
          <definition value="XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both." />
          <comment value="The XPath or JSONPath expression to be evaluated against the expected fixture to compare to. Ignored if &quot;assert.value&quot; is used. The evaluation will be done before the assertion is evaluated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.contentType" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.contentType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.contentType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.contentType">
          <path value="TestScript.setup.action.assert.contentType" />
          <short value="xml | json | ttl | none" />
          <definition value="The content-type or mime-type to use for RESTful operation in the 'Content-Type' header." />
          <comment value="If this is specified, then test engine shall confirm that the content-type of the last operation's headers is set to this value.  If &quot;assert.sourceId&quot; element is specified, then the evaluation will be done against the headers mapped to that sourceId (and not the last operation's headers).    If 'xml' is specified, then 'Content-Type' header of 'application/fhir+xml' will be confirmed. If 'json' is specified, then 'application/fhir+json' will be used. If you'd like to have more control over the string, then use 'assert.headerField' instead." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <meaningWhenMissing value="xml" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContentType" />
            </extension>
            <strength value="required" />
            <description value="The content or mime type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/content-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.expression" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.expression">
          <path value="TestScript.setup.action.assert.expression" />
          <short value="The fluentpath expression to be evaluated" />
          <definition value="The fluentpath expression to be evaluated against the request or response message contents - HTTP headers and payload." />
          <comment value="If both &quot;expression&quot; and a &quot;fixtureId&quot; are specified, then the expression will be evaluated against the request or response body mapped to the fixtureId.  If &quot;expression&quot; is specified and a &quot;fixtureId&quot; is not, then the expression will be evaluated against the response body of the last operation.  Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.headerField" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.headerField" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.headerField" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.headerField">
          <path value="TestScript.setup.action.assert.headerField" />
          <short value="HTTP header field name" />
          <definition value="The HTTP header field name e.g. 'Location'." />
          <comment value="If &quot;headerField&quot; is specified then &quot;value&quot; must be specified.  If &quot;sourceId&quot; is not specified, then &quot;headerField&quot; will be evaluated against the last operation's response headers.  Test engines are to keep track of the last operation's response body and response headers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.minimumId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.minimumId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.minimumId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.minimumId">
          <path value="TestScript.setup.action.assert.minimumId" />
          <short value="Fixture Id of minimum content resource" />
          <definition value="The ID of a fixture.  Asserts that the response contains at a minimum the fixture specified by minimumId." />
          <comment value="Asserts that the response contains all the element/content in another fixture pointed to by minimumId.  This can be a statically defined fixture or one that is dynamically set via responseId." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.navigationLinks" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.navigationLinks" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.navigationLinks" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.navigationLinks">
          <path value="TestScript.setup.action.assert.navigationLinks" />
          <short value="Perform validation on navigation links?" />
          <definition value="Whether or not the test execution performs validation on the bundle navigation links." />
          <comment value="Asserts that the Bundle contains first, last, and next links." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.operator" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.operator" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.operator" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.operator">
          <path value="TestScript.setup.action.assert.operator" />
          <short value="equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval" />
          <definition value="The operator type defines the conditional behavior of the assert. If not defined, the default is equals." />
          <comment value="Operators are useful especially for negative testing.  If operator is not specified, then the &quot;equals&quot; operator is assumed; e.g. &lt;code&gt;   &lt;assert&gt;  &lt;operator value=&quot;in&quot; /&gt;  &lt;responseCode value=&quot;200,201,204&quot; /&gt;    &lt;/assert&gt;    &lt;assert&gt;  &lt;operator value=&quot;notEquals&quot; /&gt;  &lt;response value=&quot;okay&quot;/&gt;   &lt;/assert&gt;    &lt;assert&gt;  &lt;operator value=&quot;greaterThan&quot; /&gt;    &lt;responseHeader&gt;     &lt;field value=&quot;Content-Length&quot; /&gt;     &lt;value value=&quot;0&quot; /&gt;    &lt;responseHeader/&gt;   &lt;/assert&gt; &lt;/code&gt;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AssertionOperatorType" />
            </extension>
            <strength value="required" />
            <description value="The type of operator to use for assertion." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/assert-operator-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.path" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.path">
          <path value="TestScript.setup.action.assert.path" />
          <short value="XPath or JSONPath expression" />
          <definition value="The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server." />
          <comment value="If both &quot;path&quot; and a &quot;fixtureId&quot; are specified, then the path will be evaluated against the request or response body mapped to the fixtureId.  If &quot;path&quot; is specified and a &quot;fixtureId&quot; is not, then the path will be evaluated against the response body of the last operation.  Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.requestMethod" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.requestMethod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.requestMethod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.requestMethod">
          <path value="TestScript.setup.action.assert.requestMethod" />
          <short value="delete | get | options | patch | post | put" />
          <definition value="The request method or HTTP operation code to compare against that used by the client system under test." />
          <comment value="If &quot;requestMethod&quot; is specified then it will be used in place of &quot;value&quot;. The &quot;requestMethod&quot; will evaluate against the last operation's request HTTP operation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TestScriptRequestMethodCode" />
            </extension>
            <strength value="required" />
            <description value="The allowable request method or HTTP operation codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/http-operations" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.requestURL" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.requestURL" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.requestURL" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.requestURL">
          <path value="TestScript.setup.action.assert.requestURL" />
          <short value="Request URL comparison value" />
          <definition value="The value to use in a comparison against the request URL path string." />
          <comment value="If &quot;requestURL&quot; is specified then it will be used in place of &quot;value&quot;. The &quot;requestURL&quot; will evaluate against the last operation's full request URL path string." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.resource" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.resource">
          <path value="TestScript.setup.action.assert.resource" />
          <short value="Resource type" />
          <definition value="The type of the resource.  See http://build.fhir.org/resourcelist.html." />
          <comment value="This will be expected resource type in response body e.g. in read, vread, search, etc.  See http://build.fhir.org/resourcelist.html for complete list of resource types; e.g. &lt;assert &gt; &lt;resourceType value=&quot;Patient&quot; &lt;/assert&gt;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRDefinedType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="Either a resource or a data type." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/defined-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.response" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.response" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.response" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.response">
          <path value="TestScript.setup.action.assert.response" />
          <short value="okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable" />
          <definition value="okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable." />
          <comment value="This is a shorter way of achieving similar verifications via &quot;assert.responseCode&quot;.  If you need more control, then use &quot;assert.responseCode&quot;  e.g. &lt;assert&gt;  &lt;contentType value=&quot;json&quot; /&gt;  &lt;response value=&quot;okay&quot;/&gt; &lt;/assert&gt;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AssertionResponseTypes" />
            </extension>
            <strength value="required" />
            <description value="The type of response code to use for assertion." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/assert-response-code-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.responseCode" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.responseCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.responseCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.responseCode">
          <path value="TestScript.setup.action.assert.responseCode" />
          <short value="HTTP response code to test" />
          <definition value="The value of the HTTP response code to be tested." />
          <comment value="To be used with &quot;operator&quot; attribute value. Asserts that the response code equals this value if &quot;operator&quot; is not specified.   If the operator is &quot;in&quot; or &quot;notIn&quot; then the responseCode would be a comma-separated list of values e.g. &quot;200,201&quot;. Otherwise, it's expected to be a numeric value.   If &quot;fixture&quot; is not specified, then the &quot;responseBodyId&quot; value of the last operation is assumed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.rule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.rule">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ActionAssertRule" />
          </extension>
          <path value="TestScript.setup.action.assert.rule" />
          <short value="The reference to a TestScript.rule" />
          <definition value="The TestScript.rule this assert will evaluate." />
          <comment value="Each rule should get evaluated by test engines as one assertion regardless of how many assertions are contained within the external rule template.  The impact of negative rule evaluation on test script execution is the same as an assertion failure which is descibed elsewhere in the TestScript resource." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule.ruleId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.rule.ruleId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule.ruleId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.rule.ruleId">
          <path value="TestScript.setup.action.assert.rule.ruleId" />
          <short value="Id of the TestScript.rule" />
          <definition value="The TestScript.rule id value this assert will evaluate." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule.param" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.rule.param" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule.param" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.rule.param">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ActionAssertRuleParam" />
          </extension>
          <path value="TestScript.setup.action.assert.rule.param" />
          <short value="Rule parameter template" />
          <definition value="Each rule template can take one or more parameters for rule evaluation." />
          <comment value="The parameter value can be dynamic at runtime." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule.param.name" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.rule.param.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule.param.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.rule.param.name">
          <path value="TestScript.setup.action.assert.rule.param.name" />
          <short value="Parameter name matching external assert rule parameter" />
          <definition value="Descriptive name for this parameter that matches the external assert rule parameter name." />
          <comment value="The external rule template would be looking for the parameter by this name." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule.param.value" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.rule.param.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.rule.param.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.rule.param.value">
          <path value="TestScript.setup.action.assert.rule.param.value" />
          <short value="Parameter value defined either explicitly or dynamically" />
          <definition value="The value for the parameter that will be passed on to the external rule template." />
          <comment value="This value overwrites the value (if any) specified in TestScript.rule.param.value.  The param value can be a string-representation of a number, string, or boolean that is expected.  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before supplying this value to the external rule template." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.ruleset" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.ruleset">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ActionAssertRuleset" />
          </extension>
          <path value="TestScript.setup.action.assert.ruleset" />
          <short value="The reference to a TestScript.ruleset" />
          <definition value="The TestScript.ruleset this assert will evaluate." />
          <comment value="Each rule within a ruleset should get evaluated by test engines as a separate assertion.  The impact of negative rule evaluation on test script execution is the same as an assertion failure which is descibed elsewhere in the TestScript resource.  If the first rule within the ruleset results in a failed assertion, then test engines do not have to evaluate the rest of the rules within the ruleset." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rulesetId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.ruleset.rulesetId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rulesetId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.ruleset.rulesetId">
          <path value="TestScript.setup.action.assert.ruleset.rulesetId" />
          <short value="Id of the TestScript.ruleset" />
          <definition value="The TestScript.ruleset id value this assert will evaluate." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.ruleset.rule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.ruleset.rule">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ActionAssertRulesetRule" />
          </extension>
          <path value="TestScript.setup.action.assert.ruleset.rule" />
          <short value="The referenced rule within the ruleset" />
          <definition value="The referenced rule within the external ruleset template." />
          <comment value="This qualifies each param name so that  a parameter with the same name can be used differently by the different rules with the ruleset." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule.ruleId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.ruleset.rule.ruleId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule.ruleId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.ruleset.rule.ruleId">
          <path value="TestScript.setup.action.assert.ruleset.rule.ruleId" />
          <short value="Id of referenced rule within the ruleset" />
          <definition value="Id of the referenced rule within the external ruleset template." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule.param" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.ruleset.rule.param" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule.param" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.ruleset.rule.param">
          <path value="TestScript.setup.action.assert.ruleset.rule.param" />
          <short value="Rule parameter template" />
          <definition value="Each rule template can take one or more parameters for rule evaluation." />
          <comment value="The parameter value can be dynamic at runtime." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule.param.name" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.ruleset.rule.param.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule.param.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.ruleset.rule.param.name">
          <path value="TestScript.setup.action.assert.ruleset.rule.param.name" />
          <short value="Parameter name matching external assert ruleset rule parameter" />
          <definition value="Descriptive name for this parameter that matches the external assert ruleset rule parameter name." />
          <comment value="The external rule template would be looking for the parameter by this name." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule.param.value" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.ruleset.rule.param.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.ruleset.rule.param.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.ruleset.rule.param.value">
          <path value="TestScript.setup.action.assert.ruleset.rule.param.value" />
          <short value="Parameter value defined either explicitly or dynamically" />
          <definition value="The value for the parameter that will be passed on to the external ruleset rule template." />
          <comment value="This value overwrites the value (if any) specified in TestScript.ruleset.rule.param.value.  The param value can be a string-representation of a number, string, or boolean that is expected.  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before supplying this value to the external rule template." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.sourceId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.sourceId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.sourceId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.sourceId">
          <path value="TestScript.setup.action.assert.sourceId" />
          <short value="Fixture Id of source expression or headerField" />
          <definition value="Fixture to evaluate the XPath/JSONPath expression or the headerField  against." />
          <comment value="This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.validateProfileId" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.validateProfileId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.validateProfileId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.validateProfileId">
          <path value="TestScript.setup.action.assert.validateProfileId" />
          <short value="Profile Id of validation profile reference" />
          <definition value="The ID of the Profile to validate against." />
          <comment value="The ID of a Profile fixture. Asserts that the response is valid according to the Profile specified by validateProfileId." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.value" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.value">
          <path value="TestScript.setup.action.assert.value" />
          <short value="The value to compare to" />
          <definition value="The value to compare to." />
          <comment value="The string-representation of a number, string, or boolean that is expected.  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before comparing this value to the actual value." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.warningOnly" />
    <resource>
      <DataElement>
        <id value="TestScript.setup.action.assert.warningOnly" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.setup.action.assert.warningOnly" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.setup.action.assert.warningOnly">
          <path value="TestScript.setup.action.assert.warningOnly" />
          <short value="Will this assert produce a warning only on error?" />
          <definition value="Whether or not the test execution will produce a warning only on error for this assert." />
          <comment value="If this element is specified and it is true, then assertion failures can be logged by test engine but should not stop the test script execution from proceeding.  There are likely cases where the spec is not clear on what should happen. If the spec says something is optional (maybe a response header for example), but a server doesn’t do it, we could choose to issue a warning." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="false" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.test" />
    <resource>
      <DataElement>
        <id value="TestScript.test" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.test" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.test">
          <path value="TestScript.test" />
          <short value="A test in this script" />
          <definition value="A test in this script." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.test.name" />
    <resource>
      <DataElement>
        <id value="TestScript.test.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.test.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.test.name">
          <path value="TestScript.test.name" />
          <short value="Tracking/logging name of this test" />
          <definition value="The name of this test used for tracking/logging purposes by test engines." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.test.description" />
    <resource>
      <DataElement>
        <id value="TestScript.test.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.test.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.test.description">
          <path value="TestScript.test.description" />
          <short value="Tracking/reporting short description of the test" />
          <definition value="A short description of the test used by test engines for tracking and reporting purposes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.test.action" />
    <resource>
      <DataElement>
        <id value="TestScript.test.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.test.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.test.action">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="TestAction" />
          </extension>
          <path value="TestScript.test.action" />
          <short value="A test operation or assert to perform" />
          <definition value="Action would contain either an operation or an assertion." />
          <comment value="An action should contain either an operation or an assertion but not both.  It can contain any number of variables." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="inv-2" />
            <severity value="error" />
            <human value="Test action SHALL contain either an operation or assert but not both." />
            <expression value="operation.exists() xor assert.exists()" />
            <xpath value="(f:operation or f:assert) and not(f:operation and f:assert)" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.test.action.operation" />
    <resource>
      <DataElement>
        <id value="TestScript.test.action.operation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.test.action.operation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.test.action.operation">
          <path value="TestScript.test.action.operation" />
          <short value="The setup operation to perform" />
          <definition value="An operation would involve a REST request to a server." />
          <min value="0" />
          <max value="1" />
          <contentReference value="#TestScript.setup.action.operation" />
          <constraint>
            <key value="inv-8" />
            <severity value="error" />
            <human value="Test operation SHALL contain either sourceId or targetId or params or url." />
            <expression value="sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))" />
            <xpath value="f:sourceId or (f:targetId or f:url or f:params) and (count(f:targetId) + count(f:url) + count(f:params) =1) or (f:type/f:code/@value='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.test.action.assert" />
    <resource>
      <DataElement>
        <id value="TestScript.test.action.assert" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.test.action.assert" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.test.action.assert">
          <path value="TestScript.test.action.assert" />
          <short value="The setup assertion to perform" />
          <definition value="Evaluates the results of previous operations to determine if the server under test behaves appropriately." />
          <comment value="In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine." />
          <min value="0" />
          <max value="1" />
          <contentReference value="#TestScript.setup.action.assert" />
          <constraint>
            <key value="inv-6" />
            <severity value="error" />
            <human value="Only a single assertion SHALL be present within test action assert element." />
            <expression value="contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + rule.count() + ruleset.count() + validateProfileId.count() &lt;=1" />
            <xpath value="count(f:contentType) + count(f:expression) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:requestMethod) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:rule) + count(f:ruleset) + count(f:validateProfileId)  &lt;=1" />
          </constraint>
          <constraint>
            <key value="inv-11" />
            <severity value="error" />
            <human value="Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither." />
            <expression value="compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())" />
            <xpath value="(f:compareToSourceId and f:compareToSourceExpression) or (f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourceExpression or f:compareToSourcePath)" />
          </constraint>
          <constraint>
            <key value="inv-13" />
            <severity value="error" />
            <human value="Test action assert response and response and responseCode SHALL be empty when direction equals request" />
            <expression value="(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'" />
            <xpath value="((count(f:response) + count(f:responseCode)) = 0 and (f:direction/@value='request')) or (count(f:direction) = 0) or (f:direction/@value='response')" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.teardown" />
    <resource>
      <DataElement>
        <id value="TestScript.teardown" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.teardown" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.teardown">
          <path value="TestScript.teardown" />
          <short value="A series of required clean up steps" />
          <definition value="A series of operations required to clean up after the all the tests are executed (successfully or otherwise)." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.teardown.action" />
    <resource>
      <DataElement>
        <id value="TestScript.teardown.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.teardown.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.teardown.action">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="TeardownAction" />
          </extension>
          <path value="TestScript.teardown.action" />
          <short value="One or more teardown operations to perform" />
          <definition value="The teardown action will only contain an operation." />
          <comment value="An action should contain either an operation or an assertion but not both.  It can contain any number of variables." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestScript.teardown.action.operation" />
    <resource>
      <DataElement>
        <id value="TestScript.teardown.action.operation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestScript.teardown.action.operation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestScript.teardown.action.operation">
          <path value="TestScript.teardown.action.operation" />
          <short value="The teardown operation to perform" />
          <definition value="An operation would involve a REST request to a server." />
          <min value="1" />
          <max value="1" />
          <contentReference value="#TestScript.setup.action.operation" />
          <constraint>
            <key value="inv-9" />
            <severity value="error" />
            <human value="Teardown operation SHALL contain either sourceId or targetId or params or url." />
            <expression value="sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))" />
            <xpath value="f:sourceId or (f:targetId or f:url or (f:params and f:resource)) and (count(f:targetId) + count(f:url) + count(f:params) =1) or (f:type/f:code/@value='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Basic" />
    <resource>
      <DataElement>
        <id value="Basic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Basic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Basic">
          <path value="Basic" />
          <short value="Resource for non-supported content" />
          <definition value="Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification." />
          <alias value="Z-resource" />
          <alias value="Extension-resource" />
          <alias value="Custom-resource" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Act, Entity or Role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.structure" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Basic.identifier" />
    <resource>
      <DataElement>
        <id value="Basic.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Basic.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Basic.identifier">
          <path value="Basic.identifier" />
          <short value="Business identifier" />
          <definition value="Identifier assigned to the resource for business purposes, outside the context of FHIR." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Basic.code" />
    <resource>
      <DataElement>
        <id value="Basic.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Basic.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Basic.code">
          <path value="Basic.code" />
          <short value="Kind of Resource" />
          <definition value="Identifies the 'type' of resource - equivalent to the resource name for other resources." />
          <comment value="Because resource references will only be able to indicate 'Basic', the type of reference will need to be specified in a Profile identified as part of the resource.  Refer to the resource notes section for information on appropriate terminologies for this code.&#xA;&#xA;This element is labeled as a modifier because the it defines the meaning of the resource and cannot be ignored." />
          <requirements value="Must be able to distinguish different types of Basic resources." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BasicResourceType" />
            </extension>
            <strength value="example" />
            <description value="Codes for identifying types of resources not yet defined by FHIR" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/basic-resource-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="./code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Basic.subject" />
    <resource>
      <DataElement>
        <id value="Basic.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Basic.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Basic.subject">
          <path value="Basic.subject" />
          <short value="Identifies the focus of this resource" />
          <definition value="Identifies the patient, practitioner, device or any other resource that is the &quot;focus&quot; of this resource." />
          <comment value="Optional as not all potential resources will have subjects.  Resources associated with multiple subjects can handle this via extension." />
          <requirements value="Needed for partitioning the resource by Patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./participation[typeCode='SBJ'] (possibly through a ControlAct and Role)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Basic.created" />
    <resource>
      <DataElement>
        <id value="Basic.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Basic.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Basic.created">
          <path value="Basic.created" />
          <short value="When created" />
          <definition value="Identifies when the resource was first created." />
          <requirements value="Allows ordering resource instances by time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./participation[typeCode='AUT']/time (possibly through a ControlAct and Role)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Basic.author" />
    <resource>
      <DataElement>
        <id value="Basic.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Basic.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Basic.author">
          <path value="Basic.author" />
          <short value="Who created" />
          <definition value="Indicates who was responsible for creating the resource instance." />
          <requirements value="Needed for partitioning the resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./participation[typeCode='SUB'] (possibly through a ControlAct and Role)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport" />
    <resource>
      <DataElement>
        <id value="TestReport" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport">
          <path value="TestReport" />
          <short value="Describes the results of a TestScript execution" />
          <definition value="A summary of information based on the results of executing a TestScript." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="BaseConformance" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.misc" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.identifier" />
    <resource>
      <DataElement>
        <id value="TestReport.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.identifier">
          <path value="TestReport.identifier" />
          <short value="External identifier" />
          <definition value="Identifier for the TestScript assigned for external purposes outside the context of FHIR." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.name" />
    <resource>
      <DataElement>
        <id value="TestReport.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.name">
          <path value="TestReport.name" />
          <short value="Informal name of the executed TestScript" />
          <definition value="A free text natural language name identifying the executed TestScript." />
          <comment value="Not expected to be globally unique." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="objimpl" />
            <map value="BaseConformance.name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.status" />
    <resource>
      <DataElement>
        <id value="TestReport.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.status">
          <path value="TestReport.status" />
          <short value="completed | in-progress | waiting | stopped | entered-in-error" />
          <definition value="The current state of this test report." />
          <comment value="The status represents where the execution is currently within the test script execution life cycle.&#xA;&#xA;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TestReportStatus" />
            </extension>
            <strength value="required" />
            <description value="The current status of the test report." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/report-status-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.testScript" />
    <resource>
      <DataElement>
        <id value="TestReport.testScript" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.testScript" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.testScript">
          <path value="TestReport.testScript" />
          <short value="Reference to the  version-specific TestScript that was executed to produce this TestReport" />
          <definition value="Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/TestScript" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.result" />
    <resource>
      <DataElement>
        <id value="TestReport.result" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.result" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.result">
          <path value="TestReport.result" />
          <short value="pass | fail | pending" />
          <definition value="The overall result from the execution of the TestScript." />
          <comment value="The pass and fail result represents a completed test script execution. The pending result represents a test script execution that has not yet started or is currently in progress." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TestReportResult" />
            </extension>
            <strength value="required" />
            <description value="The reported execution result." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/report-result-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.score" />
    <resource>
      <DataElement>
        <id value="TestReport.score" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.score" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.score">
          <path value="TestReport.score" />
          <short value="The final score (percentage of tests passed) resulting from the execution of the TestScript" />
          <definition value="The final score (percentage of tests passed) resulting from the execution of the TestScript." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.tester" />
    <resource>
      <DataElement>
        <id value="TestReport.tester" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.tester" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.tester">
          <path value="TestReport.tester" />
          <short value="Name of the tester producing this report (Organization or individual)" />
          <definition value="Name of the tester producing this report (Organization or individual)." />
          <comment value="Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the TestReport.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.issued" />
    <resource>
      <DataElement>
        <id value="TestReport.issued" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.issued" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.issued">
          <path value="TestReport.issued" />
          <short value="When the TestScript was executed and this TestReport was generated" />
          <definition value="When the TestScript was executed and this TestReport was generated." />
          <comment value="Additional specific dates may be added as extensions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="objimpl" />
            <map value="BaseConformance.date" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.participant" />
    <resource>
      <DataElement>
        <id value="TestReport.participant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.participant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.participant">
          <path value="TestReport.participant" />
          <short value="A participant in the test execution, either the execution engine, a client, or a server" />
          <definition value="A participant in the test execution, either the execution engine, a client, or a server." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.participant.type" />
    <resource>
      <DataElement>
        <id value="TestReport.participant.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.participant.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.participant.type">
          <path value="TestReport.participant.type" />
          <short value="test-engine | client | server" />
          <definition value="The type of participant." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TestReportParticipantType" />
            </extension>
            <strength value="required" />
            <description value="The type of participant." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/report-participant-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.participant.uri" />
    <resource>
      <DataElement>
        <id value="TestReport.participant.uri" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.participant.uri" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.participant.uri">
          <path value="TestReport.participant.uri" />
          <short value="The uri of the participant. An absolute URL is preferred" />
          <definition value="The uri of the participant. An absolute URL is preferred." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.participant.display" />
    <resource>
      <DataElement>
        <id value="TestReport.participant.display" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.participant.display" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.participant.display">
          <path value="TestReport.participant.display" />
          <short value="The display name of the participant" />
          <definition value="The display name of the participant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup" />
    <resource>
      <DataElement>
        <id value="TestReport.setup" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup">
          <path value="TestReport.setup" />
          <short value="The results of the series of required setup operations before the tests were executed" />
          <definition value="The results of the series of required setup operations before the tests were executed." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup.action" />
    <resource>
      <DataElement>
        <id value="TestReport.setup.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup.action">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SetupAction" />
          </extension>
          <path value="TestReport.setup.action" />
          <short value="A setup operation or assert that was executed" />
          <definition value="Action would contain either an operation or an assertion." />
          <comment value="An action should contain either an operation or an assertion but not both.  It can contain any number of variables." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="inv-1" />
            <severity value="error" />
            <human value="Setup action SHALL contain either an operation or assert but not both." />
            <expression value="operation.exists() xor assert.exists()" />
            <xpath value="(f:operation or f:assert) and not(f:operation and f:assert)" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup.action.operation" />
    <resource>
      <DataElement>
        <id value="TestReport.setup.action.operation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup.action.operation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup.action.operation">
          <path value="TestReport.setup.action.operation" />
          <short value="The operation to perform" />
          <definition value="The operation performed." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup.action.operation.result" />
    <resource>
      <DataElement>
        <id value="TestReport.setup.action.operation.result" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup.action.operation.result" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup.action.operation.result">
          <path value="TestReport.setup.action.operation.result" />
          <short value="pass | skip | fail | warning | error" />
          <definition value="The result of this operation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TestReportActionResult" />
            </extension>
            <strength value="required" />
            <description value="The results of executing an action." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/report-action-result-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup.action.operation.message" />
    <resource>
      <DataElement>
        <id value="TestReport.setup.action.operation.message" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup.action.operation.message" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup.action.operation.message">
          <path value="TestReport.setup.action.operation.message" />
          <short value="A message associated with the result" />
          <definition value="An explanatory message associated with the result." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup.action.operation.detail" />
    <resource>
      <DataElement>
        <id value="TestReport.setup.action.operation.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup.action.operation.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup.action.operation.detail">
          <path value="TestReport.setup.action.operation.detail" />
          <short value="A link to further details on the result" />
          <definition value="A link to further details on the result." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup.action.assert" />
    <resource>
      <DataElement>
        <id value="TestReport.setup.action.assert" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup.action.assert" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup.action.assert">
          <path value="TestReport.setup.action.assert" />
          <short value="The assertion to perform" />
          <definition value="The results of the assertion performed on the previous operations." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup.action.assert.result" />
    <resource>
      <DataElement>
        <id value="TestReport.setup.action.assert.result" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup.action.assert.result" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup.action.assert.result">
          <path value="TestReport.setup.action.assert.result" />
          <short value="pass | skip | fail | warning | error" />
          <definition value="The result of this assertion." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TestReportActionResult" />
            </extension>
            <strength value="required" />
            <description value="The results of executing an action." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/report-action-result-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup.action.assert.message" />
    <resource>
      <DataElement>
        <id value="TestReport.setup.action.assert.message" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup.action.assert.message" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup.action.assert.message">
          <path value="TestReport.setup.action.assert.message" />
          <short value="A message associated with the result" />
          <definition value="An explanatory message associated with the result." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.setup.action.assert.detail" />
    <resource>
      <DataElement>
        <id value="TestReport.setup.action.assert.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.setup.action.assert.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.setup.action.assert.detail">
          <path value="TestReport.setup.action.assert.detail" />
          <short value="A link to further details on the result" />
          <definition value="A link to further details on the result." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.test" />
    <resource>
      <DataElement>
        <id value="TestReport.test" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.test" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.test">
          <path value="TestReport.test" />
          <short value="A test executed from the test script" />
          <definition value="A test executed from the test script." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.test.name" />
    <resource>
      <DataElement>
        <id value="TestReport.test.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.test.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.test.name">
          <path value="TestReport.test.name" />
          <short value="Tracking/logging name of this test" />
          <definition value="The name of this test used for tracking/logging purposes by test engines." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.test.description" />
    <resource>
      <DataElement>
        <id value="TestReport.test.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.test.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.test.description">
          <path value="TestReport.test.description" />
          <short value="Tracking/reporting short description of the test" />
          <definition value="A short description of the test used by test engines for tracking and reporting purposes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.test.action" />
    <resource>
      <DataElement>
        <id value="TestReport.test.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.test.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.test.action">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="TestAction" />
          </extension>
          <path value="TestReport.test.action" />
          <short value="A test operation or assert that was performed" />
          <definition value="Action would contain either an operation or an assertion." />
          <comment value="An action should contain either an operation or an assertion but not both.  It can contain any number of variables." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="inv-2" />
            <severity value="error" />
            <human value="Test action SHALL contain either an operation or assert but not both." />
            <expression value="operation.exists() xor assert.exists()" />
            <xpath value="(f:operation or f:assert) and not(f:operation and f:assert)" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.test.action.operation" />
    <resource>
      <DataElement>
        <id value="TestReport.test.action.operation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.test.action.operation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.test.action.operation">
          <path value="TestReport.test.action.operation" />
          <short value="The operation performed" />
          <definition value="An operation would involve a REST request to a server." />
          <min value="0" />
          <max value="1" />
          <contentReference value="#TestReport.setup.action.operation" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.test.action.assert" />
    <resource>
      <DataElement>
        <id value="TestReport.test.action.assert" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.test.action.assert" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.test.action.assert">
          <path value="TestReport.test.action.assert" />
          <short value="The assertion performed" />
          <definition value="The results of the assertion performed on the previous operations." />
          <min value="0" />
          <max value="1" />
          <contentReference value="#TestReport.setup.action.assert" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.teardown" />
    <resource>
      <DataElement>
        <id value="TestReport.teardown" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.teardown" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.teardown">
          <path value="TestReport.teardown" />
          <short value="The results of running the series of required clean up steps" />
          <definition value="The results of the series of operations required to clean up after the all the tests were executed (successfully or otherwise)." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.teardown.action" />
    <resource>
      <DataElement>
        <id value="TestReport.teardown.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.teardown.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.teardown.action">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="TeardownAction" />
          </extension>
          <path value="TestReport.teardown.action" />
          <short value="One or more teardown operations performed" />
          <definition value="The teardown action will only contain an operation." />
          <comment value="An action should contain either an operation or an assertion but not both.  It can contain any number of variables." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/TestReport.teardown.action.operation" />
    <resource>
      <DataElement>
        <id value="TestReport.teardown.action.operation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/TestReport.teardown.action.operation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="TestReport.teardown.action.operation">
          <path value="TestReport.teardown.action.operation" />
          <short value="The teardown operation performed" />
          <definition value="An operation would involve a REST request to a server." />
          <min value="1" />
          <max value="1" />
          <contentReference value="#TestReport.setup.action.operation" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse" />
    <resource>
      <DataElement>
        <id value="ClaimResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse">
          <path value="ClaimResponse" />
          <short value="Remittance resource" />
          <definition value="This resource provides the adjudication details from the processing of a Claim resource." />
          <alias value="Remittance Advice" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.billing" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.identifier" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.identifier">
          <path value="ClaimResponse.identifier" />
          <short value="Response  number" />
          <definition value="The Response business identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.status" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.status">
          <path value="ClaimResponse.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains the code cancelled and entered-in-error that mark the response as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimResponseStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.patient" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.patient">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
            <valueString value="who.focus" />
          </extension>
          <path value="ClaimResponse.patient" />
          <short value="The subject of the Products and Services" />
          <definition value="Patient Resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.created" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.created">
          <path value="ClaimResponse.created" />
          <short value="Creation date" />
          <definition value="The date when the enclosed suite of services were performed or completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.insurer" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.insurer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.insurer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.insurer">
          <path value="ClaimResponse.insurer" />
          <short value="Insurance issuing organization" />
          <definition value="The Insurer who produced this adjudicated response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.onBehalfOf" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.requestProvider" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.requestProvider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.requestProvider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.requestProvider">
          <path value="ClaimResponse.requestProvider" />
          <short value="Responsible practitioner" />
          <definition value="The practitioner who is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B01" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.requestOrganization" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.requestOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.requestOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.requestOrganization">
          <path value="ClaimResponse.requestOrganization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.request" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.request">
          <path value="ClaimResponse.request" />
          <short value="Id of resource triggering adjudication" />
          <definition value="Original request resource referrence." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Claim" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.basedOn" />
          </mapping>
          <mapping>
            <identity value="cdanetv4" />
            <map value="A02|G01" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.outcome" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.outcome">
          <path value="ClaimResponse.outcome" />
          <short value="complete | error | partial" />
          <definition value="Processing outcome errror, partial or complete processing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RemittanceOutcome" />
            </extension>
            <strength value="example" />
            <description value="The result of the claim processing" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/remittance-outcome" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.disposition" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.disposition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.disposition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.disposition">
          <path value="ClaimResponse.disposition" />
          <short value="Disposition Message" />
          <definition value="A description of the status of the adjudication." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.payeeType" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.payeeType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.payeeType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.payeeType">
          <path value="ClaimResponse.payeeType" />
          <short value="Party to be paid any benefits payable" />
          <definition value="Party to be reimbursed: Subscriber, provider, other." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PayeeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="A code for the party to be reimbursed." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/payeetype" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Item" />
          </extension>
          <path value="ClaimResponse.item" />
          <short value="Line items" />
          <definition value="The first tier service adjudications for submitted services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.sequenceLinkId" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.sequenceLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.sequenceLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.sequenceLinkId">
          <path value="ClaimResponse.item.sequenceLinkId" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F07" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.noteNumber" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.noteNumber">
          <path value="ClaimResponse.item.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.adjudication">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Adjudication" />
          </extension>
          <path value="ClaimResponse.item.adjudication" />
          <short value="Adjudication details" />
          <definition value="The adjudication results." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication.category" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.adjudication.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.adjudication.category">
          <path value="ClaimResponse.item.adjudication.category" />
          <short value="Adjudication category such as co-pay, eligible, benefit, etc." />
          <definition value="Code indicating: Co-Pay, deductible, eligible, benefit, tax, etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Adjudication" />
            </extension>
            <strength value="example" />
            <description value="The adjudication codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adjudication" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication.reason" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.adjudication.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.adjudication.reason">
          <path value="ClaimResponse.item.adjudication.reason" />
          <short value="Explanation of Adjudication outcome" />
          <definition value="Adjudication reason such as limit reached." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdjudicationReason" />
            </extension>
            <strength value="example" />
            <description value="The adjudication reason codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adjudication-reason" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication.amount" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.adjudication.amount" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication.amount" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.adjudication.amount">
          <path value="ClaimResponse.item.adjudication.amount" />
          <short value="Monetary amount" />
          <definition value="Monetary amount associated with the code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication.value" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.adjudication.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.adjudication.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.adjudication.value">
          <path value="ClaimResponse.item.adjudication.value" />
          <short value="Non-monetary value" />
          <definition value="A non-monetary value for example a percentage. Mutually exclusive to the amount element above." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.detail">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="ItemDetail" />
          </extension>
          <path value="ClaimResponse.item.detail" />
          <short value="Detail line items" />
          <definition value="The second tier service adjudications for submitted services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.sequenceLinkId" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.detail.sequenceLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.sequenceLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.detail.sequenceLinkId">
          <path value="ClaimResponse.item.detail.sequenceLinkId" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F07" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.noteNumber" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.detail.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.detail.noteNumber">
          <path value="ClaimResponse.item.detail.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.adjudication" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.detail.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.detail.adjudication">
          <path value="ClaimResponse.item.detail.adjudication" />
          <short value="Detail level adjudication details" />
          <definition value="The adjudications results." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ClaimResponse.item.adjudication" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.subDetail" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.detail.subDetail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.subDetail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.detail.subDetail">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SubDetail" />
          </extension>
          <path value="ClaimResponse.item.detail.subDetail" />
          <short value="Subdetail line items" />
          <definition value="The third tier service adjudications for submitted services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.subDetail.sequenceLinkId" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.detail.subDetail.sequenceLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.subDetail.sequenceLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.detail.subDetail.sequenceLinkId">
          <path value="ClaimResponse.item.detail.subDetail.sequenceLinkId" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F07" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.subDetail.noteNumber" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.detail.subDetail.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.subDetail.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.detail.subDetail.noteNumber">
          <path value="ClaimResponse.item.detail.subDetail.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.subDetail.adjudication" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.item.detail.subDetail.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.item.detail.subDetail.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.item.detail.subDetail.adjudication">
          <path value="ClaimResponse.item.detail.subDetail.adjudication" />
          <short value="Subdetail level adjudication details" />
          <definition value="The adjudications results." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ClaimResponse.item.adjudication" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="AddedItem" />
          </extension>
          <path value="ClaimResponse.addItem" />
          <short value="Insurer added line items" />
          <definition value="The first tier service adjudications for payor added services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.sequenceLinkId" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.sequenceLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.sequenceLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.sequenceLinkId">
          <path value="ClaimResponse.addItem.sequenceLinkId" />
          <short value="Service instances" />
          <definition value="List of input service items which this service line is intended to replace." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.revenue" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.revenue">
          <path value="ClaimResponse.addItem.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.category" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.category">
          <path value="ClaimResponse.addItem.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.service" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.service">
          <path value="ClaimResponse.addItem.service" />
          <short value="Group, Service or Product" />
          <definition value="A code to indicate the Professional Service or Product supplied." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.modifier" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.modifier">
          <path value="ClaimResponse.addItem.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="24.C, 24.D mods" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.fee" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.fee" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.fee" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.fee">
          <path value="ClaimResponse.addItem.fee" />
          <short value="Professional fee or Product charge" />
          <definition value="The fee charged for the professional service or product.." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.noteNumber" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.noteNumber">
          <path value="ClaimResponse.addItem.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.adjudication" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.adjudication">
          <path value="ClaimResponse.addItem.adjudication" />
          <short value="Added items adjudication" />
          <definition value="The adjudications results." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ClaimResponse.item.adjudication" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.detail">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="AddedItemsDetail" />
          </extension>
          <path value="ClaimResponse.addItem.detail" />
          <short value="Added items details" />
          <definition value="The second tier service adjudications for payor added services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.revenue" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.detail.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.detail.revenue">
          <path value="ClaimResponse.addItem.detail.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.category" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.detail.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.detail.category">
          <path value="ClaimResponse.addItem.detail.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.service" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.detail.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.detail.service">
          <path value="ClaimResponse.addItem.detail.service" />
          <short value="Service or Product" />
          <definition value="A code to indicate the Professional Service or Product supplied." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.modifier" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.detail.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.detail.modifier">
          <path value="ClaimResponse.addItem.detail.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="24.C, 24.D mods" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.fee" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.detail.fee" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.fee" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.detail.fee">
          <path value="ClaimResponse.addItem.detail.fee" />
          <short value="Professional fee or Product charge" />
          <definition value="The fee charged for the professional service or product.." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.noteNumber" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.detail.noteNumber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.noteNumber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.detail.noteNumber">
          <path value="ClaimResponse.addItem.detail.noteNumber" />
          <short value="List of note numbers which apply" />
          <definition value="A list of note references to the notes provided below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.adjudication" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.addItem.detail.adjudication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.addItem.detail.adjudication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.addItem.detail.adjudication">
          <path value="ClaimResponse.addItem.detail.adjudication" />
          <short value="Added items detail adjudication" />
          <definition value="The adjudications results." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#ClaimResponse.item.adjudication" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.error" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.error" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.error" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.error">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Error" />
          </extension>
          <path value="ClaimResponse.error" />
          <short value="Processing errors" />
          <definition value="Mutually exclusive with Services Provided (Item)." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.error.sequenceLinkId" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.error.sequenceLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.error.sequenceLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.error.sequenceLinkId">
          <path value="ClaimResponse.error.sequenceLinkId" />
          <short value="Item sequence number" />
          <definition value="The sequence number of the line item submitted which contains the error. This value is omitted when the error is elsewhere." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.error.detailSequenceLinkId" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.error.detailSequenceLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.error.detailSequenceLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.error.detailSequenceLinkId">
          <path value="ClaimResponse.error.detailSequenceLinkId" />
          <short value="Detail sequence number" />
          <definition value="The sequence number of the addition within the line item submitted which contains the error. This value is omitted when the error is not related to an Addition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.error.subdetailSequenceLinkId" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.error.subdetailSequenceLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.error.subdetailSequenceLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.error.subdetailSequenceLinkId">
          <path value="ClaimResponse.error.subdetailSequenceLinkId" />
          <short value="Subdetail sequence number" />
          <definition value="The sequence number of the addition within the line item submitted which contains the error. This value is omitted when the error is not related to an Addition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.error.code" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.error.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.error.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.error.code">
          <path value="ClaimResponse.error.code" />
          <short value="Error code detailing processing issues" />
          <definition value="An error code,from a specified code system, which details why the claim could not be adjudicated." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdjudicationError" />
            </extension>
            <strength value="example" />
            <description value="The adjudication error codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adjudication-error" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.totalCost" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.totalCost" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.totalCost" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.totalCost">
          <path value="ClaimResponse.totalCost" />
          <short value="Total Cost of service from the Claim" />
          <definition value="The total cost of the services reported." />
          <requirements value="This is a check value that the receiver calculates and returns." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.unallocDeductable" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.unallocDeductable" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.unallocDeductable" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.unallocDeductable">
          <path value="ClaimResponse.unallocDeductable" />
          <short value="Unallocated deductible" />
          <definition value="The amount of deductible applied which was not allocated to any particular service line." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.totalBenefit" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.totalBenefit" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.totalBenefit" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.totalBenefit">
          <path value="ClaimResponse.totalBenefit" />
          <short value="Total benefit payable for the Claim" />
          <definition value="Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductible)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.payment" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.payment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.payment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.payment">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Payment" />
          </extension>
          <path value="ClaimResponse.payment" />
          <short value="Payment details, if paid" />
          <definition value="Payment details for the claim if the claim has been paid." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.type" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.payment.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.payment.type">
          <path value="ClaimResponse.payment.type" />
          <short value="Partial or Complete" />
          <definition value="Whether this represents partial or complete payment of the claim." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PaymentType" />
            </extension>
            <strength value="example" />
            <description value="The type (partial, complete) of the payment" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-paymenttype" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.adjustment" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.payment.adjustment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.adjustment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.payment.adjustment">
          <path value="ClaimResponse.payment.adjustment" />
          <short value="Payment adjustment for non-Claim issues" />
          <definition value="Adjustment to the payment of this transaction which is not related to adjudication of this transaction." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.adjustmentReason" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.payment.adjustmentReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.adjustmentReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.payment.adjustmentReason">
          <path value="ClaimResponse.payment.adjustmentReason" />
          <short value="Explanation for the non-claim adjustment" />
          <definition value="Reason for the payment adjustment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PaymentAdjustmentReason" />
            </extension>
            <strength value="example" />
            <description value="Payment Adjustment reason codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/payment-adjustment-reason" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.date" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.payment.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.payment.date">
          <path value="ClaimResponse.payment.date" />
          <short value="Expected data of Payment" />
          <definition value="Estimated payment data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.amount" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.payment.amount" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.amount" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.payment.amount">
          <path value="ClaimResponse.payment.amount" />
          <short value="Payable amount after adjustment" />
          <definition value="Payable less any payment adjustment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.identifier" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.payment.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.payment.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.payment.identifier">
          <path value="ClaimResponse.payment.identifier" />
          <short value="Identifier of the payment instrument" />
          <definition value="Payment identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.reserved" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.reserved" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.reserved" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.reserved">
          <path value="ClaimResponse.reserved" />
          <short value="Funds reserved status" />
          <definition value="Status of funds reservation (For provider, for Patient, None)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FundsReserve" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="For whom funds are to be reserved: (Patient, Provider, None)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fundsreserve" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.form" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.form" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.form" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.form">
          <path value="ClaimResponse.form" />
          <short value="Printed Form Identifier" />
          <definition value="The form to be used for printing the content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Forms" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="The forms codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/forms" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G42" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.processNote" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.processNote">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Note" />
          </extension>
          <path value="ClaimResponse.processNote" />
          <short value="Processing notes" />
          <definition value="Note text." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote.number" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.processNote.number" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote.number" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.processNote.number">
          <path value="ClaimResponse.processNote.number" />
          <short value="Sequence Number for this note" />
          <definition value="An integer associated with each note which may be referred to from each service line item." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote.type" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.processNote.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.processNote.type">
          <path value="ClaimResponse.processNote.type" />
          <short value="display | print | printoper" />
          <definition value="The note purpose: Print/Display." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NoteType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The presentation types of notes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/note-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote.text" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.processNote.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.processNote.text">
          <path value="ClaimResponse.processNote.text" />
          <short value="Note explanatory text" />
          <definition value="The note text." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G32" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote.language" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.processNote.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.processNote.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.processNote.language">
          <path value="ClaimResponse.processNote.language" />
          <short value="Language if different from the resource" />
          <definition value="The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. &quot;en&quot; for English, or &quot;en-US&quot; for American English versus &quot;en-EN&quot; for England English." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.communicationRequest" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.communicationRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.communicationRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.communicationRequest">
          <path value="ClaimResponse.communicationRequest" />
          <short value="Request for additional information" />
          <definition value="Request for additional supporting or authorizing information, such as: documents, images or resources." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CommunicationRequest" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.insurance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.insurance">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Insurance" />
          </extension>
          <path value="ClaimResponse.insurance" />
          <short value="Insurance or medical plan" />
          <definition value="Financial instrument by which payment information for health care." />
          <requirements value="Health care programs and insurers are significant payors of health service costs." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Coverage" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.sequence" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.insurance.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.insurance.sequence">
          <path value="ClaimResponse.insurance.sequence" />
          <short value="Service instance identifier" />
          <definition value="A service line item." />
          <requirements value="To maintain order of the coverages." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.focal" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.insurance.focal" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.focal" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.insurance.focal">
          <path value="ClaimResponse.insurance.focal" />
          <short value="Is the focal Coverage" />
          <definition value="The instance number of the Coverage which is the focus for adjudication. The Coverage against which the claim is to be adjudicated." />
          <requirements value="To identify which coverage is being adjudicated." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.coverage" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.insurance.coverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.coverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.insurance.coverage">
          <path value="ClaimResponse.insurance.coverage" />
          <short value="Insurance information" />
          <definition value="Reference to the program or plan identification, underwriter or payor." />
          <requirements value="Need to identify the issuer to target for processing and for coordination of benefit processing." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Coverage" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.businessArrangement" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.insurance.businessArrangement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.businessArrangement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.insurance.businessArrangement">
          <path value="ClaimResponse.insurance.businessArrangement" />
          <short value="Business agreement" />
          <definition value="The contract number of a business agreement which describes the terms and conditions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.preAuthRef" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.insurance.preAuthRef" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.preAuthRef" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.insurance.preAuthRef">
          <path value="ClaimResponse.insurance.preAuthRef" />
          <short value="Pre-Authorization/Determination Reference" />
          <definition value="A list of references from the Insurer to which these services pertain." />
          <requirements value="To provide any pre-determination or prior authorization reference." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F03" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.claimResponse" />
    <resource>
      <DataElement>
        <id value="ClaimResponse.insurance.claimResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClaimResponse.insurance.claimResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClaimResponse.insurance.claimResponse">
          <path value="ClaimResponse.insurance.claimResponse" />
          <short value="Adjudication results" />
          <definition value="The Coverages adjudication details." />
          <requirements value="Used by downstream payers to determine what balance remains and the net payable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ClaimResponse" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="EOB" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest">
          <path value="EligibilityRequest" />
          <short value="Determine insurance validity and scope of coverage" />
          <definition value="The EligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an EligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.support" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.identifier" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.identifier">
          <path value="EligibilityRequest.identifier" />
          <short value="Business Identifier" />
          <definition value="The Response business identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.status" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.status">
          <path value="EligibilityRequest.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <requirements value="This element is labeled as a modifier because the status contains codes that mark the request as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EligibilityRequestStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.priority" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.priority">
          <path value="EligibilityRequest.priority" />
          <short value="Desired processing priority" />
          <definition value="Immediate (STAT), best effort (NORMAL), deferred (DEFER)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcessPriority" />
            </extension>
            <strength value="example" />
            <description value="The timeliness with which processing is required: STAT, normal, Deferred" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/process-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.priority" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.patient" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.patient">
          <path value="EligibilityRequest.patient" />
          <short value="The subject of the Products and Services" />
          <definition value="Patient Resource." />
          <comment value="1..1." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.subject" />
          </mapping>
          <mapping>
            <identity value="cdanetv4" />
            <map value="C06,C07,C08, C05, C04" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.servicedX" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.servicedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.servicedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.serviced[x]">
          <path value="EligibilityRequest.serviced[x]" />
          <short value="Estimated date or dates of Service" />
          <definition value="The date or dates when the enclosed suite of services were performed or completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="F09" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.created" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.created">
          <path value="EligibilityRequest.created" />
          <short value="Creation date" />
          <definition value="The date when this resource was created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.enterer" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.enterer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.enterer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.enterer">
          <path value="EligibilityRequest.enterer" />
          <short value="Author" />
          <definition value="Person who created the invoice/claim/pre-determination or pre-authorization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.provider" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.provider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.provider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.provider">
          <path value="EligibilityRequest.provider" />
          <short value="Responsible practitioner" />
          <definition value="The practitioner who is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.agent" />
          </mapping>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B01" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.organization" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.organization">
          <path value="EligibilityRequest.organization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.insurer" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.insurer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.insurer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.insurer">
          <path value="EligibilityRequest.insurer" />
          <short value="Target" />
          <definition value="The Insurer who is target  of the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.performer" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.facility" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.facility" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.facility" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.facility">
          <path value="EligibilityRequest.facility" />
          <short value="Servicing Facility" />
          <definition value="Facility where the services were provided." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.coverage" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.coverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.coverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.coverage">
          <path value="EligibilityRequest.coverage" />
          <short value="Insurance or medical plan" />
          <definition value="Financial instrument by which payment information for health care." />
          <comment value="1..1." />
          <requirements value="Need to identify the issuer to target for processing and for coordination of benefit processing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Coverage" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.businessArrangement" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.businessArrangement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.businessArrangement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.businessArrangement">
          <path value="EligibilityRequest.businessArrangement" />
          <short value="Business agreement" />
          <definition value="The contract number of a business agreement which describes the terms and conditions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.benefitCategory" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.benefitCategory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.benefitCategory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.benefitCategory">
          <path value="EligibilityRequest.benefitCategory" />
          <short value="Type of services covered" />
          <definition value="Dental, Vision, Medical, Pharmacy, Rehab etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit categories such as: oral, medical, vision etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-category" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/EligibilityRequest.benefitSubCategory" />
    <resource>
      <DataElement>
        <id value="EligibilityRequest.benefitSubCategory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/EligibilityRequest.benefitSubCategory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="EligibilityRequest.benefitSubCategory">
          <path value="EligibilityRequest.benefitSubCategory" />
          <short value="Detailed services covered within the type" />
          <definition value="Dental: basic, major, ortho; Vision exam, glasses, contacts; etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest" />
    <resource>
      <DataElement>
        <id value="ProcessRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest">
          <path value="ProcessRequest" />
          <short value="Request to perform some action on or in regards to an existing resource" />
          <definition value="This resource provides the target, request and response, and action details for an action to be performed by the target on or about existing resources." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.order" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.identifier" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.identifier">
          <path value="ProcessRequest.identifier" />
          <short value="Business Identifier" />
          <definition value="The ProcessRequest business identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.status" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.status">
          <path value="ProcessRequest.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcessRequestStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.action" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.action">
          <path value="ProcessRequest.action" />
          <short value="cancel | poll | reprocess | status" />
          <definition value="The type of processing action being requested, for example Reversal, Readjudication, StatusRequest,PendedRequest." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionList" />
            </extension>
            <strength value="required" />
            <description value="List of allowable action which this resource can request." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/actionlist" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.target" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.target">
          <path value="ProcessRequest.target" />
          <short value="Party which is the target of the request" />
          <definition value="The organization which is the target of the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.created" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.created">
          <path value="ProcessRequest.created" />
          <short value="Creation date" />
          <definition value="The date when this resource was created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.provider" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.provider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.provider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.provider">
          <path value="ProcessRequest.provider" />
          <short value="Responsible practitioner" />
          <definition value="The practitioner who is responsible for the action specified in this request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.agent" />
          </mapping>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B01" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.organization" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.organization">
          <path value="ProcessRequest.organization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the action speccified in this request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.request" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.request">
          <path value="ProcessRequest.request" />
          <short value="Reference to the Request resource" />
          <definition value="Reference of resource which is the target or subject of this action." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.basedOn" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.response" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.response" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.response" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.response">
          <path value="ProcessRequest.response" />
          <short value="Reference to the Response resource" />
          <definition value="Reference of a prior response to resource which is the target or subject of this action." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.nullify" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.nullify" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.nullify" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.nullify">
          <path value="ProcessRequest.nullify" />
          <short value="Remove history" />
          <definition value="If true remove all history excluding audit." />
          <requirements value="Some resources must not simply be reversed in a processing or accounting sense but rather must have all history removed, such as the accidental submission of sensitive and/or wrong information. If the receiver cannot comply with a Nullify request then they must reject the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.reference" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.reference">
          <path value="ProcessRequest.reference" />
          <short value="Reference number/string" />
          <definition value="A reference to supply which authenticates the process." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.item" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.item">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Items" />
          </extension>
          <path value="ProcessRequest.item" />
          <short value="Items to re-adjudicate" />
          <definition value="List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.item.sequenceLinkId" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.item.sequenceLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.item.sequenceLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.item.sequenceLinkId">
          <path value="ProcessRequest.item.sequenceLinkId" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="integer" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.include" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.include" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.include" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.include">
          <path value="ProcessRequest.include" />
          <short value="Resource type(s) to include" />
          <definition value="Names of resource types to include." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.exclude" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.exclude" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.exclude" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.exclude">
          <path value="ProcessRequest.exclude" />
          <short value="Resource type(s) to exclude" />
          <definition value="Names of resource types to exclude." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessRequest.period" />
    <resource>
      <DataElement>
        <id value="ProcessRequest.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessRequest.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessRequest.period">
          <path value="ProcessRequest.period" />
          <short value="Selection period" />
          <definition value="A period of time during which the fulfilling resources would have been created." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense" />
    <resource>
      <DataElement>
        <id value="MedicationDispense" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense">
          <path value="MedicationDispense" />
          <short value="Dispensing a medication to a named patient" />
          <definition value="Indicates that a medication product is to be or has been dispensed for a named person/patient.  This includes a description of the medication product (supply) provided and the instructions for administering the medication.  The medication dispense is the result of a pharmacy system responding to a medication order." />
          <comment value="The WG will be updating the MedicationDispense resource  to adjust each affected resource to align with the workflow pattern (see workflow.html)." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="mdd-1" />
            <severity value="error" />
            <human value="whenHandedOver cannot be before whenPrepared" />
            <expression value="whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver &gt;= whenPrepared" />
            <xpath value="not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value &gt;= f:whenPrepared/@value)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="..Event" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Supply[moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.medication" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.identifier" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.identifier">
          <path value="MedicationDispense.identifier" />
          <short value="External identifier" />
          <definition value="Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.partOf" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.partOf">
          <path value="MedicationDispense.partOf" />
          <short value="Event that dispense is part of" />
          <definition value="The procedure that the dispense is done because of." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…part of" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP]/target[classCode=PROC,moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.status" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.status">
          <path value="MedicationDispense.status" />
          <short value="preparation | in-progress | on-hold | completed | entered-in-error | stopped" />
          <definition value="A code specifying the state of the set of dispense events." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationDispenseStatus" />
            </extension>
            <strength value="required" />
            <description value="A coded concept specifying the state of the dispense event." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-dispense-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.category" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.category">
          <path value="MedicationDispense.category" />
          <short value="Type of medication dispense" />
          <definition value="Indicates type of medication dispense and where the medication is expected to be consumed or administered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationDispenseCategory" />
            </extension>
            <strength value="preferred" />
            <description value="A code describing where the dispensed medication is expected to be consumed or administered" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-dispense-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=&quot;type of medication dispense&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.medicationX" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.medicationX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.medicationX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.medication[x]">
          <path value="MedicationDispense.medication[x]" />
          <short value="What medication was supplied" />
          <definition value="Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." />
          <comment value="If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended.  For example if you require form or lot number, then you must reference the Medication resource. ." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationCode" />
            </extension>
            <strength value="example" />
            <description value="A coded concept identifying which substance or product can be dispensed" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/medication-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="…code" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXD-2-Dispense/Give Code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRD].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.subject" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.subject">
          <path value="MedicationDispense.subject" />
          <short value="Who the dispense is for" />
          <definition value="A link to a resource representing the person or the group to whom the medication will be given." />
          <comment value="SubstanceAdministration-&gt;subject-&gt;Patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="…subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3-Patient ID List" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.context" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.context">
          <path value="MedicationDispense.context" />
          <short value="Encounter / Episode associated with event" />
          <definition value="The encounter or episode of care that establishes the context for this event." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…context" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=&quot;type of encounter or episode&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.supportingInformation" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.supportingInformation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.supportingInformation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.supportingInformation">
          <path value="MedicationDispense.supportingInformation" />
          <short value="Information that supports the dispensing of the medication" />
          <definition value="Additional information that supports the medication being dispensed." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.performer" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.performer">
          <path value="MedicationDispense.performer" />
          <short value="Who performed event" />
          <definition value="Indicates who or what performed the event.  It should be assumed that the performer is the dispenser of the medication." />
          <comment value="The performer will be reviewed as part of STU4." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="workflow" />
            <map value="…performer" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.performer.actor" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.performer.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.performer.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.performer.actor">
          <path value="MedicationDispense.performer.actor" />
          <short value="Individual who was performing" />
          <definition value="The device, practitioner, etc. who performed the action.  It should be assumed that the actor is the dispenser of the medication." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="….actor" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.performer.onBehalfOf" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.performer.onBehalfOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.performer.onBehalfOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.performer.onBehalfOf">
          <path value="MedicationDispense.performer.onBehalfOf" />
          <short value="Organization organization was acting for" />
          <definition value="The organization the device or practitioner was acting on behalf of." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="….onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".role.scopingOrganization" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.authorizingPrescription" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.authorizingPrescription" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.authorizingPrescription" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.authorizingPrescription">
          <path value="MedicationDispense.authorizingPrescription" />
          <short value="Medication order that authorizes the dispense" />
          <definition value="Indicates the medication order that is being dispensed against." />
          <comment value="Maps to basedOn in Event logical model." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…basedOn" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC-2 Placer Order Number" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target[moodCode=RQO]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.type" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.type">
          <path value="MedicationDispense.type" />
          <short value="Trial fill, partial fill, emergency fill, etc." />
          <definition value="Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationDispenseType" />
            </extension>
            <strength value="example" />
            <description value="Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActPharmacySupplyType" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RXD-33-Dispense Type" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.quantity" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.quantity">
          <path value="MedicationDispense.quantity" />
          <short value="Amount dispensed" />
          <definition value="The amount of medication that has been dispensed. Includes unit of measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.daysSupply" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.daysSupply" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.daysSupply" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.daysSupply">
          <path value="MedicationDispense.daysSupply" />
          <short value="Amount of medication expressed as a timing amount" />
          <definition value="The amount of medication expressed as a timing amount." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="TQ1.6 Timing/Quantity Segment Service Duration.&#xD;Prior to v2.5, ORC.7.3 Common Order Segment / Quantity/Timing / Duration component.  This is a formatted string, first character for the time unit (e.g., D=days), followed by the value.  For example, “D14” represents “14 days supply”&#xD;From v2.5 on, TQ1.6 Timing/Quantity Segment / Service Duration.  This is a CQ data type (&lt;Quantity (NM)&gt; ^ &lt;Units (CWE)&gt;), thus for days supply, assuming the unit of measure is “days”, the numeric value is TQ1.6.1 (…|14^&#xD;For backwards compatibility, ORC.7 was permitted through v2.6.  Both forms (field and segment) may be present in v2.5, v2.5.1, and v2.6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="effectiveUseTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.whenPrepared" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.whenPrepared" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.whenPrepared" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.whenPrepared">
          <path value="MedicationDispense.whenPrepared" />
          <short value="When product was packaged and reviewed" />
          <definition value="The time when the dispensed product was packaged and reviewed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="RXD-3-Date/Time Dispensed" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime[xmi:type=IVL_TS].low" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.whenHandedOver" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.whenHandedOver" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.whenHandedOver" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.whenHandedOver">
          <path value="MedicationDispense.whenHandedOver" />
          <short value="When product was given out" />
          <definition value="The time the dispensed product was provided to the patient or their representative." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…occurrenceDateTime" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXD-3-Date/Time Dispensed" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime[xmi:type=IVL_TS].high" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.destination" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.destination" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.destination" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.destination">
          <path value="MedicationDispense.destination" />
          <short value="Where the medication was sent" />
          <definition value="Identification of the facility/location where the medication was shipped to, as part of the dispense event." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="RXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=DST].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.receiver" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.receiver" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.receiver" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.receiver">
          <path value="MedicationDispense.receiver" />
          <short value="Who collected the medication" />
          <definition value="Identifies the person who picked up the medication.  This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=RCV].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.note" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.note">
          <path value="MedicationDispense.note" />
          <short value="Information about the dispense" />
          <definition value="Extra information about the dispense that could not be conveyed in the other attributes." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…note" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="RXD-9 Dispense Notes" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ]/source[classCode=ACT,moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.dosageInstruction" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.dosageInstruction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.dosageInstruction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.dosageInstruction">
          <path value="MedicationDispense.dosageInstruction" />
          <short value="How the medication is to be used by the patient or administered by the caregiver" />
          <definition value="Indicates how the medication is to be used by the patient." />
          <comment value="When the dose or rate is intended to change over the entire administration period (e.g. Tapering dose prescriptions), multiple instances of dosage instructions will need to be supplied to convey the different doses/rates.&#xD;The pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Dosage" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.substitution" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.substitution">
          <path value="MedicationDispense.substitution" />
          <short value="Whether a substitution was performed on the dispense" />
          <definition value="Indicates whether or not substitution was made as part of the dispense.  In some cases substitution will be expected but does not happen, in other cases substitution is not expected but does happen.  This block explains what substitution did or did not happen and why.  If nothing is specified, substitution was not done." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution.wasSubstituted" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.substitution.wasSubstituted" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution.wasSubstituted" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.substitution.wasSubstituted">
          <path value="MedicationDispense.substitution.wasSubstituted" />
          <short value="Whether a substitution was or was not performed on the dispense" />
          <definition value="True if the dispenser dispensed a different drug or product from what was prescribed." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".actionNegationInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution.type" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.substitution.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.substitution.type">
          <path value="MedicationDispense.substitution.type" />
          <short value="Code signifying whether a different drug was dispensed from what was prescribed" />
          <definition value="A code signifying whether a different drug was dispensed from what was prescribed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationIntendedSubstitutionType" />
            </extension>
            <strength value="example" />
            <description value="A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="RXO-9-Allow Substitutions / RXE-9-Substitution Status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution.reason" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.substitution.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.substitution.reason">
          <path value="MedicationDispense.substitution.reason" />
          <short value="Why was substitution made" />
          <definition value="Indicates the reason for the substitution of (or lack of substitution) from what was prescribed." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MedicationIntendedSubstitutionReason" />
            </extension>
            <strength value="example" />
            <description value="A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".reasonCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution.responsibleParty" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.substitution.responsibleParty" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.substitution.responsibleParty" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.substitution.responsibleParty">
          <path value="MedicationDispense.substitution.responsibleParty" />
          <short value="Who is responsible for the substitution" />
          <definition value="The person or organization that has primary responsibility for the substitution." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PFM].role[classCode=ASSIGN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.detectedIssue" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.detectedIssue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.detectedIssue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.detectedIssue">
          <path value="MedicationDispense.detectedIssue" />
          <short value="Clinical issue with action" />
          <definition value="Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc." />
          <alias value="Contraindication" />
          <alias value="Drug Utilization Review (DUR)" />
          <alias value="Alert" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DetectedIssue" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.notDone" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.notDone" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.notDone" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.notDone">
          <path value="MedicationDispense.notDone" />
          <short value="Whether the dispense was or was not performed" />
          <definition value="True if the dispense was not performed for some reason." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…notDone" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".actionNegationInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.notDoneReasonX" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.notDoneReasonX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.notDoneReasonX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.notDoneReason[x]">
          <path value="MedicationDispense.notDoneReason[x]" />
          <short value="Why a dispense was not performed" />
          <definition value="Indicates the reason why a dispense was not performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DetectedIssue" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="…notDoneReason" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=&quot;not done reason&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/MedicationDispense.eventHistory" />
    <resource>
      <DataElement>
        <id value="MedicationDispense.eventHistory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/MedicationDispense.eventHistory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="MedicationDispense.eventHistory">
          <path value="MedicationDispense.eventHistory" />
          <short value="A list of releveant lifecycle events" />
          <definition value="A summary of the events of interest that have occurred, such as when the dispense was verified." />
          <comment value="This may not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Provenance" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport">
          <path value="DiagnosticReport" />
          <short value="A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports" />
          <definition value="The findings and interpretation of diagnostic  tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports." />
          <comment value="This is intended to capture a single report, and is not suitable for use in displaying summary information that covers multiple reports.  For example, this resource has not been designed for laboratory cumulative reporting formats nor detailed structured reports for sequencing." />
          <alias value="Report" />
          <alias value="Test" />
          <alias value="Result" />
          <alias value="Results" />
          <alias value="Labs" />
          <alias value="Laboratory" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORU -&gt; OBR" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=OBS, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.diagnostics" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.identifier" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.identifier">
          <path value="DiagnosticReport.identifier" />
          <short value="Business identifier for report" />
          <definition value="Identifiers assigned to this report by the performer or other systems." />
          <comment value="Usually assigned by the Information System of the diagnostic service provider (filler id)." />
          <requirements value="Need to know what identifier to use when making queries about this report from the source laboratory, and for linking to the report outside FHIR context." />
          <alias value="ReportID" />
          <alias value="Filler ID" />
          <alias value="Placer ID" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBR-51" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.basedOn" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.basedOn">
          <path value="DiagnosticReport.basedOn" />
          <short value="What was requested" />
          <definition value="Details concerning a test or procedure requested." />
          <comment value="Note: Usually there is one test request for each result, however in some circumstances multiple test requests may be represented using a single test result resource. Note that there are also cases where one request leads to multiple reports." />
          <requirements value="This allows tracing of authorization for the report and tracking whether proposals/recommendations were acted upon." />
          <alias value="Request" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.basedOn" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC? OBR-2/3?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=FLFS].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.status" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.status">
          <path value="DiagnosticReport.status" />
          <short value="registered | partial | preliminary | final +" />
          <definition value="The status of the diagnostic report as a whole." />
          <comment value="This is labeled as &quot;Is Modifier&quot; because applications need to take appropriate action if a report is withdrawn." />
          <requirements value="Diagnostic services routinely issue provisional/incomplete reports, and sometimes withdraw previously released reports." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosticReportStatus" />
            </extension>
            <strength value="required" />
            <description value="The status of the diagnostic report as a whole." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/diagnostic-report-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBR-25 (not 1:1 mapping)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="statusCode  Note: final and amended are distinguished by whether observation is the subject of a ControlAct event of type &quot;revise&quot;" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.category" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.category">
          <path value="DiagnosticReport.category" />
          <short value="Service category" />
          <definition value="A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes." />
          <comment value="The level of granularity is defined by the category concepts in the value set. More fine-grained filtering can be performed using the metadata and/or terminology hierarchy in DiagnosticReport.code." />
          <alias value="Department" />
          <alias value="Sub-department" />
          <alias value="Service" />
          <alias value="Discipline" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosticServiceSection" />
            </extension>
            <strength value="example" />
            <description value="Codes for diagnostic service sections." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/diagnostic-service-sections" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBR-24" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=COMP].source[classCode=LIST, moodCode=EVN, code &lt; LabService].code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.code" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.code">
          <path value="DiagnosticReport.code" />
          <short value="Name/Code for this diagnostic report" />
          <definition value="A code or name that describes this diagnostic report." />
          <alias value="Type" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosticReportCodes" />
            </extension>
            <strength value="preferred" />
            <description value="Codes that describe Diagnostic Reports." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/report-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.code" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBR-4 (HL7 v2 doesn't provide an easy way to indicate both the ordered test and the performed panel)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.subject" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.subject">
          <path value="DiagnosticReport.subject" />
          <short value="The subject of the report - usually, but not always, the patient" />
          <definition value="The subject of the report. Usually, but not always, this is a patient. However diagnostic services also perform analyses on specimens collected from a variety of other sources." />
          <requirements value="SHALL know the subject context." />
          <alias value="Patient" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3 (no HL7 v2 mapping for Group or Device)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=SBJ]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.context" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.context">
          <path value="DiagnosticReport.context" />
          <short value="Health care event when test ordered" />
          <definition value="The healthcare event  (e.g. a patient and healthcare provider interaction) which this DiagnosticReport per is about." />
          <comment value="This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter or episode but still be tied to the context of the encounter or episode (e.g. pre-admission lab tests)." />
          <requirements value="Links the request to the Encounter context." />
          <alias value="Encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.context" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PV1-19" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.effectiveX" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.effectiveX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.effectiveX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.effective[x]">
          <path value="DiagnosticReport.effective[x]" />
          <short value="Clinically relevant time/time-period for report" />
          <definition value="The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself." />
          <comment value="If the diagnostic procedure was performed on the patient, this is the time it was performed. If there are specimens, the diagnostically relevant time can be derived from the specimen collection times, but the specimen information is not always available, and the exact relationship between the specimens and the diagnostically relevant time is not always automatic." />
          <requirements value="Need to know where in the patient history to file/present this report." />
          <alias value="Observation time" />
          <alias value="Effective Time" />
          <alias value="Occurrence" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence[x]" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OBR-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.issued" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.issued" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.issued" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.issued">
          <path value="DiagnosticReport.issued" />
          <short value="DateTime this version was released" />
          <definition value="The date and time that this version of the report was released from the source diagnostic service." />
          <comment value="May be different from the update time of the resource itself, because that is the status of the record (potentially a secondary copy), not the actual release time of the report." />
          <requirements value="Clinicians need to be able to check the date that the report was released." />
          <alias value="Date Created" />
          <alias value="Date published" />
          <alias value="Date Issued" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OBR-22" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=VRF or AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.performer" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.performer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.performer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.performer">
          <path value="DiagnosticReport.performer" />
          <short value="Participants in producing the report" />
          <definition value="Indicates who or what participated in producing the report." />
          <alias value="Laboratory" />
          <alias value="Service" />
          <alias value="Practitioner" />
          <alias value="Department" />
          <alias value="Company" />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRT-8 (where this PRT-4-Participation = &quot;PO&quot;)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRF]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.performer.role" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.performer.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.performer.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.performer.role">
          <path value="DiagnosticReport.performer.role" />
          <short value="Type of performer" />
          <definition value="Describes the type of participation (e.g.  a responsible party, author, or verifier)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Role" />
            </extension>
            <strength value="example" />
            <description value="Indicate a role of diagnostic report performer" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/performer-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.role" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRT-8 (where this PRT-4-Participation = &quot;PO&quot;)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".functionCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.performer.actor" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.performer.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.performer.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.performer.actor">
          <path value="DiagnosticReport.performer.actor" />
          <short value="Practitioner or Organization  participant" />
          <definition value="The reference to the  practitioner or organization involved in producing the report. For example, the diagnostic service that is responsible for issuing the report." />
          <comment value="This is not necessarily the source of the atomic data items. It is the entity that takes responsibility for the clinical report." />
          <requirements value="Need to know whom to contact if there are queries about the results. Also may need to track the source of reports for secondary data analysis." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.actor" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRT-8 (where this PRT-4-Participation = &quot;PO&quot;)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.specimen" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.specimen" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.specimen" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.specimen">
          <path value="DiagnosticReport.specimen" />
          <short value="Specimens this report is based on" />
          <definition value="Details about the specimens on which this diagnostic report is based." />
          <comment value="If the specimen is sufficiently specified with a code in the test result name, then this additional data may be redundant. If there are multiple specimens, these may be represented per observation or group." />
          <requirements value="Need to be able to report information about the collected specimens on which the report is based." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="SPM" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="participation[typeCode=SBJ]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.result" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.result" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.result" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.result">
          <path value="DiagnosticReport.result" />
          <short value="Observations - simple, or complex nested groups" />
          <definition value="Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. &quot;atomic&quot; results), or they can be grouping observations that include references to other members of the group (e.g. &quot;panels&quot;)." />
          <requirements value="Need to support individual results, or report groups of results, where the result grouping is arbitrary, but meaningful. This structure is recursive - observations can contain observations." />
          <alias value="Data" />
          <alias value="Atomic Value" />
          <alias value="Result" />
          <alias value="Atomic result" />
          <alias value="Data" />
          <alias value="Test" />
          <alias value="Analyte" />
          <alias value="Battery" />
          <alias value="Organizer" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBXs" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=COMP].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.imagingStudy" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.imagingStudy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.imagingStudy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.imagingStudy">
          <path value="DiagnosticReport.imagingStudy" />
          <short value="Reference to full details of imaging associated with the diagnostic report" />
          <definition value="One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images." />
          <comment value="ImagingStudy and ImageManifest and the image element are somewhat overlapping - typically, the list of image references in the image element will also be found in one of the imaging study resources. However each caters to different types of displays for different types of purposes. Neither, either, or both may be provided." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingManifest" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=COMP].target[classsCode=DGIMG, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.image" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.image" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.image" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.image">
          <path value="DiagnosticReport.image" />
          <short value="Key images associated with this report" />
          <definition value="A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest)." />
          <requirements value="Many diagnostic services include images in the report as part of their service." />
          <alias value="DICOM" />
          <alias value="Slides" />
          <alias value="Scans" />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OBX?" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=COMP].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.image.comment" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.image.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.image.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.image.comment">
          <path value="DiagnosticReport.image.comment" />
          <short value="Comment about the image (e.g. explanation)" />
          <definition value="A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features." />
          <comment value="The comment should be displayed with the image. It would be common for the report to include additional discussion of the image contents in other sections such as the conclusion." />
          <requirements value="The provider of the report should make a comment about each image included in the report." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.image.link" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.image.link" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.image.link" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.image.link">
          <path value="DiagnosticReport.image.link" />
          <short value="Reference to the image source" />
          <definition value="Reference to the image source." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Media" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".value.reference" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.conclusion" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.conclusion" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.conclusion" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.conclusion">
          <path value="DiagnosticReport.conclusion" />
          <short value="Clinical Interpretation of test results" />
          <definition value="Concise and clinically contextualized impression / summary of the diagnostic report." />
          <requirements value="Need to be able to provide a conclusion that is not lost among the basic result data." />
          <alias value="Report" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=&quot;SPRT&quot;].source[classCode=OBS, moodCode=EVN, code=LOINC:48767-8].value (type=ST)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.codedDiagnosis" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.codedDiagnosis" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.codedDiagnosis" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.codedDiagnosis">
          <path value="DiagnosticReport.codedDiagnosis" />
          <short value="Codes for the conclusion" />
          <definition value="Codes for the conclusion." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdjunctDiagnosis" />
            </extension>
            <strength value="example" />
            <description value="Diagnosis codes provided as adjuncts to the report." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-findings" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBX" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="inboundRelationship[typeCode=SPRT].source[classCode=OBS, moodCode=EVN, code=LOINC:54531-9].value (type=CD)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DiagnosticReport.presentedForm" />
    <resource>
      <DataElement>
        <id value="DiagnosticReport.presentedForm" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DiagnosticReport.presentedForm" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DiagnosticReport.presentedForm">
          <path value="DiagnosticReport.presentedForm" />
          <short value="Entire report as issued" />
          <definition value="Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent." />
          <comment value="&quot;application/pdf&quot; is recommended as the most reliable and interoperable in this context." />
          <requirements value="Gives laboratory the ability to provide its own fully formatted report for clinical fidelity." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Attachment" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="text (type=ED)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService" />
    <resource>
      <DataElement>
        <id value="HealthcareService" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService">
          <path value="HealthcareService" />
          <short value="The details of a healthcare service available at a location" />
          <definition value="The details of a healthcare service available at a location." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="act[classCode=ACT][moodCode=DEF]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.group" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.identifier" />
    <resource>
      <DataElement>
        <id value="HealthcareService.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.identifier">
          <path value="HealthcareService.identifier" />
          <short value="External identifiers for this item" />
          <definition value="External identifiers for this item." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.active" />
    <resource>
      <DataElement>
        <id value="HealthcareService.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.active">
          <path value="HealthcareService.active" />
          <short value="Whether this healthcareservice is in active use" />
          <definition value="Whether this healthcareservice record is in active use." />
          <comment value="This element is labeled as a modifier because it may be used to mark that the resource was created in error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.providedBy" />
    <resource>
      <DataElement>
        <id value="HealthcareService.providedBy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.providedBy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.providedBy">
          <path value="HealthcareService.providedBy" />
          <short value="Organization that provides this service" />
          <definition value="The organization that provides this healthcare service." />
          <comment value="This property is recommended to be the same as the Location's managingOrganization, and if not provided should be interpreted as such. If the Location does not have a managing Organization, then this property should be populated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".scopingRole.Organization" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.category" />
    <resource>
      <DataElement>
        <id value="HealthcareService.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.category">
          <path value="HealthcareService.category" />
          <short value="Broad category of service being performed or delivered" />
          <definition value="Identifies the broad category of service being performed or delivered." />
          <comment value="Selecting a Service Category then determines the list of relevant service types that can be selected in the primary service type." />
          <alias value="service category" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-category" />
            </extension>
            <strength value="example" />
            <description value="A category of the service(s) that could be provided." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.type" />
    <resource>
      <DataElement>
        <id value="HealthcareService.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.type">
          <path value="HealthcareService.type" />
          <short value="Type of service that may be delivered or performed" />
          <definition value="The specific type of service that may be delivered or performed." />
          <alias value="service type" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-type" />
            </extension>
            <strength value="example" />
            <description value="Additional details about where the content was created (e.g. clinical specialty)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=COMP.act[classCode=ACT][moodCode=DEF].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.specialty" />
    <resource>
      <DataElement>
        <id value="HealthcareService.specialty" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.specialty" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.specialty">
          <path value="HealthcareService.specialty" />
          <short value="Specialties handled by the HealthcareService" />
          <definition value="Collection of specialties handled by the service site. This is more of a medical term." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-specialty" />
            </extension>
            <strength value="preferred" />
            <description value="A specialty that a healthcare service may provide." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-practice-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=COMP.act[classCode=ACT][moodCode=DEF].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.location" />
    <resource>
      <DataElement>
        <id value="HealthcareService.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.location">
          <path value="HealthcareService.location" />
          <short value="Location(s) where service may be provided" />
          <definition value="The location(s) where this healthcare service may be provided." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".location.role[classCode=SDLOC]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.name" />
    <resource>
      <DataElement>
        <id value="HealthcareService.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.name">
          <path value="HealthcareService.name" />
          <short value="Description of service as presented to a consumer while searching" />
          <definition value="Further description of the service as it would be presented to a consumer while searching." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.comment" />
    <resource>
      <DataElement>
        <id value="HealthcareService.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.comment">
          <path value="HealthcareService.comment" />
          <short value="Additional description and/or any specific issues not covered elsewhere" />
          <definition value="Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName." />
          <comment value="Would expect that a user would not see this information on a search results, and it would only be available when viewing the complete details of the service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".location.role[classCode=SDLOC].desc" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.extraDetails" />
    <resource>
      <DataElement>
        <id value="HealthcareService.extraDetails" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.extraDetails" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.extraDetails">
          <path value="HealthcareService.extraDetails" />
          <short value="Extra details about the service that can't be placed in the other fields" />
          <definition value="Extra details about the service that can't be placed in the other fields." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=COMP.act[classCode=ACT][moodCode=DEF].text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.photo" />
    <resource>
      <DataElement>
        <id value="HealthcareService.photo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.photo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.photo">
          <path value="HealthcareService.photo" />
          <short value="Facilitates quick identification of the service" />
          <definition value="If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Attachment" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=SBJ].observation.value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.telecom" />
    <resource>
      <DataElement>
        <id value="HealthcareService.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.telecom">
          <path value="HealthcareService.telecom" />
          <short value="Contacts related to the healthcare service" />
          <definition value="List of contacts related to this specific healthcare service." />
          <comment value="If this is empty, then refer to the location's contacts." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".telecom" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.coverageArea" />
    <resource>
      <DataElement>
        <id value="HealthcareService.coverageArea" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.coverageArea" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.coverageArea">
          <path value="HealthcareService.coverageArea" />
          <short value="Location(s) service is inteded for/available to" />
          <definition value="The location(s) that this service is available to (not where the service is provided)." />
          <comment value="The locations referenced by the coverage area can include both specific locations, including areas, and also conceptual domains too (mode = kind), such as a physical area (tri-state area) and some other attribute (covered by Example Care Organization). These types of Locations are often not managed by any specific organization. This could also include generic locations such as &quot;in-home&quot;." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".location.role[classCode=SDLOC].subjectOf.A_SpatialCoordinate" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.serviceProvisionCode" />
    <resource>
      <DataElement>
        <id value="HealthcareService.serviceProvisionCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.serviceProvisionCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.serviceProvisionCode">
          <path value="HealthcareService.serviceProvisionCode" />
          <short value="Conditions under which service is available/offered" />
          <definition value="The code(s) that detail the conditions under which the healthcare service is available/offered." />
          <comment value="The provision means being commissioned by, contractually obliged or financially sourced. Types of costings that may apply to this healthcare service, such if the service may be available for free, some discounts available, or fees apply." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProvisionConditions" />
            </extension>
            <strength value="example" />
            <description value="The code(s) that detail the conditions under which the healthcare service is available/offered." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-provision-conditions" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=PRCN].observation[moodCode=EVN.CRT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.eligibility" />
    <resource>
      <DataElement>
        <id value="HealthcareService.eligibility" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.eligibility" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.eligibility">
          <path value="HealthcareService.eligibility" />
          <short value="Specific eligibility requirements required to use the service" />
          <definition value="Does this service have specific eligibility requirements that need to be met in order to use the service?" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceEligibility" />
            </extension>
            <strength value="example" />
            <description value="Coded values underwhich a specific service is made available." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=PRCN].observation[moodCode=EVN.CRT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.eligibilityNote" />
    <resource>
      <DataElement>
        <id value="HealthcareService.eligibilityNote" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.eligibilityNote" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.eligibilityNote">
          <path value="HealthcareService.eligibilityNote" />
          <short value="Describes the eligibility conditions for the service" />
          <definition value="Describes the eligibility conditions for the service." />
          <comment value="The description of service eligibility should, in general, not exceed one or two paragraphs. It should be sufficient for a prospective consumer to determine if they are likely to be eligible or not. Where eligibility requirements and conditions are complex, it may simply be noted that an eligibility assessment is required. Where eligibility is determined by an outside source, such as an Act of Parliament, this should be noted, preferably with a reference to a commonly available copy of the source document such as a web page." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=PRCN].observation[moodCode=EVN.CRT].text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.programName" />
    <resource>
      <DataElement>
        <id value="HealthcareService.programName" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.programName" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.programName">
          <path value="HealthcareService.programName" />
          <short value="Program Names that categorize the service" />
          <definition value="Program Names that can be used to categorize the service." />
          <comment value="Programs are often defined externally to an Organization, commonly by governments; e.g. Home and Community Care Programs, Homeless Program, …." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=PERT].observation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.characteristic" />
    <resource>
      <DataElement>
        <id value="HealthcareService.characteristic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.characteristic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.characteristic">
          <path value="HealthcareService.characteristic" />
          <short value="Collection of characteristics (attributes)" />
          <definition value="Collection of characteristics (attributes)." />
          <comment value="These could be such things as is wheelchair accessible." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceCharacteristic" />
            </extension>
            <strength value="example" />
            <description value="A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy)." />
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=PERT].observation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.referralMethod" />
    <resource>
      <DataElement>
        <id value="HealthcareService.referralMethod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.referralMethod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.referralMethod">
          <path value="HealthcareService.referralMethod" />
          <short value="Ways that the service accepts referrals" />
          <definition value="Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ReferralMethod" />
            </extension>
            <strength value="example" />
            <description value="The methods of referral can be used when referring to a specific HealthCareService resource." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-referral-method" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=PERT].observation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.appointmentRequired" />
    <resource>
      <DataElement>
        <id value="HealthcareService.appointmentRequired" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.appointmentRequired" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.appointmentRequired">
          <path value="HealthcareService.appointmentRequired" />
          <short value="If an appointment is required for access to this service" />
          <definition value="Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".actrelationship[typeCode=PERT].observation" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime" />
    <resource>
      <DataElement>
        <id value="HealthcareService.availableTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.availableTime">
          <path value="HealthcareService.availableTime" />
          <short value="Times the Service Site is available" />
          <definition value="A collection of times that the Service Site is available." />
          <comment value="More detailed availability information may be provided in associated Schedule/Slot resources." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime.daysOfWeek" />
    <resource>
      <DataElement>
        <id value="HealthcareService.availableTime.daysOfWeek" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime.daysOfWeek" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.availableTime.daysOfWeek">
          <path value="HealthcareService.availableTime.daysOfWeek" />
          <short value="mon | tue | wed | thu | fri | sat | sun" />
          <definition value="Indicates which days of the week are available between the start and end Times." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DaysOfWeek" />
            </extension>
            <strength value="required" />
            <description value="The days of the week." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/days-of-week" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime.allDay" />
    <resource>
      <DataElement>
        <id value="HealthcareService.availableTime.allDay" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime.allDay" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.availableTime.allDay">
          <path value="HealthcareService.availableTime.allDay" />
          <short value="Always available? e.g. 24 hour service" />
          <definition value="Is this always available? (hence times are irrelevant) e.g. 24 hour service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime.availableStartTime" />
    <resource>
      <DataElement>
        <id value="HealthcareService.availableTime.availableStartTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime.availableStartTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.availableTime.availableStartTime">
          <path value="HealthcareService.availableTime.availableStartTime" />
          <short value="Opening time of day (ignored if allDay = true)" />
          <definition value="The opening time of day. Note: If the AllDay flag is set, then this time is ignored." />
          <comment value="The timezone is expected to be for where this HealthcareService is provided at." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="time" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime.availableEndTime" />
    <resource>
      <DataElement>
        <id value="HealthcareService.availableTime.availableEndTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.availableTime.availableEndTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.availableTime.availableEndTime">
          <path value="HealthcareService.availableTime.availableEndTime" />
          <short value="Closing time of day (ignored if allDay = true)" />
          <definition value="The closing time of day. Note: If the AllDay flag is set, then this time is ignored." />
          <comment value="The timezone is expected to be for where this HealthcareService is provided at." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="time" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.notAvailable" />
    <resource>
      <DataElement>
        <id value="HealthcareService.notAvailable" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.notAvailable" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.notAvailable">
          <path value="HealthcareService.notAvailable" />
          <short value="Not available during this time due to provided reason" />
          <definition value="The HealthcareService is not available during this period of time due to the provided reason." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.notAvailable.description" />
    <resource>
      <DataElement>
        <id value="HealthcareService.notAvailable.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.notAvailable.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.notAvailable.description">
          <path value="HealthcareService.notAvailable.description" />
          <short value="Reason presented to the user explaining why time not available" />
          <definition value="The reason that can be presented to the user as to why this time is not available." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.notAvailable.during" />
    <resource>
      <DataElement>
        <id value="HealthcareService.notAvailable.during" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.notAvailable.during" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.notAvailable.during">
          <path value="HealthcareService.notAvailable.during" />
          <short value="Service not availablefrom this date" />
          <definition value="Service is not available (seasonally or for a public holiday) from this date." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.availabilityExceptions" />
    <resource>
      <DataElement>
        <id value="HealthcareService.availabilityExceptions" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.availabilityExceptions" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.availabilityExceptions">
          <path value="HealthcareService.availabilityExceptions" />
          <short value="Description of availability exceptions" />
          <definition value="A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/HealthcareService.endpoint" />
    <resource>
      <DataElement>
        <id value="HealthcareService.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/HealthcareService.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="HealthcareService.endpoint">
          <path value="HealthcareService.endpoint" />
          <short value="Technical endpoints providing access to services operated for the location" />
          <definition value="Technical endpoints providing access to services operated for the specific healthcare services defined at this resource." />
          <requirements value="Organizations may have different systems covering different services at the different locations and need to be able to define the technical connection details for how to connect to them, and for what purpose." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement" />
    <resource>
      <DataElement>
        <id value="DataElement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement">
          <path value="DataElement" />
          <short value="Resource data element" />
          <definition value="The formal description of a single piece of information that can be gathered and reported." />
          <comment value="Often called a clinical template." />
          <alias value="Master Observation" />
          <alias value="Data Element" />
          <alias value="CDE" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="dex" />
            <map value="RetrieveMetadata response" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OM1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=OBS, moodCode=DEFN]" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="Data_Element" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.content" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.url" />
    <resource>
      <DataElement>
        <id value="DataElement.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.url">
          <path value="DataElement.url" />
          <short value="Logical URI to reference this data element (globally unique)" />
          <definition value="An absolute URI that is used to identify this data element 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 data element is (or will be) published. The URL SHOULD include the major version of the data element. 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the data element to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./id[use=INSTANCE]" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Identified_Item).identifier  As assigned by registering authority" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.identifier" />
    <resource>
      <DataElement>
        <id value="DataElement.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.identifier">
          <path value="DataElement.identifier" />
          <short value="Additional identifier for the data element" />
          <definition value="A formal identifier that is used to identify this data element when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this data element outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="dex" />
            <map value="id" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OM1.2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./id[use=BUS]" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Identified_Item).identifier" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="LOINC_NUM (the code is the identifier)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.version" />
    <resource>
      <DataElement>
        <id value="DataElement.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.version">
          <path value="DataElement.version" />
          <short value="Business version of the data element" />
          <definition value="The identifier that is used to identify this version of the data element when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the data element author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." />
          <comment value="There may be different data element instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the data element with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="dex" />
            <map value="version" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./id[use=VER]" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Identified_Item).identifier.version" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.status" />
    <resource>
      <DataElement>
        <id value="DataElement.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.status">
          <path value="DataElement.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this data element. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of data elements that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired data element without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="v2" />
            <map value="MFE.1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./status (draft = new  active = active  retired = aborted)" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Administered_item).registration.state  new = Incomplete, Candidate, Recorded, Qualified  active = Standard, Preferred Standard, Application  retired = Retired, Superseded, Historical" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="STATUS" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.experimental" />
    <resource>
      <DataElement>
        <id value="DataElement.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.experimental">
          <path value="DataElement.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this data element is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." />
          <comment value="Allows filtering of data element that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental data element in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level data element." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=&quot;experimental&quot;].value[type=BL]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.date" />
    <resource>
      <DataElement>
        <id value="DataElement.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.date">
          <path value="DataElement.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the data element was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the data element 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 data element. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="dex" />
            <map value="revisionDate" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OM1.21" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./participation[typeCode=AUT]/time" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Administered_item).last_change_date" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="DATE_LAST_CHANGED" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.publisher" />
    <resource>
      <DataElement>
        <id value="DataElement.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.publisher">
          <path value="DataElement.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the data element." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the data element is the organization or individual primarily responsible for the maintenance and upkeep of the data element. 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 data element. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the data element.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="dex" />
            <map value="registrationAuthority" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OM1.16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./participation[typeCode=AUT]/role[classCode=ASSIGN]/scoper[classCode=ORG,determinerCode=INSTANCE]/name" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Administered_Item).stewardship_record.organization.name" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="Fixed to Regenstrief or SOURCE" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.name" />
    <resource>
      <DataElement>
        <id value="DataElement.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.name">
          <path value="DataElement.name" />
          <short value="Name for this data element (computer friendly)" />
          <definition value="A natural language name identifying the data element. 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.title" />
    <resource>
      <DataElement>
        <id value="DataElement.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.title">
          <path value="DataElement.title" />
          <short value="Name for this data element (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the data element." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc. This may be similar to the question used to prompt someone for a data element value, but the purpose is communicating about the data element, not asking the question.  (Refer to the 'question' element for the latter.)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="dex" />
            <map value="displayName" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="OM1.11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./title" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Designatable_Item).designation.sign  acceptability=preferred in default context" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="LONG_COMMON_NAME" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.contact" />
    <resource>
      <DataElement>
        <id value="DataElement.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.contact">
          <path value="DataElement.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OM1.17" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./participation[typeCode=AUT]/role[classCode=ASSIGN]/scoper[classCode=ORG,determinerCode=INSTANCE]" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Administered_Item).stewardship_record.organization.[email_address, phone_number, uri]" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.useContext" />
    <resource>
      <DataElement>
        <id value="DataElement.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.useContext">
          <path value="DataElement.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate data element instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="OM1.18, OM1.42, OM1.46, OM7.3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./inboundRelationship[typeCode=SUBJ]/source[classCode=LIST, moodCode=EVN]/code" />
          </mapping>
          <mapping>
            <identity value="iso11179" />
            <map value="(Classifiable_Item).classifier" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.jurisdiction" />
    <resource>
      <DataElement>
        <id value="DataElement.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.jurisdiction">
          <path value="DataElement.jurisdiction" />
          <short value="Intended jurisdiction for data element (if applicable)" />
          <definition value="A legal or geographic region in which the data element is intended to be used." />
          <comment value="It may be possible for the data element to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.copyright" />
    <resource>
      <DataElement>
        <id value="DataElement.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.copyright">
          <path value="DataElement.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the data element and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the data element." />
          <comment value="null The copyright statement does not apply to values for the data element, only to its definition." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the data element and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="./inboundRelationship[typeCode=SUBJ]/source[classCode=CONTRACT,moodCode=EVN].text" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.stringency" />
    <resource>
      <DataElement>
        <id value="DataElement.stringency" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.stringency" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.stringency">
          <path value="DataElement.stringency" />
          <short value="comparable | fully-specified | equivalent | convertable | scaleable | flexible" />
          <definition value="Identifies how precise the data element is in its definition." />
          <requirements value="Allows determining the degree of comparability of data element instances. Less granular data elements result in data that is less comparable (or at least requires more work to compare)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DataElementStringency" />
            </extension>
            <strength value="required" />
            <description value="Indicates the degree of precision of the data element definition." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/dataelement-stringency" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="./target[typeCode=SUBJ]/source[classCode=OBS, moodCode=EVN, code=&quot;granularity&quot;]/value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.mapping" />
    <resource>
      <DataElement>
        <id value="DataElement.mapping" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.mapping" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.mapping">
          <path value="DataElement.mapping" />
          <short value="External specification mapped to" />
          <definition value="Identifies a specification (other than a terminology) that the elements which make up the DataElement have some correspondence with." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="dae-3" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="dae-3" />
            <severity value="error" />
            <human value="At least one of  name or uri SHALL be present" />
            <expression value="uri.exists() or name.exists()" />
            <xpath value="exists(f:uri) or exists(f:name)" />
          </constraint>
          <mapping>
            <identity value="dex" />
            <map value="100;0" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.mapping.identity" />
    <resource>
      <DataElement>
        <id value="DataElement.mapping.identity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.mapping.identity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.mapping.identity">
          <path value="DataElement.mapping.identity" />
          <short value="Internal id when this mapping is used" />
          <definition value="An internal id that is used to identify this mapping set when specific mappings are made on a per-element basis." />
          <comment value="The specification is described once, with general comments, and then specific mappings are made that reference this declaration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.mapping.uri" />
    <resource>
      <DataElement>
        <id value="DataElement.mapping.uri" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.mapping.uri" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.mapping.uri">
          <path value="DataElement.mapping.uri" />
          <short value="Identifies what this mapping refers to" />
          <definition value="An absolute URI that identifies the specification that this mapping is expressed to." />
          <comment value="A formal identity for the specification being mapped to helps with identifying maps consistently." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.mapping.name" />
    <resource>
      <DataElement>
        <id value="DataElement.mapping.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.mapping.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.mapping.name">
          <path value="DataElement.mapping.name" />
          <short value="Names what this mapping refers to" />
          <definition value="A name for the specification that is being mapped to." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.mapping.comment" />
    <resource>
      <DataElement>
        <id value="DataElement.mapping.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.mapping.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.mapping.comment">
          <path value="DataElement.mapping.comment" />
          <short value="Versions, issues, scope limitations, etc." />
          <definition value="Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DataElement.element" />
    <resource>
      <DataElement>
        <id value="DataElement.element" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DataElement.element" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DataElement.element">
          <path value="DataElement.element" />
          <short value="Definition of element" />
          <definition value="Defines the structure, type, allowed values and other constraining characteristics of the data element." />
          <comment value="For simple data types there will only be one repetition.  For complex data types, multiple repetitions will be present defining a nested structure using the &quot;path&quot; element." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="ElementDefinition" />
          </type>
          <constraint>
            <key value="dae-1" />
            <severity value="error" />
            <human value="No base allowed" />
            <expression value="base.empty()" />
            <xpath value="not(exists(f:base))" />
          </constraint>
          <constraint>
            <key value="dae-2" />
            <severity value="error" />
            <human value="No slicing allowed" />
            <expression value="slicing.empty()" />
            <xpath value="not(exists(f:slicing))" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A (MIF)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder" />
    <resource>
      <DataElement>
        <id value="NutritionOrder" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder">
          <path value="NutritionOrder" />
          <short value="Diet, formula or nutritional supplement request" />
          <definition value="A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident." />
          <comment value="Referenced by an Order Request (workflow)." />
          <alias value="Nutrition Order" />
          <alias value="Diet Order" />
          <alias value="Diet" />
          <alias value="Nutritional Supplement" />
          <alias value="Enteral Nutrition" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="nor-1" />
            <severity value="warning" />
            <human value="Nutrition Order SHALL contain either Oral Diet , Supplement, or Enteral Formula class" />
            <expression value="oralDiet.exists() or supplement.exists() or enteralFormula.exists()" />
            <xpath value="exists(f:oralDiet) or exists(f:supplement) or exists(f:enteralFormula)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="SupplyRequest" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.careprovision" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.identifier" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.identifier">
          <path value="NutritionOrder.identifier" />
          <short value="Identifiers assigned to this order" />
          <definition value="Identifiers assigned to this order by the order sender or by the order receiver." />
          <comment value="The Identifier.type element can be to indicate filler vs. placer if needed.  This is explained in further detail [here](procedurerequest.html#notes)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.status" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.status">
          <path value="NutritionOrder.status" />
          <short value="proposed | draft | planned | requested | active | on-hold | completed | cancelled | entered-in-error" />
          <definition value="The workflow status of the nutrition order/request." />
          <comment value="Typically the system placing the order sets the status to &quot;requested&quot;. Thereafter, the order is maintained by the receiver that updates the status as the request is handled.&#xA;&#xA;This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NutritionOrderStatus" />
            </extension>
            <strength value="required" />
            <description value="Codes specifying the state of the request. Describes the lifecycle of the nutrition order." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/nutrition-request-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.patient" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.patient">
          <path value="NutritionOrder.patient" />
          <short value="The person who requires the diet, formula or nutritional supplement" />
          <definition value="The person (patient) who needs the nutrition order for an oral diet, nutritional supplement and/or enteral or formula feeding." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.subject.reference(Patient)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.encounter" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.encounter">
          <path value="NutritionOrder.encounter" />
          <short value="The encounter associated with this nutrition order" />
          <definition value="An encounter that provides additional information about the healthcare context in which this request is made." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.context.reference(Encounter)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.dateTime" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.dateTime" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.dateTime" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.dateTime">
          <path value="NutritionOrder.dateTime" />
          <short value="Date and time the nutrition order was requested" />
          <definition value="The date and time that this nutrition order was requested." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="author.time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.orderer" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.orderer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.orderer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.orderer">
          <path value="NutritionOrder.orderer" />
          <short value="Who ordered the diet, formula or nutritional supplement" />
          <definition value="The practitioner that holds legal responsibility for ordering the diet, nutritional supplement, or formula feedings." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.allergyIntolerance" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.allergyIntolerance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.allergyIntolerance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.allergyIntolerance">
          <path value="NutritionOrder.allergyIntolerance" />
          <short value="List of the patient's food and nutrition-related allergies and intolerances" />
          <definition value="A link to a record of allergies or intolerances  which should be included in the nutrition order." />
          <comment value="Information on a patient's food allergies and intolerances to inform healthcare personnel about the type of foods that the patient shouldn't receive or consume." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=RSON].target[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.foodPreferenceModifier" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.foodPreferenceModifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.foodPreferenceModifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.foodPreferenceModifier">
          <path value="NutritionOrder.foodPreferenceModifier" />
          <short value="Order-specific modifier about the type of food that should be given" />
          <definition value="This modifier is used to convey order-specific modifiers about the type of food that should be given. These can be derived from patient allergies, intolerances, or preferences such as Halal, Vegan or Kosher. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings." />
          <comment value="Information on a patient's food preferences that inform healthcare personnel about the food that the patient should receive or consume." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PatientDiet" />
            </extension>
            <strength value="example" />
            <description value="Medical, cultural or ethical food preferences to help with catering requirements" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/encounter-diet" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=NutritionModificationType]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.excludeFoodModifier" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.excludeFoodModifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.excludeFoodModifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.excludeFoodModifier">
          <path value="NutritionOrder.excludeFoodModifier" />
          <short value="Order-specific modifier about the type of food that should not be given" />
          <definition value="This modifier is used to convey order-specific modifiers about the type of food that should NOT be given. These can be derived from patient allergies, intolerances, or preferences such as No Red Meat, No Soy or No Wheat or  Gluten-Free.  While it should not be necessary to repeat allergy or intolerance information captured in the referenced AllergyIntolerance resource in the excludeFoodModifier, this element may be used to convey additional specificity related to foods that should be eliminated from the patient’s diet for any reason.  This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings." />
          <comment value="Information on a patient's food allergies, intolerances and preferences to inform healthcare personnel about the type  of foods that the patient shouldn't receive or consume." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FoodType" />
            </extension>
            <strength value="example" />
            <description value="Codes used to indicate the type of food that should NOT be given to the patient." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/food-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet">
          <path value="NutritionOrder.oralDiet" />
          <short value="Oral diet components" />
          <definition value="Diet given orally in contrast to enteral (tube) feeding." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="nor-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="oralDiet .outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=OralDietSupplyType]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.type" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.type">
          <path value="NutritionOrder.oralDiet.type" />
          <short value="Type of oral diet or diet restrictions that describe what can be consumed orally" />
          <definition value="The kind of diet or dietary restriction such as fiber restricted diet or diabetic diet." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="OralDiet" />
            </extension>
            <strength value="example" />
            <description value="Codes used to indicate the type of diet being ordered for a patient." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/diet-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.schedule" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.schedule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.schedule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.schedule">
          <path value="NutritionOrder.oralDiet.schedule" />
          <short value="Scheduled frequency of diet" />
          <definition value="The time period and frequency at which the diet should be given.  The diet should be given for the combination of all schedules if more than one schedule is present." />
          <alias value="Frequency" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Timing" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".expectedUseTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.nutrient" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.nutrient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.nutrient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.nutrient">
          <path value="NutritionOrder.oralDiet.nutrient" />
          <short value="Required  nutrient modifications" />
          <definition value="Class that defines the quantity and type of nutrient modifications (for example carbohydrate, fiber or sodium) required for the oral diet." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.nutrient.modifier" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.nutrient.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.nutrient.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.nutrient.modifier">
          <path value="NutritionOrder.oralDiet.nutrient.modifier" />
          <short value="Type of nutrient that is being modified" />
          <definition value="The nutrient that is being modified such as carbohydrate or sodium." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NutrientModifier" />
            </extension>
            <strength value="example" />
            <description value="Codes for types of nutrient that is being modified such as carbohydrate or sodium." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/nutrient-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.nutrient.amount" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.nutrient.amount" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.nutrient.amount" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.nutrient.amount">
          <path value="NutritionOrder.oralDiet.nutrient.amount" />
          <short value="Quantity of the specified nutrient" />
          <definition value="The quantity of the specified nutrient to include in diet." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.texture" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.texture" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.texture" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.texture">
          <path value="NutritionOrder.oralDiet.texture" />
          <short value="Required  texture modifications" />
          <definition value="Class that describes any texture modifications required for the patient to safely consume various types of solid foods." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship [typeCode =COMP], target [classCode=PROC, moodCode=EVN, code=DietTextureModificationType]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.texture.modifier" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.texture.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.texture.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.texture.modifier">
          <path value="NutritionOrder.oralDiet.texture.modifier" />
          <short value="Code to indicate how to alter the texture of the foods, e.g. pureed" />
          <definition value="Any texture modifications (for solid foods) that should be made, e.g. easy to chew, chopped, ground, and pureed." />
          <comment value="Coupled with the foodType (Meat)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TextureModifier" />
            </extension>
            <strength value="example" />
            <description value="Codes for food consistency types or texture modifications to apply to foods." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/texture-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.texture.foodType" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.texture.foodType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.texture.foodType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.texture.foodType">
          <path value="NutritionOrder.oralDiet.texture.foodType" />
          <short value="Concepts that are used to identify an entity that is ingested for nutritional purposes" />
          <definition value="The food type(s) (e.g. meats, all foods)  that the texture modification applies to.  This could be all foods types." />
          <comment value="Coupled with the textureModifier; could be (All Foods)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TextureModifiedFoodType" />
            </extension>
            <strength value="example" />
            <description value="Codes for types of foods that are texture modified." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/modified-foodtype" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind; .code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.fluidConsistencyType" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.fluidConsistencyType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.fluidConsistencyType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.fluidConsistencyType">
          <path value="NutritionOrder.oralDiet.fluidConsistencyType" />
          <short value="The required consistency of fluids and liquids provided to the patient" />
          <definition value="The required consistency (e.g. honey-thick, nectar-thick, thin, thickened.) of liquids or fluids served to the patient." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FluidConsistencyType" />
            </extension>
            <strength value="example" />
            <description value="Codes used to represent the consistency of fluids and liquids provided to the patient." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/consistency-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code  (Not differentiated from dietTextureModificationType in HL7 v3)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.instruction" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.oralDiet.instruction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.oralDiet.instruction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.oralDiet.instruction">
          <path value="NutritionOrder.oralDiet.instruction" />
          <short value="Instructions or additional information about the oral diet" />
          <definition value="Free text or additional instructions or information pertaining to the oral diet." />
          <comment value="Free text dosage instructions can be used for cases where the instructions are too complex to code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.supplement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.supplement">
          <path value="NutritionOrder.supplement" />
          <short value="Supplement components" />
          <definition value="Oral nutritional products given in order to add further nutritional value to the patient's diet." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="nor-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=SUPPLEMENT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.type" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.supplement.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.supplement.type">
          <path value="NutritionOrder.supplement.type" />
          <short value="Type of supplement product requested" />
          <definition value="The kind of nutritional supplement product required such as a high protein or pediatric clear liquid supplement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SupplementType" />
            </extension>
            <strength value="example" />
            <description value="Codes for nutritional supplements to be provided to the patient" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/supplement-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind; .code (NutritionalSupplementType)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.productName" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.supplement.productName" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.productName" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.supplement.productName">
          <path value="NutritionOrder.supplement.productName" />
          <short value="Product or brand name of the nutritional supplement" />
          <definition value="The product or brand name of the nutritional supplement such as &quot;Acme Protein Shake&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.schedule" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.supplement.schedule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.schedule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.supplement.schedule">
          <path value="NutritionOrder.supplement.schedule" />
          <short value="Scheduled frequency of supplement" />
          <definition value="The time period and frequency at which the supplement(s) should be given.  The supplement should be given for the combination of all schedules if more than one schedule is present." />
          <alias value="Frequency" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Timing" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.quantity" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.supplement.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.supplement.quantity">
          <path value="NutritionOrder.supplement.quantity" />
          <short value="Amount of the nutritional supplement" />
          <definition value="The amount of the nutritional supplement to be given." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.instruction" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.supplement.instruction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.supplement.instruction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.supplement.instruction">
          <path value="NutritionOrder.supplement.instruction" />
          <short value="Instructions or additional information about the oral supplement" />
          <definition value="Free text or additional instructions or information pertaining to the oral supplement." />
          <comment value="Free text dosage instructions can be used for cases where the instructions are too complex to code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula">
          <path value="NutritionOrder.enteralFormula" />
          <short value="Enteral formula components" />
          <definition value="Feeding provided through the gastrointestinal tract via a tube, catheter, or stoma that delivers nutrition distal to the oral cavity." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="nor-1" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship [typeCode =COMP], target [classCode=SPLY, moodCode=RQO, code=FORMULA]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.baseFormulaType" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.baseFormulaType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.baseFormulaType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.baseFormulaType">
          <path value="NutritionOrder.enteralFormula.baseFormulaType" />
          <short value="Type of enteral or infant formula" />
          <definition value="The type of enteral or infant formula such as an adult standard formula with fiber or a soy-based infant formula." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EnteralFormulaType" />
            </extension>
            <strength value="example" />
            <description value="Codes for type of enteral formula to be administered to patient." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/entformula-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".participation{typeCode=PRD].role{classCode=MANU), manufacturedFoodKind; .code (NutritionalFormulaType)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.baseFormulaProductName" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.baseFormulaProductName" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.baseFormulaProductName" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.baseFormulaProductName">
          <path value="NutritionOrder.enteralFormula.baseFormulaProductName" />
          <short value="Product or brand name of the enteral or infant formula" />
          <definition value="The product or brand name of the enteral or infant formula product such as &quot;ACME Adult Standard Formula&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.additiveType" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.additiveType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.additiveType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.additiveType">
          <path value="NutritionOrder.enteralFormula.additiveType" />
          <short value="Type of modular component to add to the feeding" />
          <definition value="Indicates the type of modular component such as protein, carbohydrate, fat or fiber to be provided in addition to or mixed with the base formula." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EnteralFormulaAdditiveType" />
            </extension>
            <strength value="example" />
            <description value="Codes for the type of modular component such as protein, carbohydrate or fiber to be provided in addition to or mixed with the base formula." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/entformula-additive" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="N/A (not differentiated from NutritionalFormulaType in HL7 v3)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.additiveProductName" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.additiveProductName" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.additiveProductName" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.additiveProductName">
          <path value="NutritionOrder.enteralFormula.additiveProductName" />
          <short value="Product or brand name of the modular additive" />
          <definition value="The product or brand name of the type of modular component to be added to the formula." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.caloricDensity" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.caloricDensity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.caloricDensity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.caloricDensity">
          <path value="NutritionOrder.enteralFormula.caloricDensity" />
          <short value="Amount of energy per specified volume that is required" />
          <definition value="The amount of energy (calories) that the formula should provide per specified volume, typically per mL or fluid oz.  For example, an infant may require a formula that provides 24 calories per fluid ounce or an adult may require an enteral formula that provides 1.5 calorie/mL." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".quantity (caloricDensity)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.routeofAdministration" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.routeofAdministration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.routeofAdministration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.routeofAdministration">
          <path value="NutritionOrder.enteralFormula.routeofAdministration" />
          <short value="How the formula should enter the patient's gastrointestinal tract" />
          <definition value="The route or physiological path of administration into the patient's gastrointestinal  tract for purposes of providing the formula feeding, e.g. nasogastric tube." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EnteralRouteOfAdministration" />
            </extension>
            <strength value="extensible" />
            <description value="Codes specifying the route of administration of enteral formula." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/enteral-route" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".routeCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administration" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.administration" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administration" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.administration">
          <path value="NutritionOrder.enteralFormula.administration" />
          <short value="Formula feeding instruction as structured data" />
          <definition value="Formula administration instructions as structured data.  This repeating structure allows for changing the administration rate or volume over time for both bolus and continuous feeding.  An example of this would be an instruction to increase the rate of continuous feeding every 2 hours." />
          <comment value="See implementation notes below for further discussion on how to order continuous vs bolus enteral feeding using this resource." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship [typeCode =COMP], target [classCode=SBADM, moodCode=RQO]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administration.schedule" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.administration.schedule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administration.schedule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.administration.schedule">
          <path value="NutritionOrder.enteralFormula.administration.schedule" />
          <short value="Scheduled frequency of enteral feeding" />
          <definition value="The time period and frequency at which the enteral formula should be delivered to the patient." />
          <alias value="Frequency" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Timing" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveUseTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administration.quantity" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.administration.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administration.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.administration.quantity">
          <path value="NutritionOrder.enteralFormula.administration.quantity" />
          <short value="The volume of formula to provide" />
          <definition value="The volume of formula to provide to the patient per the specified administration schedule." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".doseQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administration.rateX" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.administration.rateX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administration.rateX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.administration.rate[x]">
          <path value="NutritionOrder.enteralFormula.administration.rate[x]" />
          <short value="Speed with which the formula is provided per period of time" />
          <definition value="The rate of administration of formula via a feeding pump, e.g. 60 mL per hour, according to the specified schedule." />
          <comment value="Ratio is used when the quantity value in the denominator is not &quot;1&quot;, otherwise use Quantity. For example, the Ratio datatype is used for &quot;200 mL/4 hrs&quot; versus the Quantity datatype for &quot;50 mL/hr&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <type>
            <code value="Ratio" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".rateQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.maxVolumeToDeliver" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.maxVolumeToDeliver" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.maxVolumeToDeliver" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.maxVolumeToDeliver">
          <path value="NutritionOrder.enteralFormula.maxVolumeToDeliver" />
          <short value="Upper limit on formula volume per unit of time" />
          <definition value="The maximum total quantity of formula that may be administered to a subject over the period of time, e.g. 1440 mL over 24 hours." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".maxDoseQuantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administrationInstruction" />
    <resource>
      <DataElement>
        <id value="NutritionOrder.enteralFormula.administrationInstruction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NutritionOrder.enteralFormula.administrationInstruction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NutritionOrder.enteralFormula.administrationInstruction">
          <path value="NutritionOrder.enteralFormula.administrationInstruction" />
          <short value="Formula feeding instructions expressed as text" />
          <definition value="Free text formula administration, feeding instructions or additional instructions or information." />
          <comment value="Free text dosage instructions can be used for cases where the instructions are too complex to code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent" />
    <resource>
      <DataElement>
        <id value="AuditEvent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent">
          <path value="AuditEvent" />
          <short value="Event record kept for security purposes" />
          <definition value="A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage." />
          <comment value="Based on ATNA (RFC 3881)." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="ControlAct[moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="Message" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.information" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.type" />
    <resource>
      <DataElement>
        <id value="AuditEvent.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.type">
          <path value="AuditEvent.type" />
          <short value="Type/identifier of event" />
          <definition value="Identifier for a family of the event.  For example, a menu item, program, rule, policy, function code, application name or URL. It identifies the performed function." />
          <requirements value="This identifies the performed function. For &quot;Execute&quot; Event Action Code audit records, this identifies the application function performed." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditEventType" />
            </extension>
            <strength value="extensible" />
            <description value="Type of event." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/audit-event-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code (type, subtype and action are pre-coordinated or sent as translations)" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="EventId" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.subtype" />
    <resource>
      <DataElement>
        <id value="AuditEvent.subtype" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.subtype" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.subtype">
          <path value="AuditEvent.subtype" />
          <short value="More specific type/id for the event" />
          <definition value="Identifier for the category of event." />
          <requirements value="This field enables queries of messages by implementation-defined event categories." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditEventSubType" />
            </extension>
            <strength value="extensible" />
            <description value="Sub-type of event." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/audit-event-sub-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code (type, subtype and action are pre-coordinated or sent as translations)" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="EventTypeCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.action" />
    <resource>
      <DataElement>
        <id value="AuditEvent.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.action">
          <path value="AuditEvent.action" />
          <short value="Type of action performed during the event" />
          <definition value="Indicator for type of action performed during the event that generated the audit." />
          <requirements value="This broadly indicates what kind of action was done on the AuditEvent.entity by the AuditEvent.agent." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditEventAction" />
            </extension>
            <strength value="required" />
            <description value="Indicator for type of action performed during the event that generated the event" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/audit-event-action" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code (type, subtype and action are pre-coordinated or sent as translations)" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="EventActionCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.recorded" />
    <resource>
      <DataElement>
        <id value="AuditEvent.recorded" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.recorded" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.recorded">
          <path value="AuditEvent.recorded" />
          <short value="Time when the event occurred on source" />
          <definition value="The time when the event occurred on the source." />
          <comment value="In a distributed system, some sort of common time base (e.g. an NTP [RFC1305] server) is a good implementation tactic." />
          <requirements value="This ties an event to a specific date and time. Security audits typically require a consistent time base (e.g. UTC), to eliminate time-zone issues arising from geographical distribution." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="EventDateTime" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity.when" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.recorded" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.outcome" />
    <resource>
      <DataElement>
        <id value="AuditEvent.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.outcome">
          <path value="AuditEvent.outcome" />
          <short value="Whether the event succeeded or failed" />
          <definition value="Indicates whether the event succeeded or failed." />
          <comment value="In some cases a &quot;success&quot; may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditEventOutcome" />
            </extension>
            <strength value="required" />
            <description value="Indicates whether the event succeeded or failed" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/audit-event-outcome" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".actionNegationInd" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="EventOutcomeIndicator" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.outcomeDesc" />
    <resource>
      <DataElement>
        <id value="AuditEvent.outcomeDesc" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.outcomeDesc" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.outcomeDesc">
          <path value="AuditEvent.outcomeDesc" />
          <short value="Description of the event outcome" />
          <definition value="A free text description of the outcome of the event." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=OUT].target.text" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="EventOutcomeDescription" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.purposeOfEvent" />
    <resource>
      <DataElement>
        <id value="AuditEvent.purposeOfEvent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.purposeOfEvent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.purposeOfEvent">
          <path value="AuditEvent.purposeOfEvent" />
          <short value="The purposeOfUse of the event" />
          <definition value="The purposeOfUse (reason) that was used during the event being recorded." />
          <comment value="Use AuditEvent.agent.purposeOfUse when you know that it is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditPurposeOfUse" />
            </extension>
            <strength value="extensible" />
            <description value="The reason the activity took place." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="* .reasonCode [ControlActReason when Act.class = CACT Control Act]&#xA;*.outboundRelationship[typeCode=RSON].target" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="EventPurposeOfUse" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity.Activity" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.reason, Provenance.activity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent">
          <path value="AuditEvent.agent" />
          <short value="Actor involved in the event" />
          <definition value="An actor taking an active role in the event or activity that is logged." />
          <comment value="Several agents may be associated (i.e. have some responsibility for an activity) with an event or activity.&#xA;&#xA;For example, an activity may be initiated by one user for other users or involve more than one user. However, only one user may be the initiator/requestor for the activity." />
          <requirements value="An agent can be a person, an organization, software, device, or other actors that may be ascribed responsibility." />
          <alias value="ActiveParticipant" />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".participation" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ActiveParticipant" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.agent" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.role" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.role">
          <path value="AuditEvent.agent.role" />
          <short value="Agent role in the event" />
          <definition value="The security role that the user was acting under, that come from local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context." />
          <comment value="Should be roles relevant to the event. Should  not be an exhaustive list of roles." />
          <requirements value="This value ties an audited event to a user's role(s). It is an optional value that might be used to group events for analysis by user functional role categories." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditAgentRole" />
            </extension>
            <strength value="extensible" />
            <description value="What security role enabled the agent to participate in the event" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/security-role-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".role and/or .typeCode and/or .functionCode" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="RoleIdCode" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent.Attribution" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.agent.role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.reference" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.reference">
          <path value="AuditEvent.agent.reference" />
          <short value="Direct reference to resource" />
          <definition value="Direct reference to a resource that identifies the agent." />
          <requirements value="This field ties an audit event to a specific resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent.Identity" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.agent.actor" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.userId" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.userId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.userId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.userId">
          <path value="AuditEvent.agent.userId" />
          <short value="Unique identifier for the user" />
          <definition value="Unique identifier for the user actively participating in the event." />
          <comment value="A unique value within the Audit Source ID. For node-based authentication -- where only the system hardware or process, but not a human user, is identified -- User ID would be the node name." />
          <requirements value="This field ties an audit event to a specific user." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="UserId" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent.Identity" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.agent.userId" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.altId" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.altId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.altId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.altId">
          <path value="AuditEvent.agent.altId" />
          <short value="Alternative User id e.g. authentication" />
          <definition value="Alternative agent Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g. single sign-on), if available." />
          <requirements value="In some situations, a human user may authenticate with one identity but, to access a specific application system, may use a synonymous identify. For example, some &quot;single sign on&quot; implementations will do this. The alternative identifier would then be the original identify  used for authentication, and the User ID is the one known to and used by the application." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".id (distinguish id type by root)" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="AlternativeUserId" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent.Identity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.name" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.name">
          <path value="AuditEvent.agent.name" />
          <short value="Human-meaningful name for the agent" />
          <definition value="Human-meaningful name for the agent." />
          <requirements value="The User ID and Authorization User ID may be internal or otherwise obscure values. This field assists the auditor in identifying the actual user." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".name" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="UserName" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent.Identity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.requestor" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.requestor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.requestor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.requestor">
          <path value="AuditEvent.agent.requestor" />
          <short value="Whether user is initiator" />
          <definition value="Indicator that the user is or is not the requestor, or initiator, for the event being audited." />
          <comment value="There can only be one initiator. If the initiator is not clear, then do not choose any one agent as the initiator." />
          <requirements value="This value is used to distinguish between requestor-users and recipient-users. For example, one person may initiate a report-output to be sent to another user." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="If participation.typeCode was author, then true" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="UserIsRequestor" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.location" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.location">
          <path value="AuditEvent.agent.location" />
          <short value="Where" />
          <definition value="Where the event occurred." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="* Role.Class =SDLOC&#xA;*Role.Code = ServiceDeliveryLocationRoleType&#xA; *Entity.Code  = PlaceEntityType = df.Types of places for  Entity.Class = PLC&#xA;*EntityClass = PLC = df.A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place may or may not be constant." />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Activity.location" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.location" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.policy" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.policy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.policy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.policy">
          <path value="AuditEvent.agent.policy" />
          <short value="Policy that authorized event" />
          <definition value="The policy or plan that authorized the activity being recorded. Typically, a single activity may have multiple applicable policies, such as patient consent, guarantor funding, etc. The policy would also indicate the security token used." />
          <comment value="For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element." />
          <requirements value="This value is used retrospectively to determine the authorization policies." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="ActPolicyType" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantRoleIDCode" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.policy" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.media" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.media" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.media" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.media">
          <path value="AuditEvent.agent.media" />
          <short value="Type of media" />
          <definition value="Type of media involved. Used when the event is about exporting/importing onto media." />
          <requirements value="Usually, this is used instead of specifying a network address. This field is not used for Media Id (i.e. the serial number of a CD)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DICOMMediaType" />
            </extension>
            <strength value="extensible" />
            <description value="Used when the event is about exporting/importing onto media." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/dicm-405-mediatype" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".player.description.mediaType" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="MediaType" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.network" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.network" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.network" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.network">
          <path value="AuditEvent.agent.network" />
          <short value="Logical network location for application activity" />
          <definition value="Logical network location for application activity, if the activity has a network location." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".player.description.reference" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.network.address" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.network.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.network.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.network.address">
          <path value="AuditEvent.agent.network.address" />
          <short value="Identifier for the network access point of the user device" />
          <definition value="An identifier for the network access point of the user device for the audit event." />
          <comment value="This could be a device id, IP address or some other identifier associated with a device." />
          <requirements value="This datum identifies the user's network access point, which may be distinct from the server that performed the action. It is an optional value that may be used to group events recorded on separate servers for analysis of a specific network access point's data access across all servers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="pre-coordinated into URL" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="NetworkAccessPointID" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent.Location" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.network.type" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.network.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.network.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.network.type">
          <path value="AuditEvent.agent.network.type" />
          <short value="The type of network access point" />
          <definition value="An identifier for the type of network access point that originated the audit event." />
          <requirements value="This datum identifies the type of network access point identifier of the user device for the audit event. It is an optional value that may be used to group events recorded on separate servers for analysis of access according to a network access point's type." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditEventAgentNetworkType" />
            </extension>
            <strength value="required" />
            <description value="The type of network access point of this agent in the audit event" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/network-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="pre-coordinated into URL" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="NetworkAccessPointTypeCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.agent.purposeOfUse" />
    <resource>
      <DataElement>
        <id value="AuditEvent.agent.purposeOfUse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.agent.purposeOfUse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.agent.purposeOfUse">
          <path value="AuditEvent.agent.purposeOfUse" />
          <short value="Reason given for this user" />
          <definition value="The reason (purpose of use), specific to this agent, that was used during the event being recorded." />
          <comment value="Use AuditEvent.agent.purposeOfUse when you know that is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditPurposeOfUse" />
            </extension>
            <strength value="extensible" />
            <description value="The reason the activity took place." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="*.reasonCode [ActHealthInformationPurposeOfUseReason codes/v:PurposeOfUse&#xA;(2.16.840.1.113883.1.11.20448)&#xA;* .outboundRelationship[typeCode=RSON or SUBJ].target" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Agent.Activity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.source" />
    <resource>
      <DataElement>
        <id value="AuditEvent.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.source">
          <path value="AuditEvent.source" />
          <short value="Audit Event Reporter" />
          <definition value="The system that is reporting the event." />
          <comment value="Since multi-tier, distributed, or composite applications make source identification ambiguous, this collection of fields may repeat for each application or process actively involved in the event. For example, multiple value-sets can identify participating web servers, application processes, and database server threads in an n-tier distributed application. Passive event participants (e.g. low-level network transports) need not be identified." />
          <requirements value="The event is reported by one source." />
          <min value="1" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="AuditSourceIdentification" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.source.site" />
    <resource>
      <DataElement>
        <id value="AuditEvent.source.site" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.source.site" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.source.site">
          <path value="AuditEvent.source.site" />
          <short value="Logical source location within the enterprise" />
          <definition value="Logical source location within the healthcare enterprise network.  For example, a hospital or other provider location within a multi-entity provider group." />
          <requirements value="This value differentiates among the sites in a multi-site enterprise health information system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".scopedRole[classCode=LOCE].player.desc" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="AuditEnterpriseSiteId" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.source.identifier" />
    <resource>
      <DataElement>
        <id value="AuditEvent.source.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.source.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.source.identifier">
          <path value="AuditEvent.source.identifier" />
          <short value="The identity of source detecting the event" />
          <definition value="Identifier of the source where the event was detected." />
          <requirements value="This field ties the event to a specific source system. It may be used to group events for analysis according to where the event was detected." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="AuditSourceId" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.source.type" />
    <resource>
      <DataElement>
        <id value="AuditEvent.source.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.source.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.source.type">
          <path value="AuditEvent.source.type" />
          <short value="The type of source where event originated" />
          <definition value="Code specifying the type of source where event originated." />
          <requirements value="This field indicates which type of source is identified by the Audit Source ID. It is an optional value that may be used to group events for analysis according to the type of source where the event occurred." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditEventSourceType" />
            </extension>
            <strength value="extensible" />
            <description value="Code specifying the type of system that detected and recorded the event." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/audit-source-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="AuditSourceTypeCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity">
          <path value="AuditEvent.entity" />
          <short value="Data or objects used" />
          <definition value="Specific instances of data or objects that have been accessed." />
          <comment value="Required unless the values for event identification, agent identification, and audit source identification are sufficient to document the entire auditable event. Because events may have more than one entity, this group can be a repeating set of values." />
          <requirements value="The event may have other entities involved." />
          <alias value="ParticipantObject" />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="sev-1" />
            <severity value="error" />
            <human value="Either a name or a query (NOT both)" />
            <expression value="name.empty() or query.empty()" />
            <xpath value="not(exists(f:name)) or not(exists(f:query))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=SUBJ].target  or  .participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectIdentification" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Entity" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.target, Provenance.entity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.identifier" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.identifier">
          <path value="AuditEvent.entity.identifier" />
          <short value="Specific instance of object" />
          <definition value="Identifies a specific instance of the entity. The reference should always be version specific." />
          <comment value="Identifier detail depends on entity type." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id.extension" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectID and ParticipantObjectIDTypeCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.reference" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.reference">
          <path value="AuditEvent.entity.reference" />
          <short value="Specific instance of resource" />
          <definition value="Identifies a specific instance of the entity. The reference should be version specific." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="[self]" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectID" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.target, Provenance.entity.reference" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.type" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.type">
          <path value="AuditEvent.entity.type" />
          <short value="Type of entity involved" />
          <definition value="The type of the object that was involved in this audit event." />
          <comment value="This value is distinct from the user's role or any user relationship to the entity." />
          <requirements value="To describe the object being acted upon. In addition to queries on the subject of the action in an auditable event, it is also important to be able to query on the object type for the action." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditEventEntityType" />
            </extension>
            <strength value="extensible" />
            <description value="Code for the entity type involved in the audit event" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/audit-entity-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="[self::Act].code or role.player.code" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectTypeCode" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Entity.type" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.entity.type" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.role" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.role">
          <path value="AuditEvent.entity.role" />
          <short value="What role the entity played" />
          <definition value="Code representing the role the entity played in the event being audited." />
          <requirements value="For some detailed audit analysis it may be necessary to indicate a more granular type of entity, based on the application role it serves." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditEventEntityRole" />
            </extension>
            <strength value="extensible" />
            <description value="Code representing the role the entity played in the audit event" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/object-role" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="role.code (not sure what this would mean for an Act)" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectTypeCodeRole" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Entity.role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.lifecycle" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.lifecycle" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.lifecycle" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.lifecycle">
          <path value="AuditEvent.entity.lifecycle" />
          <short value="Life-cycle stage for the entity" />
          <definition value="Identifier for the data life-cycle stage for the entity." />
          <comment value="This can be used to provide an audit trail for data, over time, as it passes through the system." />
          <requirements value="Institutional policies for privacy and security may optionally fall under different accountability rules based on data life cycle. This provides a differentiating value for those cases." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AuditEventEntityLifecycle" />
            </extension>
            <strength value="extensible" />
            <description value="Identifier for the data life-cycle stage for the entity" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/object-lifecycle-events" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="target of ObservationEvent[code=&quot;lifecycle&quot;].value" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectDataLifeCycle" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Entity.role" />
          </mapping>
          <mapping>
            <identity value="fhirprovenance" />
            <map value="Provenance.entity.role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.securityLabel" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.securityLabel" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.securityLabel" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.securityLabel">
          <path value="AuditEvent.entity.securityLabel" />
          <short value="Security labels on the entity" />
          <definition value="Security labels for the identified entity." />
          <comment value="Copied from entity meta security tags." />
          <requirements value="This field identifies the security labels for a specific instance of an object, such as a patient, to detect/track privacy and security issues." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Coding" />
          </type>
          <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>
          <mapping>
            <identity value="rim" />
            <map value=".confidentialityCode" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectSensitivity" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.name" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.name">
          <path value="AuditEvent.entity.name" />
          <short value="Descriptor for entity" />
          <definition value="A name of the entity in the audit event." />
          <comment value="This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous entity identifiers (patient number, medical record number, encounter number, etc.) have been used." />
          <requirements value="Use only where entity can't be identified with an identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <condition value="sev-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".title" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectName" />
          </mapping>
          <mapping>
            <identity value="w3c.prov" />
            <map value="Entity.Label" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.description" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.description">
          <path value="AuditEvent.entity.description" />
          <short value="Descriptive text" />
          <definition value="Text that describes the entity in more detail." />
          <requirements value="Use only where entity can't be identified with an identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectDescription" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.query" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.query" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.query" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.query">
          <path value="AuditEvent.entity.query" />
          <short value="Query parameters" />
          <definition value="The query parameters for a query-type entities." />
          <requirements value="For query events, it may be necessary to capture the actual query input to the query process in order to identify the specific event. Because of differences among query implementations and data encoding for them, this is a base 64 encoded data blob. It may be subsequently decoded or interpreted by downstream audit analysis processing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <condition value="sev-1" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="No mapping" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectQuery" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.detail" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.detail">
          <path value="AuditEvent.entity.detail" />
          <short value="Additional Information about the entity" />
          <definition value="Tagged value pairs for conveying additional information about the entity." />
          <requirements value="Implementation-defined data about specific details of the object accessed or used." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectDetail" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.detail.type" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.detail.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.detail.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.detail.type">
          <path value="AuditEvent.entity.detail.type" />
          <short value="Name of the property" />
          <definition value="The type of extra detail provided in the value." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectDetail.type" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/AuditEvent.entity.detail.value" />
    <resource>
      <DataElement>
        <id value="AuditEvent.entity.detail.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/AuditEvent.entity.detail.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="AuditEvent.entity.detail.value">
          <path value="AuditEvent.entity.detail.value" />
          <short value="Property value" />
          <definition value="The details, base64 encoded. Used to carry bulk information." />
          <comment value="The value is base64 encoded to enable various encodings or binary content." />
          <requirements value="Should not duplicate the entity value unless absolutely necessary." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="base64Binary" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".value" />
          </mapping>
          <mapping>
            <identity value="dicom" />
            <map value="ParticipantObjectDetail.value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation">
          <path value="PaymentReconciliation" />
          <short value="PaymentReconciliation resource" />
          <definition value="This resource provides payment details and claim references supporting a bulk payment." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.payment" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.identifier" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.identifier">
          <path value="PaymentReconciliation.identifier" />
          <short value="Business Identifier" />
          <definition value="The Response business identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.status" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.status">
          <path value="PaymentReconciliation.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PaymentReconciliationStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.period" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.period">
          <path value="PaymentReconciliation.period" />
          <short value="Period covered" />
          <definition value="The period of time for which payments have been gathered into this bulk payment for settlement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.created" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.created">
          <path value="PaymentReconciliation.created" />
          <short value="Creation date" />
          <definition value="The date when the enclosed suite of services were performed or completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence[x]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.organization" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.organization">
          <path value="PaymentReconciliation.organization" />
          <short value="Insurer" />
          <definition value="The Insurer who produced this adjudicated response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.request" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.request">
          <path value="PaymentReconciliation.request" />
          <short value="Claim reference" />
          <definition value="Original request resource reference." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcessRequest" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="A02|G01" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.outcome" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.outcome">
          <path value="PaymentReconciliation.outcome" />
          <short value="complete | error | partial" />
          <definition value="Transaction status: error, complete." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RemittanceOutcome" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The outcome of the processing." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/remittance-outcome" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.disposition" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.disposition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.disposition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.disposition">
          <path value="PaymentReconciliation.disposition" />
          <short value="Disposition Message" />
          <definition value="A description of the status of the adjudication." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.requestProvider" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.requestProvider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.requestProvider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.requestProvider">
          <path value="PaymentReconciliation.requestProvider" />
          <short value="Responsible practitioner" />
          <definition value="The practitioner who is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B01" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.requestOrganization" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.requestOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.requestOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.requestOrganization">
          <path value="PaymentReconciliation.requestOrganization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.detail">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Details" />
          </extension>
          <path value="PaymentReconciliation.detail" />
          <short value="List of settlements" />
          <definition value="List of individual settlement amounts and the corresponding transaction." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.type" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.detail.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.detail.type">
          <path value="PaymentReconciliation.detail.type" />
          <short value="Type code" />
          <definition value="Code to indicate the nature of the payment, adjustment, funds advance, etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PaymentType" />
            </extension>
            <strength value="example" />
            <description value="The reason for the amount: payment, adjustment, advance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/payment-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.request" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.detail.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.detail.request">
          <path value="PaymentReconciliation.detail.request" />
          <short value="Claim" />
          <definition value="The claim or financial resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.response" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.detail.response" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.response" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.detail.response">
          <path value="PaymentReconciliation.detail.response" />
          <short value="Claim Response" />
          <definition value="The claim response resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.submitter" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.detail.submitter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.submitter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.detail.submitter">
          <path value="PaymentReconciliation.detail.submitter" />
          <short value="Organization which submitted the claim" />
          <definition value="The Organization which submitted the claim or financial transaction." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.payee" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.detail.payee" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.payee" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.detail.payee">
          <path value="PaymentReconciliation.detail.payee" />
          <short value="Organization which is receiving the payment" />
          <definition value="The organization which is receiving the payment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.date" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.detail.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.detail.date">
          <path value="PaymentReconciliation.detail.date" />
          <short value="Invoice date" />
          <definition value="The date of the invoice or financial resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.amount" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.detail.amount" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.detail.amount" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.detail.amount">
          <path value="PaymentReconciliation.detail.amount" />
          <short value="Amount being paid" />
          <definition value="Amount paid for this detail." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.form" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.form" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.form" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.form">
          <path value="PaymentReconciliation.form" />
          <short value="Printed Form Identifier" />
          <definition value="The form to be used for printing the content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Forms" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="The forms codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/forms" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G42" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.total" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.total" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.total" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.total">
          <path value="PaymentReconciliation.total" />
          <short value="Total amount of Payment" />
          <definition value="Total payment amount." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.processNote" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.processNote" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.processNote" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.processNote">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Notes" />
          </extension>
          <path value="PaymentReconciliation.processNote" />
          <short value="Processing comments" />
          <definition value="Suite of notes." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.processNote.type" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.processNote.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.processNote.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.processNote.type">
          <path value="PaymentReconciliation.processNote.type" />
          <short value="display | print | printoper" />
          <definition value="The note purpose: Print/Display." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NoteType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The presentation types of notes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/note-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PaymentReconciliation.processNote.text" />
    <resource>
      <DataElement>
        <id value="PaymentReconciliation.processNote.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PaymentReconciliation.processNote.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PaymentReconciliation.processNote.text">
          <path value="PaymentReconciliation.processNote.text" />
          <short value="Comment on the processing" />
          <definition value="The note text." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G32" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition" />
    <resource>
      <DataElement>
        <id value="Condition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition">
          <path value="Condition" />
          <short value="Detailed information about conditions, problems or diagnoses" />
          <definition value="A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="con-4" />
            <severity value="error" />
            <human value="If condition is abated, then clinicalStatus must be either inactive, resolved, or remission" />
            <expression value="abatement.empty() or (abatement as boolean).not()  or clinicalStatus='resolved' or clinicalStatus='remission' or clinicalStatus='inactive'" />
            <xpath value="not(f:abatementBoolean/@value=true() or (not(exists(f:abatementBoolean)) and exists(*[starts-with(local-name(.), 'abatement')])) or f:clinicalStatus/@value=('resolved', 'remission', 'inactive'))" />
          </constraint>
          <constraint>
            <key value="con-3" />
            <severity value="error" />
            <human value="Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error" />
            <expression value="verificationStatus='entered-in-error' or clinicalStatus.exists()" />
            <xpath value="f:verificationStatus/@value='entered-in-error' or exists(f:clinicalStatus)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 243796009 |Situation with explicit context|:&#xA;246090004 |Associated finding| =&#xA;((&lt; 404684003 |Clinical finding| MINUS&#xA;&lt;&lt; 420134006 |Propensity to adverse reactions| MINUS &#xA;&lt;&lt; 473010000 |Hypersensitivity condition| MINUS &#xA;&lt;&lt; 79899007 |Drug interaction| MINUS&#xA;&lt;&lt; 69449002 |Drug action| MINUS &#xA;&lt;&lt; 441742003 |Evaluation finding| MINUS &#xA;&lt;&lt; 307824009 |Administrative status| MINUS &#xA;&lt;&lt; 385356007 |Tumor stage finding|) OR&#xA;&lt; 272379006 |Event|)" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PPR message" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value&lt;Diagnosis]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.identifier" />
    <resource>
      <DataElement>
        <id value="Condition.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.identifier">
          <path value="Condition.identifier" />
          <short value="External Ids for this condition" />
          <definition value="This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." />
          <requirements value="Need to allow connection to a wider workflow." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.clinicalStatus" />
    <resource>
      <DataElement>
        <id value="Condition.clinicalStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.clinicalStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.clinicalStatus">
          <path value="Condition.clinicalStatus" />
          <short value="active | recurrence | inactive | remission | resolved" />
          <definition value="The clinical status of the condition." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the condition as not currently valid or of concern." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <condition value="con-3" />
          <condition value="con-4" />
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionClinicalStatus" />
            </extension>
            <strength value="required" />
            <description value="The clinical status of the condition or diagnosis." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-clinical" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 303105007 |Disease phases|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRB-14 / DG1-6" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation ACT&#xA;.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;clinicalStatus&quot;, moodCode=EVN].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.verificationStatus" />
    <resource>
      <DataElement>
        <id value="Condition.verificationStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.verificationStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.verificationStatus">
          <path value="Condition.verificationStatus" />
          <short value="provisional | differential | confirmed | refuted | entered-in-error | unknown" />
          <definition value="The verification status to support the clinical status of the condition." />
          <comment value="verificationStatus is not required.  For example, when a patient has abdominal pain in the ED, there is not likely going to be a verification status.&#xA;&#xA;This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <defaultValueCode value="unknown" />
          <condition value="con-3" />
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionVerificationStatus" />
            </extension>
            <strength value="required" />
            <description value="The verification status to support or decline the clinical status of the condition or diagnosis." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-ver-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 410514004 |Finding context value|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRB-13" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation ACT&#xA;.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=&quot;verificationStatus&quot;, moodCode=EVN].value" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="408729009" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.category" />
    <resource>
      <DataElement>
        <id value="Condition.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.category">
          <path value="Condition.category" />
          <short value="problem-list-item | encounter-diagnosis" />
          <definition value="A category assigned to the condition." />
          <comment value="The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionCategory" />
            </extension>
            <strength value="example" />
            <description value="A category assigned to the condition." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 404684003 |Clinical finding|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.severity" />
    <resource>
      <DataElement>
        <id value="Condition.severity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.severity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.severity">
          <path value="Condition.severity" />
          <short value="Subjective severity of condition" />
          <definition value="A subjective assessment of the severity of the condition as evaluated by the clinician." />
          <comment value="Coding of the severity with a terminology is preferred, where possible." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionSeverity" />
            </extension>
            <strength value="preferred" />
            <description value="A subjective assessment of the severity of the condition as evaluated by the clinician." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-severity" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 272141005 |Severities|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRB-26 / ABS-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Can be pre/post-coordinated into value.  Or ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;severity&quot;].value" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="246112005" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.code" />
    <resource>
      <DataElement>
        <id value="Condition.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.code">
          <path value="Condition.code" />
          <short value="Identification of the condition, problem or diagnosis" />
          <definition value="Identification of the condition, problem or diagnosis." />
          <requirements value="0..1 to account for primarily narrative only resources." />
          <alias value="type" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionKind" />
            </extension>
            <strength value="example" />
            <description value="Identification of the condition or diagnosis." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="code 246090004 |Associated finding| (&lt; 404684003 |Clinical finding| MINUS&#xA;&lt;&lt; 420134006 |Propensity to adverse reactions| MINUS &#xA;&lt;&lt; 473010000 |Hypersensitivity condition| MINUS &#xA;&lt;&lt; 79899007 |Drug interaction| MINUS&#xA;&lt;&lt; 69449002 |Drug action| MINUS &#xA;&lt;&lt; 441742003 |Evaluation finding| MINUS &#xA;&lt;&lt; 307824009 |Administrative status| MINUS &#xA;&lt;&lt; 385356007 |Tumor stage finding|) &#xA;OR &lt; 413350009 |Finding with explicit context|&#xA;OR &lt; 272379006 |Event|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRB-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".value" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="246090004" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.bodySite" />
    <resource>
      <DataElement>
        <id value="Condition.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.bodySite">
          <path value="Condition.bodySite" />
          <short value="Anatomical location, if relevant" />
          <definition value="The anatomical location where this condition manifests itself." />
          <comment value="Only used if not implicit in code found in Condition.code. 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." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BodySite" />
            </extension>
            <strength value="example" />
            <description value="Codes describing anatomical locations. May include laterality." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/body-site" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 442083009  |Anatomical or acquired body structure|" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".targetBodySiteCode" />
          </mapping>
          <mapping>
            <identity value="sct-attr" />
            <map value="363698007" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.subject" />
    <resource>
      <DataElement>
        <id value="Condition.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.subject">
          <path value="Condition.subject" />
          <short value="Who has the condition?" />
          <definition value="Indicates the patient or group who the condition record is associated with." />
          <requirements value="Group is typically used for veterinary or public health use cases." />
          <alias value="patient" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.context" />
    <resource>
      <DataElement>
        <id value="Condition.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.context">
          <path value="Condition.context" />
          <short value="Encounter or episode when condition first asserted" />
          <definition value="Encounter during which the condition was first asserted." />
          <comment value="This record indicates the encounter this particular record is associated with.  In the case of a &quot;new&quot; diagnosis reflecting ongoing/revised information about the condition, this might be distinct from the first encounter in which the underlying condition was first &quot;known&quot;." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PV1-19 (+PV1-54)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.onsetX" />
    <resource>
      <DataElement>
        <id value="Condition.onsetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.onsetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.onset[x]">
          <path value="Condition.onset[x]" />
          <short value="Estimated or actual date,  date-time, or age" />
          <definition value="Estimated or actual date or date-time  the condition began, in the opinion of the clinician." />
          <comment value="Age is generally used when the patient reports an age at which the Condition began to occur." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRB-16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;age at onset&quot;].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.init" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.abatementX" />
    <resource>
      <DataElement>
        <id value="Condition.abatementX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.abatementX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.abatement[x]">
          <path value="Condition.abatement[x]" />
          <short value="If/when in resolution/remission" />
          <definition value="The date or estimated date that the condition resolved or went into remission. This is called &quot;abatement&quot; because of the many overloaded connotations associated with &quot;remission&quot; or &quot;resolution&quot; - Conditions are never really resolved, but they can abate." />
          <comment value="There is no explicit distinction between resolution and remission because in many cases the distinction is not clear. Age is generally used when the patient reports an age at which the Condition abated.  If there is no abatement element, it is unknown whether the condition has resolved or entered remission; applications and users should generally assume that the condition is still valid.  When abatementString exists, it implies the condition is abated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Age" />
          </type>
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="string" />
          </type>
          <condition value="con-4" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;age at remission&quot;].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.assertedDate" />
    <resource>
      <DataElement>
        <id value="Condition.assertedDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.assertedDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.assertedDate">
          <path value="Condition.assertedDate" />
          <short value="Date record was believed accurate" />
          <definition value="The date on which the existance of the Condition was first asserted or acknowledged." />
          <comment value="The assertedDate represents the date when this particular Condition record was created in the EHR, not the date of the most recent update in terms of when severity, abatement, etc. were specified.  The date of the last record modification can be retrieved from the resource metadata." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="REL-11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.asserter" />
    <resource>
      <DataElement>
        <id value="Condition.asserter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.asserter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.asserter">
          <path value="Condition.asserter" />
          <short value="Person who asserts this condition" />
          <definition value="Individual who is making the condition statement." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="REL-7.1 identifier + REL-7.12 type code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.stage" />
    <resource>
      <DataElement>
        <id value="Condition.stage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.stage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.stage">
          <path value="Condition.stage" />
          <short value="Stage/grade, usually assessed formally" />
          <definition value="Clinical stage or grade of a condition. May include formal severity assessments." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="con-1" />
            <severity value="error" />
            <human value="Stage SHALL have summary or assessment" />
            <expression value="summary.exists() or assessment.exists()" />
            <xpath value="exists(f:summary) or exists(f:assessment)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;stage/grade&quot;]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.stage.summary" />
    <resource>
      <DataElement>
        <id value="Condition.stage.summary" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.stage.summary" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.stage.summary">
          <path value="Condition.stage.summary" />
          <short value="Simple summary (disease specific)" />
          <definition value="A simple summary of the stage such as &quot;Stage 3&quot;. The determination of the stage is disease-specific." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="con-1" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionStage" />
            </extension>
            <strength value="example" />
            <description value="Codes describing condition stages (e.g. Cancer stages)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-stage" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 254291000 |Staging and scales|" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PRB-14" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.stage.assessment" />
    <resource>
      <DataElement>
        <id value="Condition.stage.assessment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.stage.assessment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.stage.assessment">
          <path value="Condition.stage.assessment" />
          <short value="Formal record of assessment" />
          <definition value="Reference to a formal record of the evidence on which the staging assessment is based." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ClinicalImpression" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <condition value="con-1" />
          <mapping>
            <identity value="rim" />
            <map value=".self" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.evidence" />
    <resource>
      <DataElement>
        <id value="Condition.evidence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.evidence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.evidence">
          <path value="Condition.evidence" />
          <short value="Supporting evidence" />
          <definition value="Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed." />
          <comment value="The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="con-2" />
            <severity value="error" />
            <human value="evidence SHALL have code or details" />
            <expression value="code.exists() or detail.exists()" />
            <xpath value="exists(f:code) or exists(f:detail)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.evidence.code" />
    <resource>
      <DataElement>
        <id value="Condition.evidence.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.evidence.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.evidence.code">
          <path value="Condition.evidence.code" />
          <short value="Manifestation/symptom" />
          <definition value="A manifestation or symptom that led to the recording of this condition." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="con-2" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ManifestationOrSymptom" />
            </extension>
            <strength value="example" />
            <description value="Codes that describe the manifestation or symptoms of a condition." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/manifestation-or-symptom" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="sct-concept" />
            <map value="&lt; 404684003 |Clinical finding|" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="[code=&quot;diagnosis&quot;].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.evidence.detail" />
    <resource>
      <DataElement>
        <id value="Condition.evidence.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.evidence.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.evidence.detail">
          <path value="Condition.evidence.detail" />
          <short value="Supporting information found elsewhere" />
          <definition value="Links to other relevant information, including pathology reports." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <condition value="con-2" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".self" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Condition.note" />
    <resource>
      <DataElement>
        <id value="Condition.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Condition.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Condition.note">
          <path value="Condition.note" />
          <short value="Additional information about the Condition" />
          <definition value="Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="NTE child of PRB" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition" />
    <resource>
      <DataElement>
        <id value="Composition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition">
          <path value="Composition" />
          <short value="A set of resources composed into a single coherent clinical statement with clinical attestation" />
          <definition value="A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained." />
          <comment value="While the focus of this specification is on patient-specific clinical statements, this resource can also apply to other healthcare-related statements such as study protocol designs, healthcare invoices and other activities that are not necessarily patient-specific or clinical." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Document[classCode=&quot;DOC&quot; and moodCode=&quot;EVN&quot; and isNormalAct()]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="ClinicalDocument" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.documents" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.identifier" />
    <resource>
      <DataElement>
        <id value="Composition.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.identifier">
          <path value="Composition.identifier" />
          <short value="Logical identifier of composition (version-independent)" />
          <definition value="Logical identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time." />
          <comment value="See discussion in resource definition for how these relate." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="Document.id / Document.setId" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".setId" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.status" />
    <resource>
      <DataElement>
        <id value="Composition.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.status">
          <path value="Composition.status" />
          <short value="preliminary | final | amended | entered-in-error" />
          <definition value="The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document." />
          <comment value="If a composition is marked as withdrawn, the compositions/documents in the series, or data from the composition or document series, should never be displayed to a user without being clearly marked as untrustworthy. The flag &quot;entered-in-error&quot; is why this element is labeled as a modifier of other elements. &#xA;&#xA;Some reporting work flows require that the original narrative of a final document never be altered; instead, only new narrative can be added. The composition resource has no explicit status for explicitly noting whether this business rule is in effect. This would be handled by an extension if required." />
          <requirements value="Need to be able to mark interim, amended, or withdrawn compositions or documents." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CompositionStatus" />
            </extension>
            <strength value="required" />
            <description value="The workflow/clinical status of the composition." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/composition-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="interim: .completionCode=&quot;IN&quot; &amp; ./statusCode[isNormalDatatype()]=&quot;active&quot;;  final: .completionCode=&quot;AU&quot; &amp;&amp;  ./statusCode[isNormalDatatype()]=&quot;complete&quot; and not(./inboundRelationship[typeCode=&quot;SUBJ&quot; and isNormalActRelationship()]/source[subsumesCode(&quot;ActClass#CACT&quot;) and moodCode=&quot;EVN&quot; and domainMember(&quot;ReviseComposition&quot;, code) and isNormalAct()]);  amended: .completionCode=&quot;AU&quot; &amp;&amp;  ./statusCode[isNormalDatatype()]=&quot;complete&quot; and ./inboundRelationship[typeCode=&quot;SUBJ&quot; and isNormalActRelationship()]/source[subsumesCode(&quot;ActClass#CACT&quot;) and moodCode=&quot;EVN&quot; and domainMember(&quot;ReviseComposition&quot;, code) and isNormalAct() and statusCode=&quot;completed&quot;];  withdrawn : .completionCode=NI &amp;&amp;  ./statusCode[isNormalDatatype()]=&quot;obsolete&quot;" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.type" />
    <resource>
      <DataElement>
        <id value="Composition.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.type">
          <path value="Composition.type" />
          <short value="Kind of composition (LOINC if possible)" />
          <definition value="Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition." />
          <comment value="For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding." />
          <requirements value="Key metadata element describing the composition, used in searching/filtering." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentType" />
            </extension>
            <strength value="preferred" />
            <description value="Type of a composition." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/doc-typecodes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="./code" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.class" />
    <resource>
      <DataElement>
        <id value="Composition.class" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.class" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.class">
          <path value="Composition.class" />
          <short value="Categorization of Composition" />
          <definition value="A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type." />
          <comment value="This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD))." />
          <requirements value="Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentClass" />
            </extension>
            <strength value="example" />
            <description value="High-level kind of a clinical document at a macro level." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/doc-classcodes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;LIST&quot;, moodCode=&quot;EVN&quot;].code" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.subject" />
    <resource>
      <DataElement>
        <id value="Composition.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.subject">
          <path value="Composition.subject" />
          <short value="Who and/or what the composition is about" />
          <definition value="Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure)." />
          <comment value="For clinical documents, this is usually the patient." />
          <requirements value="Essential metadata for searching for the composition. Identifies who and/or what the composition/document is about." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;SBJ&quot;].role[typeCode=&quot;PAT&quot;]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".recordTarget" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.encounter" />
    <resource>
      <DataElement>
        <id value="Composition.encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.encounter">
          <path value="Composition.encounter" />
          <short value="Context of the Composition" />
          <definition value="Describes the clinical encounter or type of care this documentation is associated with." />
          <requirements value="Provides context for the composition and supports searching." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="unique(highest(./outboundRelationship[typeCode=&quot;SUBJ&quot; and isNormalActRelationship()], priorityNumber)/target[moodCode=&quot;EVN&quot; and classCode=(&quot;ENC&quot;, &quot;PCPR&quot;) and isNormalAct])" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".componentOf.encompassingEncounter" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.date" />
    <resource>
      <DataElement>
        <id value="Composition.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.date">
          <path value="Composition.date" />
          <short value="Composition editing time" />
          <definition value="The composition editing time, when the composition was last logically changed by the author." />
          <comment value="The Last Modified Date on the composition may be after the date of the document was attested without being changed." />
          <requirements value="dateTime is used for tracking, organizing versions and searching." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime[type=&quot;TS&quot;]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.author" />
    <resource>
      <DataElement>
        <id value="Composition.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.author">
          <path value="Composition.author" />
          <short value="Who and/or what authored the composition" />
          <definition value="Identifies who is responsible for the information in the composition, not necessarily who typed it in." />
          <requirements value="Identifies who is responsible for the content." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;AUT&quot;].role[classCode=&quot;ASSIGNED&quot;]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".author.assignedAuthor" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.title" />
    <resource>
      <DataElement>
        <id value="Composition.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.title">
          <path value="Composition.title" />
          <short value="Human Readable name/title" />
          <definition value="Official human-readable label for the composition." />
          <comment value="For many compositions, the title is the same as the text or a display name of Composition.type (e.g. a &quot;consultation&quot; or &quot;progress note&quot;). Note that CDA does not make title mandatory, but there are no known cases where it is useful for title to be omitted, so it is mandatory here. Feedback on this requirement is welcome during the trial use period." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./title" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.confidentiality" />
    <resource>
      <DataElement>
        <id value="Composition.confidentiality" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.confidentiality" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.confidentiality">
          <path value="Composition.confidentiality" />
          <short value="As defined by affinity domain" />
          <definition value="The code specifying the level of confidentiality of the Composition." />
          <comment value="The exact use of this element, and enforcement and issues related to highly sensitive documents are out of scope for the base specification, and delegated to implementation profiles (see security section).&#xA;&#xA;This element is labeled as a modifier because highly confidential documents must not be treated as if they are not." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentConfidentiality" />
            </extension>
            <strength value="required" />
            <description value="Codes specifying the level of confidentiality of the composition." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ConfidentialityClassification" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".confidentialityCode" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".confidentialityCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.attester" />
    <resource>
      <DataElement>
        <id value="Composition.attester" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.attester" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.attester">
          <path value="Composition.attester" />
          <short value="Attests to accuracy of composition" />
          <definition value="A participant who has attested to the accuracy of the composition/document." />
          <comment value="Only list each attester once." />
          <requirements value="Identifies responsibility for the accuracy of the composition content." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;AUTHEN&quot;].role[classCode=&quot;ASSIGNED&quot;]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".authenticator/.legalAuthenticator" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.attester.mode" />
    <resource>
      <DataElement>
        <id value="Composition.attester.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.attester.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.attester.mode">
          <path value="Composition.attester.mode" />
          <short value="personal | professional | legal | official" />
          <definition value="The type of attestation the authenticator offers." />
          <comment value="Use more than one code where a single attester has more than one mode (professional and legal are often paired)." />
          <requirements value="Indicates the level of authority of the attestation." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CompositionAttestationMode" />
            </extension>
            <strength value="required" />
            <description value="The way in which a person authenticated a composition." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/composition-attestation-mode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="unique(./modeCode)" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="implied by .authenticator/.legalAuthenticator" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.attester.time" />
    <resource>
      <DataElement>
        <id value="Composition.attester.time" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.attester.time" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.attester.time">
          <path value="Composition.attester.time" />
          <short value="When the composition was attested" />
          <definition value="When the composition was attested by the party." />
          <requirements value="Identifies when the information in the composition was deemed accurate.  (Things may have changed since then.)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./time[type=&quot;TS&quot; and isNormalDatatype()]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".authenticator.time" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.attester.party" />
    <resource>
      <DataElement>
        <id value="Composition.attester.party" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.attester.party" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.attester.party">
          <path value="Composition.attester.party" />
          <short value="Who attested the composition" />
          <definition value="Who attested the composition in the specified way." />
          <requirements value="Identifies who has taken on the responsibility for accuracy of the composition content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./role[classCode=&quot;ASSIGNED&quot; and isNormalRole]/player[determinerCode=&quot;INST&quot; and classCode=(&quot;DEV&quot;, &quot;PSN&quot;) and isNormalEntity()] or ./role[classCode=&quot;ASSIGNED&quot; and isNormalRole and not(player)]/scoper[determinerCode=&quot;INST&quot; and classCode=&quot;ORG&quot; and isNormalEntity()]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".authenticator.assignedEnttty" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.custodian" />
    <resource>
      <DataElement>
        <id value="Composition.custodian" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.custodian" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.custodian">
          <path value="Composition.custodian" />
          <short value="Organization which maintains the composition" />
          <definition value="Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information." />
          <comment value="This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged." />
          <requirements value="Identifies where to go to find the current version, where to report issues, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=&quot;RCV&quot;].role[classCode=&quot;CUST&quot;].scoper[classCode=&quot;ORG&quot; and determinerCode=&quot;INST&quot;]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".custodian.assignedCustodian" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.relatesTo" />
    <resource>
      <DataElement>
        <id value="Composition.relatesTo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.relatesTo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.relatesTo">
          <path value="Composition.relatesTo" />
          <short value="Relationships to other compositions/documents" />
          <definition value="Relationships that this composition has with other compositions or documents that already exist." />
          <comment value="A document is a version specific composition." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".relatedDocument" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.relatesTo.code" />
    <resource>
      <DataElement>
        <id value="Composition.relatesTo.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.relatesTo.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.relatesTo.code">
          <path value="Composition.relatesTo.code" />
          <short value="replaces | transforms | signs | appends" />
          <definition value="The type of relationship that this composition has with anther composition or document." />
          <comment value="If this document appends another document, then the document cannot be fully understood without also accessing the referenced document." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentRelationshipType" />
            </extension>
            <strength value="required" />
            <description value="The type of relationship between documents." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/document-relationship-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship.typeCode" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".relatedDocument.typeCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.relatesTo.targetX" />
    <resource>
      <DataElement>
        <id value="Composition.relatesTo.targetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.relatesTo.targetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.relatesTo.target[x]">
          <path value="Composition.relatesTo.target[x]" />
          <short value="Target of the relationship" />
          <definition value="The target composition/document of this relationship." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Composition" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".target[classCode=&quot;DOC&quot;, moodCode=&quot;EVN&quot;].id" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".relatedDocument.id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.event" />
    <resource>
      <DataElement>
        <id value="Composition.event" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.event" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.event">
          <path value="Composition.event" />
          <short value="The clinical service(s) being documented" />
          <definition value="The clinical service, such as a colonoscopy or an appendectomy, being documented." />
          <comment value="The event needs to be consistent with the type element, though can provide further information if desired." />
          <requirements value="Provides context for the composition and creates a linkage between a resource describing an event and the composition created describing the event." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="outboundRelationship[typeCode=&quot;SUBJ&quot;].target[classCode&lt;'ACT']" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".documentationOf.serviceEvent" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.event.code" />
    <resource>
      <DataElement>
        <id value="Composition.event.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.event.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.event.code">
          <path value="Composition.event.code" />
          <short value="Code(s) that apply to the event being documented" />
          <definition value="This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a &quot;History and Physical Report&quot; in which the procedure being documented is necessarily a &quot;History and Physical&quot; act." />
          <comment value="An event can further specialize the act inherent in the typeCode, such as where it is simply &quot;Procedure Report&quot; and the procedure was a &quot;colonoscopy&quot;. If one or more eventCodes are included, they SHALL NOT conflict with the values inherent in the classCode, practiceSettingCode or typeCode, as such a conflict would create an ambiguous situation. This short list of codes is provided to be used as key words for certain types of queries." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DocumentEventType" />
            </extension>
            <strength value="example" />
            <description value="This list of codes represents the main clinical acts being documented." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActCode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.event.period" />
    <resource>
      <DataElement>
        <id value="Composition.event.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.event.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.event.period">
          <path value="Composition.event.period" />
          <short value="The period covered by the documentation" />
          <definition value="The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.event.detail" />
    <resource>
      <DataElement>
        <id value="Composition.event.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.event.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.event.detail">
          <path value="Composition.event.detail" />
          <short value="The event(s) being documented" />
          <definition value="The description and/or reference of the event(s) being documented. For example, this could be used to document such a colonoscopy or an appendectomy." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=&quot;SUBJ&quot;].target" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.section" />
    <resource>
      <DataElement>
        <id value="Composition.section" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.section" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.section">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Section" />
          </extension>
          <path value="Composition.section" />
          <short value="Composition is broken into sections" />
          <definition value="The root of the sections that make up the composition." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="cmp-1" />
            <severity value="error" />
            <human value="A section must at least one of text, entries, or sub-sections" />
            <expression value="text.exists() or entry.exists() or section.exists()" />
            <xpath value="exists(f:text) or exists(f:entry) or exists(f:section)" />
          </constraint>
          <constraint>
            <key value="cmp-2" />
            <severity value="error" />
            <human value="A section can only have an emptyReason if it is empty" />
            <expression value="emptyReason.empty() or entry.empty()" />
            <xpath value="not(exists(f:emptyReason) and exists(f:entry))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="./outboundRelationship[typeCode=&quot;COMP&quot; and isNormalActRelationship()]/target[moodCode=&quot;EVN&quot; and classCode=&quot;DOCSECT&quot; and isNormalAct]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".component.structuredBody.component.section" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.section.title" />
    <resource>
      <DataElement>
        <id value="Composition.section.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.section.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.section.title">
          <path value="Composition.section.title" />
          <short value="Label for section (e.g. for ToC)" />
          <definition value="The label for this particular section.  This will be part of the rendered content for the document, and is often used to build a table of contents." />
          <comment value="The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title,  or documents that only have a single section. Most Implementation Guides will make section title to be a required element." />
          <requirements value="Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized." />
          <alias value="header" />
          <alias value="label" />
          <alias value="caption" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="./title" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.section.code" />
    <resource>
      <DataElement>
        <id value="Composition.section.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.section.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.section.code">
          <path value="Composition.section.code" />
          <short value="Classification of section (recommended)" />
          <definition value="A code identifying the kind of content contained within the section. This must be consistent with the section title." />
          <comment value="The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document.   If the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code." />
          <requirements value="Provides computable standardized labels to topics within the document." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CompositionSectionType" />
            </extension>
            <strength value="example" />
            <description value="Classification of a section of a composition/document." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/doc-section-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="./code" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.section.text" />
    <resource>
      <DataElement>
        <id value="Composition.section.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.section.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.section.text">
          <path value="Composition.section.text" />
          <short value="Text summary of the section, for human interpretation" />
          <definition value="A human-readable narrative that contains the attested content of the section, 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." />
          <comment value="Document profiles may define what content should be represented in the narrative to ensure clinical safety." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Narrative" />
          </type>
          <condition value="cmp-1" />
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.section.mode" />
    <resource>
      <DataElement>
        <id value="Composition.section.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.section.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.section.mode">
          <path value="Composition.section.mode" />
          <short value="working | snapshot | changes" />
          <definition value="How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted." />
          <comment value="This element is labeled as a modifier because a change list must not be mis-understood as a complete list." />
          <requirements value="Sections are used in various ways, and it must be known in what way it is safe to use the entries in them." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SectionMode" />
            </extension>
            <strength value="required" />
            <description value="The processing mode that applies to this section." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/list-mode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outBoundRelationship[typeCode=COMP].target[classCode=OBS&quot;].value" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.section.orderedBy" />
    <resource>
      <DataElement>
        <id value="Composition.section.orderedBy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.section.orderedBy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.section.orderedBy">
          <path value="Composition.section.orderedBy" />
          <short value="Order of section entries" />
          <definition value="Specifies the order applied to the items in the section entries." />
          <comment value="Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order." />
          <requirements value="Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SectionEntryOrder" />
            </extension>
            <strength value="preferred" />
            <description value="What order applies to the items in the entry." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/list-order" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].sequenceNumber &gt; 1" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.section.entry" />
    <resource>
      <DataElement>
        <id value="Composition.section.entry" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.section.entry" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.section.entry">
          <path value="Composition.section.entry" />
          <short value="A reference to data that supports this section" />
          <definition value="A reference to the actual resource from which the narrative in the section is derived." />
          <comment value="If there are no entries in the list, an emptyReason SHOULD be provided." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <condition value="cmp-2" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".entry" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.section.emptyReason" />
    <resource>
      <DataElement>
        <id value="Composition.section.emptyReason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.section.emptyReason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.section.emptyReason">
          <path value="Composition.section.emptyReason" />
          <short value="Why the section is empty" />
          <definition value="If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason." />
          <comment value="The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases." />
          <requirements value="Allows capturing things like &quot;none exist&quot; or &quot;not asked&quot; which can be important for most lists." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <condition value="cmp-2" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SectionEmptyReason" />
            </extension>
            <strength value="preferred" />
            <description value="If a section is empty, why it is empty." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/list-empty-reason" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ,code&lt;{ListEmptyReason}].value[type=CD]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Composition.section.section" />
    <resource>
      <DataElement>
        <id value="Composition.section.section" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Composition.section.section" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Composition.section.section">
          <path value="Composition.section.section" />
          <short value="Nested Section" />
          <definition value="A nested sub-section within this section." />
          <comment value="Nested sections are primarily used to help human readers navigate to particular portions of the document." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#Composition.section" />
          <condition value="cmp-1" />
          <mapping>
            <identity value="rim" />
            <map value="./outboundRelationship[typeCode=&quot;COMP&quot; and isNormalActRelationship()]/target[moodCode=&quot;EVN&quot; and classCode=&quot;DOCSECT&quot; and isNormalAct]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".component.section" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue" />
    <resource>
      <DataElement>
        <id value="DetectedIssue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue">
          <path value="DetectedIssue" />
          <short value="Clinical issue with action" />
          <definition value="Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc." />
          <alias value="DDI" />
          <alias value="drug-drug interaction" />
          <alias value="Contraindication" />
          <alias value="Alert" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Partial mapping from messages containing the AL1 or IAM segment, such as the ADT^A01, ADT^A08, and ADT^A60." />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[classCode=ALRT, moodCode=EVN)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.identifier" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.identifier">
          <path value="DetectedIssue.identifier" />
          <short value="Unique id for the detected issue" />
          <definition value="Business identifier associated with the detected issue record." />
          <requirements value="Allows linking instances of the same detected issue found on different servers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IAM-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.status" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.status">
          <path value="DetectedIssue.status" />
          <short value="registered | preliminary | final | amended +" />
          <definition value="Indicates the status of the detected issue." />
          <comment value="This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the issue as not currently valid." />
          <alias value="status" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DetectedIssueStatus" />
            </extension>
            <strength value="required" />
            <description value="Indicates the status of the identified issue" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.category" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.category">
          <path value="DetectedIssue.category" />
          <short value="Issue Category, e.g. drug-drug, duplicate therapy, etc." />
          <definition value="Identifies the general type of issue identified." />
          <alias value="type" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DetectedIssueCategory" />
            </extension>
            <strength value="preferred" />
            <description value="Codes identifying the general type of detected issue; e.g. Drug-drug interaction, Timing issue, Duplicate therapy, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/detectedissue-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.code" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="AL1-2 / IAM-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.severity" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.severity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.severity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.severity">
          <path value="DetectedIssue.severity" />
          <short value="high | moderate | low" />
          <definition value="Indicates the degree of importance associated with the identified issue based on the potential impact on the patient." />
          <alias value="severity" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DetectedIssueSeverity" />
            </extension>
            <strength value="required" />
            <description value="Indicates the potential degree of impact of the identified issue on the patient." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/detectedissue-severity" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="AL1-4/ IAR-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV].value" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="grade" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.patient" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.patient">
          <path value="DetectedIssue.patient" />
          <short value="Associated patient" />
          <definition value="Indicates the patient whose record the detected issue is associated with." />
          <requirements value="While the subject could be inferred by tracing the subject of the implicated resources, it's useful to have a direct link for query purposes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.date" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.date">
          <path value="DetectedIssue.date" />
          <short value="When identified" />
          <definition value="The date or date-time when the detected issue was initially identified." />
          <requirements value="No-one can be responsible for mitigation prior to the issue being identified." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ALI-6 / IAM-11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.author" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.author">
          <path value="DetectedIssue.author" />
          <short value="The provider or device that identified the issue" />
          <definition value="Individual or device responsible for the issue being raised.  For example, a decision support application or a pharmacist conducting a medication review." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.actor" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IAM-14 / IAM-16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role[classCode=ASSIGNED]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.implicated" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.implicated" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.implicated" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.implicated">
          <path value="DetectedIssue.implicated" />
          <short value="Problem resource" />
          <definition value="Indicates the resource representing the current activity or proposed activity that is potentially problematic." />
          <comment value="There's an implicit constraint on the number of implicated resources based on DetectedIssue.type; e.g. For drug-drug, there would be more than one.  For timing, there would typically only be one." />
          <alias value="cause" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.reasonReference" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=SUBJ].target[moodCode=EVN, INT]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.detail" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.detail">
          <path value="DetectedIssue.detail" />
          <short value="Description and context" />
          <definition value="A textual explanation of the detected issue." />
          <comment value="Should focus on information not covered elsewhere as discrete data - no need to duplicate the narrative." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="AL1-5 / IAM-8" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.reference" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.reference">
          <path value="DetectedIssue.reference" />
          <short value="Authority for issue" />
          <definition value="The literature, knowledge-base or similar reference that describes the propensity for the detected issue identified." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=INST].target[classCode=ALRT, moodCode=DEFN].text.uri" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.mitigation" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.mitigation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.mitigation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.mitigation">
          <path value="DetectedIssue.mitigation" />
          <short value="Step taken to address" />
          <definition value="Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the detected issue from manifesting.  Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=MITG].target[classCode=ACT, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.mitigation.action" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.mitigation.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.mitigation.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.mitigation.action">
          <path value="DetectedIssue.mitigation.action" />
          <short value="What mitigation?" />
          <definition value="Describes the action that was taken or the observation that was made that reduces/eliminates the risk associated with the identified issue." />
          <comment value="The &quot;text&quot; component can be used for detail or when no appropriate code exists." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DetectedIssueMitigationAction" />
            </extension>
            <strength value="preferred" />
            <description value="Codes describing steps taken to resolve the issue or other circumstances that mitigate the risk associated with the issue; e.g. 'added concurrent therapy', 'prior therapy documented', etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/detectedissue-mitigation-action" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.mitigation.date" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.mitigation.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.mitigation.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.mitigation.date">
          <path value="DetectedIssue.mitigation.date" />
          <short value="Date committed" />
          <definition value="Indicates when the mitigating action was documented." />
          <comment value="This may not be the same as when the mitigating step was actually taken." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/DetectedIssue.mitigation.author" />
    <resource>
      <DataElement>
        <id value="DetectedIssue.mitigation.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/DetectedIssue.mitigation.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="DetectedIssue.mitigation.author">
          <path value="DetectedIssue.mitigation.author" />
          <short value="Who is committing?" />
          <definition value="Identifies the practitioner who determined the mitigation and takes responsibility for the mitigation step occurring." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role[classCode=ASSIGNED]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle" />
    <resource>
      <DataElement>
        <id value="Bundle" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle">
          <path value="Bundle" />
          <short value="Contains a collection of resources" />
          <definition value="A container for a collection of resources." />
          <min value="0" />
          <max value="*" />
          <constraint>
            <key value="bdl-7" />
            <severity value="error" />
            <human value="FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId" />
            <expression value="entry.where(fullUrl).select(fullUrl&amp;resource.meta.versionId).isDistinct()" />
            <xpath value="count(for $entry in f:entry[f:resource] return $entry[count(parent::f:Bundle/f:entry[f:fullUrl/@value=$entry/f:fullUrl/@value and ((not(f:resource/*/f:meta/f:versionId/@value) and not($entry/f:resource/*/f:meta/f:versionId/@value)) or f:resource/*/f:meta/f:versionId/@value=$entry/f:resource/*/f:meta/f:versionId/@value)])!=1])=0" />
          </constraint>
          <constraint>
            <key value="bdl-9" />
            <severity value="error" />
            <human value="A document must have an identifier with a system and a value" />
            <expression value="type = 'document' implies (identifier.system.exists() and identifier.value.exists())" />
            <xpath value="not(f:type/@value = 'document') or exists(f:identifier/f:system) or exists(f:identifier/f:value)" />
          </constraint>
          <constraint>
            <key value="bdl-3" />
            <severity value="error" />
            <human value="entry.request only for some types of bundles" />
            <expression value="entry.request.empty() or type = 'batch' or type = 'transaction' or type = 'history'" />
            <xpath value="not(f:entry/f:request) or (f:type/@value = 'batch') or (f:type/@value = 'transaction') or (f:type/@value = 'history')" />
          </constraint>
          <constraint>
            <key value="bdl-4" />
            <severity value="error" />
            <human value="entry.response only for some types of bundles" />
            <expression value="entry.response.empty() or type = 'batch-response' or type = 'transaction-response'" />
            <xpath value="not(f:entry/f:response) or (f:type/@value = 'batch-response') or (f:type/@value = 'transaction-response')" />
          </constraint>
          <constraint>
            <key value="bdl-1" />
            <severity value="error" />
            <human value="total only when a search or history" />
            <expression value="total.empty() or (type = 'searchset') or (type = 'history')" />
            <xpath value="not(f:total) or (f:type/@value = 'searchset') or (f:type/@value = 'history')" />
          </constraint>
          <constraint>
            <key value="bdl-2" />
            <severity value="error" />
            <human value="entry.search only when a search" />
            <expression value="entry.search.empty() or (type = 'searchset')" />
            <xpath value="not(f:entry/f:search) or (f:type/@value = 'searchset')" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.structure" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.identifier" />
    <resource>
      <DataElement>
        <id value="Bundle.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.identifier">
          <path value="Bundle.identifier" />
          <short value="Persistent identifier for the bundle" />
          <definition value="A persistent identifier for the batch that won't change as a batch is copied from server to server." />
          <comment value="Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results, and servers ignore Bundle.identifier when processing batches and transactions. For Documents  the .identifier SHALL be populated such that the .identifier is globally unique." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.type" />
    <resource>
      <DataElement>
        <id value="Bundle.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.type">
          <path value="Bundle.type" />
          <short value="document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection" />
          <definition value="Indicates the purpose of this bundle - how it was intended to be used." />
          <comment value="It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BundleType" />
            </extension>
            <strength value="required" />
            <description value="Indicates the purpose of a bundle - how it was intended to be used." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/bundle-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.total" />
    <resource>
      <DataElement>
        <id value="Bundle.total" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.total" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.total">
          <path value="Bundle.total" />
          <short value="If search, the total number of matches" />
          <definition value="If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle)." />
          <comment value="Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="unsignedInt" />
          </type>
          <condition value="bdl-1" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.link" />
    <resource>
      <DataElement>
        <id value="Bundle.link" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.link" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.link">
          <path value="Bundle.link" />
          <short value="Links related to this Bundle" />
          <definition value="A series of links that provide context to this bundle." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.link.relation" />
    <resource>
      <DataElement>
        <id value="Bundle.link.relation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.link.relation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.link.relation">
          <path value="Bundle.link.relation" />
          <short value="See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1" />
          <definition value="A name which details the functional use for this link - see [http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1](http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.link.url" />
    <resource>
      <DataElement>
        <id value="Bundle.link.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.link.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.link.url">
          <path value="Bundle.link.url" />
          <short value="Reference details for the link" />
          <definition value="The reference details for the link." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry" />
    <resource>
      <DataElement>
        <id value="Bundle.entry" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry">
          <path value="Bundle.entry" />
          <short value="Entry in the bundle - will have a resource, or information" />
          <definition value="An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only)." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="bdl-8" />
            <severity value="error" />
            <human value="fullUrl cannot be a version specific reference" />
            <expression value="fullUrl.contains('/_history/').not()" />
            <xpath value="not(exists(f:fullUrl[contains(string(@value), '/_history/')]))" />
          </constraint>
          <constraint>
            <key value="bdl-5" />
            <severity value="error" />
            <human value="must be a resource unless there's a request or response" />
            <expression value="resource.exists() or request.exists() or response.exists()" />
            <xpath value="exists(f:resource) or exists(f:request) or exists(f:response)" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.link" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.link" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.link" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.link">
          <path value="Bundle.entry.link" />
          <short value="Links related to this entry" />
          <definition value="A series of links that provide context to this entry." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#Bundle.link" />
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.fullUrl" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.fullUrl" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.fullUrl" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.fullUrl">
          <path value="Bundle.entry.fullUrl" />
          <short value="Absolute URL for resource (server address, or UUID/OID)" />
          <definition value="The Absolute URL for the resource.  The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: &#xA;* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)&#xA;* Results from operations might involve resources that are not identified." />
          <comment value="fullUrl may not be [unique in the context of a resource](bundle.html#bundle-unique). Note that since [FHIR resources do not need to be served through the FHIR API](references.html), the absolute URL may not end with the logical id of the resource (Resource.id), but if the fullUrl does look like a RESTful server URL (e.g. meets the [regex](references.html#regex), then it SHALL end with the Resource.id." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.resource" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.resource">
          <path value="Bundle.entry.resource" />
          <short value="A resource in the bundle" />
          <definition value="The Resources for the entry." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Resource" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.search" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.search" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.search" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.search">
          <path value="Bundle.entry.search" />
          <short value="Search related information" />
          <definition value="Information about the search process that lead to the creation of this entry." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="bdl-2" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.search.mode" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.search.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.search.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.search.mode">
          <path value="Bundle.entry.search.mode" />
          <short value="match | include | outcome - why this is in the result set" />
          <definition value="Why this entry is in the result set - whether it's included as a match or because of an _include requirement." />
          <comment value="There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SearchEntryMode" />
            </extension>
            <strength value="required" />
            <description value="Why an entry is in the result set - whether it's included as a match or because of an _include requirement." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/search-entry-mode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.search.score" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.search.score" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.search.score" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.search.score">
          <path value="Bundle.entry.search.score" />
          <short value="Search ranking (between 0 and 1)" />
          <definition value="When searching, the server's search ranking score for the entry." />
          <comment value="Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.request" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.request">
          <path value="Bundle.entry.request" />
          <short value="Transaction Related Information" />
          <definition value="Additional information about how this entry should be processed as part of a transaction." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="bdl-3" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.request.method" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.request.method" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.request.method" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.request.method">
          <path value="Bundle.entry.request.method" />
          <short value="GET | POST | PUT | DELETE" />
          <definition value="The HTTP verb for this entry in either a change history, or a transaction/ transaction response." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="HTTPVerb" />
            </extension>
            <strength value="required" />
            <description value="HTTP verbs (in the HTTP command line)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/http-verb" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.request.url" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.request.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.request.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.request.url">
          <path value="Bundle.entry.request.url" />
          <short value="URL for HTTP equivalent of this entry" />
          <definition value="The URL for this entry, relative to the root (the address to which the request is posted)." />
          <comment value="E.g. for a Patient Create, the method would be &quot;POST&quot; and the URL would be &quot;Patient&quot;. For a Patient Update, the method would be PUT, and the URL would be &quot;Patient/[id]&quot;." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.request.ifNoneMatch" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.request.ifNoneMatch" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.request.ifNoneMatch" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.request.ifNoneMatch">
          <path value="Bundle.entry.request.ifNoneMatch" />
          <short value="For managing cache currency" />
          <definition value="If the ETag values match, return a 304 Not Modified status. See the API documentation for [&quot;Conditional Read&quot;](http.html#cread)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.request.ifModifiedSince" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.request.ifModifiedSince" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.request.ifModifiedSince" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.request.ifModifiedSince">
          <path value="Bundle.entry.request.ifModifiedSince" />
          <short value="For managing update contention" />
          <definition value="Only perform the operation if the last updated date matches. See the API documentation for [&quot;Conditional Read&quot;](http.html#cread)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.request.ifMatch" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.request.ifMatch" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.request.ifMatch" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.request.ifMatch">
          <path value="Bundle.entry.request.ifMatch" />
          <short value="For managing update contention" />
          <definition value="Only perform the operation if the Etag value matches. For more information, see the API section [&quot;Managing Resource Contention&quot;](http.html#concurrency)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.request.ifNoneExist" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.request.ifNoneExist" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.request.ifNoneExist" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.request.ifNoneExist">
          <path value="Bundle.entry.request.ifNoneExist" />
          <short value="For conditional creates" />
          <definition value="Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for [&quot;Conditional Create&quot;](http.html#ccreate). This is just the query portion of the URL - what follows the &quot;?&quot; (not including the &quot;?&quot;)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.response" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.response" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.response" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.response">
          <path value="Bundle.entry.response" />
          <short value="Transaction Related Information" />
          <definition value="Additional information about how this entry should be processed as part of a transaction." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="BackboneElement" />
          </type>
          <condition value="bdl-4" />
          <constraint>
            <key value="ele-1" />
            <severity value="error" />
            <human value="All FHIR elements must have a @value or children" />
            <expression value="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.response.status" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.response.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.response.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.response.status">
          <path value="Bundle.entry.response.status" />
          <short value="Status response code (text optional)" />
          <definition value="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.response.location" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.response.location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.response.location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.response.location">
          <path value="Bundle.entry.response.location" />
          <short value="The location, if the operation returns a location" />
          <definition value="The location header created by processing this operation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.response.etag" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.response.etag" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.response.etag" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.response.etag">
          <path value="Bundle.entry.response.etag" />
          <short value="The etag for the resource (if relevant)" />
          <definition value="The etag for the resource, it the operation for the entry produced a versioned resource (see [Resource Metadata and Versioning](http.html#versioning) and [Managing Resource Contention](http.html#concurrency))." />
          <comment value="Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.response.lastModified" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.response.lastModified" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.response.lastModified" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.response.lastModified">
          <path value="Bundle.entry.response.lastModified" />
          <short value="Server's date time modified" />
          <definition value="The date/time that the resource was modified on the server." />
          <comment value="This has to match the same time in the meta header if a resource is included." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="instant" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.entry.response.outcome" />
    <resource>
      <DataElement>
        <id value="Bundle.entry.response.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.entry.response.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.entry.response.outcome">
          <path value="Bundle.entry.response.outcome" />
          <short value="OperationOutcome with hints and warnings (for batch/transaction)" />
          <definition value="An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction." />
          <comment value="For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Resource" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Bundle.signature" />
    <resource>
      <DataElement>
        <id value="Bundle.signature" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Bundle.signature" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Bundle.signature">
          <path value="Bundle.signature" />
          <short value="Digital Signature" />
          <definition value="Digital Signature - base64 encoded. XML-DSIg or a JWT." />
          <comment value="The signature could be created by the &quot;author&quot; of the bundle or by the originating device.   Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific." />
          <requirements value="This element allows capturing signatures on documents. It also allows signatures on messages, transactions or even query responses. It may support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Signature" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition">
          <path value="CompartmentDefinition" />
          <short value="Compartment Definition for a resource" />
          <definition value="A compartment definition that defines how resources are accessed on a server." />
          <comment value="In FHIR, search is not performed directly on a resource (by XML or JSON path), but on a named parameter that maps into the resource content." />
          <min value="1" />
          <max value="1" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.behavior" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.url" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.url">
          <path value="CompartmentDefinition.url" />
          <short value="Logical URI to reference this compartment definition (globally unique)" />
          <definition value="An absolute URI that is used to identify this compartment 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 compartment definition is (or will be) published. The URL SHOULD include the major version of the compartment 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the compartment definition to be referenced by a single globally unique identifier." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.name" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.name">
          <path value="CompartmentDefinition.name" />
          <short value="Name for this compartment definition (computer friendly)" />
          <definition value="A natural language name identifying the compartment 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 that it is computable friendly. This is often the same as the code for the parameter, but does not need to be." />
          <requirements value="Support human navigation and code generation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.title" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.title">
          <path value="CompartmentDefinition.title" />
          <short value="Name for this compartment definition (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the compartment definition." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.status" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.status">
          <path value="CompartmentDefinition.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this compartment definition. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of compartment definitions that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired compartment definition without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.experimental" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.experimental">
          <path value="CompartmentDefinition.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this compartment 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 compartment definition that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental compartment definition in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level compartment definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.date" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.date">
          <path value="CompartmentDefinition.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the compartment definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the compartment 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 compartment definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.publisher" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.publisher">
          <path value="CompartmentDefinition.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the compartment definition." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the compartment definition is the organization or individual primarily responsible for the maintenance and upkeep of the compartment 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 compartment definition. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the compartment definition.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.contact" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.contact">
          <path value="CompartmentDefinition.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.description" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.description">
          <path value="CompartmentDefinition.description" />
          <short value="Natural language description of the compartment definition" />
          <definition value="A free text natural language description of the compartment definition from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the compartment 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 compartment 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="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.purpose" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.purpose">
          <path value="CompartmentDefinition.purpose" />
          <short value="Why this compartment definition is defined" />
          <definition value="Explaination of why this compartment definition is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the compartment definition Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this compartment definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.useContext" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.useContext">
          <path value="CompartmentDefinition.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate compartment definition instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.jurisdiction" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.jurisdiction">
          <path value="CompartmentDefinition.jurisdiction" />
          <short value="Intended jurisdiction for compartment definition (if applicable)" />
          <definition value="A legal or geographic region in which the compartment definition is intended to be used." />
          <comment value="It may be possible for the compartment definition to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.code" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.code">
          <path value="CompartmentDefinition.code" />
          <short value="Patient | Encounter | RelatedPerson | Practitioner | Device" />
          <definition value="Which compartment this definition describes." />
          <comment value="Only the specification can define the compartments that can exist. Servers can choose to support them." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CompartmentType" />
            </extension>
            <strength value="required" />
            <description value="Which compartment a compartment definition describes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/compartment-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.search" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.search" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.search" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.search">
          <path value="CompartmentDefinition.search" />
          <short value="Whether the search syntax is supported" />
          <definition value="Whether the search syntax is supported,." />
          <comment value="Servers may define and use compartments to manage logical access without implementing the compartment related syntax." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.resource" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.resource" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.resource" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.resource">
          <path value="CompartmentDefinition.resource" />
          <short value="How a resource is related to the compartment" />
          <definition value="Information about how a resource is related to the compartment." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.resource.code" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.resource.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.resource.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.resource.code">
          <path value="CompartmentDefinition.resource.code" />
          <short value="Name of resource type" />
          <definition value="The name of a resource supported by the server." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ResourceType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="One of the resource types defined as part of FHIR." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/resource-types" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.resource.param" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.resource.param" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.resource.param" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.resource.param">
          <path value="CompartmentDefinition.resource.param" />
          <short value="Search Parameter Name, or chained parameters" />
          <definition value="The name of a search parameter that represents the link to the compartment. More than one may be listed because a resource may be linked to a compartment in more than one way,." />
          <comment value="If no search parameters are listed, then the resource is not linked to the compartment." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/CompartmentDefinition.resource.documentation" />
    <resource>
      <DataElement>
        <id value="CompartmentDefinition.resource.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/CompartmentDefinition.resource.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="CompartmentDefinition.resource.documentation">
          <path value="CompartmentDefinition.resource.documentation" />
          <short value="Additional documentation about the resource and compartment" />
          <definition value="Additional documentation about the resource and compartment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient" />
    <resource>
      <DataElement>
        <id value="Patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient">
          <path value="Patient" />
          <short value="Information about an individual or animal receiving health care services" />
          <definition value="Demographics and other administrative information about an individual or animal receiving care or other health-related services." />
          <alias value="SubjectOfCare Client Resident" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Patient[classCode=PAT]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="ClinicalDocument.recordTarget.patientRole" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.individual" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.identifier" />
    <resource>
      <DataElement>
        <id value="Patient.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.identifier">
          <path value="Patient.identifier" />
          <short value="An identifier for this patient" />
          <definition value="An identifier for this patient." />
          <requirements value="Patients are almost always assigned specific numerical identifiers." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="id" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.active" />
    <resource>
      <DataElement>
        <id value="Patient.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.active">
          <path value="Patient.active" />
          <short value="Whether this patient's record is in active use" />
          <definition value="Whether this patient record is in active use." />
          <comment value="Default is true. If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient&#xA;&#xA;This element is labeled as a modifier because when the patient record is marked as not active it is not expected to be used/referenced without being changed back to active." />
          <requirements value="Need to be able to mark a patient record as not to be used because it was created in error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="statusCode" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.name" />
    <resource>
      <DataElement>
        <id value="Patient.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.name">
          <path value="Patient.name" />
          <short value="A name associated with the patient" />
          <definition value="A name associated with the individual." />
          <comment value="A patient may have multiple names with different uses or applicable periods. For animals, the name is a &quot;HumanName&quot; in the sense that is assigned and used by humans and has the same patterns." />
          <requirements value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="HumanName" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-5, PID-9" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="name" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".patient.name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.telecom" />
    <resource>
      <DataElement>
        <id value="Patient.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.telecom">
          <path value="Patient.telecom" />
          <short value="A contact detail for the individual" />
          <definition value="A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted." />
          <comment value="A Patient may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently and also to help with identification. The address may not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone)." />
          <requirements value="People have (primary) ways to contact them in some way such as phone, email." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-13, PID-14, PID-40" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="telecom" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".telecom" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.gender" />
    <resource>
      <DataElement>
        <id value="Patient.gender" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.gender" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.gender">
          <path value="Patient.gender" />
          <short value="male | female | other | unknown" />
          <definition value="Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes." />
          <comment value="The gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F.  Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific gender aspect of interest (anatomical, chromosonal, social, etc.)  However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice.  Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosonal and other gender aspects.  For example, an alert about a hysterectomy on a male should be handled as a warning or overrideable error, not a &quot;hard&quot; error." />
          <requirements value="Needed for identification of the individual, in combination with (at least) name and birth date. Gender of individual drives many clinical processes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdministrativeGender" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The gender of a person used for administrative purposes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PID-8" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".patient.administrativeGenderCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.birthDate" />
    <resource>
      <DataElement>
        <id value="Patient.birthDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.birthDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.birthDate">
          <path value="Patient.birthDate" />
          <short value="The date of birth for the individual" />
          <definition value="The date of birth for the individual." />
          <comment value="At least an estimated year should be provided as a guess if the real DOB is unknown  There is a standard extension &quot;patient-birthTime&quot; available that should be used where Time is required (such as in maternaty/infant care systems)." />
          <requirements value="Age of the individual drives many clinical processes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-7" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".patient.birthTime" />
          </mapping>
          <mapping>
            <identity value="loinc" />
            <map value="21112-8" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.deceasedX" />
    <resource>
      <DataElement>
        <id value="Patient.deceasedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.deceasedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.deceased[x]">
          <path value="Patient.deceased[x]" />
          <short value="Indicates if the individual is deceased or not" />
          <definition value="Indicates if the individual is deceased or not." />
          <comment value="If there's no value in the instance it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.&#xA;&#xA;This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different." />
          <requirements value="The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-30  (bool) and PID-29 (datetime)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.address" />
    <resource>
      <DataElement>
        <id value="Patient.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.address">
          <path value="Patient.address" />
          <short value="Addresses for the individual" />
          <definition value="Addresses for the individual." />
          <comment value="Patient may have multiple addresses with different uses or applicable periods." />
          <requirements value="May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Address" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-11" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="addr" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".addr" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.maritalStatus" />
    <resource>
      <DataElement>
        <id value="Patient.maritalStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.maritalStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.maritalStatus">
          <path value="Patient.maritalStatus" />
          <short value="Marital (civil) status of a patient" />
          <definition value="This field contains a patient's most recent marital (civil) status." />
          <requirements value="Most, if not all systems capture it." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MaritalStatus" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="extensible" />
            <description value="The domestic partnership status of a person." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/marital-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PID-16" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN]/maritalStatusCode" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".patient.maritalStatusCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.multipleBirthX" />
    <resource>
      <DataElement>
        <id value="Patient.multipleBirthX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.multipleBirthX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.multipleBirth[x]">
          <path value="Patient.multipleBirth[x]" />
          <short value="Whether patient is part of a multiple birth" />
          <definition value="Indicates whether the patient is part of a multiple (bool) or indicates the actual birth order (integer)." />
          <comment value="Where the valueInteger is provided, the number is the birth number in the sequence.&#xA;E.g. The middle birth in tripplets would be valueInteger=2 and the third born would have valueInteger=3&#xA;If a bool value was provided for this tripplets examle, then all 3 patient records would have valueBool=true (the ordering is not indicated)." />
          <requirements value="For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PID-24 (bool), PID-25 (integer)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd,  player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.photo" />
    <resource>
      <DataElement>
        <id value="Patient.photo" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.photo" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.photo">
          <path value="Patient.photo" />
          <short value="Image of the patient" />
          <definition value="Image of the patient." />
          <requirements value="Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Attachment" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-5 - needs a profile" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.contact" />
    <resource>
      <DataElement>
        <id value="Patient.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.contact">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Contact" />
          </extension>
          <path value="Patient.contact" />
          <short value="A contact party (e.g. guardian, partner, friend) for the patient" />
          <definition value="A contact party (e.g. guardian, partner, friend) for the patient." />
          <comment value="Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact." />
          <requirements value="Need to track people you can contact about the patient." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="pat-1" />
            <severity value="error" />
            <human value="SHALL at least contain a contact's details or a reference to an organization" />
            <expression value="name.exists() or telecom.exists() or address.exists() or organization.exists()" />
            <xpath value="exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.contact.relationship" />
    <resource>
      <DataElement>
        <id value="Patient.contact.relationship" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.contact.relationship" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.contact.relationship">
          <path value="Patient.contact.relationship" />
          <short value="The kind of relationship" />
          <definition value="The nature of the relationship between the patient and the contact person." />
          <requirements value="Used to determine which contact person is the most relevant to approach, depending on circumstances." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ContactRelationship" />
            </extension>
            <strength value="extensible" />
            <description value="The nature of the relationship between a patient and a contact person for that patient." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v2-0131" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="NK1-7, NK1-3" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.contact.name" />
    <resource>
      <DataElement>
        <id value="Patient.contact.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.contact.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.contact.name">
          <path value="Patient.contact.name" />
          <short value="A name associated with the contact person" />
          <definition value="A name associated with the contact person." />
          <requirements value="Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="HumanName" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="NK1-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="name" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.contact.telecom" />
    <resource>
      <DataElement>
        <id value="Patient.contact.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.contact.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.contact.telecom">
          <path value="Patient.contact.telecom" />
          <short value="A contact detail for the person" />
          <definition value="A contact detail for the person, e.g. a telephone number or an email address." />
          <comment value="Contact may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification." />
          <requirements value="People have (primary) ways to contact them in some way such as phone, email." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="NK1-5, NK1-6, NK1-40" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="telecom" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.contact.address" />
    <resource>
      <DataElement>
        <id value="Patient.contact.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.contact.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.contact.address">
          <path value="Patient.contact.address" />
          <short value="Address for the contact person" />
          <definition value="Address for the contact person." />
          <requirements value="Need to keep track where the contact person can be contacted per postal mail or visited." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Address" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="NK1-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="addr" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.contact.gender" />
    <resource>
      <DataElement>
        <id value="Patient.contact.gender" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.contact.gender" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.contact.gender">
          <path value="Patient.contact.gender" />
          <short value="male | female | other | unknown" />
          <definition value="Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes." />
          <requirements value="Needed to address the person correctly." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdministrativeGender" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The gender of a person used for administrative purposes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="NK1-15" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.contact.organization" />
    <resource>
      <DataElement>
        <id value="Patient.contact.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.contact.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.contact.organization">
          <path value="Patient.contact.organization" />
          <short value="Organization that is associated with the contact" />
          <definition value="Organization on behalf of which the contact is acting or for which the contact is working." />
          <requirements value="For guardians or business related contacts, the organization is relevant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <condition value="pat-1" />
          <mapping>
            <identity value="v2" />
            <map value="NK1-13, NK1-30, NK1-31, NK1-32, NK1-41" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="scoper" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.contact.period" />
    <resource>
      <DataElement>
        <id value="Patient.contact.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.contact.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.contact.period">
          <path value="Patient.contact.period" />
          <short value="The period during which this contact person or organization is valid to be contacted relating to this patient" />
          <definition value="The period during which this contact person or organization is valid to be contacted relating to this patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="effectiveTime" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.animal" />
    <resource>
      <DataElement>
        <id value="Patient.animal" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.animal" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.animal">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Animal" />
          </extension>
          <path value="Patient.animal" />
          <short value="This patient is known to be an animal (non-human)" />
          <definition value="This patient is known to be an animal." />
          <comment value="The animal element is labeled &quot;Is Modifier&quot; since patients may be non-human. Systems SHALL either handle patient details appropriately (e.g. inform users patient is not human) or reject declared animal records.   The absense of the animal element does not imply that the patient is a human. If a system requires such a positive assertion that the patient is human, an extension will be required.  (Do not use a species of homo-sapiens in animal species, as this would incorrectly infer that the patient is an animal)." />
          <requirements value="Many clinical systems are extended to care for animal patients as well as human." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=ANM]" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.animal.species" />
    <resource>
      <DataElement>
        <id value="Patient.animal.species" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.animal.species" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.animal.species">
          <path value="Patient.animal.species" />
          <short value="E.g. Dog, Cow" />
          <definition value="Identifies the high level taxonomic categorization of the kind of animal." />
          <comment value="If the patient is non-human, at least a species SHALL be specified. Species SHALL be a widely recognised taxonomic classification.  It may or may not be Linnaean taxonomy and may or may not be at the level of species. If the level is finer than species--such as a breed code--the code system used SHALL allow inference of the species.  (The common example is that the word &quot;Hereford&quot; does not allow inference of the species Bos taurus, because there is a Hereford pig breed, but the SNOMED CT code for &quot;Hereford Cattle Breed&quot; does.)." />
          <requirements value="Need to know what kind of animal." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AnimalSpecies" />
            </extension>
            <strength value="example" />
            <description value="The species of an animal." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/animal-species" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PID-35" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="code" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.animal.breed" />
    <resource>
      <DataElement>
        <id value="Patient.animal.breed" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.animal.breed" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.animal.breed">
          <path value="Patient.animal.breed" />
          <short value="E.g. Poodle, Angus" />
          <definition value="Identifies the detailed categorization of the kind of animal." />
          <comment value="Breed MAY be used to provide further taxonomic or non-taxonomic classification.  It may involve local or proprietary designation--such as commercial strain--and/or additional information such as production type." />
          <requirements value="May need to know the specific kind within the species." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AnimalBreed" />
            </extension>
            <strength value="example" />
            <description value="The breed of an animal." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/animal-breeds" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PID-37" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="playedRole[classCode=GEN]/scoper[classCode=ANM, determinerCode=KIND]/code" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.animal.genderStatus" />
    <resource>
      <DataElement>
        <id value="Patient.animal.genderStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.animal.genderStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.animal.genderStatus">
          <path value="Patient.animal.genderStatus" />
          <short value="E.g. Neutered, Intact" />
          <definition value="Indicates the current state of the animal's reproductive organs." />
          <requirements value="Gender status can affect housing and animal behavior." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AnimalGenderStatus" />
            </extension>
            <strength value="example" />
            <description value="The state of the animal's reproductive organs." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/animal-genderstatus" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="genderStatusCode" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.communication" />
    <resource>
      <DataElement>
        <id value="Patient.communication" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.communication" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.communication">
          <path value="Patient.communication" />
          <short value="A list of Languages which may be used to communicate with the patient about his or her health" />
          <definition value="Languages which may be used to communicate with the patient about his or her health." />
          <comment value="If no language is specified, this *implies* that the default local language is spoken.  If you need to convey proficiency for multiple modes then you need multiple Patient.Communication associations.   For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required." />
          <requirements value="If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="LanguageCommunication" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="patient.languageCommunication" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.communication.language" />
    <resource>
      <DataElement>
        <id value="Patient.communication.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.communication.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.communication.language">
          <path value="Patient.communication.language" />
          <short value="The language which can be used to communicate with the patient about his or her health" />
          <definition value="The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. &quot;en&quot; for English, or &quot;en-US&quot; for American English versus &quot;en-EN&quot; for England English." />
          <comment value="The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type." />
          <requirements value="Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
          <mapping>
            <identity value="v2" />
            <map value="PID-15, LAN-2" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".languageCode" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.communication.preferred" />
    <resource>
      <DataElement>
        <id value="Patient.communication.preferred" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.communication.preferred" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.communication.preferred">
          <path value="Patient.communication.preferred" />
          <short value="Language preference indicator" />
          <definition value="Indicates whether or not the patient prefers this language (over other languages he masters up a certain level)." />
          <comment value="This language is specifically identified for communicating healthcare information." />
          <requirements value="People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PID-15" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="preferenceInd" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".preferenceInd" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.generalPractitioner" />
    <resource>
      <DataElement>
        <id value="Patient.generalPractitioner" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.generalPractitioner" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.generalPractitioner">
          <path value="Patient.generalPractitioner" />
          <short value="Patient's nominated primary care provider" />
          <definition value="Patient's nominated care provider." />
          <comment value="This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disablity setting, or even organization that will provide people to perform the care provider roles.&#xA;&#xA;It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources." />
          <alias value="careProvider" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="PD1-4" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="subjectOf.CareEvent.performer.AssignedEntity" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.managingOrganization" />
    <resource>
      <DataElement>
        <id value="Patient.managingOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.managingOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.managingOrganization">
          <path value="Patient.managingOrganization" />
          <short value="Organization that is the custodian of the patient record" />
          <definition value="Organization that is the custodian of the patient record." />
          <comment value="There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association)." />
          <requirements value="Need to know who recognizes this patient record, manages and updates it." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="scoper" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value=".providerOrganization" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.link" />
    <resource>
      <DataElement>
        <id value="Patient.link" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.link" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.link">
          <path value="Patient.link" />
          <short value="Link to another patient resource that concerns the same actual person" />
          <definition value="Link to another patient resource that concerns the same actual patient." />
          <comment value="There is no assumption that linked patient records have mutual links. &#xA;&#xA;This element is labelled as a modifier because it may not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'." />
          <requirements value="There are multiple usecases: &#xA;&#xA;* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and * Distribution of patient information across multiple servers." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="outboundLink" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.link.other" />
    <resource>
      <DataElement>
        <id value="Patient.link.other" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.link.other" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.link.other">
          <path value="Patient.link.other" />
          <short value="The other patient or related person resource that the link refers to" />
          <definition value="The other patient resource that the link refers to." />
          <comment value="Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3, MRG-1" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="id" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Patient.link.type" />
    <resource>
      <DataElement>
        <id value="Patient.link.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Patient.link.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Patient.link.type">
          <path value="Patient.link.type" />
          <short value="replaced-by | replaces | refer | seealso - type of link" />
          <definition value="The type of link between this patient resource and another patient resource." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="LinkType" />
            </extension>
            <strength value="required" />
            <description value="The type of link between this patient resource and another patient resource." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/link-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="typeCode" />
          </mapping>
          <mapping>
            <identity value="cda" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage" />
    <resource>
      <DataElement>
        <id value="Coverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage">
          <path value="Coverage" />
          <short value="Insurance or medical plan or a payment agreement" />
          <definition value="Financial instrument which may be used to reimburse or pay for health care products and services." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Coverage" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.support" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.identifier" />
    <resource>
      <DataElement>
        <id value="Coverage.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.identifier">
          <path value="Coverage.identifier" />
          <short value="The primary coverage ID" />
          <definition value="The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Certificate number, Personal Health Number or Case ID. May be constructed as the concatination of the Coverage.SubscriberID and the Coverage.dependant." />
          <requirements value="This value may uniquely identify the coverage or it may be used in conjunction with the additional identifiers below." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="cdanetv4" />
            <map value="C02" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-2" />
          </mapping>
          <mapping>
            <identity value="cpha3pharm" />
            <map value="C.32, C.33, C.39" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.status" />
    <resource>
      <DataElement>
        <id value="Coverage.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.status">
          <path value="Coverage.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains the code entered-in-error that marks the coverage as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CoverageStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.type" />
    <resource>
      <DataElement>
        <id value="Coverage.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.type">
          <path value="Coverage.type" />
          <short value="Type of coverage such as medical or accident" />
          <definition value="The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health or payment by an individual or organization." />
          <requirements value="The order of application of coverages is dependent on the types of coverage." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CoverageType" />
            </extension>
            <strength value="preferred" />
            <description value="The type of insurance: public health, worker compensation; private accident, auto, private health, etc.) or a direct payment by an individual or organization." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/coverage-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="IN1-15" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.policyHolder" />
    <resource>
      <DataElement>
        <id value="Coverage.policyHolder" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.policyHolder" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.policyHolder">
          <path value="Coverage.policyHolder" />
          <short value="Owner of the policy" />
          <definition value="The party who 'owns' the insurance policy,  may be an individual, corporation or the subscriber's employer." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="D01 through D09" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-16, 18,  19-name of insured, address, date of birth" />
          </mapping>
          <mapping>
            <identity value="cpha3pharm" />
            <map value="C.35" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.subscriber" />
    <resource>
      <DataElement>
        <id value="Coverage.subscriber" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.subscriber" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.subscriber">
          <path value="Coverage.subscriber" />
          <short value="Subscriber to the policy" />
          <definition value="The party who has signed-up for or 'owns' the contractual relationship to the policy or to whom the benefit of the policy for services rendered to them or their family is due." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="D01 through D09" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-16, 18,  19-name of insured, address, date of birth" />
          </mapping>
          <mapping>
            <identity value="cpha3pharm" />
            <map value="C.35" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.subscriberId" />
    <resource>
      <DataElement>
        <id value="Coverage.subscriberId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.subscriberId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.subscriberId">
          <path value="Coverage.subscriberId" />
          <short value="ID assigned to the Subscriber" />
          <definition value="The insurer assigned ID for the Subscriber." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="D01 through D09" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-16, 18,  19-name of insured, address, date of birth" />
          </mapping>
          <mapping>
            <identity value="cpha3pharm" />
            <map value="C.35" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.beneficiary" />
    <resource>
      <DataElement>
        <id value="Coverage.beneficiary" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.beneficiary" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.beneficiary">
          <path value="Coverage.beneficiary" />
          <short value="Plan Beneficiary" />
          <definition value="The party who benefits from the insurance coverage., the patient when services are provided." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject" />
          </mapping>
          <mapping>
            <identity value="cdanetv4" />
            <map value="D01 through D09" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-16, 18,  19-name of insured, address, date of birth" />
          </mapping>
          <mapping>
            <identity value="cpha3pharm" />
            <map value="C.35" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.relationship" />
    <resource>
      <DataElement>
        <id value="Coverage.relationship" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.relationship" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.relationship">
          <path value="Coverage.relationship" />
          <short value="Beneficiary relationship to the Subscriber" />
          <definition value="The relationship of beneficiary (patient) to the subscriber." />
          <requirements value="To determine relationship between the patient and the subscriber." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Relationship" />
            </extension>
            <strength value="example" />
            <description value="The relationship between the Policyholder and the Beneficiary (insured/covered party/patient)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/policyholder-relationship" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="C03" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.period" />
    <resource>
      <DataElement>
        <id value="Coverage.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.period">
          <path value="Coverage.period" />
          <short value="Coverage start and end dates" />
          <definition value="Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-12 / IN1-13" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.payor" />
    <resource>
      <DataElement>
        <id value="Coverage.payor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.payor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.payor">
          <path value="Coverage.payor" />
          <short value="Identifier for the plan or agreement issuer" />
          <definition value="The program or plan underwriter or payor including both insurance and non-insurance agreements, such as patient-pay agreements. May provide multiple identifiers such as insurance company identifier or business identifier (BIN number)." />
          <requirements value="Need to identify the issuer to target for processing and for coordination of benefit processing." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="A05" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-3" />
          </mapping>
          <mapping>
            <identity value="cpha3pharm" />
            <map value="C.30" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Group" />
          </extension>
          <path value="Coverage.grouping" />
          <short value="Additional coverage classifications" />
          <definition value="A suite of underwrite specific classifiers, for example may be used to identify a class of coverage or employer group, Policy, Plan." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.group" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.group" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.group" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.group">
          <path value="Coverage.grouping.group" />
          <short value="An identifier for the group" />
          <definition value="Identifies a style or collective of coverage issued by the underwriter, for example may be used to identify an employer group. May also be referred to as a Policy or Group ID." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="C11 (Division,Section)" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-8" />
          </mapping>
          <mapping>
            <identity value="cpha3pharm" />
            <map value="C.31" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.groupDisplay" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.groupDisplay" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.groupDisplay" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.groupDisplay">
          <path value="Coverage.grouping.groupDisplay" />
          <short value="Display text for an identifier for the group" />
          <definition value="A short description for the group." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="C11 (Division,Section)" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-8" />
          </mapping>
          <mapping>
            <identity value="cpha3pharm" />
            <map value="C.31" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.subGroup" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.subGroup" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.subGroup" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.subGroup">
          <path value="Coverage.grouping.subGroup" />
          <short value="An identifier for the subsection of the group" />
          <definition value="Identifies a style or collective of coverage issued by the underwriter, for example may be used to identify a subset of an employer group." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="IN1-8" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.subGroupDisplay" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.subGroupDisplay" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.subGroupDisplay" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.subGroupDisplay">
          <path value="Coverage.grouping.subGroupDisplay" />
          <short value="Display text for the subsection of the group" />
          <definition value="A short description for the subgroup." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="IN1-8" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.plan" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.plan" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.plan" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.plan">
          <path value="Coverage.grouping.plan" />
          <short value="An identifier for the plan" />
          <definition value="Identifies a style or collective of coverage issued by the underwriter, for example may be used to identify a collection of benefits provided to employees. May be referred to as a Section or Division ID." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="C01" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-35" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.planDisplay" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.planDisplay" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.planDisplay" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.planDisplay">
          <path value="Coverage.grouping.planDisplay" />
          <short value="Display text for the plan" />
          <definition value="A short description for the plan." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="C01" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-35" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.subPlan" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.subPlan" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.subPlan" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.subPlan">
          <path value="Coverage.grouping.subPlan" />
          <short value="An identifier for the subsection of the plan" />
          <definition value="Identifies a sub-style or sub-collective of coverage issued by the underwriter, for example may be used to identify a subset of a collection of benefits provided to employees." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="IN1-10" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.subPlanDisplay" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.subPlanDisplay" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.subPlanDisplay" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.subPlanDisplay">
          <path value="Coverage.grouping.subPlanDisplay" />
          <short value="Display text for the subsection of the plan" />
          <definition value="A short description for the subplan." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="IN1-10" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.class" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.class" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.class" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.class">
          <path value="Coverage.grouping.class" />
          <short value="An identifier for the class" />
          <definition value="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage such as a level of deductables or co-payment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="C01" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-35" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.classDisplay" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.classDisplay" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.classDisplay" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.classDisplay">
          <path value="Coverage.grouping.classDisplay" />
          <short value="Display text for the class" />
          <definition value="A short description for the class." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="C01" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-35" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.subClass" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.subClass" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.subClass" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.subClass">
          <path value="Coverage.grouping.subClass" />
          <short value="An identifier for the subsection of the class" />
          <definition value="Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a subclass of coverage such as a sub-level of deductables or co-payment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="C01" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-35" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.grouping.subClassDisplay" />
    <resource>
      <DataElement>
        <id value="Coverage.grouping.subClassDisplay" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.grouping.subClassDisplay" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.grouping.subClassDisplay">
          <path value="Coverage.grouping.subClassDisplay" />
          <short value="Display text for the subsection of the subclass" />
          <definition value="A short description for the subclass." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="C01" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-35" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.dependent" />
    <resource>
      <DataElement>
        <id value="Coverage.dependent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.dependent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.dependent">
          <path value="Coverage.dependent" />
          <short value="Dependent number" />
          <definition value="A unique identifier for a dependent under the coverage." />
          <requirements value="For some coverage a single identifier is issued to the Subscriber and a dependent number issued to each beneficiary." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="C17" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="- No exact HL7 v2 equivalent concept seems to exist;" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.sequence" />
    <resource>
      <DataElement>
        <id value="Coverage.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.sequence">
          <path value="Coverage.sequence" />
          <short value="The plan instance or sequence counter" />
          <definition value="An optional counter for a particular instance of the identified coverage which increments upon each renewal." />
          <requirements value="Some coverage, for example social plans, may be offered in short time increments, for example for a week or a month at a time, so while the rest of the plan details and identifiers may remain constant over time, the instance is incremented with each renewal and provided to the covered party on their 'card'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="D11" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="No HL7 v2 equivalent concept seems to exist" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.order" />
    <resource>
      <DataElement>
        <id value="Coverage.order" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.order" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.order">
          <path value="Coverage.order" />
          <short value="Relative order of the coverage" />
          <definition value="The order of applicability of this coverage relative to other coverages which are currently inforce. Note, there may be gaps in the numbering and this does not imply primary, secondard etc. as the specific positioning of coverages depends upon the episode of care." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="- No exact HL7 v2 equivalent concept seems to exist;" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.network" />
    <resource>
      <DataElement>
        <id value="Coverage.network" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.network" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.network">
          <path value="Coverage.network" />
          <short value="Insurer network" />
          <definition value="The insurer-specific identifier for the insurer-defined network of providers to which the beneficiary may seek treatment which will be covered at the 'in-network' rate, otherwise 'out of network' terms and conditions apply." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="cdanetv4" />
            <map value="D10" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Coverage.contract" />
    <resource>
      <DataElement>
        <id value="Coverage.contract" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Coverage.contract" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Coverage.contract">
          <path value="Coverage.contract" />
          <short value="Contract details" />
          <definition value="The policy(s) which constitute this insurance coverage." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="D01 through D09" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="IN1-16, 18,  19" />
          </mapping>
          <mapping>
            <identity value="cpha3pharm" />
            <map value="C.35" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse">
          <path value="QuestionnaireResponse" />
          <short value="A structured set of questions and their answers" />
          <definition value="A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to." />
          <comment value="The QuestionnaireResponse contains enough information about the questions asked and their organization that it can be interpreted somewhat independently from the Questionnaire it is based on.  I.e. You don't need access to the Questionnaire in order to extract basic information from a QuestionnaireResponse." />
          <alias value="Form" />
          <alias value="QuestionnaireAnswers" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Observation[moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="infrastructure.information" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.identifier" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.identifier">
          <path value="QuestionnaireResponse.identifier" />
          <short value="Unique id for this set of answers" />
          <definition value="A business identifier assigned to a particular completed (or partially completed) questionnaire." />
          <requirements value="Used for tracking, registration and other business purposes." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.basedOn" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.basedOn">
          <path value="QuestionnaireResponse.basedOn" />
          <short value="Request fulfilled by this QuestionnaireResponse" />
          <definition value="The order, proposal or plan that is fulfilled in whole or in part by this QuestionnaireResponse.  For example, a ProcedureRequest seeking an intake assessment or a decision support recommendation to assess for post-partum depression." />
          <requirements value="Supports traceability of responsibility for the action and allows linkage of an action to the recommendations acted upon." />
          <alias value="order" />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.parent" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.parent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.parent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.parent">
          <path value="QuestionnaireResponse.parent" />
          <short value="Part of this action" />
          <definition value="A procedure or observation that this questionnaire was performed as part of the execution of.  For example, the surgery a checklist was executed as part of." />
          <comment value="Composition of questionnaire responses will be handled by the parent questionnaire having answers that reference the child questionnaire.  For relationships to referrals, and other types of requests, use basedOn." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.questionnaire" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.questionnaire" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.questionnaire" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.questionnaire">
          <path value="QuestionnaireResponse.questionnaire" />
          <short value="Form being answered" />
          <definition value="The Questionnaire that defines and organizes the questions for which answers are being provided." />
          <comment value="If a QuestionnaireResponse references a Questionnaire, then the QuestionnaireResponse structure must be consistent with the Questionnaire (i.e. questions must be organized into the same groups, nested questions must still be nested, etc.)." />
          <requirements value="Needed to allow editing of the questionnaire response in a manner that enforces the constraints of the original form." />
          <alias value="Form" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Questionnaire" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value="./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.status" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.status">
          <path value="QuestionnaireResponse.status" />
          <short value="in-progress | completed | amended | entered-in-error | stopped" />
          <definition value="The position of the questionnaire response within its overall lifecycle." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <requirements value="The information on Questionnaire resources  may possibly be gathered during multiple sessions and altered after considered being finished." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuestionnaireResponseStatus" />
            </extension>
            <strength value="required" />
            <description value="Lifecycle status of the questionnaire response." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/questionnaire-answers-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish &quot;in-progress&quot; from &quot;published)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.subject" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.subject">
          <path value="QuestionnaireResponse.subject" />
          <short value="The subject of the questions" />
          <definition value="The subject of the questionnaire response.  This could be a patient, organization, practitioner, device, etc.  This is who/what the answers apply to, but is not necessarily the source of information." />
          <comment value="If the Questionnaire declared a subjectType, the resource pointed to by this element must be an instance of one of the listed types." />
          <requirements value="Allows linking the answers to the individual the answers describe.  May also affect access control." />
          <alias value="Patient" />
          <alias value="Focus" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.context" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.context">
          <path value="QuestionnaireResponse.context" />
          <short value="Encounter or Episode during which questionnaire was completed" />
          <definition value="The encounter or episode of care with primary association to the questionnaire response." />
          <comment value="A questionnaire that was initiated during an encounter but not fully completed during the encounter would still generally be associated with the encounter." />
          <requirements value="Provides context for the information that was captured.  May also affect access control." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship(typeCode=COMP].source[classCode&lt;=PCPR, moodCode=EVN]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.authored" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.authored" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.authored" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.authored">
          <path value="QuestionnaireResponse.authored" />
          <short value="Date the answers were gathered" />
          <definition value="The date and/or time that this set of answers were last changed." />
          <comment value="May be different from the lastUpdateTime of the resource itself, because that reflects when the data was known to the server, not when the data was captured.&#xA;&#xA;This element is optional to allow for systems that may not know the value, however it SHOULD be populated if possible." />
          <requirements value="Clinicians need to be able to check the date that the information in the questionnaire was collected, to derive the context of the answers." />
          <alias value="Date Created" />
          <alias value="Date published" />
          <alias value="Date Issued" />
          <alias value="Date updated" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].time" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.author" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.author" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.author" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.author">
          <path value="QuestionnaireResponse.author" />
          <short value="Person who received and recorded the answers" />
          <definition value="Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system." />
          <comment value="Mapping a subject's answers to multiple choice options and determining what to put in the textual answer is a matter of interpretation.  Authoring by device would indicate that some portion of the questionnaire had been auto-populated." />
          <requirements value="Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers." />
          <alias value="Laboratory" />
          <alias value="Service" />
          <alias value="Practitioner" />
          <alias value="Department" />
          <alias value="Company" />
          <alias value="Performer" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=AUT].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.source" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.source" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.source" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.source">
          <path value="QuestionnaireResponse.source" />
          <short value="The person who answered the questions" />
          <definition value="The person who answered the questions about the subject." />
          <comment value="If not specified, no inference can be made about who provided the data." />
          <requirements value="When answering questions about a subject that is minor, incapable of answering or an animal, another human source may answer the questions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=INF].role" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.item">
          <path value="QuestionnaireResponse.item" />
          <short value="Groups and questions" />
          <definition value="A group or question item from the original questionnaire for which answers are provided." />
          <comment value="Groups cannot have answers and therefore must nest directly within item. When dealing with questions, nesting must occur within each answer because some questions may have multiple answers (and the nesting occurs for each answer)." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <constraint>
            <key value="qrs-1" />
            <severity value="error" />
            <human value="Nested item can't be beneath both item and answer" />
            <expression value="(answer.exists() and item.exists()).not()" />
            <xpath value="not(exists(f:answer) and exists(f:item))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.linkId" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.item.linkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.linkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.item.linkId">
          <path value="QuestionnaireResponse.item.linkId" />
          <short value="Pointer to specific item from Questionnaire" />
          <definition value="The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource." />
          <requirements value="Items can repeat in the answers, so a direct 1..1 correspondence by position may not exist - requiring correspondence by identifier." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.definition" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.item.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.item.definition">
          <path value="QuestionnaireResponse.item.definition" />
          <short value="ElementDefinition - details for the item" />
          <definition value="A reference to an [ElementDefinition](elementdefinition.html) that provides the details for the item." />
          <comment value="The ElementDefinition must be in a [StructureDefinition](structuredefinition.html) or a [DataElement](dataelement.html), and must have a fragment identifier that identifies the specific data element by its id (Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x].&#xA;&#xA;There is no need for this element if the item pointed to by the linkId has a definition listed." />
          <requirements value="A common pattern is to define a set of data elements, and then build multiple different questionnaires for different circumstances to gather the data. This element provides traceability to the common definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.text" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.item.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.item.text">
          <path value="QuestionnaireResponse.item.text" />
          <short value="Name for group or question text" />
          <definition value="Text that is displayed above the contents of the group or as the text of the question being answered." />
          <requirements value="Allows the questionnaire response to be read without access to the questionnaire." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".text" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.subject" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.item.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.item.subject">
          <path value="QuestionnaireResponse.item.subject" />
          <short value="The subject this group's answers are about" />
          <definition value="More specific subject this section's answers are about, details the subject given in QuestionnaireResponse." />
          <requirements value="Sometimes a group of answers is about a specific participant, artifact or piece of information in the patient's care or record, e.g. a specific Problem, RelatedPerson, Allergy etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role or .outboundRelationship[typeCode=SUBJ].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.answer" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.item.answer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.answer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.item.answer">
          <path value="QuestionnaireResponse.item.answer" />
          <short value="The response(s) to the question" />
          <definition value="The respondent's answer(s) to the question." />
          <comment value="The value is nested because we cannot have a repeating structure that has variable type." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".value[type=LIST_ANY]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.answer.valueX" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.item.answer.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.answer.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.item.answer.value[x]">
          <path value="QuestionnaireResponse.item.answer.value[x]" />
          <short value="Single-valued answer to the question" />
          <definition value="The answer (or one of the answers) provided by the respondent to the question." />
          <comment value="More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type.  Additional complex types can be introduced through extensions." />
          <requirements value="Ability to retain a single-valued answer to a question." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <type>
            <code value="decimal" />
          </type>
          <type>
            <code value="integer" />
          </type>
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="time" />
          </type>
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="uri" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Coding" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuestionnaireAnswer" />
            </extension>
            <strength value="example" />
            <description value="Code indicating the response provided for a question." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/questionnaire-answers" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".item" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.answer.item" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.item.answer.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.answer.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.item.answer.item">
          <path value="QuestionnaireResponse.item.answer.item" />
          <short value="Nested groups and questions" />
          <definition value="Nested groups and/or questions found within this particular answer." />
          <requirements value="It is useful to have &quot;sub-questions&quot;, questions which normally appear when certain answers are given and which collect additional details." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#QuestionnaireResponse.item" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.item" />
    <resource>
      <DataElement>
        <id value="QuestionnaireResponse.item.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/QuestionnaireResponse.item.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="QuestionnaireResponse.item.item">
          <path value="QuestionnaireResponse.item.item" />
          <short value="Nested questionnaire response items" />
          <definition value="Questions or sub-groups nested beneath a question or group." />
          <requirements value="Reports can consist of complex nested groups." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#QuestionnaireResponse.item" />
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse" />
    <resource>
      <DataElement>
        <id value="ProcessResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse">
          <path value="ProcessResponse" />
          <short value="ProcessResponse resource" />
          <definition value="This resource provides processing status, errors and notes from the processing of a resource." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.order" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.identifier" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.identifier">
          <path value="ProcessResponse.identifier" />
          <short value="Business Identifier" />
          <definition value="The Response business identifier." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.status" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.status">
          <path value="ProcessResponse.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcessResponseStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.created" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.created">
          <path value="ProcessResponse.created" />
          <short value="Creation date" />
          <definition value="The date when the enclosed suite of services were performed or completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.organization" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.organization">
          <path value="ProcessResponse.organization" />
          <short value="Authoring Organization" />
          <definition value="The organization who produced this adjudicated response." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.request" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.request" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.request" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.request">
          <path value="ProcessResponse.request" />
          <short value="Request reference" />
          <definition value="Original request resource reference." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="A02|G01" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.outcome" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.outcome" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.outcome" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.outcome">
          <path value="ProcessResponse.outcome" />
          <short value="Processing outcome" />
          <definition value="Transaction status: error, complete, held." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcessingOutcome" />
            </extension>
            <strength value="example" />
            <description value="Local status of outcome codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/process-outcome" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.disposition" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.disposition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.disposition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.disposition">
          <path value="ProcessResponse.disposition" />
          <short value="Disposition Message" />
          <definition value="A description of the status of the adjudication or processing." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.note" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.requestProvider" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.requestProvider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.requestProvider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.requestProvider">
          <path value="ProcessResponse.requestProvider" />
          <short value="Responsible Practitioner" />
          <definition value="The practitioner who is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="B01" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.requestOrganization" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.requestOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.requestOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.requestOrganization">
          <path value="ProcessResponse.requestOrganization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the services rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.form" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.form" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.form" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.form">
          <path value="ProcessResponse.form" />
          <short value="Printed Form Identifier" />
          <definition value="The form to be used for printing the content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Forms" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="The forms codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/forms" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G42" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.processNote" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.processNote" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.processNote" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.processNote">
          <path value="ProcessResponse.processNote" />
          <short value="Processing comments or additional requirements" />
          <definition value="Suite of processing notes or additional requirements if the processing has been held." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.processNote.type" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.processNote.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.processNote.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.processNote.type">
          <path value="ProcessResponse.processNote.type" />
          <short value="display | print | printoper" />
          <definition value="The note purpose: Print/Display." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NoteType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="required" />
            <description value="The presentation types of notes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/note-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.processNote.text" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.processNote.text" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.processNote.text" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.processNote.text">
          <path value="ProcessResponse.processNote.text" />
          <short value="Comment on the processing" />
          <definition value="The note text." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="cdanetv4" />
            <map value="G32" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.error" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.error" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.error" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.error">
          <path value="ProcessResponse.error" />
          <short value="Error code" />
          <definition value="Processing errors." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AdjudicationError" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="The error codes for adjudication processing." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/adjudication-error" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ProcessResponse.communicationRequest" />
    <resource>
      <DataElement>
        <id value="ProcessResponse.communicationRequest" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ProcessResponse.communicationRequest" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ProcessResponse.communicationRequest">
          <path value="ProcessResponse.communicationRequest" />
          <short value="Request for additional information" />
          <definition value="Request for additional supporting or authorizing information, such as: documents, images or resources." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/CommunicationRequest" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem" />
    <resource>
      <DataElement>
        <id value="NamingSystem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem">
          <path value="NamingSystem" />
          <short value="System of unique identification" />
          <definition value="A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc.  Represents a &quot;System&quot; used within the Identifier and Coding data types." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <constraint>
            <key value="nsd-1" />
            <severity value="error" />
            <human value="Root systems cannot have uuid identifiers" />
            <expression value="kind != 'root' or uniqueId.type = 'uuid'" />
            <xpath value="not(f:kind/@value='root' and f:uniqueId/f:type/@value='uuid')" />
          </constraint>
          <constraint>
            <key value="nsd-3" />
            <severity value="error" />
            <human value="Can only have replacedBy if naming system is retired" />
            <expression value="replacedBy.empty() or status = 'retired'" />
            <xpath value="not(f:replacedBy) or f:status/@value='retired'" />
          </constraint>
          <constraint>
            <key value="nsd-2" />
            <severity value="error" />
            <human value="Can't have more than one preferred identifier for a type" />
            <expression value="uniqueId.where(preferred = true).select(type).isDistinct()" />
            <xpath value="not(exists(for $type in distinct-values(f:uniqueId/f:type/@value) return if (count(f:uniqueId[f:type/@value=$type and f:preferred/@value=true()])&gt;1) then $type else ()))" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="N/A" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="conformance.terminology" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.name" />
    <resource>
      <DataElement>
        <id value="NamingSystem.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.name">
          <path value="NamingSystem.name" />
          <short value="Name for this naming system (computer friendly)" />
          <definition value="A natural language name identifying the naming system. 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 that it is computable friendly. The&quot;symbolic name&quot; for an OID would be captured as an extension." />
          <requirements value="Support human navigation and code generation." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.status" />
    <resource>
      <DataElement>
        <id value="NamingSystem.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.status">
          <path value="NamingSystem.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this naming system. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of naming systems that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired naming system without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.kind" />
    <resource>
      <DataElement>
        <id value="NamingSystem.kind" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.kind" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.kind">
          <path value="NamingSystem.kind" />
          <short value="codesystem | identifier | root" />
          <definition value="Indicates the purpose for the naming system - what kinds of things does it make unique?" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NamingSystemType" />
            </extension>
            <strength value="required" />
            <description value="Identifies the purpose of the naming system." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/namingsystem-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.date" />
    <resource>
      <DataElement>
        <id value="NamingSystem.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.date">
          <path value="NamingSystem.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the naming system was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system 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 naming system. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.publisher" />
    <resource>
      <DataElement>
        <id value="NamingSystem.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.publisher">
          <path value="NamingSystem.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the naming system." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the naming system is the organization or individual primarily responsible for the maintenance and upkeep of the naming system. 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 naming system. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the naming system.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.contact" />
    <resource>
      <DataElement>
        <id value="NamingSystem.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.contact">
          <path value="NamingSystem.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.responsible" />
    <resource>
      <DataElement>
        <id value="NamingSystem.responsible" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.responsible" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.responsible">
          <path value="NamingSystem.responsible" />
          <short value="Who maintains system namespace?" />
          <definition value="The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision." />
          <comment value="This is the primary organization.  Responsibility for some aspects of a namespace may be delegated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.type" />
    <resource>
      <DataElement>
        <id value="NamingSystem.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.type">
          <path value="NamingSystem.type" />
          <short value="e.g. driver,  provider,  patient, bank etc." />
          <definition value="Categorizes a naming system for easier search by grouping related naming systems." />
          <comment value="This will most commonly be used for identifier namespaces, but categories could potentially be useful for code systems and authorities as well." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IdentifierType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="extensible" />
            <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/identifier-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.description" />
    <resource>
      <DataElement>
        <id value="NamingSystem.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.description">
          <path value="NamingSystem.description" />
          <short value="Natural language description of the naming system" />
          <definition value="A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc." />
          <comment value="This description can be used to capture details such as why the naming system 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 naming system 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="1" />
          <type>
            <code value="markdown" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.useContext" />
    <resource>
      <DataElement>
        <id value="NamingSystem.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.useContext">
          <path value="NamingSystem.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate naming system instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.jurisdiction" />
    <resource>
      <DataElement>
        <id value="NamingSystem.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.jurisdiction">
          <path value="NamingSystem.jurisdiction" />
          <short value="Intended jurisdiction for naming system (if applicable)" />
          <definition value="A legal or geographic region in which the naming system is intended to be used." />
          <comment value="It may be possible for the naming system to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.usage" />
    <resource>
      <DataElement>
        <id value="NamingSystem.usage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.usage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.usage">
          <path value="NamingSystem.usage" />
          <short value="How/where is it used" />
          <definition value="Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId" />
    <resource>
      <DataElement>
        <id value="NamingSystem.uniqueId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.uniqueId">
          <path value="NamingSystem.uniqueId" />
          <short value="Unique identifiers used for system" />
          <definition value="Indicates how the system may be identified when referenced in electronic exchange." />
          <comment value="Multiple identifiers may exist, either due to duplicate registration, regional rules, needs of different communication technologies, etc." />
          <min value="1" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.type" />
    <resource>
      <DataElement>
        <id value="NamingSystem.uniqueId.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.uniqueId.type">
          <path value="NamingSystem.uniqueId.type" />
          <short value="oid | uuid | uri | other" />
          <definition value="Identifies the unique identifier scheme used for this particular identifier." />
          <comment value="Different identifier types may be used in different types of communications (OIDs for v3, URIs for FHIR, etc.).  Other includes RUIDs from v3, standard v2 code name strings, etc." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="NamingSystemIdentifierType" />
            </extension>
            <strength value="required" />
            <description value="Identifies the style of unique identifier used to identify a namespace." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/namingsystem-identifier-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.value" />
    <resource>
      <DataElement>
        <id value="NamingSystem.uniqueId.value" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.value" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.uniqueId.value">
          <path value="NamingSystem.uniqueId.value" />
          <short value="The unique identifier" />
          <definition value="The string that should be sent over the wire to identify the code system or identifier system." />
          <comment value="If the value is a URI intended for use as FHIR system identifier, the URI should not contain &quot;\&quot; or &quot;?&quot; or &quot;,&quot; since this makes escaping very difficult." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.preferred" />
    <resource>
      <DataElement>
        <id value="NamingSystem.uniqueId.preferred" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.preferred" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.uniqueId.preferred">
          <path value="NamingSystem.uniqueId.preferred" />
          <short value="Is this the id that should be used for this type" />
          <definition value="Indicates whether this identifier is the &quot;preferred&quot; identifier of this type." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <meaningWhenMissing value="If there are multiple ids, and one is labeled &quot;preferred&quot;, then the assumption is that the others are not preferred. In the absence of any id marked as preferred, no inference can be drawn" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.comment" />
    <resource>
      <DataElement>
        <id value="NamingSystem.uniqueId.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.uniqueId.comment">
          <path value="NamingSystem.uniqueId.comment" />
          <short value="Notes about identifier usage" />
          <definition value="Notes about the past or intended usage of this identifier." />
          <comment value="e.g. &quot;must be used in Germany&quot; or &quot;was initially published in error with this value&quot;." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.period" />
    <resource>
      <DataElement>
        <id value="NamingSystem.uniqueId.period" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.uniqueId.period" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.uniqueId.period">
          <path value="NamingSystem.uniqueId.period" />
          <short value="When is identifier valid?" />
          <definition value="Identifies the period of time over which this identifier is considered appropriate to refer to the naming system.  Outside of this window, the identifier might be non-deterministic." />
          <comment value="Within a registry, a given identifier should only be &quot;active&quot; for a single namespace at a time.  (Ideally, an identifier should only ever be associated with a single namespace across all time)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/NamingSystem.replacedBy" />
    <resource>
      <DataElement>
        <id value="NamingSystem.replacedBy" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/NamingSystem.replacedBy" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="NamingSystem.replacedBy">
          <path value="NamingSystem.replacedBy" />
          <short value="Use this instead" />
          <definition value="For naming systems that are retired, indicates the naming system that should be used in their place (if any)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/NamingSystem" />
          </type>
          <condition value="nsd-3" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Schedule" />
    <resource>
      <DataElement>
        <id value="Schedule" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Schedule" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Schedule">
          <path value="Schedule" />
          <short value="A container for slots of time that may be available for booking appointments" />
          <definition value="A container for slots of time that may be available for booking appointments." />
          <alias value="Availability" />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="ical" />
            <map value="BEGIN:VFREEBUSY  ???  END:VFREEBUSY (If your fhir server provides this information via calDAV, then you may want to include addressing information in a URL section, and with the search, a DTSTART and DTEND component can be included to indicate the range of time that has been covered in the collection of slots, where these overlap the resources period values. For all slots that reference this resource, include a FREEBUSY row for each slot)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.scheduling" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Schedule.identifier" />
    <resource>
      <DataElement>
        <id value="Schedule.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Schedule.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Schedule.identifier">
          <path value="Schedule.identifier" />
          <short value="External Ids for this item" />
          <definition value="External Ids for this item." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="ical" />
            <map value="UID" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Schedule.active" />
    <resource>
      <DataElement>
        <id value="Schedule.active" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Schedule.active" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Schedule.active">
          <path value="Schedule.active" />
          <short value="Whether this schedule is in active use" />
          <definition value="Whether this schedule record is in active use, or should not be used (such as was entered in error)." />
          <comment value="This element is labeled as a modifier because it may be used to mark that the resource was created in error." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <defaultValueBoolean value="true" />
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Schedule.serviceCategory" />
    <resource>
      <DataElement>
        <id value="Schedule.serviceCategory" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Schedule.serviceCategory" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Schedule.serviceCategory">
          <path value="Schedule.serviceCategory" />
          <short value="A broad categorisation of the service that is to be performed during this appointment" />
          <definition value="A broad categorisation of the service that is to be performed during this appointment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-category" />
            </extension>
            <strength value="example" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-category" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Schedule.serviceType" />
    <resource>
      <DataElement>
        <id value="Schedule.serviceType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Schedule.serviceType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Schedule.serviceType">
          <path value="Schedule.serviceType" />
          <short value="The specific service that is to be performed during this appointment" />
          <definition value="The specific service that is to be performed during this appointment." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-type" />
            </extension>
            <strength value="example" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="ical" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Schedule.specialty" />
    <resource>
      <DataElement>
        <id value="Schedule.specialty" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Schedule.specialty" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Schedule.specialty">
          <path value="Schedule.specialty" />
          <short value="The specialty of a practitioner that would be required to perform the service requested in this appointment" />
          <definition value="The specialty of a practitioner that would be required to perform the service requested in this appointment." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="specialty" />
            </extension>
            <strength value="preferred" />
            <description value="Additional details about where the content was created (e.g. clinical specialty)" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/c80-practice-codes" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Schedule.actor" />
    <resource>
      <DataElement>
        <id value="Schedule.actor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Schedule.actor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Schedule.actor">
          <path value="Schedule.actor" />
          <short value="The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, PractitionerRole, Device, Patient or RelatedPerson" />
          <definition value="The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, PractitionerRole, Device, Patient or RelatedPerson." />
          <comment value="The capacity to support multiple referenced resource types should be used in cases where the specific resources themselves cannot be scheduled without the other, and thus only make sense to the system exposing them as a group. Common examples of this are where the combination of a pracitioner and a room(location) are always required by a system." />
          <min value="1" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="ical" />
            <map value="ATTENDEE:MAILTO:john_public@host2.com This can be populated with a value from the referenced resource" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Schedule.planningHorizon" />
    <resource>
      <DataElement>
        <id value="Schedule.planningHorizon" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Schedule.planningHorizon" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Schedule.planningHorizon">
          <path value="Schedule.planningHorizon" />
          <short value="The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These  cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a &quot;template&quot; for planning outside these dates" />
          <definition value="The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These  cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a &quot;template&quot; for planning outside these dates." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="ical" />
            <map value="DTSTART:20131201T003000Z DTEND:2014030101T003000Z" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.planned" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Schedule.comment" />
    <resource>
      <DataElement>
        <id value="Schedule.comment" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Schedule.comment" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Schedule.comment">
          <path value="Schedule.comment" />
          <short value="Comments on the availability to describe any extended information. Such as custom constraints on the slots that may be associated" />
          <definition value="Comments on the availability to describe any extended information. Such as custom constraints on the slots that may be associated." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="ical" />
            <map value="COMMENT:(comment) If there is no comment, then the line can be excluded from the iCalendar entry" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery">
          <path value="SupplyDelivery" />
          <short value="Delivery of bulk Supplies" />
          <definition value="Record of delivery of what is supplied." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Event" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value="Supply[moodCode=RQO]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="workflow.order" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.identifier" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.identifier">
          <path value="SupplyDelivery.identifier" />
          <short value="External identifier" />
          <definition value="Identifier assigned by the dispensing facility when the item(s) is dispensed." />
          <comment value="This is assigned by the dispenser, and used to refer to this order in other external standards." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.identifier" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.basedOn" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.basedOn" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.basedOn" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.basedOn">
          <path value="SupplyDelivery.basedOn" />
          <short value="Fulfills plan, proposal or order" />
          <definition value="A plan, proposal or order that is fulfilled in whole or in part by this event." />
          <requirements value="Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/SupplyRequest" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.basedOn" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="ORC in proximity to EVN segment" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".outboundRelationship[typeCode=FLFS].target" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.partOf" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.partOf">
          <path value="SupplyDelivery.partOf" />
          <short value="Part of referenced event" />
          <definition value="A larger event of which this particular event is a component or step." />
          <comment value="Not to be used to link an event to an Encounter - use Event.context for that.&#xD;&#xD;[The allowed reference resources may be adjusted as appropriate for the event resource]." />
          <requirements value="E.g. Drug administration as part of a procedure, procedure as part of observation, etc." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/SupplyDelivery" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.partOf" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.status" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.status">
          <path value="SupplyDelivery.status" />
          <short value="in-progress | completed | abandoned | entered-in-error" />
          <definition value="A code specifying the state of the dispense event." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SupplyDeliveryStatus" />
            </extension>
            <strength value="required" />
            <description value="Status of the supply delivery." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/supplydelivery-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.status" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode, also existence of fulfillment events" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.patient" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.patient">
          <path value="SupplyDelivery.patient" />
          <short value="Patient for whom the item is supplied" />
          <definition value="A link to a resource representing the person whom the delivered item is for." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.subject.reference(Patient)" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=SBJ].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.type" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.type">
          <path value="SupplyDelivery.type" />
          <short value="Category of dispense event" />
          <definition value="Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SupplyDeliveryType" />
            </extension>
            <strength value="required" />
            <description value="The type of supply dispense." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/supplydelivery-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Event.code" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.suppliedItem" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.suppliedItem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.suppliedItem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.suppliedItem">
          <path value="SupplyDelivery.suppliedItem" />
          <short value="The item that is delivered or supplied" />
          <definition value="The item that is being delivered or has been supplied." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRD].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.suppliedItem.quantity" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.suppliedItem.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.suppliedItem.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.suppliedItem.quantity">
          <path value="SupplyDelivery.suppliedItem.quantity" />
          <short value="Amount dispensed" />
          <definition value="The amount of supply that has been dispensed. Includes unit of measure." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".quantity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.suppliedItem.itemX" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.suppliedItem.itemX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.suppliedItem.itemX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.suppliedItem.item[x]">
          <path value="SupplyDelivery.suppliedItem.item[x]" />
          <short value="Medication, Substance, or Device supplied" />
          <definition value="Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a code that identifies the item from a known list." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SupplyDeliveryItem" />
            </extension>
            <strength value="example" />
            <description value="The item that was delivered." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/supply-item" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PRD].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.occurrenceX" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.occurrenceX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.occurrenceX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.occurrence[x]">
          <path value="SupplyDelivery.occurrence[x]" />
          <short value="When event occurred" />
          <definition value="The date or time(s) the activity occurred." />
          <comment value="[The list of types may be constrained as appropriate for the type of event]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Timing" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Event.occurrence[x]" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Varies by domain" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".effectiveTime" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.supplier" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.supplier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.supplier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.supplier">
          <path value="SupplyDelivery.supplier" />
          <short value="Dispenser" />
          <definition value="The individual responsible for dispensing the medication, supplier or device." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Event.performer" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=PFM].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.destination" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.destination" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.destination" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.destination">
          <path value="SupplyDelivery.destination" />
          <short value="Where the Supply was sent" />
          <definition value="Identification of the facility/location where the Supply was shipped to, as part of the dispense event." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=DST].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/SupplyDelivery.receiver" />
    <resource>
      <DataElement>
        <id value="SupplyDelivery.receiver" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/SupplyDelivery.receiver" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="SupplyDelivery.receiver">
          <path value="SupplyDelivery.receiver" />
          <short value="Who collected the Supply" />
          <definition value="Identifies the person who picked up the Supply." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".participation[typeCode=RCV].role" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression">
          <path value="ClinicalImpression" />
          <short value="A clinical assessment performed when planning treatments and management strategies for a patient" />
          <definition value="A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter,  but this varies greatly depending on the clinical workflow. This resource is called &quot;ClinicalImpression&quot; rather than &quot;ClinicalAssessment&quot; to avoid confusion with the recording of assessment tools such as Apgar score." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="v2" />
            <map value="Partial mapping for problem evaluation" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="clinical.general" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.identifier" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.identifier">
          <path value="ClinicalImpression.identifier" />
          <short value="Business identifier" />
          <definition value="A unique identifier assigned to the clinical impression that remains consistent regardless of what server the impression is stored on." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.status" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.status">
          <path value="ClinicalImpression.status" />
          <short value="draft | completed | entered-in-error" />
          <definition value="Identifies the workflow status of the assessment." />
          <comment value="This element is labeled as a modifier because the status contains the code entered-in-error that marks the clinical impression as not currently valid." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClinicalImpressionStatus" />
            </extension>
            <strength value="required" />
            <description value="The workflow state of a clinical impression." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-impression-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PRB-14" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.code" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.code">
          <path value="ClinicalImpression.code" />
          <short value="Kind of assessment performed" />
          <definition value="Categorizes the type of clinical assessment performed." />
          <comment value="This is present as a place-holder only and may be removed based on feedback/work group opinion." />
          <alias value="type" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClinicalImpressionCode" />
            </extension>
            <strength value="example" />
            <description value="Identifies categories of clinical impressions.  This is a place-holder only.  It may be removed" />
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="what" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.description" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.description">
          <path value="ClinicalImpression.description" />
          <short value="Why/how the assessment was performed" />
          <definition value="A summary of the context and/or cause of the assessment - why / where was it performed, and what patient events/status prompted it." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.subject" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.subject" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.subject" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.subject">
          <path value="ClinicalImpression.subject" />
          <short value="Patient or group assessed" />
          <definition value="The patient or group of individuals assessed as part of this record." />
          <requirements value="Group is typically for veterinary and/or public health purposes." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PID-3" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.context" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.context" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.context" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.context">
          <path value="ClinicalImpression.context" />
          <short value="Encounter or Episode created from" />
          <definition value="The encounter or episode of care this impression was created as part of." />
          <alias value="encounter" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.effectiveX" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.effectiveX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.effectiveX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.effective[x]">
          <path value="ClinicalImpression.effective[x]" />
          <short value="Time of assessment" />
          <definition value="The point in time or period over which the subject was assessed." />
          <comment value="This SHOULD be accurate to at least the minute, though some assessments only have a known date." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRB-2" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.date" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.date">
          <path value="ClinicalImpression.date" />
          <short value="When the assessment was documented" />
          <definition value="Indicates when the documentation of the assessment was complete." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.assessor" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.assessor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.assessor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.assessor">
          <path value="ClinicalImpression.assessor" />
          <short value="The clinician performing the assessment" />
          <definition value="The clinician performing the assessment." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="ROL-4" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.previous" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.previous" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.previous" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.previous">
          <path value="ClinicalImpression.previous" />
          <short value="Reference to last assessment" />
          <definition value="A reference to the last assesment that was conducted bon this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes." />
          <comment value="It is always likely that multiple previous assessments exist for a patient. The point of quoting a previous assessment is that this assessment is relative to it (see resolved)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ClinicalImpression" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.problem" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.problem" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.problem" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.problem">
          <path value="ClinicalImpression.problem" />
          <short value="Relevant impressions of patient state" />
          <definition value="This a list of the relevant problems/conditions for a patient." />
          <comment value="e.g. The patient is a pregnant, and cardiac congestive failure, ‎Adenocarcinoma, and is allergic to penicillin." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="v2" />
            <map value="PRB-3 / IAM-7" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="why" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.investigation" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.investigation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.investigation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.investigation">
          <path value="ClinicalImpression.investigation" />
          <short value="One or more sets of investigations (signs, symptions, etc.)" />
          <definition value="One or more sets of investigations (signs, symptions, etc.). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.investigation.code" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.investigation.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.investigation.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.investigation.code">
          <path value="ClinicalImpression.investigation.code" />
          <short value="A name/code for the set" />
          <definition value="A name/code for the group (&quot;set&quot;) of investigations. Typically, this will be something like &quot;signs&quot;, &quot;symptoms&quot;, &quot;clinical&quot;, &quot;diagnostic&quot;, but the list is not constrained, and others such groups such as (exposure|family|travel|nutitirional) history may be used." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="InvestigationGroupType" />
            </extension>
            <strength value="example" />
            <description value="A name/code for a set of investigations." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/investigation-sets" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.investigation.item" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.investigation.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.investigation.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.investigation.item">
          <path value="ClinicalImpression.investigation.item" />
          <short value="Record of a specific investigation" />
          <definition value="A record of a specific investigation that was undertaken." />
          <comment value="Most investigations are observations of one kind of or another but some other specific types of data collection resources can also be used." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RiskAssessment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX-21" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.protocol" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.protocol" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.protocol" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.protocol">
          <path value="ClinicalImpression.protocol" />
          <short value="Clinical Protocol followed" />
          <definition value="Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="uri" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.summary" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.summary" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.summary" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.summary">
          <path value="ClinicalImpression.summary" />
          <short value="Summary of the assessment" />
          <definition value="A text summary of the investigations and the diagnosis." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="v2" />
            <map value="OBX" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.finding" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.finding" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.finding" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.finding">
          <path value="ClinicalImpression.finding" />
          <short value="Possible or likely findings and diagnoses" />
          <definition value="Specific findings or diagnoses that was considered likely or relevant to ongoing treatment." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.finding.itemX" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.finding.itemX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.finding.itemX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.finding.item[x]">
          <path value="ClinicalImpression.finding.item[x]" />
          <short value="What was found" />
          <definition value="Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ConditionKind" />
            </extension>
            <strength value="example" />
            <description value="Identification of the Condition or diagnosis." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-code" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="OBX" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.finding.basis" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.finding.basis" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.finding.basis" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.finding.basis">
          <path value="ClinicalImpression.finding.basis" />
          <short value="Which investigations support finding" />
          <definition value="Which investigations support finding or diagnosis." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.prognosisCodeableConcept" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.prognosisCodeableConcept" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.prognosisCodeableConcept" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.prognosisCodeableConcept">
          <path value="ClinicalImpression.prognosisCodeableConcept" />
          <short value="Estimate of likely outcome" />
          <definition value="Estimate of likely outcome." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClinicalImpressionPrognosis" />
            </extension>
            <strength value="example" />
            <description value="Prognosis or outlook findings" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="v2" />
            <map value="PRB-22" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.prognosisReference" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.prognosisReference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.prognosisReference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.prognosisReference">
          <path value="ClinicalImpression.prognosisReference" />
          <short value="RiskAssessment expressing likely outcome" />
          <definition value="RiskAssessment expressing likely outcome." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RiskAssessment" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.action" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.action">
          <path value="ClinicalImpression.action" />
          <short value="Action taken as part of assessment procedure" />
          <definition value="Action taken as part of assessment procedure." />
          <comment value="Actions recommended as a result of the impression should not be captured using the 'action' element." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Appointment" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/ClinicalImpression.note" />
    <resource>
      <DataElement>
        <id value="ClinicalImpression.note" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/ClinicalImpression.note" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="ClinicalImpression.note">
          <path value="ClinicalImpression.note" />
          <short value="Comments made about the ClinicalImpression" />
          <definition value="Commentary about the impression, typically recorded after the impression itself was made, though supplemental notes by the original author could also appear." />
          <comment value="Don't use this element for content that should more properly appear as one of the specific elements of the impression." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Annotation" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition" />
    <resource>
      <DataElement>
        <id value="PlanDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition">
          <path value="PlanDefinition" />
          <short value="The definition of a plan for a series of actions, independent of any specific patient or context" />
          <definition value="This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.url" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.url" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.url" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.url">
          <path value="PlanDefinition.url" />
          <short value="Logical URI to reference this plan definition (globally unique)" />
          <definition value="An absolute URI that is used to identify this plan 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 plan definition is (or will be) published. The URL SHOULD include the major version of the plan 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.  Multiple instances may share the same url if they have a distinct version." />
          <requirements value="Allows the plan definition to be referenced by a single globally unique identifier." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="uri" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.url" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.identifier" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.identifier">
          <path value="PlanDefinition.identifier" />
          <short value="Additional identifier for the plan definition" />
          <definition value="A formal identifier that is used to identify this plan definition when it is represented in other formats, or referenced in a specification, model, design or an instance." />
          <comment value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this plan definition outside of FHIR, where it is not possible to use the logical URI." />
          <requirements value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.version" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.version" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.version" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.version">
          <path value="PlanDefinition.version" />
          <short value="Business version of the plan definition" />
          <definition value="The identifier that is used to identify this version of the plan definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the plan definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts." />
          <comment value="There may be different plan definition instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a refrence to a particular business version of the plan definition with the format [url]|[version]." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.version" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id.version" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.name" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.name">
          <path value="PlanDefinition.name" />
          <short value="Name for this plan definition (computer friendly)" />
          <definition value="A natural language name identifying the plan 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 that it is computable friendly." />
          <requirements value="Support human navigation and code generation." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.title" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.title">
          <path value="PlanDefinition.title" />
          <short value="Name for this plan definition (human friendly)" />
          <definition value="A short, descriptive, user-friendly title for the plan definition." />
          <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.type" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.type">
          <path value="PlanDefinition.type" />
          <short value="order-set | protocol | eca-rule" />
          <definition value="The type of asset the plan definition represents, e.g. an order set, protocol, or event-condition-action rule." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PlanDefinitionType" />
            </extension>
            <strength value="extensible" />
            <description value="The type of PlanDefinition" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/plan-definition-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.status" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.status">
          <path value="PlanDefinition.status" />
          <short value="draft | active | retired | unknown" />
          <definition value="The status of this plan definition. Enables tracking the life-cycle of the content." />
          <comment value="Allows filtering of plan definitions that are appropriate for use vs. not.  &#xA;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired plan definition without due consideration." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <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="Definition.status (different ValueSet)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.experimental" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.experimental" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.experimental" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.experimental">
          <path value="PlanDefinition.experimental" />
          <short value="For testing purposes, not real usage" />
          <definition value="A boolean value to indicate that this plan 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 plan definition that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental plan definition in production." />
          <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level plan definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.experimental" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.date" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.date">
          <path value="PlanDefinition.date" />
          <short value="Date this was last changed" />
          <definition value="The date  (and optionally time) when the plan definition was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the plan 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 plan definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource." />
          <alias value="Revision Date" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.date" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.publisher" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.publisher" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.publisher" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.publisher">
          <path value="PlanDefinition.publisher" />
          <short value="Name of the publisher (organization or individual)" />
          <definition value="The name of the individual or organization that published the plan definition." />
          <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the plan definition is the organization or individual primarily responsible for the maintenance and upkeep of the plan 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 plan definition. This item SHOULD be populated unless the information is available from context." />
          <requirements value="Helps establish the &quot;authority/credibility&quot; of the plan definition.  May also allow for contact." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.publisher (as string instead of Reference)" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.witness" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.description" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.description">
          <path value="PlanDefinition.description" />
          <short value="Natural language description of the plan definition" />
          <definition value="A free text natural language description of the plan definition from a consumer's perspective." />
          <comment value="This description can be used to capture details such as why the plan 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 plan 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="1" />
          <type>
            <code value="markdown" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.purpose" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.purpose" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.purpose" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.purpose">
          <path value="PlanDefinition.purpose" />
          <short value="Why this plan definition is defined" />
          <definition value="Explaination of why this plan definition is needed and why it has been designed as it has." />
          <comment value="This element does not describe the usage of the plan definition Instead  it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this plan definition." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.usage" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.usage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.usage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.usage">
          <path value="PlanDefinition.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="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.approvalDate" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.approvalDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.approvalDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.approvalDate">
          <path value="PlanDefinition.approvalDate" />
          <short value="When the plan definition was approved by publisher" />
          <definition value="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." />
          <comment value="The 'date' element may be more recent than the approval date because of minor changes / editorial corrections." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.approvalDate" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.lastReviewDate" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.lastReviewDate" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.lastReviewDate" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.lastReviewDate">
          <path value="PlanDefinition.lastReviewDate" />
          <short value="When the plan definition was last reviewed" />
          <definition value="The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date." />
          <comment value="If specified, this is usually after the approval date." />
          <requirements value="Gives a sense of how &quot;current&quot; the content is.  Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.lastReviewDate" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.effectivePeriod" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.effectivePeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.effectivePeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.effectivePeriod">
          <path value="PlanDefinition.effectivePeriod" />
          <short value="When the plan definition is expected to be used" />
          <definition value="The period during which the plan definition content was or is planned to be in active use." />
          <comment value="The effective period for a plan definition  determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015." />
          <requirements value="Allows establishing a transition before a resource comes into effect and also allows for a sunsetting  process when new versions of a the plan definition are or are expected to be used instead." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.effectivePeriod" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.useContext" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.useContext" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.useContext" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.useContext">
          <path value="PlanDefinition.useContext" />
          <short value="Context the content is intended to support" />
          <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate plan definition instances." />
          <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply." />
          <requirements value="Assist in searching for appropriate content." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="UsageContext" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.useContext" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.jurisdiction" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.jurisdiction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.jurisdiction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.jurisdiction">
          <path value="PlanDefinition.jurisdiction" />
          <short value="Intended jurisdiction for plan definition (if applicable)" />
          <definition value="A legal or geographic region in which the plan definition is intended to be used." />
          <comment value="It may be possible for the plan definition to be used in jurisdictions other than those for which it was originally designed or intended." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.topic" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.topic" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.topic" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.topic">
          <path value="PlanDefinition.topic" />
          <short value="E.g. Education, Treatment, Assessment, etc" />
          <definition value="Descriptive topics related to the content of the plan definition. Topics provide a high-level categorization of the definition 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="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <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>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.subjectCodableConcept" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.contributor" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.contributor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.contributor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.contributor">
          <path value="PlanDefinition.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 asset." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Contributor" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.contact" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.contact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.contact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.contact">
          <path value="PlanDefinition.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="*" />
          <type>
            <code value="ContactDetail" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="workflow" />
            <map value="Definition.contact" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.copyright" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.copyright" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.copyright" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.copyright">
          <path value="PlanDefinition.copyright" />
          <short value="Use and/or publishing restrictions" />
          <definition value="A copyright statement relating to the plan definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the plan definition." />
          <requirements value="Consumers must be able to determine any legal restrictions on the use of the plan definition and/or its content." />
          <alias value="License" />
          <alias value="Restrictions" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="markdown" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.copyright" />
          </mapping>
          <mapping>
            <identity value="objimpl" />
            <map value="no-gen-base" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.relatedArtifact" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.relatedArtifact" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.relatedArtifact" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.relatedArtifact">
          <path value="PlanDefinition.relatedArtifact" />
          <short value="Related artifacts for the asset" />
          <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="*" />
          <type>
            <code value="RelatedArtifact" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.library" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.library" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.library" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.library">
          <path value="PlanDefinition.library" />
          <short value="Logic used by the plan definition" />
          <definition value="A reference to a Library resource containing any formal logic used by the plan definition." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Library" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal">
          <path value="PlanDefinition.goal" />
          <short value="What the plan is trying to accomplish" />
          <definition value="Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc." />
          <requirements value="Goal information needs to be captured for order sets, protocols, and care plan definitions to better describe the objectives of the protocol activities and to guide the creation of specific goals within the derived care plans and orders." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.category" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.category">
          <path value="PlanDefinition.goal.category" />
          <short value="E.g. Treatment, dietary, behavioral, etc" />
          <definition value="Indicates a category the goal falls within." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalCategory" />
            </extension>
            <strength value="example" />
            <description value="Example codes for grouping goals for filtering or presentation" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/goal-category" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.description" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.description">
          <path value="PlanDefinition.goal.description" />
          <short value="Code or text describing the goal" />
          <definition value="Human-readable and/or coded description of a specific desired objective of care, such as &quot;control blood pressure&quot; or &quot;negotiate an obstacle course&quot; or &quot;dance with child at wedding&quot;." />
          <comment value="If no code is available, use CodeableConcept.text." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalDescription" />
            </extension>
            <strength value="example" />
            <description value="Describes goals that can be achieved" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/clinical-findings" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.priority" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.priority">
          <path value="PlanDefinition.goal.priority" />
          <short value="high-priority | medium-priority | low-priority" />
          <definition value="Identifies the expected level of importance associated with reaching/sustaining the defined goal." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalPriority" />
            </extension>
            <strength value="preferred" />
            <description value="Indicates the level of importance associated with reaching or sustaining a goal" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/goal-priority" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.start" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.start" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.start" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.start">
          <path value="PlanDefinition.goal.start" />
          <short value="When goal pursuit begins" />
          <definition value="The event after which the goal should begin being pursued." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalStartEvent" />
            </extension>
            <strength value="example" />
            <description value="Identifies the types of events that might trigger the start of a goal" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/goal-start-event" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.addresses" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.addresses" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.addresses" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.addresses">
          <path value="PlanDefinition.goal.addresses" />
          <short value="What does the goal address" />
          <definition value="Identifies problems, conditions, issues, or concerns the goal is intended to address." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalAddresses" />
            </extension>
            <strength value="example" />
            <description value="Identifies problems, conditions, issues, or concerns that goals may address" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/condition-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.documentation" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.documentation">
          <path value="PlanDefinition.goal.documentation" />
          <short value="Supporting documentation for the goal" />
          <definition value="Didactic or other informational resources associated with the goal that provide further supporting information about the goal. Information resources can include inline text commentary and links to web resources." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="RelatedArtifact" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.target" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.target" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.target" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.target">
          <path value="PlanDefinition.goal.target" />
          <short value="Target outcome for the goal" />
          <definition value="Indicates what should be done and within what timeframe." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.target.measure" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.target.measure" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.target.measure" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.target.measure">
          <path value="PlanDefinition.goal.target.measure" />
          <short value="The parameter whose value is to be tracked" />
          <definition value="The parameter whose value is to be tracked, e.g. body weigth, blood pressure, or hemoglobin A1c level." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="GoalTargetMeasure" />
            </extension>
            <strength value="example" />
            <description value="Identifies types of parameters that can be tracked to determine goal achievement" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/observation-codes" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.target.detailX" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.target.detailX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.target.detailX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.target.detail[x]">
          <path value="PlanDefinition.goal.target.detail[x]" />
          <short value="The target value to be achieved" />
          <definition value="The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. Whan a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="CodeableConcept" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.target.due" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.goal.target.due" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.goal.target.due" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.goal.target.due">
          <path value="PlanDefinition.goal.target.due" />
          <short value="Reach goal within" />
          <definition value="Indicates the timeframe after the start of the goal in which the goal should be met." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Duration" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action">
          <path value="PlanDefinition.action" />
          <short value="Action defined by the plan" />
          <definition value="An action to be taken as part of the plan." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="workflow" />
            <map value="Is a contained Definition" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.label" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.label" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.label" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.label">
          <path value="PlanDefinition.action.label" />
          <short value="User-visible label for the action (e.g. 1. or A.)" />
          <definition value="A user-visible label for the action." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.title" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.title" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.title" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.title">
          <path value="PlanDefinition.action.title" />
          <short value="User-visible title" />
          <definition value="The title of the action displayed to a user." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.title" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.description" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.description">
          <path value="PlanDefinition.action.description" />
          <short value="Short description of the action" />
          <definition value="A short description of the action used to provide a summary to display to the user." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.textEquivalent" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.textEquivalent" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.textEquivalent" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.textEquivalent">
          <path value="PlanDefinition.action.textEquivalent" />
          <short value="Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system" />
          <definition value="A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that may not be capable of interpreting it dynamically." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.description" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.code" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.code">
          <path value="PlanDefinition.action.code" />
          <short value="Code representing the meaning of the action or sub-actions" />
          <definition value="A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a the section of a documentation template." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.reason" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.reason">
          <path value="PlanDefinition.action.reason" />
          <short value="Why the action should be performed" />
          <definition value="A description of why this action is necessary or appropriate." />
          <comment value="This is different than the clinical evidence documentation, it's an actual business description of the reason for performing the action." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.documentation" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.documentation" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.documentation" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.documentation">
          <path value="PlanDefinition.action.documentation" />
          <short value="Supporting documentation for the intended performer of the action" />
          <definition value="Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="RelatedArtifact" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.goalId" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.goalId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.goalId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.goalId">
          <path value="PlanDefinition.action.goalId" />
          <short value="What goals this action supports" />
          <definition value="Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.triggerDefinition" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.triggerDefinition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.triggerDefinition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.triggerDefinition">
          <path value="PlanDefinition.action.triggerDefinition" />
          <short value="When the action should be triggered" />
          <definition value="A description of when the action should be triggered." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="TriggerDefinition" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.condition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.condition">
          <path value="PlanDefinition.action.condition" />
          <short value="Whether or not the action is applicable" />
          <definition value="An expression that describes applicability criteria, or start/stop conditions for the action." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition.kind" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.condition.kind" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition.kind" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.condition.kind">
          <path value="PlanDefinition.action.condition.kind" />
          <short value="applicability | start | stop" />
          <definition value="The kind of condition." />
          <comment value="Applicability criteria are used to determine immediate applicability when a plan definition is applied to a given context. Start and stop criteria are carried through application and used to describe when enter/exit criteria for an action." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionConditionKind" />
            </extension>
            <strength value="required" />
            <description value="Defines the kinds of conditions that can appear on actions" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-condition-kind" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition.description" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.condition.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.condition.description">
          <path value="PlanDefinition.action.condition.description" />
          <short value="Natural language description of the condition" />
          <definition value="A brief, natural language description of the condition that effectively communicates the intended semantics." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition.language" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.condition.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.condition.language">
          <path value="PlanDefinition.action.condition.language" />
          <short value="Language of the expression" />
          <definition value="The media type of the language for the expression." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition.expression" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.condition.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.condition.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.condition.expression">
          <path value="PlanDefinition.action.condition.expression" />
          <short value="Boolean-valued expression" />
          <definition value="An expression that returns true or false, indicating whether or not the condition is satisfied." />
          <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" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.input" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.input" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.input" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.input">
          <path value="PlanDefinition.action.input" />
          <short value="Input data requirements" />
          <definition value="Defines input data requirements for the action." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="DataRequirement" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.output" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.output" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.output" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.output">
          <path value="PlanDefinition.action.output" />
          <short value="Output data definition" />
          <definition value="Defines the outputs of the action, if any." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="DataRequirement" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.relatedAction" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.relatedAction" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.relatedAction" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.relatedAction">
          <path value="PlanDefinition.action.relatedAction" />
          <short value="Relationship to another action" />
          <definition value="A relationship to another action such as &quot;before&quot; or &quot;30-60 minutes after start of&quot;." />
          <comment value="When an action depends on multiple actions, the meaning is that all actions are dependencies, rather than that any of the actions are a dependency." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.relatedAction.actionId" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.relatedAction.actionId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.relatedAction.actionId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.relatedAction.actionId">
          <path value="PlanDefinition.action.relatedAction.actionId" />
          <short value="What action is this related to" />
          <definition value="The element id of the related action." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="id" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.relatedAction.relationship" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.relatedAction.relationship" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.relatedAction.relationship" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.relatedAction.relationship">
          <path value="PlanDefinition.action.relatedAction.relationship" />
          <short value="before-start | before | before-end | concurrent-with-start | concurrent | concurrent-with-end | after-start | after | after-end" />
          <definition value="The relationship of this action to the related action." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionRelationshipType" />
            </extension>
            <strength value="required" />
            <description value="Defines the types of relationships between actions" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-relationship-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.relatedAction.offsetX" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.relatedAction.offsetX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.relatedAction.offsetX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.relatedAction.offset[x]">
          <path value="PlanDefinition.action.relatedAction.offset[x]" />
          <short value="Time offset for the relationship" />
          <definition value="A duration or range of durations to apply to the relationship. For example, 30-60 minutes before." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="Range" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.timingX" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.timingX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.timingX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.timing[x]">
          <path value="PlanDefinition.action.timing[x]" />
          <short value="When the action should take place" />
          <definition value="An optional value describing when the action should be performed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <type>
            <code value="Duration" />
          </type>
          <type>
            <code value="Range" />
          </type>
          <type>
            <code value="Timing" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.participant" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.participant" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.participant" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.participant">
          <path value="PlanDefinition.action.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="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.participant.type" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.participant.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.participant.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.participant.type">
          <path value="PlanDefinition.action.participant.type" />
          <short value="patient | practitioner | related-person" />
          <definition value="The type of participant in the action." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionParticipantType" />
            </extension>
            <strength value="required" />
            <description value="The type of participant for the action" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-participant-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.participant.role" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.participant.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.participant.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.participant.role">
          <path value="PlanDefinition.action.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" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionParticipantRole" />
            </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>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.type" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.type">
          <path value="PlanDefinition.action.type" />
          <short value="create | update | remove | fire-event" />
          <definition value="The type of action to perform (create, update, remove)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionType" />
            </extension>
            <strength value="required" />
            <description value="The type of action to be performed" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.groupingBehavior" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.groupingBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.groupingBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.groupingBehavior">
          <path value="PlanDefinition.action.groupingBehavior" />
          <short value="visual-group | logical-group | sentence-group" />
          <definition value="Defines the grouping behavior for the action and its children." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionGroupingBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines organization behavior of a group" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-grouping-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.selectionBehavior" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.selectionBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.selectionBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.selectionBehavior">
          <path value="PlanDefinition.action.selectionBehavior" />
          <short value="any | all | all-or-none | exactly-one | at-most-one | one-or-more" />
          <definition value="Defines the selection behavior for the action and its children." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionSelectionBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines selection behavior of a group" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-selection-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.requiredBehavior" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.requiredBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.requiredBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.requiredBehavior">
          <path value="PlanDefinition.action.requiredBehavior" />
          <short value="must | could | must-unless-documented" />
          <definition value="Defines the requiredness behavior for the action." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionRequiredBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines requiredness behavior for selecting an action or an action group" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-required-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.precheckBehavior" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.precheckBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.precheckBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.precheckBehavior">
          <path value="PlanDefinition.action.precheckBehavior" />
          <short value="yes | no" />
          <definition value="Defines whether the action should usually be preselected." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionPrecheckBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines selection frequency behavior for an action or group" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-precheck-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.cardinalityBehavior" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.cardinalityBehavior" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.cardinalityBehavior" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.cardinalityBehavior">
          <path value="PlanDefinition.action.cardinalityBehavior" />
          <short value="single | multiple" />
          <definition value="Defines whether the action can be selected multiple times." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ActionCardinalityBehavior" />
            </extension>
            <strength value="required" />
            <description value="Defines behavior for an action or a group for how many times that item may be repeated" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/action-cardinality-behavior" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.definition" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.definition" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.definition" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.definition">
          <path value="PlanDefinition.action.definition" />
          <short value="Description of the activity to be performed" />
          <definition value="A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken." />
          <comment value="Note that the definition is optional, and if no definition is specified, a dynamicValue with a root (~) path can be used to define the entire resource dynamically." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Definition.definition" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.transform" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.transform" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.transform" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.transform">
          <path value="PlanDefinition.action.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="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureMap" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.dynamicValue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.dynamicValue">
          <path value="PlanDefinition.action.dynamicValue" />
          <short value="Dynamic aspects of the definition" />
          <definition value="Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue.description" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.dynamicValue.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.dynamicValue.description">
          <path value="PlanDefinition.action.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" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue.path" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.dynamicValue.path" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue.path" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.dynamicValue.path">
          <path value="PlanDefinition.action.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" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue.language" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.dynamicValue.language" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue.language" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.dynamicValue.language">
          <path value="PlanDefinition.action.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" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue.expression" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.dynamicValue.expression" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.dynamicValue.expression" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.dynamicValue.expression">
          <path value="PlanDefinition.action.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" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/PlanDefinition.action.action" />
    <resource>
      <DataElement>
        <id value="PlanDefinition.action.action" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/PlanDefinition.action.action" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="PlanDefinition.action.action">
          <path value="PlanDefinition.action.action" />
          <short value="A sub-action" />
          <definition value="Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub-actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition." />
          <min value="0" />
          <max value="*" />
          <contentReference value="#PlanDefinition.action" />
          <mapping>
            <identity value="workflow" />
            <map value="InverseRelationship of Definition.partOf" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim" />
    <resource>
      <DataElement>
        <id value="Claim" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim">
          <path value="Claim" />
          <short value="Claim, Pre-determination or Pre-authorization" />
          <definition value="A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="workflow" />
            <map value="Request" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="financial.billing" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.identifier" />
    <resource>
      <DataElement>
        <id value="Claim.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.identifier">
          <path value="Claim.identifier" />
          <short value="Claim number" />
          <definition value="The business identifier for the instance: claim number, pre-determination or pre-authorization number." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.identifier" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.status" />
    <resource>
      <DataElement>
        <id value="Claim.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.status">
          <path value="Claim.status" />
          <short value="active | cancelled | draft | entered-in-error" />
          <definition value="The status of the resource instance." />
          <comment value="This element is labeled as a modifier because the status contains the code entered-in-error that marks the claim as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimStatus" />
            </extension>
            <strength value="required" />
            <description value="A code specifying the state of the resource instance." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fm-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.status" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.type" />
    <resource>
      <DataElement>
        <id value="Claim.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.type">
          <path value="Claim.type" />
          <short value="Type or discipline" />
          <definition value="The category of claim, eg, oral, pharmacy, vision, insitutional, professional." />
          <comment value="Affects which fields and value sets are used." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimType" />
            </extension>
            <strength value="required" />
            <description value="The type or discipline-style of the claim" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.subType" />
    <resource>
      <DataElement>
        <id value="Claim.subType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.subType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.subType">
          <path value="Claim.subType" />
          <short value="Finer grained claim type information" />
          <definition value="A finer grained suite of claim subtype codes which may convey Inpatient vs Outpatient and/or a specialty service. In the US the BillType." />
          <comment value="This may contain the local bill type codes such as the US UB-04 bill type code." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimSubType" />
            </extension>
            <strength value="example" />
            <description value="A more granular claim typecode" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-subtype" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.use" />
    <resource>
      <DataElement>
        <id value="Claim.use" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.use" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.use">
          <path value="Claim.use" />
          <short value="complete | proposed | exploratory | other" />
          <definition value="Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Use" />
            </extension>
            <strength value="required" />
            <description value="Complete, proposed, exploratory, other" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-use" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.patient" />
    <resource>
      <DataElement>
        <id value="Claim.patient" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.patient" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.patient">
          <path value="Claim.patient" />
          <short value="The subject of the Products and Services" />
          <definition value="Patient Resource." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.subject" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.focus" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.billablePeriod" />
    <resource>
      <DataElement>
        <id value="Claim.billablePeriod" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.billablePeriod" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.billablePeriod">
          <path value="Claim.billablePeriod" />
          <short value="Period for charge submission" />
          <definition value="The billable period for which charges are being submitted." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.created" />
    <resource>
      <DataElement>
        <id value="Claim.created" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.created" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.created">
          <path value="Claim.created" />
          <short value="Creation date" />
          <definition value="The date when the enclosed suite of services were performed or completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.authoredOn" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="when.recorded" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.enterer" />
    <resource>
      <DataElement>
        <id value="Claim.enterer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.enterer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.enterer">
          <path value="Claim.enterer" />
          <short value="Author" />
          <definition value="Person who created the invoice/claim/pre-determination or pre-authorization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.author" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.insurer" />
    <resource>
      <DataElement>
        <id value="Claim.insurer" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.insurer" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.insurer">
          <path value="Claim.insurer" />
          <short value="Target" />
          <definition value="The Insurer who is target of the request." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.performer" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.provider" />
    <resource>
      <DataElement>
        <id value="Claim.provider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.provider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.provider">
          <path value="Claim.provider" />
          <short value="Responsible provider" />
          <definition value="The provider which is responsible for the bill, claim pre-determination, pre-authorization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.agent" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.organization" />
    <resource>
      <DataElement>
        <id value="Claim.organization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.organization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.organization">
          <path value="Claim.organization" />
          <short value="Responsible organization" />
          <definition value="The organization which is responsible for the bill, claim pre-determination, pre-authorization." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.requester.onBehalfOf" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="who.source" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.priority" />
    <resource>
      <DataElement>
        <id value="Claim.priority" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.priority" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.priority">
          <path value="Claim.priority" />
          <short value="Desired processing priority" />
          <definition value="Immediate (STAT), best effort (NORMAL), deferred (DEFER)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcessPriority" />
            </extension>
            <strength value="example" />
            <description value="The timeliness with which processing is required: STAT, normal, Deferred" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/process-priority" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="workflow" />
            <map value="Request.priority" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.fundsReserve" />
    <resource>
      <DataElement>
        <id value="Claim.fundsReserve" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.fundsReserve" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.fundsReserve">
          <path value="Claim.fundsReserve" />
          <short value="Funds requested to be reserved" />
          <definition value="In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FundsReserve" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="For whom funds are to be reserved: (Patient, Provider, None)." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/fundsreserve" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.related" />
    <resource>
      <DataElement>
        <id value="Claim.related" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.related" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.related">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="RelatedClaim" />
          </extension>
          <path value="Claim.related" />
          <short value="Related Claims which may be revelant to processing this claimn" />
          <definition value="Other claims which are related to this claim such as prior claim versions or for related services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.related.claim" />
    <resource>
      <DataElement>
        <id value="Claim.related.claim" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.related.claim" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.related.claim">
          <path value="Claim.related.claim" />
          <short value="Reference to the related claim" />
          <definition value="Other claims which are related to this claim such as prior claim versions or for related services." />
          <comment value="Do we need a relationship code?" />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Claim" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.replaces" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.related.relationship" />
    <resource>
      <DataElement>
        <id value="Claim.related.relationship" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.related.relationship" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.related.relationship">
          <path value="Claim.related.relationship" />
          <short value="How the reference claim is related" />
          <definition value="For example prior or umbrella." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RelatedClaimRelationship" />
            </extension>
            <strength value="example" />
            <description value="Relationship of this claim to a related Claim" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/related-claim-relationship" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.related.reference" />
    <resource>
      <DataElement>
        <id value="Claim.related.reference" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.related.reference" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.related.reference">
          <path value="Claim.related.reference" />
          <short value="Related file or case reference" />
          <definition value="An alternate organizational reference to the case or file to which this particular claim pertains - eg Property/Casualy insurer claim # or Workers Compensation case # ." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Identifier" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.prescription" />
    <resource>
      <DataElement>
        <id value="Claim.prescription" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.prescription" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.prescription">
          <path value="Claim.prescription" />
          <short value="Prescription authorizing services or products" />
          <definition value="Prescription to support the dispensing of Pharmacy or Vision products." />
          <comment value="Should we create a group to hold multiple prescriptions and add a sequence number and on the line items a link to the sequence." />
          <requirements value="For type=Pharmacy and Vision only." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/VisionPrescription" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.originalPrescription" />
    <resource>
      <DataElement>
        <id value="Claim.originalPrescription" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.originalPrescription" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.originalPrescription">
          <path value="Claim.originalPrescription" />
          <short value="Original prescription if superceded by fulfiller" />
          <definition value="Original prescription which has been superceded by this prescription to support the dispensing of pharmacy services, medications or products. For example, a physician may prescribe a medication which the pharmacy determines is contraindicated, or for which the patient has an intolerance, and therefor issues a new precription for an alternate medication which has the same theraputic intent. The prescription from the pharmacy becomes the 'prescription' and that from the physician becomes the 'original prescription'." />
          <comment value="as above." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.payee" />
    <resource>
      <DataElement>
        <id value="Claim.payee" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.payee" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.payee">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Payee" />
          </extension>
          <path value="Claim.payee" />
          <short value="Party to be paid any benefits payable" />
          <definition value="The party to be reimbursed for the services." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.payee.type" />
    <resource>
      <DataElement>
        <id value="Claim.payee.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.payee.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.payee.type">
          <path value="Claim.payee.type" />
          <short value="Type of party: Subscriber, Provider, other" />
          <definition value="Type of Party to be reimbursed: Subscriber, provider, other." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PayeeType" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true" />
            </extension>
            <strength value="example" />
            <description value="A code for the party to be reimbursed." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/payeetype" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.payee.resourceType" />
    <resource>
      <DataElement>
        <id value="Claim.payee.resourceType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.payee.resourceType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.payee.resourceType">
          <path value="Claim.payee.resourceType" />
          <short value="organization | patient | practitioner | relatedperson" />
          <definition value="organization | patient | practitioner | relatedperson." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimPayeeResourceType" />
            </extension>
            <strength value="example" />
            <description value="The type of Claim payee Resource" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-payee-resource-type" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.payee.party" />
    <resource>
      <DataElement>
        <id value="Claim.payee.party" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.payee.party" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.payee.party">
          <path value="Claim.payee.party" />
          <short value="Party to receive the payable" />
          <definition value="Party to be reimbursed: Subscriber, provider, other." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.referral" />
    <resource>
      <DataElement>
        <id value="Claim.referral" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.referral" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.referral">
          <path value="Claim.referral" />
          <short value="Treatment Referral" />
          <definition value="The referral resource which lists the date, practitioner, reason and other supporting information." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.cause" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.facility" />
    <resource>
      <DataElement>
        <id value="Claim.facility" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.facility" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.facility">
          <path value="Claim.facility" />
          <short value="Servicing Facility" />
          <definition value="Facility where the services were provided." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.careTeam" />
    <resource>
      <DataElement>
        <id value="Claim.careTeam" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.careTeam" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.careTeam">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="CareTeam" />
          </extension>
          <path value="Claim.careTeam" />
          <short value="Members of the care team" />
          <definition value="The members of the team who provided the overall service as well as their role and whether responsible and qualifications." />
          <requirements value="Role and Responsible may not be required when there is only a single provider listed." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.careTeam.sequence" />
    <resource>
      <DataElement>
        <id value="Claim.careTeam.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.careTeam.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.careTeam.sequence">
          <path value="Claim.careTeam.sequence" />
          <short value="Number to covey order of careTeam" />
          <definition value="Sequence of the careTeam which serves to order and provide a link." />
          <requirements value="Required to maintain order of the careTeam." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.careTeam.provider" />
    <resource>
      <DataElement>
        <id value="Claim.careTeam.provider" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.careTeam.provider" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.careTeam.provider">
          <path value="Claim.careTeam.provider" />
          <short value="Provider individual or organization" />
          <definition value="Member of the team who provided the overall service." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="who.actor" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.careTeam.responsible" />
    <resource>
      <DataElement>
        <id value="Claim.careTeam.responsible" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.careTeam.responsible" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.careTeam.responsible">
          <path value="Claim.careTeam.responsible" />
          <short value="Billing provider" />
          <definition value="The party who is billing and responsible for the claimed good or service rendered to the patient." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.careTeam.role" />
    <resource>
      <DataElement>
        <id value="Claim.careTeam.role" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.careTeam.role" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.careTeam.role">
          <path value="Claim.careTeam.role" />
          <short value="Role on the team" />
          <definition value="The lead, assisting or supervising practitioner and their discipline if a multidisiplinary team." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CareTeamRole" />
            </extension>
            <strength value="example" />
            <description value="The role codes for the care team members." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-careteamrole" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.careTeam.qualification" />
    <resource>
      <DataElement>
        <id value="Claim.careTeam.qualification" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.careTeam.qualification" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.careTeam.qualification">
          <path value="Claim.careTeam.qualification" />
          <short value="Type, classification or Specialization" />
          <definition value="The qualification which is applicable for this service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProviderQualification" />
            </extension>
            <strength value="example" />
            <description value="Provider professional qualifications" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/provider-qualification" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.information" />
    <resource>
      <DataElement>
        <id value="Claim.information" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.information" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.information">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SpecialCondition" />
          </extension>
          <path value="Claim.information" />
          <short value="Exceptions, special considerations, the condition, situation, prior or concurrent issues" />
          <definition value="Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues. Often there are mutiple jurisdiction specific valuesets which are required." />
          <requirements value="Typically these information codes are required to support the services rendered or the adjudication of the services rendered." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="workflow" />
            <map value="Request.supportingInfo" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.information.sequence" />
    <resource>
      <DataElement>
        <id value="Claim.information.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.information.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.information.sequence">
          <path value="Claim.information.sequence" />
          <short value="Information instance identifier" />
          <definition value="Sequence of the information element which serves to provide a link." />
          <requirements value="To provide a reference link." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.information.category" />
    <resource>
      <DataElement>
        <id value="Claim.information.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.information.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.information.category">
          <path value="Claim.information.category" />
          <short value="General class of information" />
          <definition value="The general class of the information supplied: information; exception; accident, employment; onset, etc." />
          <comment value="This may contain the local bill type codes such as the US UB-04 bill type code." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="InformationCategory" />
            </extension>
            <strength value="example" />
            <description value="The valuset used for additional information category codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-informationcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.information.code" />
    <resource>
      <DataElement>
        <id value="Claim.information.code" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.information.code" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.information.code">
          <path value="Claim.information.code" />
          <short value="Type of information" />
          <definition value="System and code pertaining to the specific information regarding special conditions relating to the setting, treatment or patient  for which care is sought which may influence the adjudication." />
          <comment value="This may contain the local bill type codes such as the US UB-04 bill type code." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="InformationCode" />
            </extension>
            <strength value="example" />
            <description value="The valuset used for additional information codes." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-exception" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.information.timingX" />
    <resource>
      <DataElement>
        <id value="Claim.information.timingX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.information.timingX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.information.timing[x]">
          <path value="Claim.information.timing[x]" />
          <short value="When it occurred" />
          <definition value="The date when or period to which this information refers." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.information.valueX" />
    <resource>
      <DataElement>
        <id value="Claim.information.valueX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.information.valueX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.information.value[x]">
          <path value="Claim.information.value[x]" />
          <short value="Additional Data or supporting information" />
          <definition value="Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <type>
            <code value="Quantity" />
          </type>
          <type>
            <code value="Attachment" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.information.reason" />
    <resource>
      <DataElement>
        <id value="Claim.information.reason" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.information.reason" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.information.reason">
          <path value="Claim.information.reason" />
          <short value="Reason associated with the information" />
          <definition value="For example, provides the reason for: the additional stay, or missing tooth or any other situation where a reason code is required in addition to the content." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MissingReason" />
            </extension>
            <strength value="example" />
            <description value="Reason codes for the missing teeth" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/missing-tooth-reason" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.diagnosis" />
    <resource>
      <DataElement>
        <id value="Claim.diagnosis" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.diagnosis" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.diagnosis">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Diagnosis" />
          </extension>
          <path value="Claim.diagnosis" />
          <short value="List of Diagnosis" />
          <definition value="List of patient diagnosis for which care is sought." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="workflow" />
            <map value="Request.reasonReference" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.diagnosis.sequence" />
    <resource>
      <DataElement>
        <id value="Claim.diagnosis.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.diagnosis.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.diagnosis.sequence">
          <path value="Claim.diagnosis.sequence" />
          <short value="Number to covey order of diagnosis" />
          <definition value="Sequence of diagnosis which serves to provide a link." />
          <requirements value="Required to allow line items to reference the diagnoses." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.diagnosis.diagnosisX" />
    <resource>
      <DataElement>
        <id value="Claim.diagnosis.diagnosisX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.diagnosis.diagnosisX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.diagnosis.diagnosis[x]">
          <path value="Claim.diagnosis.diagnosis[x]" />
          <short value="Patient's diagnosis" />
          <definition value="The diagnosis." />
          <requirements value="Required to adjudicate services rendered to condition presented." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ICD10" />
            </extension>
            <strength value="example" />
            <description value="ICD10 Diagnostic codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/icd-10" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.diagnosis.type" />
    <resource>
      <DataElement>
        <id value="Claim.diagnosis.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.diagnosis.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.diagnosis.type">
          <path value="Claim.diagnosis.type" />
          <short value="Timing or nature of the diagnosis" />
          <definition value="The type of the Diagnosis, for example: admitting, primary, secondary, discharge." />
          <comment value="Diagnosis are presented in list order to their expected importance: primary, secondary, etc." />
          <requirements value="May be required to adjudicate services rendered." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosisType" />
            </extension>
            <strength value="example" />
            <description value="The type of the diagnosis: admitting, principal, discharge" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-diagnosistype" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.diagnosis.packageCode" />
    <resource>
      <DataElement>
        <id value="Claim.diagnosis.packageCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.diagnosis.packageCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.diagnosis.packageCode">
          <path value="Claim.diagnosis.packageCode" />
          <short value="Package billing code" />
          <definition value="The package billing code, for example DRG, based on the assigned grouping code system." />
          <requirements value="May be required to adjudicate services rendered to the mandated grouping system." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosisRelatedGroup" />
            </extension>
            <strength value="example" />
            <description value="The DRG codes associated with the diagnosis" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-diagnosisrelatedgroup" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.procedure" />
    <resource>
      <DataElement>
        <id value="Claim.procedure" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.procedure" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.procedure">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Procedure" />
          </extension>
          <path value="Claim.procedure" />
          <short value="Procedures performed" />
          <definition value="Ordered list of patient procedures performed to support the adjudication." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.procedure.sequence" />
    <resource>
      <DataElement>
        <id value="Claim.procedure.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.procedure.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.procedure.sequence">
          <path value="Claim.procedure.sequence" />
          <short value="Procedure sequence for reference" />
          <definition value="Sequence of procedures which serves to order and provide a link." />
          <requirements value="Required to maintain order of the procudures." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.procedure.date" />
    <resource>
      <DataElement>
        <id value="Claim.procedure.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.procedure.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.procedure.date">
          <path value="Claim.procedure.date" />
          <short value="When the procedure was performed" />
          <definition value="Date and optionally time the procedure was performed ." />
          <comment value="SB DateTime??" />
          <requirements value="Required to adjudicate services rendered." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="dateTime" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.procedure.procedureX" />
    <resource>
      <DataElement>
        <id value="Claim.procedure.procedureX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.procedure.procedureX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.procedure.procedure[x]">
          <path value="Claim.procedure.procedure[x]" />
          <short value="Patient's list of procedures performed" />
          <definition value="The procedure code." />
          <requirements value="Required to adjudicate services rendered." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ICD10_Procedures" />
            </extension>
            <strength value="example" />
            <description value="ICD10 Procedure codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/icd-10-procedures" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.insurance" />
    <resource>
      <DataElement>
        <id value="Claim.insurance" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.insurance" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.insurance">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Insurance" />
          </extension>
          <path value="Claim.insurance" />
          <short value="Insurance or medical plan" />
          <definition value="Financial instrument by which payment information for health care." />
          <requirements value="Health care programs and insurers are significant payors of health service costs." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Coverage" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.insurance.sequence" />
    <resource>
      <DataElement>
        <id value="Claim.insurance.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.insurance.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.insurance.sequence">
          <path value="Claim.insurance.sequence" />
          <short value="Service instance identifier" />
          <definition value="Sequence of coverage which serves to provide a link and convey coordination of benefit order." />
          <requirements value="To maintain order of the coverages." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.insurance.focal" />
    <resource>
      <DataElement>
        <id value="Claim.insurance.focal" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.insurance.focal" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.insurance.focal">
          <path value="Claim.insurance.focal" />
          <short value="Is the focal Coverage" />
          <definition value="A flag to indicate that this Coverage is the focus for adjudication. The Coverage against which the claim is to be adjudicated." />
          <requirements value="To identify which coverage is being adjudicated." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="boolean" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.insurance.coverage" />
    <resource>
      <DataElement>
        <id value="Claim.insurance.coverage" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.insurance.coverage" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.insurance.coverage">
          <path value="Claim.insurance.coverage" />
          <short value="Insurance information" />
          <definition value="Reference to the program or plan identification, underwriter or payor." />
          <requirements value="Need to identify the issuer to target for processing and for coordination of benefit processing." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Coverage" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.insurance.businessArrangement" />
    <resource>
      <DataElement>
        <id value="Claim.insurance.businessArrangement" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.insurance.businessArrangement" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.insurance.businessArrangement">
          <path value="Claim.insurance.businessArrangement" />
          <short value="Business agreement" />
          <definition value="The contract number of a business agreement which describes the terms and conditions." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.insurance.preAuthRef" />
    <resource>
      <DataElement>
        <id value="Claim.insurance.preAuthRef" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.insurance.preAuthRef" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.insurance.preAuthRef">
          <path value="Claim.insurance.preAuthRef" />
          <short value="Pre-Authorization/Determination Reference" />
          <definition value="A list of references from the Insurer to which these services pertain." />
          <requirements value="To provide any pre=determination or prior authorization reference." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.insurance.claimResponse" />
    <resource>
      <DataElement>
        <id value="Claim.insurance.claimResponse" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.insurance.claimResponse" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.insurance.claimResponse">
          <path value="Claim.insurance.claimResponse" />
          <short value="Adjudication results" />
          <definition value="The Coverages adjudication details." />
          <requirements value="Used by downstream payers to determine what balance remains and the net payable." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ClaimResponse" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.accident" />
    <resource>
      <DataElement>
        <id value="Claim.accident" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.accident" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.accident">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Accident" />
          </extension>
          <path value="Claim.accident" />
          <short value="Details about an accident" />
          <definition value="An accident which resulted in the need for healthcare services." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.accident.date" />
    <resource>
      <DataElement>
        <id value="Claim.accident.date" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.accident.date" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.accident.date">
          <path value="Claim.accident.date" />
          <short value="When the accident occurred&#xA;see information codes&#xA;see information codes" />
          <definition value="Date of an accident which these services are addressing." />
          <requirements value="Coverage may be dependant on accidents." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.accident.type" />
    <resource>
      <DataElement>
        <id value="Claim.accident.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.accident.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.accident.type">
          <path value="Claim.accident.type" />
          <short value="The nature of the accident" />
          <definition value="Type of accident: work, auto, etc." />
          <requirements value="Coverage may be dependant on the type of accident." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AccidentType" />
            </extension>
            <strength value="required" />
            <description value="Type of accident: work place, auto, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ActIncidentCode" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.accident.locationX" />
    <resource>
      <DataElement>
        <id value="Claim.accident.locationX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.accident.locationX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.accident.location[x]">
          <path value="Claim.accident.location[x]" />
          <short value="Accident Place" />
          <definition value="Accident Place." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.employmentImpacted" />
    <resource>
      <DataElement>
        <id value="Claim.employmentImpacted" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.employmentImpacted" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.employmentImpacted">
          <path value="Claim.employmentImpacted" />
          <short value="Period unable to work" />
          <definition value="The start and optional end dates of when the patient was precluded from working due to the treatable condition(s)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.hospitalization" />
    <resource>
      <DataElement>
        <id value="Claim.hospitalization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.hospitalization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.hospitalization">
          <path value="Claim.hospitalization" />
          <short value="Period in hospital" />
          <definition value="The start and optional end dates of when the patient was confined to a treatment center." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Period" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item" />
    <resource>
      <DataElement>
        <id value="Claim.item" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Item" />
          </extension>
          <path value="Claim.item" />
          <short value="Goods and Services" />
          <definition value="First tier of goods and services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.sequence" />
    <resource>
      <DataElement>
        <id value="Claim.item.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.sequence">
          <path value="Claim.item.sequence" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.careTeamLinkId" />
    <resource>
      <DataElement>
        <id value="Claim.item.careTeamLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.careTeamLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.careTeamLinkId">
          <path value="Claim.item.careTeamLinkId" />
          <short value="Applicable careTeam members" />
          <definition value="CareTeam applicable for this service or product line." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.diagnosisLinkId" />
    <resource>
      <DataElement>
        <id value="Claim.item.diagnosisLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.diagnosisLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.diagnosisLinkId">
          <path value="Claim.item.diagnosisLinkId" />
          <short value="Applicable diagnoses" />
          <definition value="Diagnosis applicable for this service or product line." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.procedureLinkId" />
    <resource>
      <DataElement>
        <id value="Claim.item.procedureLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.procedureLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.procedureLinkId">
          <path value="Claim.item.procedureLinkId" />
          <short value="Applicable procedures" />
          <definition value="Procedures applicable for this service or product line." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.informationLinkId" />
    <resource>
      <DataElement>
        <id value="Claim.item.informationLinkId" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.informationLinkId" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.informationLinkId">
          <path value="Claim.item.informationLinkId" />
          <short value="Applicable exception and supporting information" />
          <definition value="Exceptions, special conditions and supporting information pplicable for this service or product line." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.revenue" />
    <resource>
      <DataElement>
        <id value="Claim.item.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.revenue">
          <path value="Claim.item.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.category" />
    <resource>
      <DataElement>
        <id value="Claim.item.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.category">
          <path value="Claim.item.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.service" />
    <resource>
      <DataElement>
        <id value="Claim.item.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.service">
          <path value="Claim.item.service" />
          <short value="Billing Code" />
          <definition value="If this is an actual service or product line, ie. not a Group, then use code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,RXNorm,ACHI,CCI). If a grouping item then use a group code to indicate the type of thing being grouped eg. 'glasses' or 'compound'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.modifier" />
    <resource>
      <DataElement>
        <id value="Claim.item.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.modifier">
          <path value="Claim.item.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.programCode" />
    <resource>
      <DataElement>
        <id value="Claim.item.programCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.programCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.programCode">
          <path value="Claim.item.programCode" />
          <short value="Program specific reason for item inclusion" />
          <definition value="For programs which require reason codes for the inclusion or covering of this billed item under the program or sub-program." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProgramCode" />
            </extension>
            <strength value="example" />
            <description value="Program specific reason codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-program-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.servicedX" />
    <resource>
      <DataElement>
        <id value="Claim.item.servicedX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.servicedX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.serviced[x]">
          <path value="Claim.item.serviced[x]" />
          <short value="Date or dates of Service" />
          <definition value="The date or dates when the enclosed suite of services were performed or completed." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="date" />
          </type>
          <type>
            <code value="Period" />
          </type>
          <mapping>
            <identity value="w5" />
            <map value="when.done" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.locationX" />
    <resource>
      <DataElement>
        <id value="Claim.item.locationX" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.locationX" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.location[x]">
          <path value="Claim.item.location[x]" />
          <short value="Place of service" />
          <definition value="Where the service was provided." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <type>
            <code value="Address" />
          </type>
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServicePlace" />
            </extension>
            <strength value="example" />
            <description value="Place of service: pharmacy,school, prison, etc." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-place" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5" />
            <map value="where" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.quantity" />
    <resource>
      <DataElement>
        <id value="Claim.item.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.quantity">
          <path value="Claim.item.quantity" />
          <short value="Count of Products or Services" />
          <definition value="The number of repetitions of a service or product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.unitPrice" />
    <resource>
      <DataElement>
        <id value="Claim.item.unitPrice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.unitPrice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.unitPrice">
          <path value="Claim.item.unitPrice" />
          <short value="Fee, charge or cost per point" />
          <definition value="If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.factor" />
    <resource>
      <DataElement>
        <id value="Claim.item.factor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.factor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.factor">
          <path value="Claim.item.factor" />
          <short value="Price scaling factor" />
          <definition value="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.net" />
    <resource>
      <DataElement>
        <id value="Claim.item.net" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.net" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.net">
          <path value="Claim.item.net" />
          <short value="Total item cost" />
          <definition value="The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.udi" />
    <resource>
      <DataElement>
        <id value="Claim.item.udi" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.udi" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.udi">
          <path value="Claim.item.udi" />
          <short value="Unique Device Identifier" />
          <definition value="List of Unique Device Identifiers associated with this line item." />
          <requirements value="The UDI code and issuer if applicable for the supplied product." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.bodySite" />
    <resource>
      <DataElement>
        <id value="Claim.item.bodySite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.bodySite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.bodySite">
          <path value="Claim.item.bodySite" />
          <short value="Service Location" />
          <definition value="Physical service site on the patient (limb, tooth, etc)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="OralSites" />
            </extension>
            <strength value="example" />
            <description value="The code for the teeth, quadrant, sextant and arch" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/tooth" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.subSite" />
    <resource>
      <DataElement>
        <id value="Claim.item.subSite" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.subSite" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.subSite">
          <path value="Claim.item.subSite" />
          <short value="Service Sub-location" />
          <definition value="A region or surface of the site, eg. limb region or tooth surface(s)." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Surface" />
            </extension>
            <strength value="example" />
            <description value="The code for the tooth surface and surface combinations" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/surface" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.encounter" />
    <resource>
      <DataElement>
        <id value="Claim.item.encounter" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.encounter" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.encounter">
          <path value="Claim.item.encounter" />
          <short value="Encounters related to this billed item" />
          <definition value="A billed item may include goods or services provided in multiple encounters." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
          </type>
          <mapping>
            <identity value="workflow" />
            <map value="Request.context" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Detail" />
          </extension>
          <path value="Claim.item.detail" />
          <short value="Additional items" />
          <definition value="Second tier of goods and services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.sequence" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.sequence">
          <path value="Claim.item.detail.sequence" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.revenue" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.revenue">
          <path value="Claim.item.detail.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.category" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.category">
          <path value="Claim.item.detail.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.service" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.service">
          <path value="Claim.item.detail.service" />
          <short value="Billing Code" />
          <definition value="If this is an actual service or product line, ie. not a Group, then use code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI). If a grouping item then use a group code to indicate the type of thing being grouped eg. 'glasses' or 'compound'." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.modifier" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.modifier">
          <path value="Claim.item.detail.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.programCode" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.programCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.programCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.programCode">
          <path value="Claim.item.detail.programCode" />
          <short value="Program specific reason for item inclusion" />
          <definition value="For programs which require reson codes for the inclusion, covering, of this billed item under the program or sub-program." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProgramCode" />
            </extension>
            <strength value="example" />
            <description value="Program specific reason codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-program-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.quantity" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.quantity">
          <path value="Claim.item.detail.quantity" />
          <short value="Count of Products or Services" />
          <definition value="The number of repetitions of a service or product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.unitPrice" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.unitPrice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.unitPrice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.unitPrice">
          <path value="Claim.item.detail.unitPrice" />
          <short value="Fee, charge or cost per point" />
          <definition value="If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.factor" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.factor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.factor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.factor">
          <path value="Claim.item.detail.factor" />
          <short value="Price scaling factor" />
          <definition value="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.net" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.net" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.net" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.net">
          <path value="Claim.item.detail.net" />
          <short value="Total additional item cost" />
          <definition value="The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.udi" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.udi" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.udi" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.udi">
          <path value="Claim.item.detail.udi" />
          <short value="Unique Device Identifier" />
          <definition value="List of Unique Device Identifiers associated with this line item." />
          <requirements value="The UDI code and issuer if applicable for the supplied product." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail">
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SubDetail" />
          </extension>
          <path value="Claim.item.detail.subDetail" />
          <short value="Additional items" />
          <definition value="Third tier of goods and services." />
          <min value="0" />
          <max value="*" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.sequence" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.sequence" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.sequence" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.sequence">
          <path value="Claim.item.detail.subDetail.sequence" />
          <short value="Service instance" />
          <definition value="A service line number." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="positiveInt" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.revenue" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.revenue" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.revenue" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.revenue">
          <path value="Claim.item.detail.subDetail.revenue" />
          <short value="Revenue or cost center code" />
          <definition value="The type of reveneu or cost center providing the product and/or service." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter" />
            </extension>
            <strength value="example" />
            <description value="Codes for the revenue or cost centers supplying the service and/or products." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.category" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.category" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.category" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.category">
          <path value="Claim.item.detail.subDetail.category" />
          <short value="Type of service or product" />
          <definition value="Health Care Service Type Codes  to identify the classification of service or benefits." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitSubCategory" />
            </extension>
            <strength value="example" />
            <description value="Benefit subcategories such as: oral-basic, major, glasses" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/benefit-subcategory" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.service" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.service" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.service" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.service">
          <path value="Claim.item.detail.subDetail.service" />
          <short value="Billing Code" />
          <definition value="A code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct" />
            </extension>
            <strength value="example" />
            <description value="Allowable service and product codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/service-uscls" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.modifier" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.modifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.modifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.modifier">
          <path value="Claim.item.detail.subDetail.modifier" />
          <short value="Service/Product billing modifiers" />
          <definition value="Item typification or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or for medical whether the treatment was outside the clinic or out of office hours." />
          <requirements value="May impact on adjudication." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers" />
            </extension>
            <strength value="example" />
            <description value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.programCode" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.programCode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.programCode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.programCode">
          <path value="Claim.item.detail.subDetail.programCode" />
          <short value="Program specific reason for item inclusion" />
          <definition value="For programs which require reson codes for the inclusion, covering, of this billed item under the program or sub-program." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProgramCode" />
            </extension>
            <strength value="example" />
            <description value="Program specific reason codes" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/ex-program-code" />
            </valueSetReference>
          </binding>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.quantity" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.quantity" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.quantity" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.quantity">
          <path value="Claim.item.detail.subDetail.quantity" />
          <short value="Count of Products or Services" />
          <definition value="The number of repetitions of a service or product." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Quantity" />
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.unitPrice" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.unitPrice" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.unitPrice" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.unitPrice">
          <path value="Claim.item.detail.subDetail.unitPrice" />
          <short value="Fee, charge or cost per point" />
          <definition value="The fee for an addittional service or product or charge." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.factor" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.factor" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.factor" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.factor">
          <path value="Claim.item.detail.subDetail.factor" />
          <short value="Price scaling factor" />
          <definition value="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.net" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.net" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.net" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.net">
          <path value="Claim.item.detail.subDetail.net" />
          <short value="Net additional item cost" />
          <definition value="The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." />
          <requirements value="If a fee is present the associated product/service code must be present." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.udi" />
    <resource>
      <DataElement>
        <id value="Claim.item.detail.subDetail.udi" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.item.detail.subDetail.udi" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.item.detail.subDetail.udi">
          <path value="Claim.item.detail.subDetail.udi" />
          <short value="Unique Device Identifier" />
          <definition value="List of Unique Device Identifiers associated with this line item." />
          <requirements value="The UDI code and issuer if applicable for the supplied product." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Claim.total" />
    <resource>
      <DataElement>
        <id value="Claim.total" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Claim.total" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Claim.total">
          <path value="Claim.total" />
          <short value="Total claim cost" />
          <definition value="The total value of the claim." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Money" />
          </type>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location" />
    <resource>
      <DataElement>
        <id value="Location" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location">
          <path value="Location" />
          <short value="Details and position information for a physical place" />
          <definition value="Details and position information for a physical place where services are provided  and resources and participants may be stored, found, contained or accommodated." />
          <min value="0" />
          <max value="*" />
          <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(('#'+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('#', $id))]))" />
            <source value="DomainResource" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value="Entity. Role, or Act" />
          </mapping>
          <mapping>
            <identity value="rim" />
            <map value=".Role[classCode=SDLC]" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="administrative.entity" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.identifier" />
    <resource>
      <DataElement>
        <id value="Location.identifier" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.identifier" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.identifier">
          <path value="Location.identifier" />
          <short value="Unique code or number identifying the location to its users" />
          <definition value="Unique code or number identifying the location to its users." />
          <requirements value="Organization label locations in registries, need to keep track of those." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Identifier" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".id" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="id" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.status" />
    <resource>
      <DataElement>
        <id value="Location.status" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.status" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.status">
          <path value="Location.status" />
          <short value="active | suspended | inactive" />
          <definition value="The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location." />
          <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="LocationStatus" />
            </extension>
            <strength value="required" />
            <description value="Indicates whether the location is still in use." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/location-status" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".statusCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.operationalStatus" />
    <resource>
      <DataElement>
        <id value="Location.operationalStatus" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.operationalStatus" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.operationalStatus">
          <path value="Location.operationalStatus" />
          <short value="The Operational status of the location (typically only for a bed/room)" />
          <definition value="The Operational status covers operation values most relevant to beds (but can also apply to rooms/units/chair/etc such as an isolation unit/dialisys chair). This typically covers concepts such as contamination, housekeeping and other activities like maintenance." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Coding" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="OperationalStatus" />
            </extension>
            <strength value="preferred" />
            <description value="The operational status if the location (where typically a bed/room)" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v2-0116" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="status" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.name" />
    <resource>
      <DataElement>
        <id value="Location.name" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.name" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.name">
          <path value="Location.name" />
          <short value="Name of the location as used by humans" />
          <definition value="Name of the location as used by humans. Does not need to be unique." />
          <comment value="If the name of an location changes, consider putting the old name in the alias column so that it can still be located through searches." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.alias" />
    <resource>
      <DataElement>
        <id value="Location.alias" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.alias" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.alias">
          <path value="Location.alias" />
          <short value="A list of alternate names that the location is known as, or was known as in the past" />
          <definition value="A list of alternate names that the location is known as, or was known as in the past." />
          <comment value="There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the location." />
          <requirements value="Over time locations and organizations go through many changes and can be known by different names.&#xA;&#xA;For searching knowing previous names that the location was known by can be very useful." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="string" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".name" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.description" />
    <resource>
      <DataElement>
        <id value="Location.description" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.description" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.description">
          <path value="Location.description" />
          <short value="Additional details about the location that could be displayed as further information to identify the location beyond its name" />
          <definition value="Description of the Location, which helps in finding or referencing the place." />
          <requirements value="Humans need additional information to verify a correct location has been identified." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="string" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".playingEntity[classCode=PLC determinerCode=INSTANCE].desc" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.mode" />
    <resource>
      <DataElement>
        <id value="Location.mode" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.mode" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.mode">
          <path value="Location.mode" />
          <short value="instance | kind" />
          <definition value="Indicates whether a resource instance represents a specific location or a class of locations." />
          <comment value="This is labeled as a modifer because whether or not the location is a class of locations changes how it can be used and understood." />
          <requirements value="When using a Location resource for scheduling or orders, we need to be able to refer to a class of Locations instead of a specific Location." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="code" />
          </type>
          <isModifier value="true" />
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="LocationMode" />
            </extension>
            <strength value="required" />
            <description value="Indicates whether a resource instance represents a specific location or a class of locations." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/location-mode" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".playingEntity[classCode=PLC].determinerCode" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.type" />
    <resource>
      <DataElement>
        <id value="Location.type" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.type" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.type">
          <path value="Location.type" />
          <short value="Type of function performed" />
          <definition value="Indicates the type of function performed at the location." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="LocationType" />
            </extension>
            <strength value="extensible" />
            <description value="Indicates the type of function performed at the location." />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/v3-ServiceDeliveryLocationRoleType" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.telecom" />
    <resource>
      <DataElement>
        <id value="Location.telecom" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.telecom" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.telecom">
          <path value="Location.telecom" />
          <short value="Contact details of the location" />
          <definition value="The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="ContactPoint" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".telecom" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.address" />
    <resource>
      <DataElement>
        <id value="Location.address" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.address" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.address">
          <path value="Location.address" />
          <short value="Physical location" />
          <definition value="Physical location." />
          <comment value="This was kept as 0..1 as there is no use property on the address, so wouldn't be able to identify different address types." />
          <requirements value="If locations can be visited, we need to keep track of their address." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Address" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".addr" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.physicalType" />
    <resource>
      <DataElement>
        <id value="Location.physicalType" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.physicalType" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.physicalType">
          <path value="Location.physicalType" />
          <short value="Physical form of the location" />
          <definition value="Physical form of the location, e.g. building, room, vehicle, road." />
          <requirements value="For purposes of showing relevant locations in queries, we need to categorize locations." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="CodeableConcept" />
          </type>
          <isSummary value="true" />
          <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PhysicalType" />
            </extension>
            <strength value="example" />
            <description value="Physical form of the location" />
            <valueSetReference>
              <reference value="http://hl7.org/fhir/ValueSet/location-physical-type" />
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="rim" />
            <map value=".playingEntity [classCode=PLC].code" />
          </mapping>
          <mapping>
            <identity value="w5" />
            <map value="class" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.position" />
    <resource>
      <DataElement>
        <id value="Location.position" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.position" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.position">
          <path value="Location.position" />
          <short value="The absolute geographic location" />
          <definition value="The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML)." />
          <requirements value="For mobile applications and automated route-finding knowing the exact location of the Location is required." />
          <min value="0" />
          <max value="1" />
          <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="hasValue() | (children().count() &gt; id.count())" />
            <xpath value="@value|f:*|h:div" />
            <source value="Element" />
          </constraint>
          <mapping>
            <identity value="rim" />
            <map value=".playingEntity [classCode=PLC determinerCode=INSTANCE].positionText" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.position.longitude" />
    <resource>
      <DataElement>
        <id value="Location.position.longitude" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.position.longitude" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.position.longitude">
          <path value="Location.position.longitude" />
          <short value="Longitude with WGS84 datum" />
          <definition value="Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.position.latitude" />
    <resource>
      <DataElement>
        <id value="Location.position.latitude" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.position.latitude" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.position.latitude">
          <path value="Location.position.latitude" />
          <short value="Latitude with WGS84 datum" />
          <definition value="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below)." />
          <min value="1" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.position.altitude" />
    <resource>
      <DataElement>
        <id value="Location.position.altitude" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.position.altitude" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.position.altitude">
          <path value="Location.position.altitude" />
          <short value="Altitude with WGS84 datum" />
          <definition value="Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below)." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="decimal" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.managingOrganization" />
    <resource>
      <DataElement>
        <id value="Location.managingOrganization" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.managingOrganization" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.managingOrganization">
          <path value="Location.managingOrganization" />
          <short value="Organization responsible for provisioning and upkeep" />
          <definition value="The organization responsible for the provisioning and upkeep of the location." />
          <comment value="This can also be used as the part of the organization hierarchy where this location provides services. These services can be defined through the HealthcareService resource." />
          <requirements value="Need to know who manages the location." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
          </type>
          <isSummary value="true" />
          <mapping>
            <identity value="rim" />
            <map value=".scopingEntity[classCode=ORG determinerKind=INSTANCE]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.partOf" />
    <resource>
      <DataElement>
        <id value="Location.partOf" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.partOf" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.partOf">
          <path value="Location.partOf" />
          <short value="Another Location this one is physically part of" />
          <definition value="Another Location which this Location is physically part of." />
          <requirements value="For purposes of location, display and identification, knowing which locations are located within other locations is important." />
          <min value="0" />
          <max value="1" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value=".inboundLink[typeCode=PART].source[classCode=SDLC]" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://hl7.org/fhir/DataElement/Location.endpoint" />
    <resource>
      <DataElement>
        <id value="Location.endpoint" />
        <meta>
          <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
        </meta>
        <url value="http://hl7.org/fhir/DataElement/Location.endpoint" />
        <status value="draft" />
        <experimental value="true" />
        <stringency value="fully-specified" />
        <element id="Location.endpoint">
          <path value="Location.endpoint" />
          <short value="Technical endpoints providing access to services operated for the location" />
          <definition value="Technical endpoints providing access to services operated for the location." />
          <requirements value="Organizations may have different systems at different locations that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose." />
          <min value="0" />
          <max value="*" />
          <type>
            <code value="Reference" />
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
          </type>
          <mapping>
            <identity value="rim" />
            <map value="n/a" />
          </mapping>
        </element>
      </DataElement>
    </resource>
  </entry>
</Bundle>