<?xml-model href="http://hl7.org/fhir/STU3/structuredefinition.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<StructureDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir http://hl7.org/fhir/STU3/structuredefinition.xsd" xmlns="http://hl7.org/fhir">
  <id value="eAfspraak-Appointment" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment" />
  <version value="2.1.2" />
  <name value="eAfspraakAppointment" />
  <title value="eAfspraak Appointment" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="email" />
      <value value="info@nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="An appointment including the location and reason for contact. This is used to provide information about a planned meeting that may be in the future or past.&#xD;&#xA;&#xD;&#xA;Examples include a scheduled surgery, a follow-up for a clinical visit, a scheduled conference call between clinicians to discuss a case, the reservation of a piece of diagnostic equipment for a particular use, etc. The visit scheduled by an appointment may be in person or remote (by phone, video conference, etc.) All that matters is that the time and usage of one or more individuals, locations and/or pieces of equipment is being fully or partially reserved for a designated period of time.&#xD;&#xA;&#xD;&#xA;This definition takes the concepts of appointments in a clinical setting and also extends them to be relevant in the community healthcare space, and to ease exposure to other appointment / calendar standards widely used outside of healthcare. This profile is also used for the Dutch Health and Care Information model PlannedCareActivityForTransfer version 3.1" />
  <copyright value="CC0" />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="art-decor-eafspraak" />
    <uri value="https://decor.nictiz.nl/art-decor/decor-datasets--eafspraken-?id=2.16.840.1.113883.2.4.3.11.60.61.1.1&amp;effectiveDate=2017-08-01T00:00:00&amp;language=nl-NL" />
    <name value="ART-DECOR Dataset eAfspraak" />
  </mapping>
  <mapping>
    <identity value="hcim-plannedcareactivityfortransfer-v1.2.1-2015EN" />
    <uri value="https://zibs.nl/wiki/PlannedCareActivityForTransfer-v1.2.1(2015EN)" />
    <name value="HCIM PlannedCareActivityForTransfer-v1.2.1(2015EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-plannedcareactivityfortransfer-v3.0-2016EN" />
    <uri value="https://zibs.nl/wiki/PlannedCareActivityForTransfer-v3.0(2016EN)" />
    <name value="HCIM PlannedCareActivityForTransfer-v3.0(2016EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-plannedcareactivityfortransfer-v3.1-2017EN" />
    <uri value="https://zibs.nl/wiki/PlannedCareActivityForTransfer-v3.1(2017EN)" />
    <name value="HCIM PlannedCareActivityForTransfer-v3.1(2017EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-healthprofessional-v1.2.1-2015EN" />
    <uri value="https://zibs.nl/wiki/HealthProfessional-v1.2.1(2015EN)" />
    <name value="HCIM HealthProfessional-v1.2.1(2015EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-healthprofessional-v3.0-2016EN" />
    <uri value="https://zibs.nl/wiki/HealthProfessional-v3.0(2016EN)" />
    <name value="HCIM HealthProfessional-v3.0(2016EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-healthprofessional-v3.2-2017EN" />
    <uri value="https://zibs.nl/wiki/HealthProfessional-v3.2(2017EN)" />
    <name value="HCIM HealthProfessional-v3.2(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="Appointment" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Appointment" />
  <derivation value="constraint" />
  <snapshot>
    <element id="Appointment">
      <path value="Appointment" />
      <short value="A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)" />
      <definition value="A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)." />
      <min value="0" />
      <max value="*" />
      <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)" />
        <source value="DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-1" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative" />
        <expression value="contained.text.empty()" />
        <xpath value="not(parent::f:contained and f:text)" />
        <source value="DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-4" />
        <severity value="error" />
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" />
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" />
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" />
        <source value="DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-3" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource" />
        <expression value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()" />
        <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" />
        <source value="DomainResource" />
      </constraint>
      <constraint>
        <key value="app-3" />
        <severity value="error" />
        <human value="Only proposed or cancelled appointments can be missing start/end dates" />
        <expression value="(start.exists() and end.exists()) or (status in ('proposed' | 'cancelled'))" />
        <xpath value="((exists(f:start) and exists(f:end)) or (f:status/@value='proposed') or (f:status/@value='cancelled'))" />
      </constraint>
      <constraint>
        <key value="app-2" />
        <severity value="error" />
        <human value="Either start and end are specified, or neither" />
        <expression value="start.empty() xor end.exists()" />
        <xpath value="((exists(f:start) and exists(f:end)) or (not(exists(f:start)) and not(exists(f:end))))" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act[@moodCode &lt;= 'INT']" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="VEVENT" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="workflow.scheduling" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v1.2.1-2015EN" />
        <map value="NL-CM:16.1.6" />
        <comment value="Appointment" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.0-2016EN" />
        <map value="NL-CM:16.1.6" />
        <comment value="Appointment" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.1-2017EN" />
        <map value="NL-CM:16.1.6" />
        <comment value="Appointment" />
      </mapping>
    </element>
    <element id="Appointment.id">
      <path value="Appointment.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>
      <isSummary value="true" />
    </element>
    <element id="Appointment.meta">
      <path value="Appointment.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>
      <isSummary value="true" />
    </element>
    <element id="Appointment.implicitRules">
      <path value="Appointment.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>
      <isModifier value="true" />
      <isSummary value="true" />
    </element>
    <element id="Appointment.language">
      <path value="Appointment.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>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages" />
          </valueReference>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="extensible" />
        <description value="A human language." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Appointment.text">
      <path value="Appointment.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="dom-1" />
      <mapping>
        <identity value="rim" />
        <map value="Act.text?" />
      </mapping>
    </element>
    <element id="Appointment.contained">
      <path value="Appointment.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="N/A" />
      </mapping>
    </element>
    <element id="Appointment.extension">
      <path value="Appointment.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <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>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.extension:PatientInstructions">
      <path value="Appointment.extension" />
      <sliceName value="PatientInstructions" />
      <short value="ContactPatientInstructions" />
      <definition value="Remarks associated with the appointment that are not part of the appointment and as such are not influenced by third party edits of the appointment." />
      <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="ContactPatiëntInstructie" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment-PatientInstructions" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-23" />
        <comment value="ContactPatientInstruction" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable">
      <path value="Appointment.extension" />
      <sliceName value="OnlineEditable" />
      <short value="Optional Extensions Element" />
      <definition value="Optional Extension Element - found in all resources." />
      <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="1" />
      <base>
        <path value="DomainResource.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment-OnlineEditable" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.id">
      <path value="Appointment.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." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension">
      <path value="Appointment.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>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:Indicator">
      <path value="Appointment.extension.extension" />
      <sliceName value="Indicator" />
      <short value="Indicator targeted at the patiënt, that determines whether or not the appointment may be updated/cancelled online." />
      <definition value="Indicator targeted at the patiënt, that determines whether or not the appointment may be updated/cancelled online. If the appointment may be updated online, its value should be &quot;yes&quot; (true). If the appointment should not be updated/cancelled online and can only be updated through other means like calling, the indicator should be set to &quot;no&quot; (false). The default value if omitted is &quot;yes&quot; (true)." />
      <comment value="It is conceivable for some settings that appointments can only be updated/cancelled after consulting with the care provider, for example when there is a high risk for health avoidance and updating/cancelling should be too easy." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="OnlineWijzigbaarIndicator" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-52" />
        <comment value="OnlineEditableIndicator" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:Indicator.id">
      <path value="Appointment.extension.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." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:Indicator.extension">
      <path value="Appointment.extension.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>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:Indicator.url">
      <path value="Appointment.extension.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="Indicator" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:Indicator.value[x]:valueBoolean">
      <path value="Appointment.extension.extension.valueBoolean" />
      <sliceName value="valueBoolean" />
      <short value="Value of extension" />
      <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Extension.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:OnlineEditableUntil">
      <path value="Appointment.extension.extension" />
      <sliceName value="OnlineEditableUntil" />
      <short value="This concept should contain the last point in time that updating/cancelling is still accepted." />
      <definition value="If an appointment may be updated/changed by the patient online (OnlineEditableIndicator = &quot;yes&quot;) then it is possible to impose a time constraint for organizational reasons, for example until 24 hourse before the appointment is to take occur. This concept should contain the last point in time that updating/cancelling is still accepted." />
      <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="OnlineWijzigbaarTot" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-53" />
        <comment value="OnlineEditableUntil" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:OnlineEditableUntil.id">
      <path value="Appointment.extension.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." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:OnlineEditableUntil.extension">
      <path value="Appointment.extension.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>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:OnlineEditableUntil.url">
      <path value="Appointment.extension.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="OnlineEditableUntil" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:OnlineEditableUntil.value[x]:valueDateTime">
      <path value="Appointment.extension.extension.valueDateTime" />
      <sliceName value="valueDateTime" />
      <short value="Value of extension" />
      <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Extension.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.url">
      <path value="Appointment.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://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment-OnlineEditable" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.value[x]">
      <path value="Appointment.extension.value[x]" />
      <short value="Value of extension" />
      <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Extension.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="base64Binary" />
      </type>
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="code" />
      </type>
      <type>
        <code value="date" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="decimal" />
      </type>
      <type>
        <code value="id" />
      </type>
      <type>
        <code value="instant" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="markdown" />
      </type>
      <type>
        <code value="oid" />
      </type>
      <type>
        <code value="positiveInt" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="time" />
      </type>
      <type>
        <code value="unsignedInt" />
      </type>
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="Address" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Annotation" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Coding" />
      </type>
      <type>
        <code value="ContactPoint" />
      </type>
      <type>
        <code value="Count" />
      </type>
      <type>
        <code value="Distance" />
      </type>
      <type>
        <code value="Duration" />
      </type>
      <type>
        <code value="HumanName" />
      </type>
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="Money" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="Ratio" />
      </type>
      <type>
        <code value="Reference" />
      </type>
      <type>
        <code value="SampledData" />
      </type>
      <type>
        <code value="Signature" />
      </type>
      <type>
        <code value="Timing" />
      </type>
      <type>
        <code value="Meta" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.modifierExtension">
      <path value="Appointment.modifierExtension" />
      <short value="Extensions that cannot be ignored" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the 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>
      <isModifier value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.identifier">
      <path value="Appointment.identifier" />
      <short value="IdentificationNumber" />
      <definition value="Globally unique number that identifies the instantiation of the information model. The number is composed of an identification of the issuer organization and a unique number assigned by this organization" />
      <alias value="Identificatienummer" />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="Appointment.identifier" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="SCH-1, SCH-2, ARQ-1, ARQ-2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="UID" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="id" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-3" />
        <comment value="ContactSeriesId" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.6" />
        <comment value="IdentificationNumber" />
      </mapping>
    </element>
    <element id="Appointment.status">
      <path value="Appointment.status" />
      <short value="ContactStatus" />
      <definition value="The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status." />
      <comment value="If the Appointment's status is &quot;cancelled&quot; then all participants are expected to have their calendars released for the appointment period, and as such any Slots that were marked as BUSY can be re-set to FREE.&#xA;&#xA;This element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid." />
      <alias value="ContactStatus" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Appointment.status" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AppointmentStatus" />
        </extension>
        <strength value="required" />
        <description value="The free/busy status of an appointment." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/appointmentstatus" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="SCH-25" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".statusCode" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="status" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-20" />
        <comment value="ContactStatus" />
      </mapping>
    </element>
    <element id="Appointment.status.id">
      <path value="Appointment.status.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references)" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Appointment.status.extension">
      <path value="Appointment.status.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <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="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
    </element>
    <element id="Appointment.status.extension:OrderStatus">
      <path value="Appointment.status.extension" />
      <sliceName value="OrderStatus" />
      <short value="OrderStatus" />
      <definition value="Defines a more specific coded value for a code or string. Especially useful for FHIR's required ValueSets. These extensions are primarily used on codes bound to a required value set, where you would like to use a more specific code than the codes in the bounded value set." />
      <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="Bevat de specifieke code conform de zib, bij een FHIR-element die een verplichte koppeling heeft met een bepaalde FHIR waardelijst of een FHIR element die niet gecodeerd is gedefinieerd, terwijl de zib dit wel doet." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/code-specification" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v1.2.1-2015EN" />
        <map value="NL-CM:16.1.9" />
        <comment value="OrderStatus" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.0-2016EN" />
        <map value="NL-CM:16.1.9" />
        <comment value="OrderStatus" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.1-2017EN" />
        <map value="NL-CM:16.1.9" />
        <comment value="OrderStatus" />
      </mapping>
    </element>
    <element id="Appointment.status.extension:OrderStatus.id">
      <path value="Appointment.status.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." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.status.extension:OrderStatus.extension">
      <path value="Appointment.status.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>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.status.extension:OrderStatus.url">
      <path value="Appointment.status.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://nictiz.nl/fhir/StructureDefinition/code-specification" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.status.extension:OrderStatus.valueCodeableConcept:valueCodeableConcept">
      <path value="Appointment.status.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <short value="Value of extension" />
      <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Extension.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <description value="The status of the order." />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.16.1.2--20171231000000" />
          <display value="OrderStatusCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.status.value">
      <path value="Appointment.status.value" />
      <representation value="xmlAttr" />
      <short value="Primitive value for code" />
      <definition value="Primitive value for code" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="string.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex">
          <valueString value="[^\s]+([\s]?[^\s]+)*" />
        </extension>
        <code>
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type">
            <valueString value="string" />
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type">
            <valueString value="xsd:token" />
          </extension>
          <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type">
            <valueString value="xsd:token" />
          </extension>
        </code>
      </type>
    </element>
    <element id="Appointment.serviceCategory">
      <path value="Appointment.serviceCategory" />
      <short value="ContactCategory" />
      <definition value="A broad categorisation of the service that is to be performed during this appointment" />
      <alias value="ContactCategorie" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.serviceCategory" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="service-category" />
        </extension>
        <strength value="example" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/service-category" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a, might be inferred from the ServiceDeliveryLocation" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-25" />
        <comment value="ContactCategory" />
      </mapping>
    </element>
    <element id="Appointment.serviceType">
      <path value="Appointment.serviceType" />
      <short value="ContactProcedureType" />
      <definition value="Type of procedure or service that is performed or is scheduled to be performed during the contract" />
      <alias value="ContactVerrichtingType" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.serviceType" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="service-type" />
        </extension>
        <strength value="example" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/service-type" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a, might be inferred from the ServiceDeliveryLocation" />
      </mapping>
    </element>
    <element id="Appointment.specialty">
      <path value="Appointment.specialty" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="The specialty of a practitioner that would be required to perform the service requested in this appointment" />
      <definition value="The specialty of a practitioner that would be required to perform the service requested in this appointment." />
      <alias value="Specialisme" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.specialty" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="specialty" />
        </extension>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/c80-practice-codes" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".performer.AssignedPerson.code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-26" />
        <comment value="Specialty" />
      </mapping>
    </element>
    <element id="Appointment.specialty:specialtyAGB">
      <path value="Appointment.specialty" />
      <sliceName value="specialtyAGB" />
      <short value="The specialty of a practitioner that would be required to perform the service requested in this appointment" />
      <definition value="The specialty of a practitioner that would be required to perform the service requested in this appointment." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.specialty" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="specialty" />
        </extension>
        <strength value="extensible" />
        <description value="Specific specialty associated with the agency" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.17.1.7--20171231000000" />
          <display value="SpecialismeAGBCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".performer.AssignedPerson.code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
    </element>
    <element id="Appointment.specialty:specialtyUZI">
      <path value="Appointment.specialty" />
      <sliceName value="specialtyUZI" />
      <short value="The specialty of a practitioner that would be required to perform the service requested in this appointment" />
      <definition value="The specialty of a practitioner that would be required to perform the service requested in this appointment." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.specialty" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="specialty" />
        </extension>
        <strength value="extensible" />
        <description value="Specific specialty associated with the agency" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.17.1.6--20171231000000" />
          <display value="SpecialismeUZICodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".performer.AssignedPerson.code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
    </element>
    <element id="Appointment.appointmentType">
      <path value="Appointment.appointmentType" />
      <short value="ContactType" />
      <definition value="The type of contact." />
      <alias value="ContactType" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.appointmentType" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="extensible" />
        <description value="ContactTypeCodelijst" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.15.1.1--20171231000000" />
          <display value="ContactTypeCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="ARQ-7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-24" />
        <comment value="ContactType" />
      </mapping>
    </element>
    <element id="Appointment.reason">
      <path value="Appointment.reason" />
      <short value="Reason this appointment is scheduled" />
      <definition value="The reason that this appointment is being scheduled. This is more clinical than administrative." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.reason" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ApptReason" />
        </extension>
        <strength value="preferred" />
        <description value="The Reason for the appointment to take place." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/encounter-reason" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="AIS-3, SCH-7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".reasonCode" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-46" />
        <comment value="DeviatingResult" />
      </mapping>
    </element>
    <element id="Appointment.indication">
      <path value="Appointment.indication" />
      <short value="ContactReason" />
      <definition value="Reason the appointment has been scheduled to take place, as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure." />
      <alias value="RedenContact" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.indication" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".inboundRelationship[@typeCode = 'RSON'].observation" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-42" />
        <comment value="Problem" />
      </mapping>
    </element>
    <element id="Appointment.priority">
      <path value="Appointment.priority" />
      <short value="Used to make informed decisions if needing to re-prioritize" />
      <definition value="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority)." />
      <comment value="Seeking implementer feedback on this property and how interoperable it is.&#xD;&#xD;Using an extension to record a codeableconcept for named values may be tested at a future connectathon." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.priority" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="unsignedInt" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="ARQ-12, SCH-11.6 / TQ1-9" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".priorityCode" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="PRIORITY" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
    </element>
    <element id="Appointment.description">
      <path value="Appointment.description" />
      <short value="ContactSubject" />
      <definition value="The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field." />
      <alias value="ContactOnderwerp" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.description" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="NTE-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".text" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="DESCRIPTION" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-4" />
        <comment value="IdentificationNumber" />
      </mapping>
    </element>
    <element id="Appointment.supportingInformation">
      <path value="Appointment.supportingInformation" />
      <short value="Additional information to support the appointment" />
      <definition value="Additional information to support the appointment provided when making the appointment." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.supportingInformation" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".inboundRelationship[@typeCode = 'SPRT'].observation" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="context" />
      </mapping>
    </element>
    <element id="Appointment.start">
      <path value="Appointment.start" />
      <short value="StartDateTime" />
      <definition value="The date and time at which the contact took place." />
      <alias value="BeginDatumTijd" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.start" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="instant" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="ARQ-11.1, SCH-11.4 / TQ1-7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime.low" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="when.init" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-6" />
        <comment value="StartDateTime" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v1.2.1-2015EN" />
        <map value="NL-CM:16.1.10" />
        <comment value="StartDate" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.0-2016EN" />
        <map value="NL-CM:16.1.10" />
        <comment value="StartDate" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.1-2017EN" />
        <map value="NL-CM:16.1.10" />
        <comment value="StartDate" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.14" />
        <comment value="DateTime" />
      </mapping>
    </element>
    <element id="Appointment.end">
      <path value="Appointment.end" />
      <short value="EndDateTime" />
      <definition value="The date and time at which the contact ended. If the contact takes place over a period of time, this indicates the end of the period, in the case of an admission, for example." />
      <alias value="EindDatumTijd" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.end" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="instant" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="SCH-11.5 / TQ1-8/ calculated based on the start and the duration which is in ARQ-9" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime.high" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="when.done" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-7" />
        <comment value="EndDateTime" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v1.2.1-2015EN" />
        <map value="NL-CM:16.1.11" />
        <comment value="EndDate" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.0-2016EN" />
        <map value="NL-CM:16.1.11" />
        <comment value="EndDate" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.1-2017EN" />
        <map value="NL-CM:16.1.11" />
        <comment value="EndDate" />
      </mapping>
    </element>
    <element id="Appointment.minutesDuration">
      <path value="Appointment.minutesDuration" />
      <short value="ContactDuration" />
      <definition value="Appointment duration. The duration of a clinical appointment usually equals the difference between EndDateTime and StartDateTime. This is usually not the case in the care, e.g. home health. In a care setting there is usually a time range, for example between 12 and 2PM, for performing certain services within a maximum timespan of e.g. 15 minutes. The difference between end and Start of the appointment may be longer than the actual appointment, for example because of an extended visit at the previous client and/or busy traffic." />
      <alias value="ContactDuur" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.minutesDuration" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="positiveInt" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')].width" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-8" />
        <comment value="ContactDuration" />
      </mapping>
    </element>
    <element id="Appointment.slot">
      <path value="Appointment.slot" />
      <short value="The slots that this appointment is filling" />
      <definition value="The slots from the participants' schedules that will be filled by the appointment." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.slot" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Slot" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[@typeCode = 'REFR'].act[@classCode = 'ACT'][@moodCode = 'SLOT']" />
      </mapping>
    </element>
    <element id="Appointment.created">
      <path value="Appointment.created" />
      <short value="DateTime" />
      <definition value="The date/time stamp that this appointment was initially created" />
      <comment value="This property is required for many use cases where the age of an appointment is considered in processing workflows for scheduling and billing of appointments." />
      <alias value="DatumTijd" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.created" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".author.time" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-5" />
        <comment value="DateTime" />
      </mapping>
    </element>
    <element id="Appointment.comment">
      <path value="Appointment.comment" />
      <short value="ContactDescription" />
      <definition value="Additional description about the appointment in free text." />
      <comment value="Additional text to aid in facilitating the appointment. For instance, a comment might be, &quot;patient should proceed immediately to infusion room upon arrival&quot;&#xD;&#xD;Where this is a planned appointment and the start/end dates are not set then this field can be used to provide additional guidance on the details of the appointment request, including any restrictions on when to book it." />
      <alias value="ContactOmschrijving" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.comment" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="NTE-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="COMMENT" />
      </mapping>
    </element>
    <element id="Appointment.incomingReferral">
      <path value="Appointment.incomingReferral" />
      <short value="The ReferralRequest provided as information to allocate to the Encounter" />
      <definition value="Referral that is the basis for requesting an appointment or planning one. A referral is required in some contexts to be eligible for a specific type of care. In a lot of cases this referral will be from the general practitioner." />
      <alias value="Verwijzing" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.incomingReferral" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[@typeCode = 'FLFS'].act[@classCode &lt; 'ActCareProvisionRequestType'][@moodCode = 'RQO']" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-49" />
        <comment value="Referral" />
      </mapping>
    </element>
    <element id="Appointment.participant">
      <path value="Appointment.participant" />
      <short value="ContactWith" />
      <definition value="The healthcare provider with whom the contact took place. The specialty and role of the healthcare provider can be entered in the HealthcareProvider building block as well." />
      <alias value="ContactMet" />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="Appointment.participant" />
        <min value="1" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="Element" />
      </constraint>
      <constraint>
        <key value="app-1" />
        <severity value="error" />
        <human value="Either the type or actor on the participant SHALL be specified" />
        <expression value="type.exists() or actor.exists()" />
        <xpath value="(exists(f:type) or exists(f:actor))" />
      </constraint>
      <mapping>
        <identity value="v2" />
        <map value="PID, AIP, AIG, AIL" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="performer | reusableDevice | subject | location" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="ATTENDEE component to be created" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-27" />
        <comment value="ContactWith" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.7" />
        <comment value="Author" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.11" />
        <comment value="Subject" />
      </mapping>
    </element>
    <element id="Appointment.participant.id">
      <path value="Appointment.participant.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.participant.extension">
      <path value="Appointment.participant.extension" />
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.participant.modifierExtension">
      <path value="Appointment.participant.modifierExtension" />
      <short value="Extensions that cannot be ignored" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <isModifier value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.participant.type">
      <path value="Appointment.participant.type" />
      <short value="Role of participant in the appointment" />
      <definition value="Role of participant in the appointment." />
      <comment value="The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.&#xD;&#xD;If the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.&#xD;&#xD;This value SHALL be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.participant.type" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ParticipantType" />
        </extension>
        <strength value="extensible" />
        <description value="Role of participant in encounter." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/encounter-participant-type" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="AIP-4, AIG-4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="(performer | reusableDevice | subject | location).@typeCode" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.participant.type.id">
      <path value="Appointment.participant.type.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.participant.type.extension">
      <path value="Appointment.participant.type.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.participant.type.coding">
      <path value="Appointment.participant.type.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Code defined by a terminology system" />
      <definition value="A reference to a code defined by a terminology system." />
      <comment value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." />
      <requirements value="Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="CodeableConcept.coding" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="C*E.1-8, C*E.10-22" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="union(., ./translation)" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" />
      </mapping>
    </element>
    <element id="Appointment.participant.type.coding:healthProfessionalRole">
      <path value="Appointment.participant.type.coding" />
      <sliceName value="healthProfessionalRole" />
      <short value="HealthProfessionalRole" />
      <definition value="The role the healthcare provider fulfils in the healthcare process. For healthcare providers, this could be for example main practitioner, referrer or general practitioner." />
      <comment value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." />
      <requirements value="Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings." />
      <alias value="ZorgverlenerRol" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="CodeableConcept.coding" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <isSummary value="true" />
      <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.17.1.5--20171231000000" />
          <display value="ZorgverlenerRolCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="C*E.1-8, C*E.10-22" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="union(., ./translation)" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" />
      </mapping>
      <mapping>
        <identity value="hcim-healthprofessional-v1.2.1-2015EN" />
        <map value="NL-CM:17.1.5" />
        <comment value="HealthcareProviderRole" />
      </mapping>
      <mapping>
        <identity value="hcim-healthprofessional-v3.0-2016EN" />
        <map value="NL-CM:17.1.5" />
        <comment value="HealthcareProviderRole" />
      </mapping>
      <mapping>
        <identity value="hcim-healthprofessional-v3.2-2017EN" />
        <map value="NL-CM:17.1.5" />
        <comment value="HealthProfessionalRole" />
      </mapping>
    </element>
    <element id="Appointment.participant.type.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Appointment.participant.type.text" />
      <short value="Plain text representation of the concept" />
      <definition value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user." />
      <comment value="Very often the text is the same as a displayName of one of the codings." />
      <requirements value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="CodeableConcept.text" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="C*E.9. But note many systems use C*E.2 for this" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./originalText[mediaType/code=&quot;text/plain&quot;]/data" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" />
      </mapping>
    </element>
    <element id="Appointment.participant.actor">
      <path value="Appointment.participant.actor" />
      <short value="Person, Location/HealthcareService or Device" />
      <definition value="A Person, Location/HealthcareService or Device that is participating in the appointment." />
      <alias value="Contactpersoon" />
      <alias value="Patient" />
      <alias value="Zorgverlener" />
      <alias value="Locatie" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.participant.actor" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-location" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="PID-3-Patient ID List | AIL-3 | AIG-3 | AIP-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="performer.person | reusableDevice.manufacturedDevice | subject.patient | location.serviceDeliveryLocation" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource) where the participant type is not &quot;information-only&quot;" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="who" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-30" />
        <comment value="Contact" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-31" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-32" />
        <comment value="HealthProfessional" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-33" />
        <comment value="Location" />
      </mapping>
    </element>
    <element id="Appointment.participant.actor.id">
      <path value="Appointment.participant.actor.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.participant.actor.extension">
      <path value="Appointment.participant.actor.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>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Appointment.participant.actor.extension:practitionerRole">
      <path value="Appointment.participant.actor.extension" />
      <sliceName value="practitionerRole" />
      <short value="Optional Extensions Element" />
      <definition value="Optional Extension Element - found in all resources." />
      <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="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.participant.actor.reference">
      <path value="Appointment.participant.actor.reference" />
      <short value="Literal reference, Relative, internal or absolute URL" />
      <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." />
      <comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure &quot;/[type]/[id]&quot; then it should be assumed that the reference is to a FHIR RESTful server." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Reference.reference" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ref-1" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.participant.actor.identifier">
      <path value="Appointment.participant.actor.identifier" />
      <short value="Logical reference, when literal reference is not known" />
      <definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." />
      <comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. &#xA;&#xA;When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference&#xA;&#xA;Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Reference.identifier" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".identifier" />
      </mapping>
    </element>
    <element id="Appointment.participant.actor.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Appointment.participant.actor.display" />
      <short value="Text alternative for the resource" />
      <definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
      <comment value="This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Reference.display" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Appointment.participant.required">
      <path value="Appointment.participant.required" />
      <short value="ContactWithRequired" />
      <definition value="Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present." />
      <alias value="ContactMetVereist" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Appointment.participant.required" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ParticipantRequired" />
        </extension>
        <strength value="required" />
        <description value="Is the Participant required to attend the appointment." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/participantrequired" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="(performer | reusableDevice | subject | location).@performInd" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="ROLE=REQ-PARTICIPANT (roleparam)" />
      </mapping>
    </element>
    <element id="Appointment.participant.status">
      <path value="Appointment.participant.status" />
      <short value="ContactWithStatus" />
      <definition value="Indicated presence of the ContactParty." />
      <alias value="ContactMetStatus" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Appointment.participant.status" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ParticipationStatus" />
        </extension>
        <strength value="required" />
        <description value="The Participation status of an appointment." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/participationstatus" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="AIP-12, AIG-14" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="(performer | reusableDevice | subject | location).statusCode" />
      </mapping>
      <mapping>
        <identity value="ical" />
        <map value="ATTENDEE;CN=&quot;Brian Postlethwaite&quot;;RSVP=TRUE:mailto:BPostlethwaite@data.com (rsvpparam | partstatparam)" />
      </mapping>
    </element>
    <element id="Appointment.requestedPeriod">
      <path value="Appointment.requestedPeriod" />
      <short value="Potential date/time interval(s) requested to allocate the appointment within" />
      <definition value="A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within. When using these values, the minutes duration should be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time." />
      <comment value="This does not introduce a capacity for recurring appointments." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Appointment.requestedPeriod" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Period" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="ARQ-11" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')]" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="Appointment">
      <path value="Appointment" />
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v1.2.1-2015EN" />
        <map value="NL-CM:16.1.6" />
        <comment value="Appointment" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.0-2016EN" />
        <map value="NL-CM:16.1.6" />
        <comment value="Appointment" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.1-2017EN" />
        <map value="NL-CM:16.1.6" />
        <comment value="Appointment" />
      </mapping>
    </element>
    <element id="Appointment.extension">
      <path value="Appointment.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Appointment.extension:PatientInstructions">
      <path value="Appointment.extension" />
      <sliceName value="PatientInstructions" />
      <short value="ContactPatientInstructions" />
      <definition value="Remarks associated with the appointment that are not part of the appointment and as such are not influenced by third party edits of the appointment." />
      <alias value="ContactPatiëntInstructie" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment-PatientInstructions" />
      </type>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-23" />
        <comment value="ContactPatientInstruction" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable">
      <path value="Appointment.extension" />
      <sliceName value="OnlineEditable" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment-OnlineEditable" />
      </type>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:Indicator">
      <path value="Appointment.extension.extension" />
      <sliceName value="Indicator" />
      <alias value="OnlineWijzigbaarIndicator" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-52" />
        <comment value="OnlineEditableIndicator" />
      </mapping>
    </element>
    <element id="Appointment.extension:OnlineEditable.extension:OnlineEditableUntil">
      <path value="Appointment.extension.extension" />
      <sliceName value="OnlineEditableUntil" />
      <alias value="OnlineWijzigbaarTot" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-53" />
        <comment value="OnlineEditableUntil" />
      </mapping>
    </element>
    <element id="Appointment.identifier">
      <path value="Appointment.identifier" />
      <short value="IdentificationNumber" />
      <definition value="Globally unique number that identifies the instantiation of the information model. The number is composed of an identification of the issuer organization and a unique number assigned by this organization" />
      <alias value="Identificatienummer" />
      <min value="1" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-3" />
        <comment value="ContactSeriesId" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.6" />
        <comment value="IdentificationNumber" />
      </mapping>
    </element>
    <element id="Appointment.status">
      <path value="Appointment.status" />
      <short value="ContactStatus" />
      <alias value="ContactStatus" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-20" />
        <comment value="ContactStatus" />
      </mapping>
    </element>
    <element id="Appointment.status.extension">
      <path value="Appointment.status.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Appointment.status.extension:OrderStatus">
      <path value="Appointment.status.extension" />
      <sliceName value="OrderStatus" />
      <short value="OrderStatus" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/code-specification" />
      </type>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v1.2.1-2015EN" />
        <map value="NL-CM:16.1.9" />
        <comment value="OrderStatus" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.0-2016EN" />
        <map value="NL-CM:16.1.9" />
        <comment value="OrderStatus" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.1-2017EN" />
        <map value="NL-CM:16.1.9" />
        <comment value="OrderStatus" />
      </mapping>
    </element>
    <element id="Appointment.status.extension:OrderStatus.valueCodeableConcept:valueCodeableConcept">
      <path value="Appointment.status.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <binding>
        <strength value="extensible" />
        <description value="The status of the order." />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.16.1.2--20171231000000" />
          <display value="OrderStatusCodelijst" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Appointment.serviceCategory">
      <path value="Appointment.serviceCategory" />
      <short value="ContactCategory" />
      <definition value="A broad categorisation of the service that is to be performed during this appointment" />
      <alias value="ContactCategorie" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-25" />
        <comment value="ContactCategory" />
      </mapping>
    </element>
    <element id="Appointment.serviceType">
      <path value="Appointment.serviceType" />
      <short value="ContactProcedureType" />
      <definition value="Type of procedure or service that is performed or is scheduled to be performed during the contract" />
      <alias value="ContactVerrichtingType" />
    </element>
    <element id="Appointment.specialty">
      <path value="Appointment.specialty" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <alias value="Specialisme" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-26" />
        <comment value="Specialty" />
      </mapping>
    </element>
    <element id="Appointment.specialty:specialtyAGB">
      <path value="Appointment.specialty" />
      <sliceName value="specialtyAGB" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="specialty" />
        </extension>
        <strength value="extensible" />
        <description value="Specific specialty associated with the agency" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.17.1.7--20171231000000" />
          <display value="SpecialismeAGBCodelijst" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Appointment.specialty:specialtyUZI">
      <path value="Appointment.specialty" />
      <sliceName value="specialtyUZI" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="specialty" />
        </extension>
        <strength value="extensible" />
        <description value="Specific specialty associated with the agency" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.17.1.6--20171231000000" />
          <display value="SpecialismeUZICodelijst" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Appointment.appointmentType">
      <path value="Appointment.appointmentType" />
      <short value="ContactType" />
      <definition value="The type of contact." />
      <alias value="ContactType" />
      <binding>
        <strength value="extensible" />
        <description value="ContactTypeCodelijst" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.15.1.1--20171231000000" />
          <display value="ContactTypeCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-24" />
        <comment value="ContactType" />
      </mapping>
    </element>
    <element id="Appointment.reason">
      <path value="Appointment.reason" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-46" />
        <comment value="DeviatingResult" />
      </mapping>
    </element>
    <element id="Appointment.indication">
      <path value="Appointment.indication" />
      <short value="ContactReason" />
      <alias value="RedenContact" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-42" />
        <comment value="Problem" />
      </mapping>
    </element>
    <element id="Appointment.description">
      <path value="Appointment.description" />
      <short value="ContactSubject" />
      <alias value="ContactOnderwerp" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-4" />
        <comment value="IdentificationNumber" />
      </mapping>
    </element>
    <element id="Appointment.start">
      <path value="Appointment.start" />
      <short value="StartDateTime" />
      <definition value="The date and time at which the contact took place." />
      <alias value="BeginDatumTijd" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-6" />
        <comment value="StartDateTime" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v1.2.1-2015EN" />
        <map value="NL-CM:16.1.10" />
        <comment value="StartDate" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.0-2016EN" />
        <map value="NL-CM:16.1.10" />
        <comment value="StartDate" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.1-2017EN" />
        <map value="NL-CM:16.1.10" />
        <comment value="StartDate" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.14" />
        <comment value="DateTime" />
      </mapping>
    </element>
    <element id="Appointment.end">
      <path value="Appointment.end" />
      <short value="EndDateTime" />
      <definition value="The date and time at which the contact ended. If the contact takes place over a period of time, this indicates the end of the period, in the case of an admission, for example." />
      <alias value="EindDatumTijd" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-7" />
        <comment value="EndDateTime" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v1.2.1-2015EN" />
        <map value="NL-CM:16.1.11" />
        <comment value="EndDate" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.0-2016EN" />
        <map value="NL-CM:16.1.11" />
        <comment value="EndDate" />
      </mapping>
      <mapping>
        <identity value="hcim-plannedcareactivityfortransfer-v3.1-2017EN" />
        <map value="NL-CM:16.1.11" />
        <comment value="EndDate" />
      </mapping>
    </element>
    <element id="Appointment.minutesDuration">
      <path value="Appointment.minutesDuration" />
      <short value="ContactDuration" />
      <definition value="Appointment duration. The duration of a clinical appointment usually equals the difference between EndDateTime and StartDateTime. This is usually not the case in the care, e.g. home health. In a care setting there is usually a time range, for example between 12 and 2PM, for performing certain services within a maximum timespan of e.g. 15 minutes. The difference between end and Start of the appointment may be longer than the actual appointment, for example because of an extended visit at the previous client and/or busy traffic." />
      <alias value="ContactDuur" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-8" />
        <comment value="ContactDuration" />
      </mapping>
    </element>
    <element id="Appointment.created">
      <path value="Appointment.created" />
      <short value="DateTime" />
      <definition value="The date/time stamp that this appointment was initially created" />
      <alias value="DatumTijd" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-5" />
        <comment value="DateTime" />
      </mapping>
    </element>
    <element id="Appointment.comment">
      <path value="Appointment.comment" />
      <short value="ContactDescription" />
      <definition value="Additional description about the appointment in free text." />
      <alias value="ContactOmschrijving" />
    </element>
    <element id="Appointment.incomingReferral">
      <path value="Appointment.incomingReferral" />
      <definition value="Referral that is the basis for requesting an appointment or planning one. A referral is required in some contexts to be eligible for a specific type of care. In a lot of cases this referral will be from the general practitioner." />
      <alias value="Verwijzing" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-49" />
        <comment value="Referral" />
      </mapping>
    </element>
    <element id="Appointment.participant">
      <path value="Appointment.participant" />
      <short value="ContactWith" />
      <definition value="The healthcare provider with whom the contact took place. The specialty and role of the healthcare provider can be entered in the HealthcareProvider building block as well." />
      <alias value="ContactMet" />
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-27" />
        <comment value="ContactWith" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.7" />
        <comment value="Author" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.11" />
        <comment value="Subject" />
      </mapping>
    </element>
    <element id="Appointment.participant.type.coding">
      <path value="Appointment.participant.type.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Appointment.participant.type.coding:healthProfessionalRole">
      <path value="Appointment.participant.type.coding" />
      <sliceName value="healthProfessionalRole" />
      <short value="HealthProfessionalRole" />
      <definition value="The role the healthcare provider fulfils in the healthcare process. For healthcare providers, this could be for example main practitioner, referrer or general practitioner." />
      <alias value="ZorgverlenerRol" />
      <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.17.1.5--20171231000000" />
          <display value="ZorgverlenerRolCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="hcim-healthprofessional-v1.2.1-2015EN" />
        <map value="NL-CM:17.1.5" />
        <comment value="HealthcareProviderRole" />
      </mapping>
      <mapping>
        <identity value="hcim-healthprofessional-v3.0-2016EN" />
        <map value="NL-CM:17.1.5" />
        <comment value="HealthcareProviderRole" />
      </mapping>
      <mapping>
        <identity value="hcim-healthprofessional-v3.2-2017EN" />
        <map value="NL-CM:17.1.5" />
        <comment value="HealthProfessionalRole" />
      </mapping>
    </element>
    <element id="Appointment.participant.actor">
      <path value="Appointment.participant.actor" />
      <alias value="Contactpersoon" />
      <alias value="Patient" />
      <alias value="Zorgverlener" />
      <alias value="Locatie" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-location" />
      </type>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-30" />
        <comment value="Contact" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-31" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-32" />
        <comment value="HealthProfessional" />
      </mapping>
      <mapping>
        <identity value="art-decor-eafspraak" />
        <map value="eafspraak-dataelement-33" />
        <comment value="Location" />
      </mapping>
    </element>
    <element id="Appointment.participant.actor.extension">
      <path value="Appointment.participant.actor.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Appointment.participant.actor.extension:practitionerRole">
      <path value="Appointment.participant.actor.extension" />
      <sliceName value="practitionerRole" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference" />
      </type>
    </element>
    <element id="Appointment.participant.required">
      <path value="Appointment.participant.required" />
      <short value="ContactWithRequired" />
      <alias value="ContactMetVereist" />
    </element>
    <element id="Appointment.participant.status">
      <path value="Appointment.participant.status" />
      <short value="ContactWithStatus" />
      <definition value="Indicated presence of the ContactParty." />
      <alias value="ContactMetStatus" />
    </element>
  </differential>
</StructureDefinition>