<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fparPregnancyIntentionEval" />
  <url value="http://fhir.org/guides/hspc/StructureDefinition/fparPregnancyIntentionEval" />
  <version value="1.0.0" />
  <name value="FPAR Pregnancy Intention Eval Profile" />
  <status value="draft" />
  <date value="2017-05-09" />
  <publisher value="HSPC on behalf 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:fparPregnancyIntentionEval">
      <path value="Observation" />
      <sliceName value="fparPregnancyIntentionEval" />
      <short value="HSPC Pregnancy Intention Eval." />
      <definition value="The FPAR Pregnancy Intention Eval 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:fparPregnancyIntentionEval.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:fparPregnancyIntentionEval.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 one's intention for pregnancy used by FPAR." />
        <valueSetReference>
          <reference value="https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1166.22" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation:fparPregnancyIntentionEval.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:fparPregnancyIntentionEval.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:fparPregnancyIntentionEval.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:fparPregnancyIntentionEval.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:fparPregnancyIntentionEval.referenceRange">
      <path value="Observation.referenceRange" />
      <min value="0" />
      <max value="0" />
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparPregnancyIntentionEval.related">
      <path value="Observation.bodySite" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparPregnancyIntentionEval.component">
      <path value="Observation.bodySite" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
  </differential>
</StructureDefinition>