<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="observation-results-ca-ps" />
  <url value="http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-results-ca-ps" />
  <name value="ObservationResultsPSCA" />
  <title value="Observation Results (PS-CA)" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2023-12-06T00:00:00-08:00" />
  <description value="This profile represents the constraints applied to the Observation resource by the PS-CA project to represent various types of results and associated observations in a patient summary. This is the base profile from which the other results profiles are derived. It is informed by the constraints of the [Observation Results IPS-UV profile](http://hl7.org/fhir/uv/ips/StructureDefinition-ObservationResults-uv-ips.html) and the [Canadian Baseline Profile](http://build.fhir.org/ig/HL7-Canada/ca-baseline/branches/master/StructureDefinition-profile-observation.html) to allow for cross-border and cross-jurisdiction sharing of result information" />
  <purpose value="This profile constrains the Observation resource to represent various types of results and associated observations in a patient summary." />
  <copyright value="Copyright © 2024+ Canada Health Infoway. All rights reserved. [Terms of Use and License Agreements](https://ic.infoway-inforoute.ca/en/about/tou). [Privacy Policy](https://www.infoway-inforoute.ca/en/legal/privacy-policy)." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.status">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
        <valueString value="default: final" />
      </extension>
      <path value="Observation.status" />
      <comment value="Only result observations with a status of &quot;final&quot; may be included in a patient summary.&#xA;&#xA;Feedback is requested on whether this is too restrictive, and, e.g., &quot;amended&quot; or &quot;corrected&quot; should also be allowed." />
      <fixedCode value="final" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/CodeableConcept-ca-ps" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.subject.reference">
      <path value="Observation.subject.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x].extension">
      <path value="Observation.effective[x].extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.effective[x].extension:data-absent-reason">
      <path value="Observation.effective[x].extension" />
      <sliceName value="data-absent-reason" />
      <short value="effective[x] absence reason" />
      <definition value="Provides a reason why the effectiveTime is missing." />
      <comment value="Systems that have requirements to always populate .effective[X] do not need to demonstrate this element. Receiving systems are expected not to error if they receive a patient summary with a data absent reason on this element." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <comment value="The IPS-UV specification considers this a Must Support element. Because this profile is the base for a number of other PS diagnostic result profiles and not used on some of the other social observation profiles, the Must Support flag on the component element has been maintained until further feedback is provided on whether systems are anticipating to use this as a base profile for other results that don't require the support of component." />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>