OpenOrchid Core Vital Signs

One vital sign or a panel of them. CA Core+ has no vital-signs profile, so this one derives from the generic CA Core+ Observation and adds the rules of the base FHIR vital-signs profile (http://hl7.org/fhir/StructureDefinition/vitalsigns), which every vital-sign Observation must meet. It also requires a LOINC code and UCUM units, as the FHIR specification requires of vital signs.
Canonical URLhttps://openorchid.ca/fhir/core/StructureDefinition/oo-observation-vitalsigns
Version0.1.0
RecordObservation
Derives fromhttp://fhir.infoway-inforoute.ca/cacore/StructureDefinition/observation-ca-core
DownloadStructureDefinition (JSON)

What this profile adds

Everything else is as in the profile it derives from.

ElementRequires
Observationoo-obs-1: A result has a value, a reason it has none, or its parts: components or member results.
FHIRPathvalue.exists() or dataAbsentReason.exists() or component.exists() or hasMember.exists()
Observationoo-vs-1: The category includes vital-signs.
FHIRPathcategory.coding.where(system = 'http://terminology.hl7.org/CodeSystem/observation-category' and code = 'vital-signs').exists()
Observationoo-vs-2: The code has a LOINC coding.
FHIRPathcode.coding.where(system = 'http://loinc.org' and code.exists()).exists()
Observationoo-vs-3: A quantity, on the result or on a component, has a value and a UCUM unit.
FHIRPath(value | component.value).ofType(Quantity).all(value.exists() and unit.exists() and system = 'http://unitsofmeasure.org' and code.exists())
Observation.subjectAt least 1
Observation.subjectReference to patient-ca-core only
Observation.subject.referenceAt least 1
Observation.effective[x]At least 1
Observation.effective[x]dateTime or Period only
Observation.effective[x]oo-vs-4: A date and time given for the result is at least as precise as the day.
FHIRPath($this as dateTime).toString().length() >= 8
Observation.componentoo-vs-5: A component has a value or a reason it has none.
FHIRPathvalue.exists() or dataAbsentReason.exists()

Examples

Records that pass this profile:

Observation-oo-observation-vitalsigns-example
{
  "resourceType": "Observation",
  "id": "oo-observation-vitalsigns-example",
  "meta": {
    "profile": [
      "https://openorchid.ca/fhir/core/StructureDefinition/oo-observation-vitalsigns"
    ]
  },
  "status": "final",
  "category": [
    {
      "coding": [
        {
          "code": "vital-signs",
          "system": "http://terminology.hl7.org/CodeSystem/observation-category"
        }
      ]
    }
  ],
  "code": {
    "coding": [
      {
        "code": "8867-4",
        "system": "http://loinc.org",
        "display": "Heart rate"
      }
    ]
  },
  "subject": {
    "reference": "Patient/oo-patient-example"
  },
  "effectiveDateTime": "2024-06-02T10:30:00-04:00",
  "valueQuantity": {
    "value": 72,
    "code": "/min",
    "system": "http://unitsofmeasure.org",
    "unit": "beats/minute"
  }
}

Records that fail it, each breaking one rule above:

Breaks oo-vs-3
{
  "resourceType": "Observation",
  "id": "invalid-vitals-unit-not-ucum",
  "meta": {
    "profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-observation-vitalsigns"]
  },
  "status": "final",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/observation-category",
          "code": "vital-signs"
        }
      ]
    }
  ],
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "8867-4"
      }
    ]
  },
  "subject": {
    "reference": "Patient/oo-patient-example"
  },
  "effectiveDateTime": "2024-06-02T10:30:00-04:00",
  "valueQuantity": {
    "value": 72,
    "unit": "bpm"
  }
}
Breaks oo-vs-4
{
  "resourceType": "Observation",
  "id": "invalid-vitals-month-only",
  "meta": {
    "profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-observation-vitalsigns"]
  },
  "status": "final",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/observation-category",
          "code": "vital-signs"
        }
      ]
    }
  ],
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "8867-4"
      }
    ]
  },
  "subject": {
    "reference": "Patient/oo-patient-example"
  },
  "effectiveDateTime": "2024-06",
  "valueQuantity": {
    "value": 72,
    "unit": "beats/minute",
    "system": "http://unitsofmeasure.org",
    "code": "/min"
  }
}
Breaks oo-vs-5
{
  "resourceType": "Observation",
  "id": "invalid-vitals-component-no-value",
  "meta": {
    "profile": ["https://openorchid.ca/fhir/core/StructureDefinition/oo-observation-vitalsigns"]
  },
  "status": "final",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/observation-category",
          "code": "vital-signs"
        }
      ]
    }
  ],
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "85354-9"
      }
    ],
    "text": "Blood pressure panel"
  },
  "subject": {
    "reference": "Patient/oo-patient-example"
  },
  "effectiveDateTime": "2024-06-02T10:30:00-04:00",
  "component": [
    {
      "code": {
        "coding": [
          {
            "system": "http://loinc.org",
            "code": "8480-6"
          }
        ]
      },
      "valueQuantity": {
        "value": 120,
        "unit": "mmHg",
        "system": "http://unitsofmeasure.org",
        "code": "mm[Hg]"
      }
    },
    {
      "code": {
        "coding": [
          {
            "system": "http://loinc.org",
            "code": "8462-4"
          }
        ]
      }
    }
  ]
}