<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nl-core-relatedperson" />
  <url value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson" />
  <version value="2.0.2" />
  <name value="nl-core-relatedperson" />
  <title value="nl-core-relatedperson" />
  <status value="active" />
  <publisher value="HL7 Netherlands" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="email" />
      <value value="info@nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="A RelatedPerson resource as defined by the Dutch Health and Care Information models or HCIM (Dutch: Zorginformatieb1ouwsteen or ZIB) ContactPersoon version 3.1 (Release 2017). The HCIM ContactPerson is meant to deal with both related persons and contacts. This profile targets instantiations of the HCIM ContactPerson who are related persons. An HCIM ContactPerson who is a contact for a patient, belongs in Patient.contact. If a person is both a related person and a contact person, then some data duplication is inevitable. This may or may not be resolved in a future version of the Patient/RelatedPerson resources." />
  <purpose value="Recording relevant information to identify the contacts." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="hcim-contactperson-v1.2-2015EN" />
    <uri value="https://zibs.nl/wiki/ContactPerson-v1.2(2015EN)" />
    <name value="HCIM ContactPerson-v1.2(2015EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-contactperson-v3.0-2016EN" />
    <uri value="https://zibs.nl/wiki/ContactPerson-v3.0(2016EN)" />
    <name value="HCIM ContactPerson-v3.0(2016EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-contactperson-v3.1-2017EN" />
    <uri value="https://zibs.nl/wiki/ContactPerson-v3.1(2017EN)" />
    <name value="HCIM ContactPerson-v3.1(2017EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-contactinformation-v2.0.1-2015EN" />
    <uri value="https://zibs.nl/wiki/Patient-v2.0.1(2015EN)" />
    <name value="HCIM Patient-v2.0.1(2015EN)" />
    <comment value="ContactInformation has become an independent information model as of release 2017 of the HCIMs" />
  </mapping>
  <mapping>
    <identity value="hcim-contactinformation-v3.0-2016EN" />
    <uri value="https://zibs.nl/wiki/Patient-v3.0(2016EN)" />
    <name value="HCIM Patient-v3.0(2016EN)" />
    <comment value="ContactInformation has become an independent information model as of release 2017 of the HCIMs." />
  </mapping>
  <mapping>
    <identity value="hcim-contactinformation-v1.0-2017EN" />
    <uri value="https://zibs.nl/wiki/ContactInformation-v1.0(2017EN)" />
    <name value="HCIM ContactInformation-v1.0(2017EN)" />
    <comment value="ContactInformation has become an independent information model as of release 2017 of the HCIMs." />
  </mapping>
  <mapping>
    <identity value="hcim-payer-v1.2-2015EN" />
    <uri value="https://zibs.nl/wiki/Payer-v1.2(2015EN)" />
    <name value="HCIM Payer-v1.2(2015EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-payer-v3.0-2016EN" />
    <uri value="https://zibs.nl/wiki/Payer-v3.0(2016EN)" />
    <name value="HCIM Payer-v3.0(2016EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-payer-v3.1-2017EN" />
    <uri value="https://zibs.nl/wiki/Payer-v3.1(2017EN)" />
    <name value="HCIM Payer-v3.1(2017EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-basicelements-v1.0-2017EN" />
    <uri value="https://zibs.nl/wiki/BasicElements-v1.0(2017EN)" />
    <name value="HCIM BasicElements-v1.0(2017EN)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="RelatedPerson" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
  <derivation value="constraint" />
  <snapshot>
    <element id="RelatedPerson">
      <path value="RelatedPerson" />
      <short value="An person that is related to a patient, but who is not a direct target of care" />
      <definition value="Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Resource" />
        <min value="0" />
        <max value="*" />
      </base>
      <constraint>
        <key value="dom-2" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources" />
        <expression value="contained.contained.empty()" />
        <xpath value="not(parent::f:contained and f:contained)" />
      </constraint>
      <constraint>
        <key value="dom-1" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative" />
        <expression value="contained.text.empty()" />
        <xpath value="not(parent::f:contained and f:text)" />
      </constraint>
      <constraint>
        <key value="dom-4" />
        <severity value="error" />
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" />
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" />
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" />
      </constraint>
      <constraint>
        <key value="dom-3" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource" />
        <expression value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()" />
        <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="role" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="administrative.individual" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.1" />
        <comment value="Contact" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.1" />
        <comment value="Contact" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.1" />
        <comment value="Contact" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.5" />
        <comment value="RelatedPersonAsInformationSource::ContactPerson" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.10" />
        <comment value="RelatedPersonAsAuthor::ContactPerson" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.13" />
        <comment value="RelatedPersonAsSubject::ContactPerson" />
      </mapping>
    </element>
    <element id="RelatedPerson.id">
      <path value="RelatedPerson.id" />
      <short value="Logical id of this artifact" />
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." />
      <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="id" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="RelatedPerson.meta">
      <path value="RelatedPerson.meta" />
      <short value="Metadata about the resource" />
      <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.meta" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Meta" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="RelatedPerson.implicitRules">
      <path value="RelatedPerson.implicitRules" />
      <short value="A set of rules under which this content was created" />
      <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." />
      <comment value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. &#xA;&#xA;This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.implicitRules" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isModifier value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="RelatedPerson.language">
      <path value="RelatedPerson.language" />
      <short value="Language of the resource content" />
      <definition value="The base language in which the resource is written." />
      <comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.language" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages" />
          </valueReference>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="extensible" />
        <description value="A human language." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="RelatedPerson.text">
      <path value="RelatedPerson.text" />
      <short value="Text summary of the resource, for human interpretation" />
      <definition value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." />
      <comment value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded in formation is added later." />
      <alias value="narrative" />
      <alias value="html" />
      <alias value="xhtml" />
      <alias value="display" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="DomainResource.text" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Narrative" />
      </type>
      <condition value="ele-1" />
      <condition value="dom-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act.text?" />
      </mapping>
    </element>
    <element id="RelatedPerson.contained">
      <path value="RelatedPerson.contained" />
      <short value="Contained, inline Resources" />
      <definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." />
      <comment value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again." />
      <alias value="inline resources" />
      <alias value="anonymous resources" />
      <alias value="contained resources" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.contained" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Resource" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="RelatedPerson.extension">
      <path value="RelatedPerson.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="RelatedPerson.extension:role">
      <path value="RelatedPerson.extension" />
      <sliceName value="role" />
      <short value="Role" />
      <definition value="Defines the role of the contact in relation to the patient." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="Rol" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson-role" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.2" />
        <comment value="Role" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.2" />
        <comment value="Role" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.2" />
        <comment value="Role" />
      </mapping>
    </element>
    <element id="RelatedPerson.extension:role.id">
      <path value="RelatedPerson.extension.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <comment value="Note that FHIR strings may not exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="RelatedPerson.extension:role.extension">
      <path value="RelatedPerson.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="RelatedPerson.extension:role.url">
      <path value="RelatedPerson.extension.url" />
      <representation value="xmlAttr" />
      <short value="identifies the meaning of the extension" />
      <definition value="Source of the definition for the extension code - a logical name or a URL." />
      <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Extension.url" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson-role" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="RelatedPerson.extension:role.valueCodeableConcept:valueCodeableConcept">
      <path value="RelatedPerson.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <short value="Role" />
      <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." />
      <alias value="Rol" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Extension.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.3.1.2--20171231000000" />
          <display value="RolCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.2" />
        <comment value="Role" />
      </mapping>
    </element>
    <element id="RelatedPerson.modifierExtension">
      <path value="RelatedPerson.modifierExtension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Extensions that cannot be ignored" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
      <isModifier value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="RelatedPerson.identifier">
      <path value="RelatedPerson.identifier" />
      <short value="A human identifier for this person" />
      <definition value="Identifier for a person within a particular scope." />
      <requirements value="People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the patient. Examples are national person identifier and local identifier." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="RelatedPerson.identifier" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Identifier" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="NK1-33" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="id" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.6" />
        <comment value="IdentificationNumber" />
      </mapping>
    </element>
    <element id="RelatedPerson.active">
      <path value="RelatedPerson.active" />
      <short value="Whether this related person's record is in active use" />
      <definition value="Whether this related person record is in active use." />
      <comment value="This element is labeled as a modifier because it may be used to mark that the resource was created in error." />
      <requirements value="Need to be able to mark a related person record as not to be used, such as if it was created in error." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="RelatedPerson.active" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <defaultValueBoolean value="true" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isModifier value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".statusCode" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="status" />
      </mapping>
    </element>
    <element id="RelatedPerson.patient">
      <path value="RelatedPerson.patient" />
      <short value="The patient this person is related to" />
      <definition value="The patient this person is related to." />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
      <requirements value="We need to know which patient this RelatedPerson is related to." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="RelatedPerson.patient" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
        <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="PID-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="scoper[classCode=PSN|ANM and determinerCode='INSTANCE']/playedRole[classCode='PAT']/id" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.11" />
        <comment value="Subject" />
      </mapping>
    </element>
    <element id="RelatedPerson.relationship">
      <path value="RelatedPerson.relationship" />
      <short value="Relationship" />
      <definition value="Defines the contact’s familial relationship to the patient." />
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." />
      <requirements value="We need to know the relationship with the patient since it influences the interpretation of the information attributed to this person." />
      <alias value="Relatie" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="RelatedPerson.relationship" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PatientRelationshipType" />
        </extension>
        <strength value="extensible" />
        <description value="The nature of the relationship between a patient and the related person" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.3.1.1--20171231000000" />
          <display value="RelatieCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="NK1-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.3" />
        <comment value="Relationship" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.3" />
        <comment value="Relationship" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.3" />
        <comment value="Relationship" />
      </mapping>
    </element>
    <element id="RelatedPerson.name">
      <path value="RelatedPerson.name" />
      <short value="NameInformation" />
      <definition value="Full name of the contact." />
      <comment value="Names may be changed, or repudiated, or people may have different names in different contexts. Names may be divided into parts of different type that have variable significance depending on context, though the division into parts does not always matter. With personal names, the different parts may or may not be imbued with some implicit meaning; various cultures associate different importance with the name parts and the degree to which systems must care about name parts around the world varies widely.&#xD;&#xA;&#xD;&#xA;A Dutch HumanName is a proper FHIR HumanName. Systems that do not understand any of the extensions, will be able to render and work with a Dutch name. Dutch names make certain name parts seaprately communicable. These parts are required for use in true Dutch systems when dealing with Dutch names, but may not have value for international systems when information gets sent abroad.&#xD;&#xA;&#xD;&#xA;To have true compatibility an implementer SHOULD use the core HumanName parts as intended. To have names work for Dutch context, the implementer SHOULD in addition use the extension elements.&#xD;&#xA;&#xD;&#xA;The extension elements cover birth name (NL: eigennaam / geslachtsnaam) and partner/spouse name. Both may have a prefix (NL: voorvoegsel). When a person marries, he or she may keep their own name, assume the partner name, append the partner name to their own name, or the other way around.&#xD;&#xA;&#xD;&#xA;For this reason, there are extensions for marking each part for what it is. &#xD;&#xA;&#xD;&#xA;Example: miss Irma Jongeneel marries mister de Haas and assumes the name Irma Jongeneel-de Haas&#xD;&#xA;family = &quot;Jongeneel-de Haas&quot;&#xD;&#xA;given = &quot;Irma&quot;&#xD;&#xA;humanname-own-name = &quot;Jongeneel&quot;&#xD;&#xA;humanname-partner-prefix = &quot;de &quot;&#xD;&#xA;humanname-partner-name = &quot;Haas&quot;" />
      <requirements value="Related persons need to be identified by name, but it is uncommon to need details about multiple other names for that person." />
      <alias value="Naamgegevens" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="RelatedPerson.name" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="HumanName" />
        <profile value="http://fhir.nl/fhir/StructureDefinition/nl-core-humanname" />
      </type>
      <example>
        <label value="Structured HumanName (preferred above unstructured)" />
        <valueHumanName>
          <extension url="http://hl7.org/fhir/StructureDefinition/humanname-assembly-order">
            <valueCode value="NL4" />
          </extension>
          <use value="official" />
          <family value="Jongeneel-de Haas">
            <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name">
              <valueString value="Jongeneel" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/humanname-partner-prefix">
              <valueString value="de" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/humanname-partner-name">
              <valueString value="Haas" />
            </extension>
          </family>
          <given value="Irma">
            <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier">
              <valueCode value="CL" />
            </extension>
          </given>
          <given value="I.">
            <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier">
              <valueCode value="IN" />
            </extension>
          </given>
        </valueHumanName>
      </example>
      <example>
        <label value="Unstructured HumanName" />
        <valueHumanName>
          <use value="official" />
          <text value="Irma Jongeneel-de Haas" />
        </valueHumanName>
      </example>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="nl-core-humanname-1" />
        <severity value="error" />
        <human value="if you specify a prefix for an own name then an own name is also expected" />
        <expression value="name.family.extension('http://hl7.org/fhir/StructureDefinition/humanname-own-prefix').empty().not() implies name.family.extension('http://hl7.org/fhir/StructureDefinition/humanname-own-name').empty().not()" />
        <xpath value="not(f:extension[@url='http://hl7.org/fhir/StructureDefinition/humanname-own-prefix']) or f:extension[@url='http://hl7.org/fhir/StructureDefinition/humanname-own-name']" />
      </constraint>
      <constraint>
        <key value="nl-core-humanname-2" />
        <severity value="error" />
        <human value="if you specify a voorvoegsel for a partner name then a partner name is also expected" />
        <expression value="name.family.extension('http://hl7.org/fhir/StructureDefinition/humanname-partner-prefix').empty().not() implies name.family.extension('http://hl7.org/fhir/StructureDefinition/humanname-partner-name').empty().not()" />
        <xpath value="not(f:extension[@url='http://hl7.org/fhir/StructureDefinition/humanname-partner-prefix']) or f:extension[@url='http://hl7.org/fhir/StructureDefinition/humanname-partner-name']" />
      </constraint>
      <isSummary value="true" />
      <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="v2" />
        <map value="NK1-2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="name" />
      </mapping>
      <mapping>
        <identity value="hcim-nameinformation-v2.0.1-2015EN" />
        <map value="NL-CM:0.1.6" />
        <comment value="NameInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-nameinformation-v3.0-2016EN" />
        <map value="NL-CM:0.1.6" />
        <comment value="NameInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-nameinformation-v1.0.1-2017EN" />
        <map value="NL-CM:20.4.1" />
        <comment value="NameInformation" />
      </mapping>
      <mapping>
        <identity value="BRP" />
        <map value="02" />
        <comment value="Naam" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.4" />
        <comment value="Name" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.4" />
        <comment value="Name" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.4" />
        <comment value="NameInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.5" />
        <comment value="PayerName" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.5" />
        <comment value="PayerName" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.5" />
        <comment value="PayerName" />
      </mapping>
    </element>
    <element id="RelatedPerson.telecom">
      <path value="RelatedPerson.telecom" />
      <short value="ContactInformation" />
      <definition value="Contact information includes a person's telephone numbers and email addresses. This datatype defines a common basis for expressing all contact information around the world, but adds extensions to express Dutch contacts specifically, according to the HCIM ContactInformation (v1.0, 2017). A Dutch ContactPoint still is a proper FHIR ContactPoint, which means that systems that cannot interpret the extensions will still be able to render and work with this datatype. The table below explains how the HCIM concepts are mapped to the various FHIR elements. The HCIM code itself should also be included using the TelecomType extension.&#xD;&#xA;&#xD;&#xA;         | HCIM                                               | .ext:TelecomType | .system | .use   |&#xD;&#xA;         |----------------------------------------------------|------------------|---------|--------|&#xD;&#xA;         | Primary Home Land Line                             | LL               | phone   | home   |&#xD;&#xA;         | Temporary Land Line                                | LL               | phone   | temp   |&#xD;&#xA;         | Primary Work Land Line                             | LL               | phone   | work   |&#xD;&#xA;         |                                                    |                  |         |        |&#xD;&#xA;         | Primary Home Fax                                   | FAX              | fax     | home   |&#xD;&#xA;         | Temporary Fax                                      | FAX              | fax     | temp   |&#xD;&#xA;         | Primary Work Fax                                   | FAX              | fax     | work   |&#xD;&#xA;         |                                                    |                  |         |        |&#xD;&#xA;         | Primary Home Mobile Phone                          | MC               | phone   | home   |&#xD;&#xA;         | Temporary Mobile Phone                             | MC               | phone   | temp   |&#xD;&#xA;         | Primary Work Mobile Phone                          | MC               | phone   | work   |&#xD;&#xA;         |                                                    |                  |         |        |&#xD;&#xA;         | Primary Home Pager                                 | PG               | pager   | home   |&#xD;&#xA;         | Temporary Pager                                    | PG               | pager   | temp   |&#xD;&#xA;         | Primary Work Pager                                 | PG               | pager   | work   |&#xD;&#xA;         |                                                    |                  |         |        |&#xD;&#xA;         | Private email address                              |                  | email   | home   |&#xD;&#xA;         | Work email address                                 |                  | email   | work   |&#xD;&#xA;         |                                                    |                  |         |        |&#xD;&#xA;         | Mobile phone number undetermined private/business  |                  | phone   | mobile |" />
      <comment value="Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification." />
      <requirements value="People have (primary) ways to contact them in some way such as phone, email." />
      <alias value="Contactgegevens" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="RelatedPerson.telecom" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="ContactPoint" />
        <profile value="http://fhir.nl/fhir/StructureDefinition/nl-core-contactpoint" />
      </type>
      <example>
        <label value="Mobile business phone number. Note: the mobile nature stems from the number being an 06-* number." />
        <valueContactPoint>
          <system value="phone" />
          <value value="+31611234567" />
          <use value="work" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Mobile phone number undetermined private/business. Note: the mobile nature stems from the number being an 06-* number." />
        <valueContactPoint>
          <system value="phone" />
          <value value="+31611234567" />
          <use value="mobile" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Primary Home Land Line" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.22.1" />
                <code value="LL" />
                <display value="Land Line" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="phone" />
          <value value="..." />
          <use value="home" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Temporary Land Line" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.22.1" />
                <code value="LL" />
                <display value="Land Line" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="phone" />
          <value value="..." />
          <use value="temp" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Primary Work Land Line" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.22.1" />
                <code value="LL" />
                <display value="Land Line" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="phone" />
          <value value="..." />
          <use value="work" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Primary Home Fax" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.22.1" />
                <code value="FAX" />
                <display value="Fax" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="fax" />
          <value value="..." />
          <use value="home" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Temporary Fax" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.22.1" />
                <code value="FAX" />
                <display value="Fax" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="fax" />
          <value value="..." />
          <use value="temp" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Primary Work Fax" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.22.1" />
                <code value="FAX" />
                <display value="Fax" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="fax" />
          <value value="..." />
          <use value="work" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Primary Home Mobile Phone" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="http://hl7.org/fhir/v3/AddressUse" />
                <code value="MC" />
                <display value="Mobile Phone" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="phone" />
          <value value="..." />
          <use value="home" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Temporary Mobile Phone" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="http://hl7.org/fhir/v3/AddressUse" />
                <code value="MC" />
                <display value="Mobile Phone" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="phone" />
          <value value="..." />
          <use value="temp" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Primary Work Mobile Phone" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="http://hl7.org/fhir/v3/AddressUse" />
                <code value="MC" />
                <display value="Mobile Phone" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="phone" />
          <value value="..." />
          <use value="work" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Primary Home Pager" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="http://hl7.org/fhir/v3/AddressUse" />
                <code value="PG" />
                <display value="Pager" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="pager" />
          <value value="..." />
          <use value="home" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Temporary Pager" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="http://hl7.org/fhir/v3/AddressUse" />
                <code value="PG" />
                <display value="Pager" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="pager" />
          <value value="..." />
          <use value="temp" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Primary Work Pager" />
        <valueContactPoint>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-ContactInformation-TelecomType">
            <valueCodeableConcept>
              <coding>
                <system value="http://hl7.org/fhir/v3/AddressUse" />
                <code value="PG" />
                <display value="Pager" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="pager" />
          <value value="..." />
          <use value="work" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Private email address" />
        <valueContactPoint>
          <system value="email" />
          <value value="giesput@myweb.nl" />
          <use value="home" />
        </valueContactPoint>
      </example>
      <example>
        <label value="Work email address" />
        <valueContactPoint>
          <system value="email" />
          <value value="example@workplace.nl" />
          <use value="work" />
        </valueContactPoint>
      </example>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="cpt-2" />
        <severity value="error" />
        <human value="A system is required if a value is provided." />
        <expression value="value.empty() or system.exists()" />
        <xpath value="not(exists(f:value)) or exists(f:system)" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XTN" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="TEL" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="ContactPoint" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="NK1-5 / NK1-6 / NK1-40" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="telecom" />
      </mapping>
      <mapping>
        <identity value="hcim-contactinformation-v2.0.1-2015EN" />
        <map value="NL-CM:0.1.5" />
        <comment value="ContactInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-contactinformation-v3.0-2016EN" />
        <map value="NL-CM:0.1.5" />
        <comment value="ContactInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-contactinformation-v1.0-2017EN" />
        <map value="NL-CM:20.6.1" />
        <comment value="ContactInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.6" />
        <comment value="TelephoneE-mail" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.6" />
        <comment value="TelephoneE-mail" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.6" />
        <comment value="ContactInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-contactinformation-v1.0-2017EN" />
        <map value="NL-CM:20.6.4" />
        <comment value="TelephoneNumber" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.12" />
        <comment value="TelephoneE-mail" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.12" />
        <comment value="TelephoneE-mail" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.12" />
        <comment value="ContactInformation" />
      </mapping>
    </element>
    <element id="RelatedPerson.gender">
      <path value="RelatedPerson.gender" />
      <short value="male | female | other | unknown" />
      <definition value="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." />
      <comment value="Note that FHIR strings may not exceed 1MB in size" />
      <requirements value="Needed for identification of the person, in combination with (at least) name and birth date." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="RelatedPerson.gender" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AdministrativeGender" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="The gender of a person used for administrative purposes." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="NK1-15" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="administrativeGender" />
      </mapping>
    </element>
    <element id="RelatedPerson.birthDate">
      <path value="RelatedPerson.birthDate" />
      <short value="The date on which the related person was born" />
      <definition value="The date on which the related person was born." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="RelatedPerson.birthDate" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="date" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="player.birthTime" />
      </mapping>
    </element>
    <element id="RelatedPerson.address">
      <path value="RelatedPerson.address" />
      <short value="AddressInformation" />
      <definition value="This datatype defines a common basis for expressing all addresses around the world, but adds extensions to express Dutch addresses specifically, according to the HCIM AddressInformation (v1.0, 2017). A Dutch Address still is a proper FHIR Address, which means that systems that cannot interpret the extensions will still be able to render and work with this datatype.&#xD;&#xA;&#xD;&#xA;To have true compatibility an implementer SHOULD use the core Address parts as intended. To have addresses work for Dutch context, the implementer SHOULD in addition use the extension elements.&#xD;&#xA;&#xD;&#xA;**Separate address parts**&#xD;&#xA;&#xD;&#xA;The first addition is that Dutch addresses make certain address parts separately communicable. These parts are required for use in true Dutch systems when dealing with Dutch addresses, but may not have value for international systems when information gets sent abroad.&#xD;&#xA;&#xD;&#xA;**Custom address types**&#xD;&#xA;&#xD;&#xA;The second addition is that the HCIM defines its own ValueSet for address types, which can only be partially expressed using the FHIR Address datatype and requires a mapping to multiple elements. The table below explains how the HCIM concepts are mapped to the various FHIR elements (see the ConceptMaps http://nictiz.nl/fhir/ConceptMap/AdresSoortCodelijst-to-AddressUse and http://nictiz.nl/fhir/ConceptMap/AdresSoortCodelijst-to-AddressType as well). The HCIM code itself should also be included using the AddressType extension.&#xD;&#xA;&#xD;&#xA;         | HCIM                              | .ext:AddressType | .ext:official | .use | .type    |&#xD;&#xA;&#xD;&#xA;         |-----------------------------------|------------------|---------------|------|----------|&#xD;&#xA;&#xD;&#xA;         | Postal Address/Postadres          | PST              |               |      | postal   |&#xD;&#xA;&#xD;&#xA;         | Primary Home/Officieel adres      | HP               | true          | home |          |&#xD;&#xA;&#xD;&#xA;         | Visit Address/Woon-/verblijfadres | PHYS             |               | home | physical |&#xD;&#xA;&#xD;&#xA;         | Temporary Address/Tijdelijk adres | TMP              |               | temp |          |&#xD;&#xA;&#xD;&#xA;         | Work Place/Werkadres              | WP               |               | work |          |&#xD;&#xA;&#xD;&#xA;         | Vacation Home/Vakantie adres      | HV               |               | temp |          |&#xD;&#xA;&#xD;&#xA; If Address.type is &quot;both&quot; then this is to be understood as a dual purpose address (postal and physical). Systems that support importing it like this are encouraged to do so, otherwise they may need to import this as two separate addresses.&#xD;&#xA;&#xD;&#xA;NOTE: FHIR core defines the AD-use extension to further specify the postal address type. However, the ValueSet used in that extension doesn't completely match the HCIM ValueSet. Therefore, a custom extension has been made. This doesn't preclude the use of the AD-use extension." />
      <comment value="Note: address is for postal addresses, not physical locations." />
      <requirements value="Need to keep track where the related person can be contacted per postal mail or visited." />
      <alias value="AdresInformatie" />
      <alias value="Adresgegevens" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="RelatedPerson.address" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Address" />
        <profile value="http://fhir.nl/fhir/StructureDefinition/nl-core-address" />
      </type>
      <example>
        <label value="Example of a Vacation Home address" />
        <valueAddress>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-AddressInformation-AddressType">
            <valueCodeableConcept>
              <coding>
                <system value="http://hl7.org/fhir/v3/AddressUse" />
                <code value="HV" />
                <display value="Vakantie adres" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <use value="temp" />
          <line value="Binnenkant 12A Hoog">
            <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName">
              <valueString value="Binnenkant" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber">
              <valueString value="12" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-buildingNumberSuffix">
              <valueString value="A" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID">
              <valueString value="Hoog" />
            </extension>
          </line>
          <city value="Amsterdam" />
          <state value="NH" />
          <postalCode value="1000AA" />
          <country value="NLD" />
        </valueAddress>
      </example>
      <example>
        <label value="Example of a Primary Home address" />
        <valueAddress>
          <extension url="http://nictiz.nl/fhir/StructureDefinition/zib-AddressInformation-AddressType">
            <valueCodeableConcept>
              <coding>
                <system value="http://hl7.org/fhir/v3/AddressUse" />
                <code value="HP" />
                <display value="Officieel adres" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <extension url="http://fhir.nl/fhir/StructureDefinition/nl-core-address-official">
            <valueBoolean value="true" />
          </extension>
          <use value="home" />
          <line value="Binnenkant to 10">
            <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName">
              <valueString value="Binnenkant" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator">
              <valueString value="to" />
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber">
              <valueString value="10" />
            </extension>
          </line>
          <city value="Amsterdam" />
          <state value="NH" />
          <postalCode value="1001AA" />
          <country value="NLD" />
        </valueAddress>
      </example>
      <condition value="ele-1" />
      <condition value="nl-streetname-if-official-and-other-line-parts" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="nl-streetname-if-official-and-other-line-parts" />
        <requirements value="This constraint checks conformance against the Dutch BRP constraints on address parts. However: when you only send postalCode + houseNumber which is enough for certain cases this may still be a valid address" />
        <severity value="error" />
        <human value="Address.streetName in an official address SHALL have a value if one of houseNumber|buildingNumberSuffix|additionalLocator has a value" />
        <expression value="(extension.where(url = 'http://fhir.nl/fhir/StructureDefinition/nl-core-address-official').where(value = true)).empty() or (line.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName').empty().not() and (line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber').empty().not() or line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-buildingNumberSuffix').empty().not() or line.extension.where(url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator').empty().not()))" />
        <xpath value="not(.[f:extension[@url='http://fhir.nl/fhir/StructureDefinition/nl-core-address-official'][f:valueBoolean/@value='true']][f:line[empty(f:extension[@url='http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName'])][f:extension[@url=('http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber','http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-buildingNumberSuffix','http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator')]]])" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XAD" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Address" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="NK1-4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="addr" />
      </mapping>
      <mapping>
        <identity value="hcim-address-v2.0.1-2015EN" />
        <map value="NL-CM:0.1.4" />
        <comment value="AddressInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-addressinformation-v3.0-2016EN" />
        <map value="NL-CM:0.1.4" />
        <comment value="AddressInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-addressinformation-v1.0-2017EN" />
        <map value="NL-CM:20.5.1" />
        <comment value="AddressInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.5" />
        <comment value="Address" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.5" />
        <comment value="Address" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.5" />
        <comment value="AddressInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.17" />
        <comment value="Address" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.17" />
        <comment value="Address" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.17" />
        <comment value="AddressInformation" />
      </mapping>
    </element>
    <element id="RelatedPerson.photo">
      <path value="RelatedPerson.photo" />
      <short value="Image of the person" />
      <definition value="Image of the person." />
      <comment value="When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as &quot;Attachment&quot;." />
      <requirements value="Many EHR systems have the capability to capture an image of persons. Fits with newer social media usage too." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="RelatedPerson.photo" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Attachment" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="att-1" />
        <severity value="error" />
        <human value="It the Attachment has data, it SHALL have a contentType" />
        <expression value="data.empty() or contentType.exists()" />
        <xpath value="not(exists(f:data)) or exists(f:contentType)" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="ED/RP" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="ED" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="OBX-5 - needs a profile" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode='PSN' and determinerCode='INSTANCE']/desc" />
      </mapping>
    </element>
    <element id="RelatedPerson.period">
      <path value="RelatedPerson.period" />
      <short value="Period of time that this relationship is considered valid" />
      <definition value="The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown." />
      <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. &quot;the patient was an inpatient of the hospital for this time range&quot;) or one value from the range applies (e.g. &quot;give to the patient between these two times&quot;). If duration is required, specify the type as Interval|Duration." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="RelatedPerson.period" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Period" />
      </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() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <key value="per-1" />
        <severity value="error" />
        <human value="If present, start SHALL have a lower value than end" />
        <expression value="start.empty() or end.empty() or (start &lt;= end)" />
        <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value &lt;= f:end/@value)" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="DR" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="IVL&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;] or URG&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="when.done" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.14" />
        <comment value="DateTime" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="RelatedPerson">
      <path value="RelatedPerson" />
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.1" />
        <comment value="Contact" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.1" />
        <comment value="Contact" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.1" />
        <comment value="Contact" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.5" />
        <comment value="RelatedPersonAsInformationSource::ContactPerson" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.10" />
        <comment value="RelatedPersonAsAuthor::ContactPerson" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.13" />
        <comment value="RelatedPersonAsSubject::ContactPerson" />
      </mapping>
    </element>
    <element id="RelatedPerson.extension">
      <path value="RelatedPerson.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="RelatedPerson.extension:role">
      <path value="RelatedPerson.extension" />
      <sliceName value="role" />
      <short value="Role" />
      <definition value="Defines the role of the contact in relation to the patient." />
      <alias value="Rol" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson-role" />
      </type>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.2" />
        <comment value="Role" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.2" />
        <comment value="Role" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.2" />
        <comment value="Role" />
      </mapping>
    </element>
    <element id="RelatedPerson.extension:role.valueCodeableConcept:valueCodeableConcept">
      <path value="RelatedPerson.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.3.1.2--20171231000000" />
          <display value="RolCodelijst" />
        </valueSetReference>
      </binding>
    </element>
    <element id="RelatedPerson.identifier">
      <path value="RelatedPerson.identifier" />
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.6" />
        <comment value="IdentificationNumber" />
      </mapping>
    </element>
    <element id="RelatedPerson.patient">
      <path value="RelatedPerson.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.11" />
        <comment value="Subject" />
      </mapping>
    </element>
    <element id="RelatedPerson.relationship">
      <path value="RelatedPerson.relationship" />
      <short value="Relationship" />
      <definition value="Defines the contact’s familial relationship to the patient." />
      <alias value="Relatie" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PatientRelationshipType" />
        </extension>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.3.1.1--20171231000000" />
          <display value="RelatieCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.3" />
        <comment value="Relationship" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.3" />
        <comment value="Relationship" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.3" />
        <comment value="Relationship" />
      </mapping>
    </element>
    <element id="RelatedPerson.name">
      <path value="RelatedPerson.name" />
      <short value="NameInformation" />
      <definition value="Full name of the contact." />
      <alias value="Naamgegevens" />
      <type>
        <code value="HumanName" />
        <profile value="http://fhir.nl/fhir/StructureDefinition/nl-core-humanname" />
      </type>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.4" />
        <comment value="Name" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.4" />
        <comment value="Name" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.4" />
        <comment value="NameInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.5" />
        <comment value="PayerName" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.5" />
        <comment value="PayerName" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.5" />
        <comment value="PayerName" />
      </mapping>
    </element>
    <element id="RelatedPerson.telecom">
      <path value="RelatedPerson.telecom" />
      <short value="ContactInformation" />
      <alias value="Contactgegevens" />
      <type>
        <code value="ContactPoint" />
        <profile value="http://fhir.nl/fhir/StructureDefinition/nl-core-contactpoint" />
      </type>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.6" />
        <comment value="TelephoneE-mail" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.6" />
        <comment value="TelephoneE-mail" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.6" />
        <comment value="ContactInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-contactinformation-v2.0.1-2015EN" />
        <map value="NL-CM:0.1.5" />
        <comment value="ContactInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-contactinformation-v3.0-2016EN" />
        <map value="NL-CM:0.1.5" />
        <comment value="ContactInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-contactinformation-v1.0-2017EN" />
        <map value="NL-CM:20.6.4" />
        <comment value="TelephoneNumber" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.12" />
        <comment value="TelephoneE-mail" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.12" />
        <comment value="TelephoneE-mail" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.12" />
        <comment value="ContactInformation" />
      </mapping>
    </element>
    <element id="RelatedPerson.address">
      <path value="RelatedPerson.address" />
      <short value="AddressInformation" />
      <alias value="Adresgegevens" />
      <type>
        <code value="Address" />
        <profile value="http://fhir.nl/fhir/StructureDefinition/nl-core-address" />
      </type>
      <mapping>
        <identity value="hcim-contactperson-v1.2-2015EN" />
        <map value="NL-CM:3.1.5" />
        <comment value="Address" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.0-2016EN" />
        <map value="NL-CM:3.1.5" />
        <comment value="Address" />
      </mapping>
      <mapping>
        <identity value="hcim-contactperson-v3.1-2017EN" />
        <map value="NL-CM:3.1.5" />
        <comment value="AddressInformation" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v1.2-2015EN" />
        <map value="NL-CM:1.1.17" />
        <comment value="Address" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.0-2016EN" />
        <map value="NL-CM:1.1.17" />
        <comment value="Address" />
      </mapping>
      <mapping>
        <identity value="hcim-payer-v3.1-2017EN" />
        <map value="NL-CM:1.1.17" />
        <comment value="AddressInformation" />
      </mapping>
    </element>
    <element id="RelatedPerson.period">
      <path value="RelatedPerson.period" />
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.14" />
        <comment value="DateTime" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>