CH EPR mHealth (R4)
0.1.1 - Draft Standard for Trial Use

This page is part of the CH EPR mHealth (R4) (v0.1.1: DSTU 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

StructureDefinition: ChEprMHealthHumanName - XML Profile

XML representation of the ch-epr-mhealth-humanname Profile.

Narrative view of the profile


<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ch-epr-mhealth-humanname"/>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/R4/help16.png" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-ch-epr-mhealth-humanname-definitions.html#HumanName">HumanName</a><a name="HumanName"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element has or is affected by some invariants (ch-epr-mhealth-1)">I</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://fhir.ch/ig/ch-core/StructureDefinition-ch-core-humanname.html">CHCoreHumanName</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Name of a human - parts and usage</span><br/><span style="font-weight:bold">ch-epr-mhealth-1: </span>For birth name (iso21090-EN-qualifier BR) use slice 'name:BirthName'</td></tr>
<tr><td colspan="5" class="hierarchy"><br/><a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/R4/help16.png" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
  </text>
  <url
       value="http://fhir.ch/ig/ch-epr-mhealth/StructureDefinition/ch-epr-mhealth-humanname"/>
  <version value="0.1.1"/>
  <name value="ChEprMHealthHumanName"/>
  <title value="CH EPR mHealth HumanName"/>
  <status value="draft"/>
  <date value="2020-07-27T00:00:00+10:00"/>
  <publisher value="eHealth Suisse"/>
  <contact>
    <name value="eHealth Suisse"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.e-health-suisse.ch"/>
    </telecom>
  </contact>
  <description
               value="The humanname WITHOUT the ISO 21090 qualifier https://www.hl7.org/fhir/extension-iso21090-en-qualifier.html BR"/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="CH"/>
    </coding>
  </jurisdiction>
  <fhirVersion value="4.0.1"/>
  <mapping>
    <identity value="eCH"/>
    <uri value="http://www.ech.ch/"/>
    <name value="eCH-Standards"/>
  </mapping>
  <mapping>
    <identity value="CDA-CH-V2"/>
    <uri
         value="http://e-health-wiki.ch/index.php/Ehscda:CDA-CH_2017_(specification)"/>
    <name value="CDA-CH 2020 V2.1"/>
  </mapping>
  <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="servd"/>
    <uri value="http://www.omg.org/spec/ServD/1.0/"/>
    <name value="ServD"/>
  </mapping>
  <kind value="complex-type"/>
  <abstract value="false"/>
  <type value="HumanName"/>
  <baseDefinition
                  value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-humanname"/>
  <derivation value="constraint"/>
  <snapshot>
    <element id="HumanName">
      <path value="HumanName"/>
      <short value="Name of a human - parts and usage"/>
      <definition
                  value="A human&#39;s name with the ability to identify parts and usage."/>
      <comment
               value="Names may be changed, or repudiated, or people may have different names in different contexts. Names may be divided into parts of different type that have variable significance depending on context, though the division into parts does not always matter. With personal names, the different parts might or might not be imbued with some implicit meaning; various cultures associate different importance with the name parts and the degree to which systems must care about name parts around the world varies widely."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="HumanName"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <condition value="ele-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <constraint>
        <key value="ch-core-hm-1"/>
        <severity value="error"/>
        <human
               value="if officalName with eCH-011 Extension is specified, it can only be put on a name where use attribute is official"/>
        <expression
                    value="family.extension.where(url=&#39;http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name&#39; and valueCode=&#39;officialName&#39;).empty() or (family.extension.where(url=&#39;http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name&#39; and valueCode=&#39;officialName&#39;).exists() and use=&#39;official&#39;)"/>
        <source
                value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-humanname"/>
      </constraint>
      <constraint>
        <key value="ch-core-hm-2"/>
        <severity value="error"/>
        <human
               value="if orginalName with eCH-011 Extension is specified, it can only be put on a name where use attribute is maiden"/>
        <expression
                    value="family.extension.where(url=&#39;http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name&#39; and valueCode=&#39;originalName&#39;).empty() or ((family.extension.where(url=&#39;http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name&#39; and valueCode=&#39;originalName&#39;).exists() and use=&#39;maiden&#39;))"/>
        <source
                value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-humanname"/>
      </constraint>
      <constraint>
        <key value="ch-core-hm-3"/>
        <severity value="error"/>
        <human value="ch-ext-ech-11-name can only be put on a family name"/>
        <expression
                    value="descendants().extension.where(url=&#39;http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name&#39;).count()=family.extension.where(url=&#39;http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name&#39;).count()"/>
        <source
                value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-humanname"/>
      </constraint>
      <constraint>
        <key value="ch-core-hm-4"/>
        <severity value="error"/>
        <human value="ch-ext-ech-11-firstname can only be put on a given name"/>
        <expression
                    value="descendants().extension.where(url=&#39;http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-firstname&#39;).count()=given.extension.where(url=&#39;http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-firstname&#39;).count()"/>
        <source
                value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-humanname"/>
      </constraint>
      <constraint>
        <key value="ch-epr-mhealth-1"/>
        <severity value="error"/>
        <human
               value="For birth name (iso21090-EN-qualifier BR) use slice &#39;name:BirthName&#39;"/>
        <expression
                    value="family.extension.where(url=&#39;http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier&#39; and valueCode=&#39;BR&#39;).exists()=false"/>
      </constraint>
      <isModifier value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
      <mapping>
        <identity value="v2"/>
        <map value="XPN"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="EN (actually, PN)"/>
      </mapping>
      <mapping>
        <identity value="servd"/>
        <map value="ProviderName"/>
      </mapping>
      <mapping>
        <identity value="CDA-CH-V2"/>
        <map
             value="https://art-decor.org/art-decor/decor-templates--hl7chcda-?section=templates&amp;id=2.16.756.5.30.1.1.10.9.35"/>
      </mapping>
    </element>
    <element id="HumanName.id">
      <path value="HumanName.id"/>
      <representation value="xmlAttr"/>
      <short value="Unique id for inter-element referencing"/>
      <definition
                  value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="HumanName.extension">
      <path value="HumanName.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="HumanName.use">
      <path value="HumanName.use"/>
      <short
             value="usual | official | temp | nickname | anonymous | old | maiden"/>
      <definition value="Identifies the purpose for this name."/>
      <comment
               value="Applications can assume that a name is current unless it explicitly says that it is temporary or old."/>
      <requirements
                    value="Allows the appropriate name for a particular context of use to be selected from among a set of names."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="HumanName.use"/>
        <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="true"/>
      <isModifierReason
                        value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary or old name etc.for a current/permanent one"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="NameUse"/>
        </extension>
        <strength value="required"/>
        <description value="The use of a human name."/>
        <valueSet value="http://hl7.org/fhir/ValueSet/name-use|4.0.1"/>
      </binding>
      <mapping>
        <identity value="v2"/>
        <map value="XPN.7, but often indicated by which field contains the name"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="unique(./use)"/>
      </mapping>
      <mapping>
        <identity value="servd"/>
        <map value="./NamePurpose"/>
      </mapping>
    </element>
    <element id="HumanName.text">
      <path value="HumanName.text"/>
      <short value="Text representation of the full name"/>
      <definition
                  value="Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts."/>
      <comment
               value="Can provide both a text representation and parts. Applications updating a name SHALL ensure that when both text and parts are present,  no content is included in the text that isn&#39;t found in a part."/>
      <requirements value="A renderable, unencoded form."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="HumanName.text"/>
        <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="implied by XPN.11"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="./formatted"/>
      </mapping>
    </element>
    <element id="HumanName.family">
      <path value="HumanName.family"/>
      <short value="Family name (often called &#39;Surname&#39;)"/>
      <definition
                  value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father."/>
      <comment
               value="Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures)."/>
      <alias value="surname"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="HumanName.family"/>
        <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="XPN.1/FN.1"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="./part[partType = FAM]"/>
      </mapping>
      <mapping>
        <identity value="servd"/>
        <map value="./FamilyName"/>
      </mapping>
      <mapping>
        <identity value="eCH"/>
        <map value="eCH-0010: lastName"/>
      </mapping>
      <mapping>
        <identity value="CDA-CH-V2"/>
        <map value="hl7:name (1..1 R) / hl7:family (1..* R)"/>
      </mapping>
    </element>
    <element id="HumanName.family.id">
      <path value="HumanName.family.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition
                  value="unique id for the element within a resource (for internal references)"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="HumanName.family.extension">
      <path value="HumanName.family.extension"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="url"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
      <short value="Extension"/>
      <definition value="An Extension"/>
      <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(.), &#39;value&#39;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="HumanName.family.extension:ech11name">
      <path value="HumanName.family.extension"/>
      <sliceName value="ech11name"/>
      <short value="Extension"/>
      <definition value="Extension for eCH-0011 - namedatatype"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
        <profile
                 value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name"/>
      </type>
      <condition value="ele-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="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(.), &#39;value&#39;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="false"/>
      <mapping>
        <identity value="eCH"/>
        <map
             value="eCH-0011: officialName, originalName, allianceName, nameOnForeignPassport, aliasName, otherName, declaredForeignName"/>
      </mapping>
    </element>
    <element id="HumanName.family.value">
      <path value="HumanName.family.value"/>
      <representation value="xmlAttr"/>
      <short value="Primitive value for string"/>
      <definition value="The actual value"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="string.value"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/regex">
          <valueString value="[ \r\n\t\S]+"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <maxLength value="1048576"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="HumanName.given">
      <path value="HumanName.given"/>
      <short
             value="Given names (not always &#39;first&#39;). Includes middle names"/>
      <definition value="Given name."/>
      <comment
               value="If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren&#39;t due to paractical limitations.  This element is not called &quot;first name&quot; since given names do not always come first."/>
      <alias value="first name"/>
      <alias value="middle name"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="HumanName.given"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <orderMeaning
                    value="Given Names appear in the correct order for presenting the name"/>
      <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="XPN.2 + XPN.3"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="./part[partType = GIV]"/>
      </mapping>
      <mapping>
        <identity value="servd"/>
        <map value="./GivenNames"/>
      </mapping>
      <mapping>
        <identity value="eCH"/>
        <map value="eCH-0010: firstName equivalent to callName of eCH-0011"/>
      </mapping>
      <mapping>
        <identity value="CDA-CH-V2"/>
        <map value="hl7:name (1..1 R) / hl7:given (1..* R)"/>
      </mapping>
    </element>
    <element id="HumanName.given.id">
      <path value="HumanName.given.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition
                  value="unique id for the element within a resource (for internal references)"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="HumanName.given.extension">
      <path value="HumanName.given.extension"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="url"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
      <short value="Extension"/>
      <definition value="An Extension"/>
      <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(.), &#39;value&#39;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="HumanName.given.extension:ech11firstname">
      <path value="HumanName.given.extension"/>
      <sliceName value="ech11firstname"/>
      <short value="Extension"/>
      <definition value="eCH-0011: Extension to define first name type"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
        <profile
                 value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-firstname"/>
      </type>
      <condition value="ele-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="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(.), &#39;value&#39;)])"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
      </constraint>
      <isModifier value="false"/>
      <mapping>
        <identity value="eCH"/>
        <map
             value="eCH-0011: officialFirstName, callName, allianceName, firstNameOnForeignPassport, declaredForeignFirstName1"/>
      </mapping>
    </element>
    <element id="HumanName.given.value">
      <path value="HumanName.given.value"/>
      <representation value="xmlAttr"/>
      <short value="Primitive value for string"/>
      <definition value="The actual value"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="string.value"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/regex">
          <valueString value="[ \r\n\t\S]+"/>
        </extension>
        <code value="http://hl7.org/fhirpath/System.String"/>
      </type>
      <maxLength value="1048576"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="HumanName.prefix">
      <path value="HumanName.prefix"/>
      <short value="Parts that come before the name"/>
      <definition
                  value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="HumanName.prefix"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <orderMeaning
                    value="Prefixes appear in the correct order for presenting the name"/>
      <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="XPN.5"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="./part[partType = PFX]"/>
      </mapping>
      <mapping>
        <identity value="servd"/>
        <map value="./TitleCode"/>
      </mapping>
      <mapping>
        <identity value="eCH"/>
        <map value="eCH-0010: mrMrs, title"/>
      </mapping>
    </element>
    <element id="HumanName.suffix">
      <path value="HumanName.suffix"/>
      <short value="Parts that come after the name"/>
      <definition
                  value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="HumanName.suffix"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <orderMeaning
                    value="Suffixes appear in the correct order for presenting the name"/>
      <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="XPN/4"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="./part[partType = SFX]"/>
      </mapping>
    </element>
    <element id="HumanName.period">
      <path value="HumanName.period"/>
      <short value="Time period when name was/is in use"/>
      <definition
                  value="Indicates the period of time when this name was valid for the named person."/>
      <requirements value="Allows names to be placed in historical context."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="HumanName.period"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Period"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() or (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <isModifier value="false"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="v2"/>
        <map value="XPN.13 + XPN.14"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="./usablePeriod[type=&quot;IVL&lt;TS&gt;&quot;]"/>
      </mapping>
      <mapping>
        <identity value="servd"/>
        <map value="./StartDate and ./EndDate"/>
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="HumanName">
      <path value="HumanName"/>
      <constraint>
        <key value="ch-epr-mhealth-1"/>
        <severity value="error"/>
        <human
               value="For birth name (iso21090-EN-qualifier BR) use slice &#39;name:BirthName&#39;"/>
        <expression
                    value="family.extension.where(url=&#39;http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier&#39; and valueCode=&#39;BR&#39;).exists()=false"/>
      </constraint>
    </element>
  </differential>
</StructureDefinition>