<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NGonorrhoeaCervixQlCult" />
  <url value="http://fhir.org/guides/hspc/StructureDefinition/NGonorrhoeaCervixQlCult" />
  <version value="2.0.0" />
  <name value="HSPC NGonorrhoeaCervixQlCult Profile" />
  <status value="draft" />
  <date value="2017-05-15" />
  <publisher value="HSPC" />
  <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://fhir.org/guides/hspc/StructureDefinition/hspc-stdord" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation:hspcNGonorrhoeaCervixQlCult">
      <path value="Observation" />
      <sliceName value="hspcNGonorrhoeaCervixQlCult" />
      <short value="HSPC HSPC ChlamydiaDnaXxxQlPcr Profile" />
      <constraint>
        <key value="1" />
        <severity value="error" />
        <human value="Must have either a value or a dataAbsentReason but not both" />
        <expression value="value xor dataAbsentReason" />
        <xpath value="(f:value or f:dataAbsentReason) and (not(f:value and f:dataAbsentReason))" />
      </constraint>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Observation:hspcNGonorrhoeaCervixQlCult.code">
      <path value="Observation.code" />
      <short value="Laboratory Test Name" />
      <definition value="The test that was performed.  A LOINC **SHALL** be used if the concept is present in LOINC." />
      <comment value="The typical patterns for codes are:  1)  a LOINC code either as a  translation from a &quot;local&quot; code or as a primary code, or 2)  a local code only if no suitable LOINC exists,  or 3)  both the local and the LOINC translation.   Systems SHALL be capable of sending the local code if one exists.  When using LOINC , Use either the SHORTNAME or LONG_COMMON_NAME field for the display." />
      <alias value="Test Name" />
      <alias value="Observation Identifer" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <fixedCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="688-2" />
          <display value="Neisseria gonorrhoeae [Presence] in Cervix by Organism specific culture" />
        </coding>
      </fixedCodeableConcept>
      <mustSupport value="true" />
      <isModifier value="false" />
      <binding>
        <strength value="preferred" />
        <description value="Standard LOINC ordinal codes" />
        <valueSetReference>
          <reference value="http://fhir.org/guides/hspc/ValueSet/OrdinalLabCodes" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="argonaut-dq-dstu2" />
        <map value="Observation.code" />
      </mapping>
    </element>
    <element id="Observation:hspcNGonorrhoeaCervixQlCult.valueCodeableConcept">
      <path value="Observation.valueCodeableConcept" />
      <short value="Result Value" />
      <definition value="The Laboratory result value.  If a coded value,  the valueCodeableConcept.code **SHOULD**  be selected from [SNOMED CT](http://hl7.org/fhir/ValueSet/uslab-obs-codedresults).  If a numeric value, valueQuantity.code **SHALL** be selected from [UCUM](http://unitsofmeasure.org).  A FHIR [UCUM Codes value set](http://hl7.org/fhir/STU3/valueset-ucum-units.html) that defines all UCUM codes is in the FHIR specification." />
      <comment value="Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is &quot;'value' + the type name&quot; with a capital on the first letter of the type).&#xD;&#xD;&#xD;If the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text.  A value set is bound to the ValueCodeableConcept element.    For further discussion and examples see the  [notes section](observation.html#notes) below." />
      <requirements value="An observation exists to have a value, though it may not if it is in error, or if it represents a group of observations." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Observation.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/StructureDefinition/CodeableConcept" />
      </type>
      <condition value="obs-7" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
          <valueBoolean value="true" />
        </extension>
        <key value="us-core-4" />
        <severity value="warning" />
        <human value="SHOULD use Snomed CT for coded Results" />
        <expression value="valueCodeableConcept.coding.system.empty() or valueCodeableConcept.coding.system = 'http://snomed.info/sct'" />
        <xpath value="not(exists(f:valueCodeableConcept/f:coding/f:system) ) or  f:valueCodeableConcept/f:coding/f:system[@value='http://snomed.info/sct']" />
      </constraint>
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="preferred" />
        <description value="The codes used as result values" />
        <valueSetReference>
          <reference value="https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1166.3" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>