<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="TestObservation2-cf-profile" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2018-05-30T13:04:17.764+00:00" />
  </meta>
  <url value="http://fhirtest.uhn.ca/baseDstu3/StructureDefinition/TestObservation2-cf-profile" />
  <identifier>
    <system value="http://clinfhir.com" />
    <value value="author" />
  </identifier>
  <name value="TestObservation2" />
  <status value="draft" />
  <date value="2018-05-30T15:03:17+02:00" />
  <purpose value="TestObservation2" />
  <keyword>
    <system value="http://fhir.hl7.org.nz/NamingSystem/application" />
    <code value="clinfhir" />
  </keyword>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <snapshot>
    <element id="Observation:Observation-0">
      <path value="Observation" />
      <label value="TestObservation2" />
      <definition value="No description" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="TestObservation2" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Observation:Observation.identifier-1">
      <path value="Observation.identifier" />
      <label value="identifier" />
      <short value="Business Identifier for observation" />
      <definition value="A unique identifier assigned to this observation." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="TestObservation2.identifier" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.identifier|" />
      </mapping>
    </element>
    <element id="Observation:Observation.basedOn-2">
      <path value="Observation.basedOn" />
      <label value="basedOn" />
      <short value="Fulfills plan, proposal or order" />
      <definition value="A plan, proposal or order that is fulfilled in whole or in part by this event." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="TestObservation2.basedOn" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceRequest" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
      </type>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.basedOn|" />
      </mapping>
    </element>
    <element id="Observation:Observation.status-3">
      <path value="Observation.status" />
      <label value="status" />
      <short value="registered | preliminary | final | amended +" />
      <definition value="The status of the result value." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="TestObservation2.status" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <binding>
        <strength value="required" />
        <description value="Codes providing the status of an observation." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/observation-status" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.status|" />
      </mapping>
    </element>
    <element id="Observation:Observation.category-4">
      <path value="Observation.category" />
      <label value="category" />
      <short value="Classification of  type of observation" />
      <definition value="A code that classifies the general type of observation being made." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="TestObservation2.category" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <description value="Codes for high level observation categories." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/observation-category" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.category|" />
      </mapping>
    </element>
    <element id="Observation:Observation.code-5">
      <path value="Observation.code" />
      <label value="code" />
      <short value="Type of observation (code / type)" />
      <definition value="Describes what was observed. Sometimes this is called the observation &quot;name&quot;." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="TestObservation2.code" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Codes identifying names of simple observations." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/observation-codes" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.code|" />
      </mapping>
    </element>
    <element id="Observation:Observation.effective[x]-6">
      <path value="Observation.effective[x]" />
      <label value="effective[x]" />
      <short value="Clinically relevant time/time-period for observation" />
      <definition value="The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the &quot;physiologically relevant time&quot;. This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="TestObservation2.effective[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.effective[x]|" />
      </mapping>
    </element>
    <element id="Observation:Observation.performer-7">
      <path value="Observation.performer" />
      <label value="performer" />
      <short value="Who is responsible for the observation" />
      <definition value="Who was responsible for asserting the observed value as &quot;true&quot;." />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="TestObservation2.performer" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.performer|" />
      </mapping>
    </element>
    <element id="Observation:Observation.value[x]-8">
      <path value="Observation.value[x]" />
      <label value="value[x]" />
      <short value="Actual result" />
      <definition value="The information determined as a result of making the observation, if the information has a simple value." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="TestObservation2.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Quantity" />
      </type>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.value[x]|" />
      </mapping>
    </element>
    <element id="Observation:Observation.bodySite-9">
      <path value="Observation.bodySite" />
      <label value="bodySite" />
      <short value="Observed body part" />
      <definition value="Indicates the site on the subject's body where the observation was made (i.e. the target site)." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="TestObservation2.bodySite" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <description value="Codes describing anatomical locations. May include laterality." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/body-site" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.bodySite|" />
      </mapping>
    </element>
    <element id="Observation:Observation.method-10">
      <path value="Observation.method" />
      <label value="method" />
      <short value="How it was done" />
      <definition value="Indicates the mechanism used to perform the observation." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="TestObservation2.method" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <fixedString value="123456789" />
      <binding>
        <strength value="example" />
        <description value="Methods for simple observations." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/observation-methods" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="fhir" />
        <map value="Observation.method|" />
      </mapping>
    </element>
  </snapshot>
</StructureDefinition>