RIVO-Noord Zorgviewer Implementation Guide
1.23.0 - CI build

RIVO-Noord Zorgviewer Implementation Guide, published by RIVO-NN HL7NL. This guide is not an authorized publication; it is the continuous build for version 1.23.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/RIVO-Noord/zorgviewer-ig/ and changes regularly. See the Directory of published versions

## Resource Profile: EpisodeOfCare - XML Profile

Draft as of 2026-03-30

XML representation of the EpisodeOfCare resource profile.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="EpisodeOfCare"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition EpisodeOfCare</b></p><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-EpisodeOfCare-definitions.html#EpisodeOfCare">EpisodeOfCare</a><a name="EpisodeOfCare"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://simplifier.net/resolve?scope=nictiz.fhir.nl.stu3.zib2017@2.3.2&amp;canonical=http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare">nl-core-episodeofcare</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EpisodeOfCare-definitions.html#EpisodeOfCare.status">status</a><a name="EpisodeOfCare.status"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/STU3/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">planned | waitlist | active | onhold | finished | cancelled | entered-in-error</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-EpisodeOfCare-definitions.html#EpisodeOfCare.diagnosis">diagnosis</a><a name="EpisodeOfCare.diagnosis"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-EpisodeOfCare-definitions.html#EpisodeOfCare.diagnosis.condition">condition</a><a name="EpisodeOfCare.diagnosis.condition"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/STU3/references.html">Reference</a>(<a href="StructureDefinition-Condition.html">Condition</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Conditions/problems/diagnoses this episode of care is for</span></td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <url
           value="http://fhir.hl7.nl/zorgviewer/StructureDefinition/EpisodeOfCare"/>
      <version value="1.23.0"/>
      <name value="EpisodeOfCare"/>
      <title value="EpisodeOfCare"/>
      <status value="draft"/>
      <date value="2026-03-30T13:23:57+00:00"/>
      <publisher value="RIVO-NN HL7NL"/>
      <contact>
        <name value="RIVO-NN"/>
        <telecom>
          <system value="url"/>
          <value value="https://rivo-noord.nl"/>
        </telecom>
      </contact>
      <contact>
        <name value="HL7NL"/>
        <telecom>
          <system value="url"/>
          <value value="https://hl7.nl"/>
        </telecom>
      </contact>
      <description value="Zorgepisode"/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="NL"/>
        </coding>
      </jurisdiction>
      <fhirVersion value="3.0.2"/>
      <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>
      <mapping>
        <identity value="hcim-concernfortransfer-v1.2-2015EN"/>
        <uri value="https://zibs.nl/wiki/ConcernForTransfer-v1.2(2015EN)"/>
        <name value="HCIM ConcernForTransfer-v1.2(2015EN)"/>
      </mapping>
      <kind value="resource"/>
      <abstract value="false"/>
      <type value="EpisodeOfCare"/>
      <baseDefinition
                      value="http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare"/>
      <derivation value="constraint"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="1.1.4"/>
        </extension>
        <element id="EpisodeOfCare">
          <path value="EpisodeOfCare"/>
          <short
                 value="An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility"/>
          <definition
                      value="An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time."/>
          <alias value="Case Program Problem"/>
          <min value="0"/>
          <max value="*"/>
          <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="http://hl7.org/fhir/StructureDefinition/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="http://hl7.org/fhir/StructureDefinition/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="http://hl7.org/fhir/StructureDefinition/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="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <mapping>
            <identity value="rim"/>
            <map value="Entity. Role, or Act"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="workflow.encounter"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.id">
          <path value="EpisodeOfCare.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="EpisodeOfCare.meta">
          <path value="EpisodeOfCare.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="EpisodeOfCare.implicitRules">
          <path value="EpisodeOfCare.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.

    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="EpisodeOfCare.language">
          <path value="EpisodeOfCare.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>
            <strength value="extensible"/>
            <description value="A human language."/>
            <valueSetReference>🔗
              <reference value="http://hl7.org/fhir/ValueSet/languages"/>
            </valueSetReference>
          </binding>
        </element>
        <element id="EpisodeOfCare.text">
          <path value="EpisodeOfCare.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="EpisodeOfCare.contained">
          <path value="EpisodeOfCare.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="EpisodeOfCare.extension">
          <path value="EpisodeOfCare.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="EpisodeOfCare.extension:dateFirstEncounter">
          <path value="EpisodeOfCare.extension"/>
          <sliceName value="dateFirstEncounter"/>
          <short value="Optional Extensions Element"/>
          <definition
                      value="Optional Extension Element - found in all resources."/>
          <comment
                   value="For episodes of care it can be relevant when the first encounter was that a problem/concern was discussed. In primary care / general practitioner use cases this date SHOULD be present."/>
          <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/EpisodeOfCare-DateFirstEncounter"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() | (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source
                    value="http://nictiz.nl/fhir/StructureDefinition/EpisodeOfCare-DateFirstEncounter"/>
          </constraint>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.extension:dateLastEncounter">
          <path value="EpisodeOfCare.extension"/>
          <sliceName value="dateLastEncounter"/>
          <short value="Optional Extensions Element"/>
          <definition
                      value="Optional Extension Element - found in all resources."/>
          <comment
                   value="For episodes of care it can be relevant when the last encounter was that a problem/concern was discussed. In primary care / general practitioner use cases this date SHOULD be present."/>
          <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/EpisodeOfCare-DateLastEncounter"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() | (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source
                    value="http://nictiz.nl/fhir/StructureDefinition/EpisodeOfCare-DateLastEncounter"/>
          </constraint>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.extension:title">
          <path value="EpisodeOfCare.extension"/>
          <sliceName value="title"/>
          <short value="Optional Extensions Element"/>
          <definition
                      value="Optional Extension Element - found in all resources."/>
          <comment
                   value="For episodes of care it can be relevant to carry the title that the episode of care is known as for the physisian. This is standard for general practitioner workflow. Usually it is the common name for the latest associated Condition"/>
          <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/EpisodeOfCare-Title"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() | (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source
                    value="http://nictiz.nl/fhir/StructureDefinition/EpisodeOfCare-Title"/>
          </constraint>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.modifierExtension">
          <path value="EpisodeOfCare.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="EpisodeOfCare.identifier">
          <path value="EpisodeOfCare.identifier"/>
          <short value="Business Identifier(s) relevant for this EpisodeOfCare"/>
          <definition
                      value="The EpisodeOfCare may be known by different identifiers for different contexts of use, such as when an external agency is tracking the Episode for funding purposes."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EpisodeOfCare.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <mapping>
            <identity value="w5"/>
            <map value="id"/>
          </mapping>
          <mapping>
            <identity value="hcim-basicelements-v1.0-2017EN"/>
            <map value="NL-CM:0.0.6"/>
            <comment value="IdentificationNumber"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.status">
          <path value="EpisodeOfCare.status"/>
          <short
                 value="planned | waitlist | active | onhold | finished | cancelled | entered-in-error"/>
          <definition
                      value="planned | waitlist | active | onhold | finished | cancelled."/>
          <comment
                   value="This element is labeled as a modifier because the status contains codes that mark the episode as not currently valid."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.status"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <isModifier value="true"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="EpisodeOfCareStatus"/>
            </extension>
            <strength value="required"/>
            <description value="The status of the episode of care."/>
            <valueSetReference>🔗
              <reference
                         value="http://hl7.org/fhir/ValueSet/episode-of-care-status"/>
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="status"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.statusHistory">
          <path value="EpisodeOfCare.statusHistory"/>
          <short
                 value="Past list of status codes (the current status may be included to cover the start date of the status)"/>
          <definition
                      value="The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EpisodeOfCare.statusHistory"/>
            <min value="0"/>
            <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() | (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
        </element>
        <element id="EpisodeOfCare.statusHistory.id">
          <path value="EpisodeOfCare.statusHistory.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="EpisodeOfCare.statusHistory.extension">
          <path value="EpisodeOfCare.statusHistory.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="EpisodeOfCare.statusHistory.modifierExtension">
          <path value="EpisodeOfCare.statusHistory.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="EpisodeOfCare.statusHistory.status">
          <path value="EpisodeOfCare.statusHistory.status"/>
          <short
                 value="planned | waitlist | active | onhold | finished | cancelled | entered-in-error"/>
          <definition
                      value="planned | waitlist | active | onhold | finished | cancelled."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.statusHistory.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="EpisodeOfCareStatus"/>
            </extension>
            <strength value="required"/>
            <description value="The status of the episode of care."/>
            <valueSetReference>🔗
              <reference
                         value="http://hl7.org/fhir/ValueSet/episode-of-care-status"/>
            </valueSetReference>
          </binding>
        </element>
        <element id="EpisodeOfCare.statusHistory.period">
          <path value="EpisodeOfCare.statusHistory.period"/>
          <short value="Duration the EpisodeOfCare was in the specified status"/>
          <definition
                      value="The period during this EpisodeOfCare that the specific status applied."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.statusHistory.period"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
        </element>
        <element id="EpisodeOfCare.type">
          <path value="EpisodeOfCare.type"/>
          <short
                 value="Type/class  - e.g. specialist referral, disease management"/>
          <definition
                      value="A classification of the type of episode of care; e.g. specialist referral, disease management, type of funded care."/>
          <comment
                   value="The type can be very important in processing as this could be used in determining if the EpisodeOfCare is relevant to specific government reporting, or other types of classifications."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EpisodeOfCare.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="EpisodeOfCareType"/>
            </extension>
            <strength value="example"/>
            <description value="The type of the episode of care"/>
            <valueSetReference>🔗
              <reference value="http://hl7.org/fhir/ValueSet/episodeofcare-type"/>
            </valueSetReference>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="class"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.type.id">
          <path value="EpisodeOfCare.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="EpisodeOfCare.type.extension">
          <path value="EpisodeOfCare.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="EpisodeOfCare.type.coding">
          <path value="EpisodeOfCare.type.coding"/>
          <short value="Code defined by a terminology system"/>
          <definition
                      value="A reference to a code defined by a terminology system."/>
          <comment
                   value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
          <requirements
                        value="Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings."/>
          <min value="0"/>
          <max value="*"/>
          <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="EpisodeOfCare.type.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="EpisodeOfCare.type.text"/>
          <short value="ConcernLabel"/>
          <definition
                      value="If needed, a short, written description of the concern. Mainly in first-line care this will be used for the episode name."/>
          <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."/>
          <alias value="ConcernLabel"/>
          <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>
          <mapping>
            <identity value="hcim-concernfortransfer-v1.2-2015EN"/>
            <map value="NL-CM:5.1.9"/>
            <comment value="ConcernLabel"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.diagnosis">
          <path value="EpisodeOfCare.diagnosis"/>
          <short value="The list of diagnosis relevant to this episode of care"/>
          <definition
                      value="The list of diagnosis relevant to this episode of care."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EpisodeOfCare.diagnosis"/>
            <min value="0"/>
            <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() | (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
        </element>
        <element id="EpisodeOfCare.diagnosis.id">
          <path value="EpisodeOfCare.diagnosis.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="EpisodeOfCare.diagnosis.extension">
          <path value="EpisodeOfCare.diagnosis.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="EpisodeOfCare.diagnosis.modifierExtension">
          <path value="EpisodeOfCare.diagnosis.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="EpisodeOfCare.diagnosis.condition">
          <path value="EpisodeOfCare.diagnosis.condition"/>
          <short
                 value="Conditions/problems/diagnoses this episode of care is for"/>
          <definition
                      value="A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.diagnosis.condition"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://fhir.hl7.nl/zorgviewer/StructureDefinition/Condition"/>
          </type>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="what"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.diagnosis.role">
          <path value="EpisodeOfCare.diagnosis.role"/>
          <short
                 value="Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …)"/>
          <definition
                      value="Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.diagnosis.role"/>
            <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="DiagnosisRole"/>
            </extension>
            <strength value="preferred"/>
            <description value="The type of diagnosis this condition represents"/>
            <valueSetReference>🔗
              <reference value="http://hl7.org/fhir/ValueSet/diagnosis-role"/>
            </valueSetReference>
          </binding>
        </element>
        <element id="EpisodeOfCare.diagnosis.rank">
          <path value="EpisodeOfCare.diagnosis.rank"/>
          <short value="Ranking of the diagnosis (for each role type)"/>
          <definition value="Ranking of the diagnosis (for each role type)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.diagnosis.rank"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <isSummary value="true"/>
        </element>
        <element id="EpisodeOfCare.patient">
          <path value="EpisodeOfCare.patient"/>
          <short value="The patient who is the focus of this episode of care"/>
          <definition
                      value="The patient who is the focus of this episode of care."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.patient"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient"/>
          </type>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="who.focus"/>
          </mapping>
          <mapping>
            <identity value="hcim-basicelements-v1.0-2017EN"/>
            <map value="NL-CM:0.0.11"/>
            <comment value="Subject"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.managingOrganization">
          <path value="EpisodeOfCare.managingOrganization"/>
          <short value="Organization that assumes care"/>
          <definition
                      value="The organization that has assumed the specific responsibilities for the specified duration."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.managingOrganization"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://fhir.nl/fhir/StructureDefinition/nl-core-organization"/>
          </type>
          <isSummary value="true"/>
        </element>
        <element id="EpisodeOfCare.period">
          <path value="EpisodeOfCare.period"/>
          <short value="Interval during responsibility is assumed"/>
          <definition
                      value="The interval during which the managing organization assumes the defined responsibility."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="when.init"/>
          </mapping>
          <mapping>
            <identity value="hcim-basicelements-v1.0-2017EN"/>
            <map value="NL-CM:0.0.14"/>
            <comment value="DateTime"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.referralRequest">
          <path value="EpisodeOfCare.referralRequest"/>
          <short value="Originating Referral Request(s)"/>
          <definition
                      value="Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EpisodeOfCare.referralRequest"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/ReferralRequest"/>
          </type>
        </element>
        <element id="EpisodeOfCare.careManager">
          <path value="EpisodeOfCare.careManager"/>
          <short value="Care manager/care co-ordinator for the patient"/>
          <definition
                      value="The practitioner that is the care manager/care co-ordinator for this patient."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EpisodeOfCare.careManager"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"/>
          </type>
        </element>
        <element id="EpisodeOfCare.careManager.id">
          <path value="EpisodeOfCare.careManager.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="EpisodeOfCare.careManager.extension">
          <path value="EpisodeOfCare.careManager.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="EpisodeOfCare.careManager.extension:practitionerRole">
          <path value="EpisodeOfCare.careManager.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() | (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source
                    value="http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"/>
          </constraint>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="EpisodeOfCare.careManager.reference">
          <path value="EpisodeOfCare.careManager.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="EpisodeOfCare.careManager.identifier">
          <path value="EpisodeOfCare.careManager.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.

    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

    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="EpisodeOfCare.careManager.display">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="EpisodeOfCare.careManager.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="EpisodeOfCare.team">
          <path value="EpisodeOfCare.team"/>
          <short value="Other practitioners facilitating this episode of care"/>
          <definition
                      value="The list of practitioners that may be facilitating this episode of care for specific purposes."/>
          <alias value="CareTeam"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EpisodeOfCare.team"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/CareTeam"/>
          </type>
        </element>
        <element id="EpisodeOfCare.account">
          <path value="EpisodeOfCare.account"/>
          <short
                 value="The set of accounts that may be used for billing for this EpisodeOfCare"/>
          <definition
                      value="The set of accounts that may be used for billing for this EpisodeOfCare."/>
          <comment
                   value="The billing system may choose to allocate billable items associated with the EpisodeOfCare to different referenced Accounts based on internal business rules."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EpisodeOfCare.account"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Account"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="EpisodeOfCare">
          <path value="EpisodeOfCare"/>
        </element>
        <element id="EpisodeOfCare.status">
          <path value="EpisodeOfCare.status"/>
          <mustSupport value="true"/>
        </element>
        <element id="EpisodeOfCare.diagnosis.condition">
          <path value="EpisodeOfCare.diagnosis.condition"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://fhir.hl7.nl/zorgviewer/StructureDefinition/Condition"/>
          </type>
          <mustSupport value="true"/>
        </element>
      </differential>
    </StructureDefinition>