<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="zib-Pregnancy-Gravidity" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/zib-Pregnancy-Gravidity" />
  <version value="1.0.2" />
  <name value="Zib Pregnancy Gravidity" />
  <title value="HCIM Pregnancy Gravidity" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="An Observation resource as defined by the Dutch HCIM Pregnancy v3.1(2017EN).&#xD;&#xA;&#xD;&#xA;Pregnancy or gravidity is the condition in which a woman carries a fertilized egg, which grows into an embryo and then a fetus. A pregnancy of between 37 and 42 weeks is considered normal. 'Term pregnancy' is 37 to 42 weeks. The term gravidity is also used for the number of times a woman has been pregnant. This and parity - the number of times a woman has given birth - provides insight into the patient’s obstetric history." />
  <purpose value="# Purpose of HCIM&#xD;&#xA;If the patient is pregnant, it is important to mention this, as it requires specific attention in their care. Pregnancy can influence treatment decisions, the treatment itself and the patient’s care.&#xD;&#xA;&#xD;&#xA;# Purpose of this profile&#xD;&#xA;This profile implements the Gravidity field of the HCIM, the number of times the woman has gotten pregnant (including the one referenced). It complements the zib-Pregnancy profile, which tracks the overarching condition. This profile can be referenced with the Observation.zib-Pregnancy field (event-partOf extension)." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="hcim-pregnancy-v3.1-2017EN" />
    <uri value="https://zibs.nl/wiki/Pregnancy-v3.1(2017EN)" />
    <name value="HCIM Pregnancy-v3.1(2017EN)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://fhir.nl/fhir/StructureDefinition/nl-core-observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.extension:zib-Pregnancy">
      <path value="Observation.extension" />
      <sliceName value="zib-Pregnancy" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/observation-focusSTU3" />
      </type>
    </element>
    <element id="Observation.extension:zib-Pregnancy.value[x]:valueReference">
      <path value="Observation.extension.valueReference" />
      <sliceName value="valueReference" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-Pregnancy" />
      </type>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.code.coding:Gravidity">
      <path value="Observation.code.coding" />
      <sliceName value="Gravidity" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.code.coding:Gravidity.system">
      <path value="Observation.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="Observation.code.coding:Gravidity.code">
      <path value="Observation.code.coding.code" />
      <min value="1" />
      <fixedCode value="11996-6" />
    </element>
    <element id="Observation.code.coding:Gravidity.display">
      <path value="Observation.code.coding.display" />
      <defaultValueString value="Pregnancies" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <short value="Gravidity" />
      <definition value="The number of times the woman has gotten pregnant (including this one)." />
      <alias value="Graviditeit" />
      <min value="1" />
      <type>
        <code value="Quantity" />
      </type>
      <mapping>
        <identity value="hcim-pregnancy-v3.1-2017EN" />
        <map value="NL-CM:7.14.5" />
        <comment value="Gravidity" />
      </mapping>
    </element>
    <element id="Observation.value[x].system">
      <path value="Observation.value[x].system" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.value[x].code">
      <path value="Observation.value[x].code" />
      <fixedCode value="1" />
    </element>
  </differential>
</StructureDefinition>