{
  "resourceType": "StructureDefinition",
  "id": "2492f2b6-715a-567d-8e90-20fc5e5d6e11",
  "meta": {
    "lastUpdated": "2024-04-19T13:26:55.782+00:00"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Observation",
  "name": "Observation",
  "status": "draft",
  "date": "2022-11-30T20:52:26.9430019+00:00",
  "description": "Measurements and simple assertions made about a patient, device or other subject.",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "OLIS-HL7-v2",
      "name": "OLIS HL7 v2"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "mustSupport": true
      },
      {
        "id": "Observation.id",
        "path": "Observation.id",
        "mustSupport": true
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.extension:observation-sortKey",
        "path": "Observation.extension",
        "sliceName": "observation-sortKey",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-obs-sort-key"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZBX.2"
          }
        ]
      },
      {
        "id": "Observation.extension:observation-subID",
        "path": "Observation.extension",
        "sliceName": "observation-subID",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-obs-sub-id"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.4"
          }
        ]
      },
      {
        "id": "Observation.extension:note",
        "path": "Observation.extension",
        "sliceName": "note",
        "short": "additional note for the observation.",
        "definition": "OLIS may return up to 5 notes",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-note"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "NTE-ZNT"
          }
        ]
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier.system",
        "path": "Observation.identifier.system",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n\r\nOLIS URI example :  [id-system-local-base] /lab/filler-id-[type]-license-[id]",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.3.3/OBR.2.3",
            "comment": "map to OBR.2.3 for ancillary results only"
          }
        ]
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.3.1/OBR.2.1",
            "comment": "Map to OBR.2.1 for ancillary results only"
          }
        ]
      },
      {
        "id": "Observation.identifier.assigner",
        "path": "Observation.identifier.assigner",
        "definition": "Organization that issued/manages the identifier.\r\n\r\nOnly assigner name from organization resource will be populated",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Organization-assigner",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.identifier.assigner.reference",
        "path": "Observation.identifier.assigner.reference",
        "mustSupport": true
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event.\r\n\r\nOLIS: Observation based on test request",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-ProcedureRequest",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.basedOn.reference",
        "path": "Observation.basedOn.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "short": "preliminary | final | amended +",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://ehealthontario.ca/fhir/ValueSet/lab/observation-status"
          }
        },
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.11"
          }
        ]
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "definition": "A code that classifies the general type of observation being made.\r\n\r\nClassification of type of observation. When ancillary information is provided the category needs to be fixed to ‘exam’",
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://ehealthontario.ca/fhir/ValueSet/lab/observation-category"
          }
        }
      },
      {
        "id": "Observation.category.coding",
        "path": "Observation.category.coding",
        "mustSupport": true
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "fixedUri": "http://hl7.org/fhir/STU3/codesystem-observation-category",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "description": "Observation Category",
          "valueSetUri": "http://ehealthontario.ca/fhir/ValueSet/lab/observation-category"
        }
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). OLIS: use 'exam' value for ancillary infromation.",
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://ehealthontario.ca/fhir/ValueSet/lab/observation-codes"
          }
        }
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "code": [
          {
            "system": "http://loinc.org"
          }
        ],
        "definition": "The identification of the code system that defines the meaning of the symbol in the code.\r\nOLIS uses 2 coding systems -LOINC and OLIS temporary codes.",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.3.3"
          }
        ]
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.3.1"
          }
        ]
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.3.2"
          }
        ]
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "definition": "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 \"physiologically relevant time\". 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.\r\n\r\nOLIS: This field must be empty when a laboratory reports a test result. Use this field for ancillary order only.",
        "comment": "Use this field for ancillary order only.\r\nThis field must be empty when a laboratory reports a test result.",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.14.1"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZBX.1"
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Practitioner-ordering",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Organization-performing",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.performer:performer-organization",
        "path": "Observation.performer",
        "sliceName": "performer-organization",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Organization-performing"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZBR.6-ZBR.7"
          }
        ]
      },
      {
        "id": "Observation.performer:performer-organization.reference",
        "path": "Observation.performer.reference",
        "fixedString": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Organization-performing",
        "mustSupport": true
      },
      {
        "id": "Observation.performer:performer-practitioner",
        "path": "Observation.performer",
        "sliceName": "performer-practitioner",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Practitioner-ordering"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZBR.6-ZBR.7"
          }
        ]
      },
      {
        "id": "Observation.performer:performer-practitioner.reference",
        "path": "Observation.performer.reference",
        "fixedString": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Practitioner-ordering",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ObservationValueQuantity"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "string"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "time"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "Attachment",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/Attachment"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.5, OBX.2",
            "comment": "Value[x].value maps to OBX.5. Type of value[x] maps to OBX.2. OBX.2=NM maps to valueQuantity, OBX.2=CE maps to valueCodeableConcept, OBX.2=ST maps to valueString, OBX.2=FT, ST or TX maps to valueString, OBX.2=SN maps to valueQuantity (if OBX.5 contains a comparator), or valueRange (if OBX.5 contains '-'') or valueRatio (if OBX.5 contains ':'), OBX.2=TM maps to valueTime, OBX.2=DT or TS maps to valueDateTime, OBX.2=ED maps to valueAttachment"
          }
        ]
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSetReference": {
            "reference": "http://ehealthontario.ca/fhir/ValueSet/lab/observation-interpretation"
          }
        }
      },
      {
        "id": "Observation.interpretation.coding",
        "path": "Observation.interpretation.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.interpretation.coding.system",
        "path": "Observation.interpretation.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0078",
        "mustSupport": true
      },
      {
        "id": "Observation.interpretation.coding.code",
        "path": "Observation.interpretation.coding.code",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.8"
          }
        ]
      },
      {
        "id": "Observation.interpretation.coding.display",
        "path": "Observation.interpretation.coding.display",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "mustSupport": true
      },
      {
        "id": "Observation.method.coding",
        "path": "Observation.method.coding",
        "max": "1"
      },
      {
        "id": "Observation.method.coding.code",
        "path": "Observation.method.coding.code",
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.17"
          }
        ]
      },
      {
        "id": "Observation.method.text",
        "path": "Observation.method.text",
        "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.\r\n\r\nA symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n\r\nOLIS: How the observation has been done\r\nOnly 2 values can be used: PCR (Polymerase Chain Reaction) or EIA (Enzyme Immunosorbent Assay)",
        "mustSupport": true
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Specimen",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.specimen.reference",
        "path": "Observation.specimen.reference",
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange.low",
        "path": "Observation.referenceRange.low",
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange.low.id",
        "path": "Observation.referenceRange.low.id",
        "mustSupport": false
      },
      {
        "id": "Observation.referenceRange.low.value",
        "path": "Observation.referenceRange.low.value",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.7",
            "comment": "If OBX.7 does not contain a comparator, leave this blank and map OBX.6 to unit. For numeric values, map to lower limit (when both lower and upper limits are defined, e.g. for Potassium 3.5-4.5) or >lower limit (if no upper limit, e.g. >15)"
          }
        ]
      },
      {
        "id": "Observation.referenceRange.low.unit",
        "path": "Observation.referenceRange.low.unit",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.6"
          }
        ]
      },
      {
        "id": "Observation.referenceRange.high",
        "path": "Observation.referenceRange.high",
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange.high.id",
        "path": "Observation.referenceRange.high.id",
        "mustSupport": false
      },
      {
        "id": "Observation.referenceRange.high.value",
        "path": "Observation.referenceRange.high.value",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.7",
            "comment": "If OBX.7 does not contain a comparator, leave this blank and map OBX.6 to unit.  For numeric values, map to upper limit (when both lower and upper limits are defined, e.g. for Potassium 3.5-4.5) or < upper limit (if no lower limit, e.g. <15)"
          }
        ]
      },
      {
        "id": "Observation.referenceRange.high.unit",
        "path": "Observation.referenceRange.high.unit",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.6"
          }
        ]
      },
      {
        "id": "Observation.referenceRange.appliesTo",
        "path": "Observation.referenceRange.appliesTo",
        "definition": "Codes to indicate the target population this reference range applies to.  For example, a reference range may be based on the normal population or a particular sex or race.\r\n\r\nOLIS can return maximum 3 codes.",
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange.appliesTo.coding",
        "path": "Observation.referenceRange.appliesTo.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange.appliesTo.coding.system",
        "path": "Observation.referenceRange.appliesTo.coding.system",
        "fixedUri": "http://hl7.org/fhir/v2/0080",
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange.appliesTo.coding.code",
        "path": "Observation.referenceRange.appliesTo.coding.code",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.10"
          }
        ]
      },
      {
        "id": "Observation.referenceRange.appliesTo.coding.display",
        "path": "Observation.referenceRange.appliesTo.coding.display",
        "mustSupport": true
      },
      {
        "id": "Observation.referenceRange.text",
        "path": "Observation.referenceRange.text",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBX.7",
            "comment": "always map to OBX.7"
          }
        ]
      }
    ]
  }
}