<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="biobankcy-sd-observationresults" />
  <url value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-observationresults" />
  <name value="BIOBANKCYSDObservationResults" />
  <title value="Profile: Observation Results (biobank.cy)" />
  <status value="draft" />
  <publisher value="biobank.cy" />
  <contact>
    <name value="Molecular Medicine Research Center (MMRC)" />
    <telecom>
      <system value="email" />
      <value value="biobank@ucy.ac.cy" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Represents the resutls that are produced within a laboratory or a diagnostic center including:&#xD;&#xA;- Clinical Chemistry, Hematology, Microbiology, etc. (identified as Laboratory results)&#xD;&#xA;- Pathology/Histopathology (identified as Pathology results)&#xD;&#xA;- Imaging Investigations (identified as Imaging results)&#xD;&#xA;- Any other diagnostic result (e.g. used in Cardiology, Gastroenterology, etc.) for a donor (research subject) or citizen (patient) of the biobank.cy." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="true" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.meta">
      <path value="Observation.meta" />
    </element>
    <element id="Observation.meta.security">
      <path value="Observation.meta.security" />
    </element>
    <element id="Observation.meta.security.system">
      <path value="Observation.meta.security.system" />
      <min value="1" />
    </element>
    <element id="Observation.meta.security.code">
      <path value="Observation.meta.security.code" />
      <min value="1" />
    </element>
    <element id="Observation.meta.security.display">
      <path value="Observation.meta.security.display" />
      <min value="1" />
    </element>
    <element id="Observation.meta.tag">
      <path value="Observation.meta.tag" />
    </element>
    <element id="Observation.meta.tag.system">
      <path value="Observation.meta.tag.system" />
      <min value="1" />
    </element>
    <element id="Observation.meta.tag.code">
      <path value="Observation.meta.tag.code" />
      <min value="1" />
    </element>
    <element id="Observation.meta.tag.display">
      <path value="Observation.meta.tag.display" />
      <min value="1" />
    </element>
    <element id="Observation.identifier">
      <path value="Observation.identifier" />
      <comment value="Not to be used for biobank.cy" />
    </element>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.partOf">
      <path value="Observation.partOf" />
      <comment value="To link an Observation to an Encounter use `encounter`.  See the  [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <fixedCode value="final" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.&#xD;&#xA;&#xD;&#xA;biobank.cy: Depending on the nature of the result choose laboratory, imaging" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.category.coding">
      <path value="Observation.category.coding" />
      <min value="1" />
    </element>
    <element id="Observation.category.coding.system">
      <path value="Observation.category.coding.system" />
      <min value="1" />
    </element>
    <element id="Observation.category.coding.code">
      <path value="Observation.category.coding.code" />
      <min value="1" />
    </element>
    <element id="Observation.category.coding.display">
      <path value="Observation.category.coding.display" />
      <min value="1" />
    </element>
    <element id="Observation.category:laboratoryCategory">
      <path value="Observation.category" />
      <sliceName value="laboratoryCategory" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
          <code value="laboratory" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.category:imagingCategory">
      <path value="Observation.category" />
      <sliceName value="imagingCategory" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
          <code value="imaging" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.code.coding.system">
      <path value="Observation.code.coding.system" />
      <min value="1" />
    </element>
    <element id="Observation.code.coding.code">
      <path value="Observation.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Observation.code.coding.display">
      <path value="Observation.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Observation.code.coding:laboratoryCode">
      <path value="Observation.code.coding" />
      <sliceName value="laboratoryCode" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/uv/ips/ValueSet/results-laboratory-observations-uv-ips" />
      </binding>
    </element>
    <element id="Observation.code.coding:imagingCode">
      <path value="Observation.code.coding" />
      <sliceName value="imagingCode" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/uv/ips/ValueSet/results-radiology-observations-uv-ips" />
      </binding>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
        <targetProfile value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-donor" />
        <targetProfile value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-citizen" />
      </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.subject.identifier.type">
      <path value="Observation.subject.identifier.type" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
    </element>
    <element id="Observation.subject.identifier.type.coding.system">
      <path value="Observation.subject.identifier.type.coding.system" />
      <min value="1" />
    </element>
    <element id="Observation.subject.identifier.type.coding.code">
      <path value="Observation.subject.identifier.type.coding.code" />
      <min value="1" />
    </element>
    <element id="Observation.subject.identifier.type.coding.display">
      <path value="Observation.subject.identifier.type.coding.display" />
      <min value="1" />
    </element>
    <element id="Observation.focus">
      <path value="Observation.focus" />
      <comment value="Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., &quot;Blood Glucose&quot;) and does not need to be represented separately using this element.  Use `specimen` if a reference to a specimen is required.  If a code is required instead of a resource use either  `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.encounter">
      <path value="Observation.encounter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
        <targetProfile value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-visit" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.encounter.reference">
      <path value="Observation.encounter.reference" />
      <min value="1" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer.reference">
      <path value="Observation.performer.reference" />
      <min value="1" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <comment value="Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <comment value="May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <comment value="Only used if not implicit in code found in Observation.code.  In many systems, this may be represented as a related observation instead of an inline component.   &#xA;&#xA;If the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <comment value="Only used if not implicit in code for Observation.code.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
        <targetProfile value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-specimen" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.specimen.reference">
      <path value="Observation.specimen.reference" />
      <min value="1" />
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <comment value="Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway.  Such devices may be documented using the Provenance resource where relevant.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <comment value="Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MolecularSequence" />
        <targetProfile value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-observationresults" />
      </type>
    </element>
    <element id="Observation.derivedFrom">
      <path value="Observation.derivedFrom" />
      <comment value="All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <comment value="For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
  </differential>
</StructureDefinition>