Release 5 Preview #2

StructureDefinition: elementdefinition-de - XML

FHIR Infrastructure Work Group Maturity Level: 1Trial UseUse Context: Any

elementdefinition-de

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

<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="elementdefinition-de"/> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">to do</div> 
  </text> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use"/> 
  </extension> 
  <url value="http://hl7.org/fhir/StructureDefinition/elementdefinition-de"/> 
  <version value="4.4.0"/> 
  <name value="DataElement constraint on ElementDefinition data type"/> 
  <status value="draft"/> 
  <experimental value="false"/> 
  <date value="2015-02-28"/> 
  <publisher value="Health Level Seven International (Orders and Observations)"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://hl7.org/special/committees/FHIR"/> 
    </telecom> 
  </contact> 
  <description value="Identifies how the ElementDefinition data type is used when it appears within a data element"/> 
  <fhirVersion value="4.4.0"/> 
  <mapping> 
    <identity value="v2"/> 
    <uri value="http://hl7.org/v2"/> 
    <name value="HL7 v2 Mapping"/> 
  </mapping> 
  <mapping> 
    <identity value="rim"/> 
    <uri value="http://hl7.org/v3"/> 
    <name value="RIM Mapping"/> 
  </mapping> 
  <mapping> 
    <identity value="iso11179"/> 
    <uri value="http://metadata-standards.org/11179/"/> 
    <name value="ISO 11179"/> 
  </mapping> 
  <mapping> 
    <identity value="dex"/> 
    <uri value="http://ihe.net/data-element-exchange"/> 
    <name value="IHE Data Element Exchange (DEX)"/> 
  </mapping> 
  <mapping> 
    <identity value="loinc"/> 
    <uri value="http://loinc.org"/> 
    <name value="LOINC code for the element"/> 
  </mapping> 
  <kind value="complex-type"/> 
  <abstract value="false"/> 
  <type value="ElementDefinition"/> 
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
  <derivation value="constraint"/> 
  <snapshot> 
    <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="*"/> 
      <base> 
        <path value="ElementDefinition"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <constraint> 
        <key value="eld-2"/> 
        <severity value="error"/> 
        <human value="Min &lt;= Max"/> 
        <expression value="min.empty() or max.empty() or (max = '*') or iif(max != '*', 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)"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </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(loc
        al-name(.), 'fixed')]) or exists(f:*[starts-with(local-name(.), 'pattern')]) or exists(f:*[starts-wit
        h(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)
        ))"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </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)"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </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)"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="eld-8"/> 
        <severity value="error"/> 
        <human value="Pattern and fixed 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')]))"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </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 = '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','Code
        ableConcept','Quantity','string', 'uri')"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="eld-13"/> 
        <severity value="error"/> 
        <human value="Types must be unique by code"/> 
        <expression value="type.select(code).isDistinct()"/> 
        <xpath value="not(exists(for $type in f:type return $type/preceding-sibling::f:type[f:code/@value=$type/f:code/@va
        lue]))"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </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))"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </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))"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </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\/\-_\[\]\@]+$')"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="eld-18"/> 
        <severity value="error"/> 
        <human value="Must have a modifier reason if isModifier = true"/> 
        <expression value="(isModifier.exists() and isModifier) implies isModifierReason.exists()"/> 
        <xpath value="not(f:isModifier/@value = 'true') or exists(f:isModifierReason)"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="eld-19"/> 
        <severity value="error"/> 
        <human value="Element names cannot include some special characters"/> 
        <expression value="path.matches('[^\\s\\.,:;\\\'&quot;\\/|?!@#$%&amp;*()\\[\\]{}]{1,64}(\\.[^\\s\\.,:;\\\'&quot;\\/|?!@
        #$%&amp;*()\\[\\]{}]{1,64}(\\[x\\])?(\\:[^\\s\\.]+)?)*')"/> 
        <xpath value="matches(path/@value, '[^\s\.,:;\'&amp;quot;\/|?!@#$%&amp;amp;*()\[\]{}]{1,64}(\.[^\s\.,:;\'&amp;quot
        ;\/|?!@#$%&amp;amp;*()\[\]{}]{1,64}(\[x\])?(\:[^\s\.]+)?)*')"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="eld-20"/> 
        <severity value="warning"/> 
        <human value="Element names should be simple alphanumerics with a max of 64 characters, or code generation
         tools may be broken"/> 
        <expression value="path.matches('[A-Za-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*(\\[x])?)*')"/> 
        <xpath value="matches(path/@value, '[A-Za-z][A-Za-z0-9]*(\.[a-z][A-Za-z0-9]*(\[x])?)*')"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="eld-22"/> 
        <severity value="error"/> 
        <human value="sliceIsConstraining can only appear if slicename is present"/> 
        <expression value="sliceIsConstraining.exists() implies sliceName.exists()"/> 
        <xpath value="exists(f:sliceName) or not(exists(f:sliceIsConstraining))"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </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="dex"/> 
        <map value="RetrieveMetadata response"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.id">
      <path value="ElementDefinition.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may be any
       string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUri value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.extension">
      <path value="ElementDefinition.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. To make the use of extensions safe and manageable, there is a strict set
       of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.extension:Question">
      <path value="ElementDefinition.extension"/> 
      <sliceName value="Question"/> 
      <short value="Prompt for element phrased as question"/> 
      <definition value="The default/suggested phrasing to use when prompting a human to capture the data element
       in question form (e.g. In a survey)."/> 
      <comment value="Question and label serve similar purposes in they both can be used to prompt for capturing
       a data element.  Whether the question form or label form should be used will depend on
       the type of instrument being used to capture the information.  The ordering is in order
       of preference.  I.e. Most preferred question form is listed first.  Note that this is
       for alternate phrasings of the question.  Language translations are handled using the
       ISO 21090 string translation extensions."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
        <profile value="http://hl7.org/fhir/StructureDefinition/elementdefinition-question"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF-level)"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.extension:AllowedUnits">
      <path value="ElementDefinition.extension"/> 
      <sliceName value="AllowedUnits"/> 
      <short value="Units to use for measured value"/> 
      <definition value="Identifies the units of measure in which the element should be captured or expressed."/> 
      <comment value="Use a value set if more than one unit of measure is possible.  Value sets will typically
       be short enough to display in a drop-down selection list."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
        <profile value="http://hl7.org/fhir/StructureDefinition/elementdefinition-allowedUnits"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="v2"/> 
        <map value="OM2.2"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.modifierExtension">
      <path value="ElementDefinition.modifierExtension"/> 
      <short value="Extensions that cannot be ignored even if unrecognized"/> 
      <definition value="May be used to represent additional information that is not part of the basic definition
       of the element and that modifies the understanding of the element in which it is contained
       and/or the understanding of the containing element's descendants. Usually modifier elements
       provide negation or qualification. To make the use of extensions safe and manageable,
       there is a strict set of governance applied to the definition and use of extensions. Though
       any implementer can define an extension, there is a set of requirements that SHALL be
       met as part of the definition of the extension. Applications processing a resource are
       required to check for modifier extensions.

Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource
       (including cannot change the meaning of modifierExtension itself)."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly
       distinguished from the vast majority of extensions which can be safely ignored.  This
       promotes interoperability by eliminating the need for implementers to prohibit the presence
       of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/f
      hir/extensibility.html#modifierExtension)."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <alias value="modifiers"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="BackboneType.modifierExtension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="true"/> 
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element
       that contains them"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="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"/> 
      <base> 
        <path value="ElementDefinition.path"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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="0"/> 
      <base> 
        <path value="ElementDefinition.representation"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/property-representation|4.4.0"/> 
      </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> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.sliceName"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <element id="ElementDefinition.sliceIsConstraining">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="ElementDefinition.sliceIsConstraining"/> 
      <short value="If this slice definition constrains an inherited slice definition (or not)"/> 
      <definition value="If true, indicates that this slice definition is constraining a slice definition with
       the same name in an inherited profile. If false, the slice is not overriding any slice
       in an inherited profile. If missing, the slice might or might not be overriding a slice
       in an inherited profile, depending on the sliceName."/> 
      <comment value="If set to true, an ancestor profile SHALL have a slicing definition with this name.  If
       set to false, no ancestor profile is permitted to have a slicing definition with this
       name."/> 
      <requirements value="Allows detection of a situation where an ancestor profile adds or removes slicing with
       the same name where that might impact the child profile."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.sliceIsConstraining"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="boolean"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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)[extensio
      n-elementdefinition-question.html]."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.label"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./code/display"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <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="*"/> 
      <base> 
        <path value="ElementDefinition.code"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Coding"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/observation-codes"/> 
      </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> 
    <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="0"/> 
      <base> 
        <path value="ElementDefinition.slicing"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Element"/> 
      </type> 
      <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)"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.slicing.id">
      <path value="ElementDefinition.slicing.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may be any
       string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUri value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.slicing.extension">
      <path value="ElementDefinition.slicing.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. To make the use of extensions safe and manageable, there is a strict set
       of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="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."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ElementDefinition.slicing.discriminator"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Element"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.slicing.discriminator.id">
      <path value="ElementDefinition.slicing.discriminator.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may be any
       string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUri value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.slicing.discriminator.extension">
      <path value="ElementDefinition.slicing.discriminator.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. To make the use of extensions safe and manageable, there is a strict set
       of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="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"/> 
      <base> 
        <path value="ElementDefinition.slicing.discriminator.type"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/discriminator-type|4.4.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.slicing.discriminator.path">
      <path value="ElementDefinition.slicing.discriminator.path"/> 
      <short value="Path to element value"/> 
      <definition value="A FHIRPath expression, using [the simple subset of FHIRPath](http://hl7.org/fhir/fhirpath.html#simpl
      e), that is used to identify the element on which discrimination is based."/> 
      <comment value="The only FHIRPath functions that are allowed are as(type), resolve(), and extension(url)."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.slicing.discriminator.path"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.slicing.description"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <condition value="eld-1"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.slicing.ordered"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="boolean"/> 
      </type> 
      <meaningWhenMissing value="Order is not required unless specified"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.slicing.rules"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/resource-slicing-rules|4.4.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <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="It is easy for a different short definition to change the meaning of an element and this
       can have nasty downstream consequences. Please be careful when providing short definitions
       in a profile."/> 
      <min value="0"/> 
      <max value="0"/> 
      <base> 
        <path value="ElementDefinition.short"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <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. (Note: The text you are reading is specified
       in ElementDefinition.definition)."/> 
      <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 in a
       profile."/> 
      <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"/> 
      <base> 
        <path value="ElementDefinition.definition"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="markdown"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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. (Note: The text you
       are reading is specified in ElementDefinition.comment)."/> 
      <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"/> 
      <base> 
        <path value="ElementDefinition.comment"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="markdown"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.requirements"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="markdown"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./inboundRelationship[typeCode=META]/source[classCode=ACT, moodCode=EVN, isCriterionInd=true]/reason
        Code/originalText"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="(Registered_item).document_reference[document_type=requirements].notation"/> 
      </mapping> 
    </element> 
    <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="*"/> 
      <base> 
        <path value="ElementDefinition.alias"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.min"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="unsignedInt"/> 
      </type> 
      <condition value="eld-2"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.max"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <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',''))='
        ')"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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.
       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 - then
       the information in provided in the element definition may be different to the base definition.
       On the original definition of the element, it will be same."/> 
      <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. For tooling
       simplicity, the base information must always be populated in element definitions in snap
       shots, even if it is the same."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.base"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Element"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.base.id">
      <path value="ElementDefinition.base.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may be any
       string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUri value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.base.extension">
      <path value="ElementDefinition.base.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. To make the use of extensions safe and manageable, there is a strict set
       of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="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](http://hl7.org/fhir/structuredefinition.html#)
       without a StructureDefinition.base."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.base.path"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.base.min"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="unsignedInt"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.base.max"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.contentReference">
      <path value="ElementDefinition.contentReference"/> 
      <short value="Reference to definition of content for the element"/> 
      <definition value="Identifies an element defined elsewhere in the definition whose content rules should be
       applied to the current element. ContentReferences bring across all the rules that are
       in the ElementDefinition for the element, including definitions, cardinality constraints,
       bindings, invariants etc."/> 
      <comment value="ContentReferences can only be defined in specializations, not constrained types, and they
       cannot be changed and always reference the non-constrained definition."/> 
      <min value="0"/> 
      <max value="0"/> 
      <base> 
        <path value="ElementDefinition.contentReference"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="uri"/> 
      </type> 
      <condition value="eld-5"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <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="*"/> 
      <base> 
        <path value="ElementDefinition.type"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Element"/> 
      </type> 
      <condition value="eld-13"/> 
      <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 reference"/> 
        <expression value="aggregation.empty() or (code = 'Reference')"/> 
        <xpath value="not(exists(f:aggregation)) or exists(f:code[@value = 'Reference'])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="eld-17"/> 
        <severity value="error"/> 
        <human value="targetProfile is only allowed if the type is Reference or canonical"/> 
        <expression value="(code='Reference' or code = 'canonical' or code = 'CodeableReference') or targetProfile.empty()"/> 
        <xpath value="not(exists(f:targetProfile)) or (f:code/@value = 'Reference')"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <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="dex"/> 
        <map value="valueDomain.dataType"/> 
      </mapping> 
      <mapping> 
        <identity value="loinc"/> 
        <map value="HL7_V2_DATATYPE (translation required), HL7_V3_DATATYPE (translation required)"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.type.id">
      <path value="ElementDefinition.type.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may be any
       string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUri value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.type.extension">
      <path value="ElementDefinition.type.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. To make the use of extensions safe and manageable, there is a strict set
       of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="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/StructureDefini
      tion/Patient)."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.type.code"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="uri"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/defined-types"/> 
      </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> 
    <element id="ElementDefinition.type.profile">
      <path value="ElementDefinition.type.profile"/> 
      <short value="Profiles (StructureDefinition or IG) - one must apply"/> 
      <definition value="Identifies a profile structure or implementation Guide that applies to the datatype this
       element refers to. If any profiles are specified, then the content must conform to at
       least one of them. The URL 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 type SHALL conform to at least one profile
       defined in the implementation guide."/> 
      <comment value="It is possible to profile  backbone element (e.g. part of a resource), using the [profile-element](h
      ttp://hl7.org/fhir/extension-elementdefinition-profile-element.html) extension."/> 
      <min value="0"/> 
      <max value="0"/> 
      <base> 
        <path value="ElementDefinition.type.profile"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="canonical"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImplementationGuide"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.type.targetProfile">
      <path value="ElementDefinition.type.targetProfile"/> 
      <short value="Profile (StructureDefinition or IG) on the Reference/canonical target - one must apply"/> 
      <definition value="Used when the type is &quot;Reference&quot; or &quot;canonical&quot;, and identifies a
       profile structure or implementation Guide that applies to the target of the reference
       this element refers to. If any profiles are specified, then the content must conform to
       at least one of them. The URL 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 target resource SHALL conform to at least
       one profile defined in the implementation guide."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="ElementDefinition.type.targetProfile"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="canonical"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/> 
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImplementationGuide"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <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."/> 
      <comment value="See [Aggregation Rules](http://hl7.org/fhir/elementdefinition.html#aggregation) for further
       clarification."/> 
      <min value="0"/> 
      <max value="0"/> 
      <base> 
        <path value="ElementDefinition.type.aggregation"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <condition value="eld-4"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/resource-aggregation-mode|4.4.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <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. See [Aggregation Rules](http://hl7.org/fhir/elementdefinition.html#aggregation)
       for further clarification."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.type.versioning"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/reference-version-rules|4.4.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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="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, or changed in constraints
       on content models. Defining default values creates many difficulties in implementation
       (e.g. when is a value missing?). For these reasons, default values are (and should be)
       used extremely sparingly. 

No default values are ever defined in the FHIR specification, nor can they be defined
       in constraints (&quot;profiles&quot;) on data types or resources. This element only exists
       so that default values may be defined in logical models.
  This element should only be used on child elements of complex data elements."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.defaultValue[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="base64Binary"/> 
      </type> 
      <type> 
        <code value="boolean"/> 
      </type> 
      <type> 
        <code value="canonical"/> 
      </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="integer64"/> 
      </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="url"/> 
      </type> 
      <type> 
        <code value="uuid"/> 
      </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="ContactDetail"/> 
      </type> 
      <type> 
        <code value="Contributor"/> 
      </type> 
      <type> 
        <code value="DataRequirement"/> 
      </type> 
      <type> 
        <code value="Expression"/> 
      </type> 
      <type> 
        <code value="ParameterDefinition"/> 
      </type> 
      <type> 
        <code value="RelatedArtifact"/> 
      </type> 
      <type> 
        <code value="TriggerDefinition"/> 
      </type> 
      <type> 
        <code value="UsageContext"/> 
      </type> 
      <type> 
        <code value="Dosage"/> 
      </type> 
      <type> 
        <code value="Meta"/> 
      </type> 
      <condition value="eld-15"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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.
  This element should only be used on child elements of complex data elements."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.meaningWhenMissing"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="markdown"/> 
      </type> 
      <condition value="eld-15"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.orderMeaning"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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="0"/> 
      <base> 
        <path value="ElementDefinition.fixed[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="base64Binary"/> 
      </type> 
      <type> 
        <code value="boolean"/> 
      </type> 
      <type> 
        <code value="canonical"/> 
      </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="integer64"/> 
      </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="url"/> 
      </type> 
      <type> 
        <code value="uuid"/> 
      </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="ContactDetail"/> 
      </type> 
      <type> 
        <code value="Contributor"/> 
      </type> 
      <type> 
        <code value="DataRequirement"/> 
      </type> 
      <type> 
        <code value="Expression"/> 
      </type> 
      <type> 
        <code value="ParameterDefinition"/> 
      </type> 
      <type> 
        <code value="RelatedArtifact"/> 
      </type> 
      <type> 
        <code value="TriggerDefinition"/> 
      </type> 
      <type> 
        <code value="UsageContext"/> 
      </type> 
      <type> 
        <code value="Dosage"/> 
      </type> 
      <type> 
        <code value="Meta"/> 
      </type> 
      <condition value="eld-5"/> 
      <condition value="eld-6"/> 
      <condition value="eld-8"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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.  

When pattern[x] is used to constrain a primitive, it means that the value provided in
       the pattern[x] must match the instance value exactly.

When pattern[x] is used to constrain an array, it means that each element provided in
       the pattern[x] array must (recursively) match at least one element from the instance array.

When pattern[x] is used to constrain a complex object, it means that each property in
       the pattern must be present in the complex object, and its value must recursively match
       -- i.e.,

1. If primitive: it must match exactly the pattern value
2. If a complex object: it must match (recursively) the pattern value
3. If an array: it must match (recursively) the pattern value."/> 
      <comment value="Mostly used for fixing values of CodeableConcept. In general, pattern[x] is not intended
       for use with primitive types, where is has the same meaning as fixed[x]."/> 
      <min value="0"/> 
      <max value="0"/> 
      <base> 
        <path value="ElementDefinition.pattern[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="base64Binary"/> 
      </type> 
      <type> 
        <code value="boolean"/> 
      </type> 
      <type> 
        <code value="canonical"/> 
      </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="integer64"/> 
      </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="url"/> 
      </type> 
      <type> 
        <code value="uuid"/> 
      </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="ContactDetail"/> 
      </type> 
      <type> 
        <code value="Contributor"/> 
      </type> 
      <type> 
        <code value="DataRequirement"/> 
      </type> 
      <type> 
        <code value="Expression"/> 
      </type> 
      <type> 
        <code value="ParameterDefinition"/> 
      </type> 
      <type> 
        <code value="RelatedArtifact"/> 
      </type> 
      <type> 
        <code value="TriggerDefinition"/> 
      </type> 
      <type> 
        <code value="UsageContext"/> 
      </type> 
      <type> 
        <code value="Dosage"/> 
      </type> 
      <type> 
        <code value="Meta"/> 
      </type> 
      <condition value="eld-5"/> 
      <condition value="eld-7"/> 
      <condition value="eld-8"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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="*"/> 
      <base> 
        <path value="ElementDefinition.example"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Element"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.example.id">
      <path value="ElementDefinition.example.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may be any
       string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUri value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.example.extension">
      <path value="ElementDefinition.example.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. To make the use of extensions safe and manageable, there is a strict set
       of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="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"/> 
      <base> 
        <path value="ElementDefinition.example.label"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.example.value[x]"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="base64Binary"/> 
      </type> 
      <type> 
        <code value="boolean"/> 
      </type> 
      <type> 
        <code value="canonical"/> 
      </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="integer64"/> 
      </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="url"/> 
      </type> 
      <type> 
        <code value="uuid"/> 
      </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="ContactDetail"/> 
      </type> 
      <type> 
        <code value="Contributor"/> 
      </type> 
      <type> 
        <code value="DataRequirement"/> 
      </type> 
      <type> 
        <code value="Expression"/> 
      </type> 
      <type> 
        <code value="ParameterDefinition"/> 
      </type> 
      <type> 
        <code value="RelatedArtifact"/> 
      </type> 
      <type> 
        <code value="TriggerDefinition"/> 
      </type> 
      <type> 
        <code value="UsageContext"/> 
      </type> 
      <type> 
        <code value="Dosage"/> 
      </type> 
      <type> 
        <code value="Meta"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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 [Duration](http://hl7.org/fhir/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"/> 
      <base> 
        <path value="ElementDefinition.minValue[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <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="integer64"/> 
      </type> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <type> 
        <code value="unsignedInt"/> 
      </type> 
      <type> 
        <code value="Quantity"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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 [Duration](http://hl7.org/fhir/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"/> 
      <base> 
        <path value="ElementDefinition.maxValue[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <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="integer64"/> 
      </type> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <type> 
        <code value="unsignedInt"/> 
      </type> 
      <type> 
        <code value="Quantity"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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"/> 
      <base> 
        <path value="ElementDefinition.maxLength"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="integer"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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> 
    <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="*"/> 
      <base> 
        <path value="ElementDefinition.condition"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="id"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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="*"/> 
      <base> 
        <path value="ElementDefinition.constraint"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Element"/> 
      </type> 
      <constraint> 
        <key value="eld-21"/> 
        <severity value="warning"/> 
        <human value="Constraints should have an expression or else validators will not be able to enforce them"/> 
        <expression value="expression.exists()"/> 
        <xpath value="exists(f:expression/@value)"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/ElementDefinition"/> 
      </constraint> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
      <mapping> 
        <identity value="iso11179"/> 
        <map value="??"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.constraint.id">
      <path value="ElementDefinition.constraint.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may be any
       string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUri value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="ElementDefinition.constraint.extension">
      <path value="ElementDefinition.constraint.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. To make the use of extensions safe and manageable, there is a strict set
       of governance  applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part of the
       definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application, project,
       or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
        The use of extensions is what allows the FHIR specification to retain a core level of
       simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="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"/> 
      <base> 
        <path value="ElementDefinition.constraint.key"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="id"/> 
      </type> 
      <condition value="eld-14"/> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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 might not be intuitive to all implementers."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="ElementDefinition.constraint.requirements"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <xpath value="@value|f:*|h:div"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (MIF territory)"/> 
      </mapping> 
    </element> 
    <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"/>