{
  "resourceType": "StructureDefinition",
  "id": "profile-cr-observation",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-cr-observation",
  "name": "Observation",
  "title": "Cardiology Observation Profile",
  "status": "active",
  "publisher": "Synapxe",
  "description": "Observation profile for recording cardiology measurements and findings such as vital signs, cardiac measurements, and clinical observations.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "definition": "Observations that are part of this report. Observations can be simple name/value pairs or grouping observations that include references to other members of the group."
      },
      {
        "id": "Observation.meta",
        "path": "Observation.meta"
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "max": "1"
      },
      {
        "id": "Observation.modifierExtension",
        "path": "Observation.modifierExtension",
        "max": "0"
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "Observation.identifier:investigationId",
        "path": "Observation.identifier",
        "sliceName": "investigationId",
        "short": "Business Identifier for observation",
        "definition": "A unique identifier assigned to this observation.",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "Observation.identifier:investigationId.system",
        "path": "Observation.identifier.system",
        "patternUri": "https://fhir.synapxe.sg/NamingSystem/investigation-id"
      },
      {
        "id": "Observation.identifier:sequenceNo",
        "path": "Observation.identifier",
        "sliceName": "sequenceNo",
        "short": "Business Identifier for observation",
        "definition": "The sequence number assigned to the observation.",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "Observation.identifier:sequenceNo.system",
        "path": "Observation.identifier.system",
        "patternUri": "https://fhir.synapxe.sg/NamingSystem/sequence-no"
      },
      {
        "id": "Observation.instantiates[x]",
        "path": "Observation.instantiates[x]",
        "max": "0"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.triggeredBy",
        "path": "Observation.triggeredBy",
        "max": "0"
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "definition": "The status of the result value."
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "definition": "The name of the observation.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Observation.code.extension",
        "path": "Observation.code.extension",
        "max": "0"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "max": "0"
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "max": "0"
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "max": "0",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "max": "0"
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-organization"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer.display",
        "path": "Observation.performer.display",
        "min": 1
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "definition": "Carries these NEHR XML elements of putCardiology:\n\n- `content/Composition/section/entry/Procedure/report/result/value/valueQuantity/value`: The measured value.\n- `content/Composition/section/entry/Procedure/report/result/value/valueQuantity/comparator`: Indicates whether the actual value is greater than or less than the stated value.\n- `content/Composition/section/entry/Procedure/report/result/value/valueQuantity/unit`: Unit of measurement of the observation value.\n- `content/Composition/section/entry/Procedure/report/result/value/valueCodeableConcept`: The value is a coded field.\n- `content/Composition/section/entry/Procedure/report/result/value/valueString`: The value is a string.",
        "type": [
          {
            "code": "Quantity"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "definition": "Assessment made based on the result of the observation, often represented as an abnormal flag.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Observation.interpretation.extension",
        "path": "Observation.interpretation.extension",
        "max": "0"
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "max": "1",
        "type": [
          {
            "code": "Annotation",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-annotation"
            ]
          }
        ]
      },
      {
        "id": "Observation.note.text",
        "path": "Observation.note.text",
        "definition": "Additional comments, interpretations or clarifications about the observation result."
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.bodySite.id",
        "path": "Observation.bodySite.id",
        "max": "0"
      },
      {
        "id": "Observation.bodySite.extension",
        "path": "Observation.bodySite.extension",
        "max": "0"
      },
      {
        "id": "Observation.bodySite.coding",
        "path": "Observation.bodySite.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.bodySite.coding.id",
        "path": "Observation.bodySite.coding.id",
        "max": "0"
      },
      {
        "id": "Observation.bodySite.coding.extension",
        "path": "Observation.bodySite.coding.extension",
        "max": "0"
      },
      {
        "id": "Observation.bodySite.coding.system",
        "path": "Observation.bodySite.coding.system",
        "min": 1
      },
      {
        "id": "Observation.bodySite.coding.version",
        "path": "Observation.bodySite.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.bodySite.coding.code",
        "path": "Observation.bodySite.coding.code",
        "min": 1
      },
      {
        "id": "Observation.bodySite.coding.display",
        "path": "Observation.bodySite.coding.display",
        "min": 1
      },
      {
        "id": "Observation.bodySite.coding.userSelected",
        "path": "Observation.bodySite.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.bodySite.text",
        "path": "Observation.bodySite.text",
        "max": "0"
      },
      {
        "id": "Observation.bodyStructure",
        "path": "Observation.bodyStructure",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "definition": "Mechanism or method used to produce the observation.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Observation.method.extension",
        "path": "Observation.method.extension",
        "max": "0"
      },
      {
        "id": "Observation.method.coding.version",
        "path": "Observation.method.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-specimen"
            ]
          }
        ]
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-device"
            ]
          }
        ]
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range."
      },
      {
        "id": "Observation.referenceRange.id",
        "path": "Observation.referenceRange.id",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.extension",
        "path": "Observation.referenceRange.extension",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.modifierExtension",
        "path": "Observation.referenceRange.modifierExtension",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.low.value",
        "path": "Observation.referenceRange.low.value",
        "definition": "Lower boundary of the reference range."
      },
      {
        "id": "Observation.referenceRange.high.value",
        "path": "Observation.referenceRange.high.value",
        "definition": "Upper boundary of the reference range."
      },
      {
        "id": "Observation.referenceRange.normalValue",
        "path": "Observation.referenceRange.normalValue",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.type",
        "path": "Observation.referenceRange.type",
        "definition": "Meaning of the reference range.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Observation.referenceRange.appliesTo",
        "path": "Observation.referenceRange.appliesTo",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.age",
        "path": "Observation.referenceRange.age",
        "definition": "Age range to which this reference range applies."
      },
      {
        "id": "Observation.referenceRange.age.id",
        "path": "Observation.referenceRange.age.id",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.age.extension",
        "path": "Observation.referenceRange.age.extension",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.age.low.value",
        "path": "Observation.referenceRange.age.low.value",
        "definition": "Lower age limit."
      },
      {
        "id": "Observation.referenceRange.age.high.value",
        "path": "Observation.referenceRange.age.high.value",
        "definition": "Upper age limit."
      },
      {
        "id": "Observation.referenceRange.text",
        "path": "Observation.referenceRange.text",
        "definition": "Text-based reference range used when quantitative ranges are not appropriate."
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      },
      {
        "id": "Observation.component.id",
        "path": "Observation.component.id",
        "max": "0"
      },
      {
        "id": "Observation.component.extension",
        "path": "Observation.component.extension",
        "max": "0"
      },
      {
        "id": "Observation.component.modifierExtension",
        "path": "Observation.component.modifierExtension",
        "max": "0"
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Observation.component.code.extension",
        "path": "Observation.component.code.extension",
        "max": "0"
      },
      {
        "id": "Observation.component.code.coding.version",
        "path": "Observation.component.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "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"
      }
    ]
  }
}