<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fpar-virginalStatus" />
  <url value="http://fhir.org/guides/hspc/StructureDefinition/fpar-virginalStatus" />
  <version value="1.0.0" />
  <name value="FPAR Virginal Status Profile" />
  <status value="draft" />
  <date value="2017-05-11" />
  <publisher value="Healthcare Services Platform Consortium 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:fparVirginalStatusEval">
      <path value="Observation" />
      <sliceName value="fparVirginalStatusEval" />
      <short value="HSPC Virginal Status Eval." />
      <definition value="The FPAR Virginal Status profile is based on the HSPC Virginal Status and US Core Result Observation profiles." />
      <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:fparVirginalStatusEval.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:fparVirginalStatusEval.subject">
      <path value="Observation.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.org/guides/hspc/StructureDefinition/hspc-patient" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
    </element>
    <element id="Observation:fparVirginalStatusEval.performer">
      <path value="Observation.performer" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.org/guides/hspc/StructureDefinition/hspc-provpract" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.org/guides/hspc/StructureDefinition/hspc-organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.org/guides/hspc/StructureDefinition/hspc-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparVirginalStatusEval.valueCodeableConcept">
      <path value="Observation.valueCodeableConcept" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="preferred" />
        <description value="A VSAC value set that describes one's sexual activity state used by FPAR." />
        <valueSetReference>
          <reference value="https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1166.16" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Observation:fparVirginalStatusEval.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:fparVirginalStatusEval.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:fparVirginalStatusEval.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:fparVirginalStatusEval.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:fparVirginalStatusEval.referenceRange">
      <path value="Observation.referenceRange" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="Reference" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:fparVirginalStatusEval.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:fparVirginalStatusEval.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>
    <element id="Observation:fparVirginalStatusEval.interpretation">
      <path value="Observation.interpretation" />
      <short value="High, low, normal, etc." />
      <definition value="The assessment made based on the result of the observation.  Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag." />
      <requirements value="For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result." />
      <alias value="Abnormal Flag" />
      <min value="0" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>