# ai.newnal.mydata.healthObservationActivities

> Health observation results obtained by tests and measurements.

- Kind: record
- Record key: tid
- Authority: mydata.newnal.ai
- Lexicon: 1
- Published by [newnal-platform.newnal.id](https://lexicon.garden/identity/did:plc:vciktevzoffubdvdaajz2yp3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.healthObservationActivities)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.healthObservationActivities/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.healthObservationActivities/analytics)

## Record (`ai.newnal.mydata.healthObservationActivities`)

Type: record · key tid

### Properties

- `_meta` (ref, required)
  - Reference: `ai.newnal.mydata.defs#recordMeta`
- `data` (union, required)
  - One of (closed): `#entry`

## #entry (`ai.newnal.mydata.healthObservationActivities#entry`)

Type: object

One health observation.

### Properties

- `bodySystem` (string): The body system the observation or test relates to.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: cardiovascular | respiratory | digestive | endocrine | musculoskeletal | neurological | immune | reproductive | mental_health | dermatology | dental | ophthalmology | ent | liver | kidney | general
- `codes` (array): List of the codes for the metric in standard classifications (for example LOINC).
  - Constraints: maxLength: 20
  - `items` (ref): One item of the list of the codes for the metric in standard classifications (for example LOINC).
    - Reference: `ai.newnal.mydata.defs#coding`
- `metric` (string): The health metric measured or targeted.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: blood_pressure | ldl_cholesterol | heart_rate | respiratory_rate | body_temperature | oxygen_saturation | weight | height | waist_circumference | fasting_glucose | alt
- `notes` (string): An additional note.
  - Constraints: maxLength: 30000, maxGraphemes: 3000
- `results` (array): List of the values obtained from the test or observation.
  - Constraints: maxLength: 100
  - `items` (ref)
    - Reference: `#entryResultsItem`
- `time` (union): The point in time or period the observation was measured.
  - One of (closed): `ai.newnal.mydata.defs#instantTime`, `ai.newnal.mydata.defs#intervalTime`
- `unit` (string): The unit of the values of the observation. A value in another unit carries its own.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: mmHg | mg/dL | cm | kg | g | mL | kcal | mmol/L | IU/L | bpm | C

## #entryResultsItem (`ai.newnal.mydata.healthObservationActivities#entryResultsItem`)

Type: object

One item of the list of the values obtained from the test or observation.

### Properties

- `key` (string): The key that tells the values apart within the array.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: systolic | diastolic
- `unit` (string): The unit of this value, when it differs from the unit of the observation.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: mmHg | mg/dL | cm | kg | g | mL | kcal | mmol/L | IU/L | bpm | C
- `value` (string): The value used for the measurement, assessment or setting.
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `valueType` (string): How the value is to be read.
  - Constraints: enum: decimal | string

## Schema

```json
{
  "$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
}
```
