ai.newnal.mydata.healthObservationActivities

Health observation results obtained by tests and measurements.

Details · record, key tid
Kindrecord
Record keytid
Authoritymydata.newnal.ai
Commit rev3n2lk5rjzfw23
Indexed
cid bafyreifebr7uhhl72hklmsnhry2s2ci3tpg3q6ol3yfvdqdkkdsxgztnmm

Checks

Valid
  • large-string defs.entry.properties.notesmaxLength is over 20 KB. Use a blob for content that large.
  • unlimited-string defs.entryResultsItem.properties.valueTypeNo maxLength, maxGraphemes or format limits this string.
  • field-name-syntax defs.main.record.properties._metaThe field name _meta should be letters and digits, starting with a letter.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One health observation.",
      "properties": {
        "bodySystem": {
          "description": "The body system the observation or test relates to.",
          "knownValues": [
            "cardiovascular",
            "respiratory",
            "digestive",
            "endocrine",
            "musculoskeletal",
            "neurological",
            "immune",
            "reproductive",
            "mental_health",
            "dermatology",
            "dental",
            "ophthalmology",
            "ent",
            "liver",
            "kidney",
            "general"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "codes": {
          "description": "List of the codes for the metric in standard classifications (for example LOINC).",
          "items": {
            "description": "One item of the list of the codes for the metric in standard classifications (for example LOINC).",
            "ref": "ai.newnal.mydata.defs#coding",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        },
        "metric": {
          "description": "The health metric measured or targeted.",
          "knownValues": [
            "blood_pressure",
            "ldl_cholesterol",
            "heart_rate",
            "respiratory_rate",
            "body_temperature",
            "oxygen_saturation",
            "weight",
            "height",
            "waist_circumference",
            "fasting_glucose",
            "alt"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "notes": {
          "description": "An additional note.",
          "maxGraphemes": 3000,
          "maxLength": 30000,
          "type": "string"
        },
        "results": {
          "description": "List of the values obtained from the test or observation.",
          "items": {
            "ref": "#entryResultsItem",
            "type": "ref"
          },
          "maxLength": 100,
          "type": "array"
        },
        "time": {
          "closed": true,
          "description": "The point in time or period the observation was measured.",
          "refs": [
            "ai.newnal.mydata.defs#instantTime",
            "ai.newnal.mydata.defs#intervalTime"
          ],
          "type": "union"
        },
        "unit": {
          "description": "The unit of the values of the observation. A value in another unit carries its own.",
          "knownValues": [
            "mmHg",
            "mg/dL",
            "cm",
            "kg",
            "g",
            "mL",
            "kcal",
            "mmol/L",
            "IU/L",
            "bpm",
            "C"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "type": "object"
    },
    "entryResultsItem": {
      "description": "One item of the list of the values obtained from the test or observation.",
      "properties": {
        "key": {
          "description": "The key that tells the values apart within the array.",
          "knownValues": [
            "systolic",
            "diastolic"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "unit": {
          "description": "The unit of this value, when it differs from the unit of the observation.",
          "knownValues": [
            "mmHg",
            "mg/dL",
            "cm",
            "kg",
            "g",
            "mL",
            "kcal",
            "mmol/L",
            "IU/L",
            "bpm",
            "C"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "value": {
          "description": "The value used for the measurement, assessment or setting.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "valueType": {
          "description": "How the value is to be read.",
          "enum": [
            "decimal",
            "string"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Health observation results obtained by tests and measurements.",
      "key": "tid",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#entry"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.mydata.healthObservationActivities",
  "lexicon": 1
}