Schemas / Clinic

rig.clinic.observation

v1.0.0 · stable maturity: draft 6 fields 3 required

Fields

FieldTypeMeaning
subject entity required Who or what was measured
code string required Observation code as the source wrote it
value float required Measured amount
codeSystem string optional Optional. Code system name (loinc, snomed)
unit string optional Optional. UCUM unit (mm[Hg], Cel)
comparator enumlt · le · eq · ge · gt optional Optional. lt / le / eq / ge / gt; absent = eq

A measurement of a subject. Format when present.

Field meanings follow FHIR Observation value quantity. This schema is those measurement elements - not a FHIR resource, and not rig.record.event (a happening with no magnitude).

subject, code, and value are required.

The clock is rig.calendar.event on this entity. Do not also attach rig.record.event. A second measurement is another entity.

JSON Schema

Resolves at https://rig.works/schemas/rig.clinic.observation.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.clinic.observation.schema.json",
  "title": "rig.clinic.observation",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "subject": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "code": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "value": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "codeSystem": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "unit": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "comparator": {
      "type": "string",
      "enum": [
        "lt",
        "le",
        "eq",
        "ge",
        "gt"
      ]
    }
  },
  "required": [
    "subject",
    "code",
    "value"
  ],
  "description": "A measurement of a subject. Clock composes rig.calendar.event. Do not also attach rig.record.event.",
  "x-rig-maturity": "draft"
}

Seen in

record-care.json