<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fparContraceptiveChoiceAtExit" />
  <url value="http://fhir.org/guides/hspc/StructureDefinition/fpar-contraceptiveChoiceAtExit" />
  <version value="1.0.0" />
  <name value="Family Planning Annual Report Contraceptive Choice At Exit Profile" />
  <status value="draft" />
  <date value="2017-05-18" />
  <publisher value="Healthcare Services Platform Consortium on belhalf of FPAR" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://healthcaresoa.org" />
    </telecom>
  </contact>
  <fhirVersion value="3.0.0" />
  <mapping>
    <identity value="argonaut-dq-dstu2" />
    <uri value="http://unknown.org/Argonaut DQ DSTU2" />
    <name value="Argonaut DQ DSTU2" />
  </mapping>
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-concept" />
    <uri value="http://snomed.info/conceptdomain" />
    <name value="SNOMED CT Concept Domain Binding" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-attr" />
    <uri value="http://snomed.info/sct" />
    <name value="SNOMED CT Attribute Binding" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation:fparContraceptiveChoiceAtExit">
      <path value="Observation" />
      <sliceName value="fparContraceptiveChoiceAtExit" />
      <short value="FPAR Contraceptive Choice At Exit." />
      <definition value="The HSPC Annual Household Income profile is based on the US Core Results Profile." />
      <comment value="Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as lab reports, etc." />
      <alias value="Obs" />
      <constraint>
        <key value="us-core-2" />
        <severity value="error" />
        <human value="If there is no component or related element then either a value[x] or a data absent reason must be present" />
        <expression value="(component.empty() and related.empty()) implies (dataAbsentReason or value)" />
        <xpath value="exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" />
      </constraint>
      <mustSupport value="false" />
      <isModifier value="false" />
      <mapping>
        <identity value="argonaut-dq-dstu2" />
        <map value="Observation" />
      </mapping>
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.extension:ContraceptionProvisionMethod$Extension">
      <path value="Observation.extension" />
      <sliceName value="ContraceptionProvisionMethod" />
      <short value="FPAR Contraception Provision Method" />
      <definition value="An Extension" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="DomainResource.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://fhir.org/guides/hspc/StructureDefinition/fpar-contraceptionProvisionMethod" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <binding>
        <strength value="preferred" />
        <description value="A VSAC value set that decribes how contraception was provided." />
        <valueSetReference>
          <reference value="https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1166.21" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.code">
      <path value="Observation.code" />
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="argonaut-dq-dstu2" />
        <map value="Observation.code" />
      </mapping>
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.valueCodeableConcept">
      <path value="Observation.valueCodeableConcept" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <binding>
        <strength value="preferred" />
        <description value="A VSAC value set that describes the choice of contraception used by the patient; used by FPAR." />
        <valueSetReference>
          <reference value="https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1166.17" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.bodySite">
      <path value="Observation.bodySite" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <alias value="Contraception not used reason" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <description value="A VSAC value set that describes the reasons why an individual would not be using contraception." />
        <valueSetReference>
          <reference value="https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1166.18" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.method">
      <path value="Observation.method" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.specimen">
      <path value="Observation.specimen" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.device">
      <path value="Observation.device" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.referenceRange">
      <path value="Observation.referenceRange" />
      <min value="0" />
      <max value="0" />
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.related">
      <path value="Observation.related" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparContraceptiveChoiceAtExit.component">
      <path value="Observation.component" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
  </differential>
</StructureDefinition>