<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="bc-CareAgreement" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/bc-CareAgreement" />
  <version value="1.3.3" />
  <name value="bc-CareAgreement" />
  <title value="bc-CareAgreement" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="email" />
      <value value="geboortezorg@nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="A CarePlan profile describing the care arrangement between a pregnant woman and her caregiver(s) as defined by BabyConnect." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="gebz-peri-v3.2" />
    <uri value="https://decor.nictiz.nl/art-decor/decor-datasets-\-peri20-?id=2.16.840.1.113883.2.4.3.11.60.90.77.1.6&amp;effectiveDate=2016-09-08T00%3A00%3A00&amp;conceptId=2.16.840.1.113883.2.4.3.11.60.90.77.2.6.4&amp;conceptEffectiveDate=2016-09-08T00%3A00%3A00" />
    <name value="Geboortezorg 3.2" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="CarePlan" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
  <derivation value="constraint" />
  <differential>
    <element id="CarePlan">
      <path value="CarePlan" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3841" />
        <comment value="ZorgAfspraak" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3871" />
        <comment value="ZorgAfspraak" />
      </mapping>
    </element>
    <element id="CarePlan.category">
      <path value="CarePlan.category" />
      <min value="1" />
    </element>
    <element id="CarePlan.category.coding">
      <path value="CarePlan.category.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="CarePlan.category.coding:carePlanCode">
      <path value="CarePlan.category.coding" />
      <sliceName value="carePlanCode" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
        <code value="288834001" />
      </patternCoding>
    </element>
    <element id="CarePlan.period.start">
      <path value="CarePlan.period.start" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3842" />
        <comment value="BeginDatum" />
      </mapping>
    </element>
    <element id="CarePlan.period.end">
      <path value="CarePlan.period.end" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3843" />
        <comment value="EindDatum" />
      </mapping>
    </element>
    <element id="CarePlan.author">
      <path value="CarePlan.author" />
      <definition value="Identifies the individual(s) or ogranization who is responsible for the content of the care plan. This can be either the contributor and/or the coordinator of the care plan. Use the isCoordinator and isContributor extensions to indicate the role of the author." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/bc-Woman" />
      </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://fhir.nl/fhir/StructureDefinition/nl-core-organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-careteam" />
      </type>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3845" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3865" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3847" />
        <comment value="Contactpersoon" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3866" />
        <comment value="Contactpersoon" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3849" />
        <comment value="Zorgverlener" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3867" />
        <comment value="Zorgverlener" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3844" />
        <comment value="AfspraakPartijen" />
      </mapping>
    </element>
    <element id="CarePlan.author.extension:practitionerRole">
      <path value="CarePlan.author.extension" />
      <sliceName value="practitionerRole" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference" />
      </type>
      <isModifier value="false" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3849" />
        <comment value="Zorgverlener" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3867" />
        <comment value="Zorgverlener" />
      </mapping>
    </element>
    <element id="CarePlan.author.extension:practitionerRole.valueReference:valueReference">
      <path value="CarePlan.author.extension.valueReference" />
      <sliceName value="valueReference" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3864" />
        <comment value="Zorgverlener" />
      </mapping>
    </element>
    <element id="CarePlan.author.extension:isCoordinator">
      <path value="CarePlan.author.extension" />
      <sliceName value="isCoordinator" />
      <definition value="Indicates if the .author is responsible for coordinating the execution of the activities of the care plan. Set this element to true if the health professional referenced in .author is the coordinator of the care plan." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/bc-careplan-isCoordinator" />
      </type>
      <isModifier value="false" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3858" />
        <comment value="Coordinator" />
      </mapping>
    </element>
    <element id="CarePlan.author.extension:isContributor">
      <path value="CarePlan.author.extension" />
      <sliceName value="isContributor" />
      <definition value="Indicates if the .author is one of the individual(s) who agreed with the care plan. Set this element to true if the contact person, health professional or patient referenced in .author is one of the agreement parties." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/bc-careplan-isContributor" />
      </type>
      <isModifier value="false" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3844" />
        <comment value="AfspraakPartijen" />
      </mapping>
    </element>
    <element id="CarePlan.addresses">
      <path value="CarePlan.addresses" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-Problem" />
      </type>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3862" />
        <comment value="Probleem zorgafspraak" />
      </mapping>
    </element>
    <element id="CarePlan.activity.detail.code.text">
      <path value="CarePlan.activity.detail.code.text" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3860" />
        <comment value="Activiteit" />
      </mapping>
    </element>
    <element id="CarePlan.activity.detail.performer">
      <path value="CarePlan.activity.detail.performer" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="resolve()" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3851" />
        <comment value="Uitvoerder" />
      </mapping>
    </element>
    <element id="CarePlan.activity.detail.performer.extension:practitionerRole">
      <path value="CarePlan.activity.detail.performer.extension" />
      <sliceName value="practitionerRole" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference" />
      </type>
      <isModifier value="false" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3856" />
        <comment value="Zorgverlener" />
      </mapping>
    </element>
    <element id="CarePlan.activity.detail.performer:healthProfessional">
      <path value="CarePlan.activity.detail.performer" />
      <sliceName value="healthProfessional" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3856" />
        <comment value="Zorgverlener" />
      </mapping>
    </element>
    <element id="CarePlan.activity.detail.performer:patient">
      <path value="CarePlan.activity.detail.performer" />
      <sliceName value="patient" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3852" />
        <comment value="Patient" />
      </mapping>
    </element>
    <element id="CarePlan.activity.detail.performer:contactPerson">
      <path value="CarePlan.activity.detail.performer" />
      <sliceName value="contactPerson" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3854" />
        <comment value="Contactpersoon" />
      </mapping>
    </element>
    <element id="CarePlan.activity.detail.description">
      <path value="CarePlan.activity.detail.description" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3861" />
        <comment value="Toelichting" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>