{
  "resourceType": "StructureDefinition",
  "url": "http://fhir.synapxe.sg/StructureDefinition/profile-observation",
  "name": "Observation",
  "status": "active",
  "description": "This resource defines the vital signs readings of the patient. Details like the type of vital signs (i.e blood pressure), the readings for each vital sign (i.e systolic blood pressure, diastolic blood pressure), the device guid that took the readings and the subject patient id.\r\n\r\nIn the event the readings are missed, the effective period will be used to store the start and end date of the missed readings with the data absent reason as \"unknown\".",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "max": "0"
      },
      {
        "id": "Observation.instantiates[x]",
        "path": "Observation.instantiates[x]",
        "max": "0"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.synapxe.sg/StructureDefinition/profile-care-plan"
            ]
          }
        ]
      },
      {
        "id": "Observation.triggeredBy",
        "path": "Observation.triggeredBy",
        "max": "0"
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "short": "final",
        "fixedCode": "final"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.category.coding",
        "path": "Observation.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category"
      },
      {
        "id": "Observation.category.coding.version",
        "path": "Observation.category.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "min": 1,
        "fixedCode": "vital-signs"
      },
      {
        "id": "Observation.category.coding.display",
        "path": "Observation.category.coding.display",
        "min": 1,
        "fixedString": "Vital Signs"
      },
      {
        "id": "Observation.category.coding.userSelected",
        "path": "Observation.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.category.text",
        "path": "Observation.category.text",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding.version",
        "path": "Observation.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "min": 1
      },
      {
        "id": "Observation.code.coding.userSelected",
        "path": "Observation.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.code.text",
        "path": "Observation.code.text",
        "max": "0"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "min": 1
      },
      {
        "id": "Observation.subject.type",
        "path": "Observation.subject.type",
        "max": "0"
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "max": "0"
      },
      {
        "id": "Observation.subject.display",
        "path": "Observation.subject.display",
        "max": "0"
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "max": "0"
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "max": "0"
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "min": 1
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "max": "0"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason.coding",
        "path": "Observation.dataAbsentReason.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.dataAbsentReason.coding.system",
        "path": "Observation.dataAbsentReason.coding.system",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason.coding.version",
        "path": "Observation.dataAbsentReason.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason.coding.code",
        "path": "Observation.dataAbsentReason.coding.code",
        "min": 1,
        "fixedCode": "unknown"
      },
      {
        "id": "Observation.dataAbsentReason.coding.display",
        "path": "Observation.dataAbsentReason.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason.coding.userSelected",
        "path": "Observation.dataAbsentReason.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason.text",
        "path": "Observation.dataAbsentReason.text",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.bodyStructure",
        "path": "Observation.bodyStructure",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          }
        ]
      },
      {
        "id": "Observation.device.reference",
        "path": "Observation.device.reference",
        "max": "0"
      },
      {
        "id": "Observation.device.type",
        "path": "Observation.device.type",
        "min": 1,
        "fixedUri": "Device"
      },
      {
        "id": "Observation.device.identifier.use",
        "path": "Observation.device.identifier.use",
        "max": "0"
      },
      {
        "id": "Observation.device.identifier.type",
        "path": "Observation.device.identifier.type",
        "max": "0"
      },
      {
        "id": "Observation.device.identifier.system",
        "path": "Observation.device.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.synapxe.sg/NamingSystem/device-guid"
      },
      {
        "id": "Observation.device.identifier.value",
        "path": "Observation.device.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.device.identifier.period",
        "path": "Observation.device.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.device.identifier.assigner",
        "path": "Observation.device.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Observation.device.display",
        "path": "Observation.device.display",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org"
            }
          ]
        }
      },
      {
        "id": "Observation.component.code.coding",
        "path": "Observation.component.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component.code.coding.system",
        "path": "Observation.component.code.coding.system",
        "min": 1,
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.component.code.coding.version",
        "path": "Observation.component.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component.code.coding.code",
        "path": "Observation.component.code.coding.code",
        "min": 1
      },
      {
        "id": "Observation.component.code.coding.display",
        "path": "Observation.component.code.coding.display",
        "min": 1
      },
      {
        "id": "Observation.component.code.coding.userSelected",
        "path": "Observation.component.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.component.code.text",
        "path": "Observation.component.code.text",
        "max": "0"
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1
      },
      {
        "id": "Observation.component.value[x].comparator",
        "path": "Observation.component.value[x].comparator",
        "max": "0"
      },
      {
        "id": "Observation.component.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "min": 1
      },
      {
        "id": "Observation.component.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1
      },
      {
        "id": "Observation.component.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component.interpretation",
        "path": "Observation.component.interpretation",
        "max": "0"
      },
      {
        "id": "Observation.component.referenceRange",
        "path": "Observation.component.referenceRange",
        "max": "0"
      }
    ]
  }
}