<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nl-core-episodeofcare" />
  <url value="http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare" />
  <version value="1.1.4" />
  <name value="nl-core-episodeofcare" />
  <title value="nl-core-episodeofcare" />
  <status value="active" />
  <publisher value="HL7 Netherlands" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="An EpisodeOfCare resource as defined for the Dutch realm" />
  <copyright value="CC0" />
  <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://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
  <derivation value="constraint" />
  <differential>
    <element id="EpisodeOfCare.extension">
      <path value="EpisodeOfCare.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="EpisodeOfCare.extension:dateFirstEncounter">
      <path value="EpisodeOfCare.extension" />
      <sliceName value="dateFirstEncounter" />
      <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." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/EpisodeOfCare-DateFirstEncounter" />
      </type>
    </element>
    <element id="EpisodeOfCare.extension:dateLastEncounter">
      <path value="EpisodeOfCare.extension" />
      <sliceName value="dateLastEncounter" />
      <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." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/EpisodeOfCare-DateLastEncounter" />
      </type>
    </element>
    <element id="EpisodeOfCare.extension:title">
      <path value="EpisodeOfCare.extension" />
      <sliceName value="title" />
      <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" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/EpisodeOfCare-Title" />
      </type>
    </element>
    <element id="EpisodeOfCare.identifier">
      <path value="EpisodeOfCare.identifier" />
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.6" />
        <comment value="IdentificationNumber" />
      </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." />
      <alias value="ConcernLabel" />
      <mapping>
        <identity value="hcim-concernfortransfer-v1.2-2015EN" />
        <map value="NL-CM:5.1.9" />
        <comment value="ConcernLabel" />
      </mapping>
    </element>
    <element id="EpisodeOfCare.diagnosis.condition">
      <path value="EpisodeOfCare.diagnosis.condition" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-Problem" />
      </type>
    </element>
    <element id="EpisodeOfCare.patient">
      <path value="EpisodeOfCare.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.11" />
        <comment value="Subject" />
      </mapping>
    </element>
    <element id="EpisodeOfCare.managingOrganization">
      <path value="EpisodeOfCare.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-organization" />
      </type>
    </element>
    <element id="EpisodeOfCare.period">
      <path value="EpisodeOfCare.period" />
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.14" />
        <comment value="DateTime" />
      </mapping>
    </element>
    <element id="EpisodeOfCare.careManager">
      <path value="EpisodeOfCare.careManager" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner" />
      </type>
    </element>
    <element id="EpisodeOfCare.careManager.extension">
      <path value="EpisodeOfCare.careManager.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="EpisodeOfCare.careManager.extension:practitionerRole">
      <path value="EpisodeOfCare.careManager.extension" />
      <sliceName value="practitionerRole" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference" />
      </type>
    </element>
  </differential>
</StructureDefinition>