# ai.newnal.mydata.healthMedicalEvents

> The history of medical events such as checkups and procedures.

- Kind: record
- Record key: any
- 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.healthMedicalEvents)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.healthMedicalEvents/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.healthMedicalEvents/analytics)

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

Type: record · key any

### Properties

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

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

Type: object

One medical event.

### Properties

- `bodySites` (array): List of the parts of the body the medical event concerned. A broad value (upper_body, lower_body, trunk, head_and_neck, internal_organs) is used when the exact part is not known, and may stand next to exact ones.
  - Constraints: maxLength: 100
  - `items` (string): One item of the list of the parts of the body the medical event concerned.
    - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: head | brain | eye | ear | nose | throat | neck | thyroid | heart | blood_vessels | chest | breast | lung | abdomen | stomach | intestine | liver | gallbladder | kidney | bladder | prostate | uterus | ovary | spine | lower_back | shoulder | elbow | wrist | hand | hip | knee | ankle | foot | skin | upper_body | lower_body | trunk | head_and_neck | internal_organs | back | core
- `category` (string): The category of the medical event.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: screening | surgery | hospitalization | vaccination | therapy | dental | imaging | lab | rehabilitation
- `cautionSites` (array): List of the parts of the body that still need care or are uncomfortable after the medical event. A broad value (upper_body, lower_body, trunk, head_and_neck, internal_organs) is used when the exact part is not known, and may stand next to exact ones.
  - Constraints: maxLength: 100
  - `items` (string): One item of the list of the parts of the body that still need care or are uncomfortable after the medical event.
    - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: head | brain | eye | ear | nose | throat | neck | thyroid | heart | blood_vessels | chest | breast | lung | abdomen | stomach | intestine | liver | gallbladder | kidney | bladder | prostate | uterus | ovary | spine | lower_back | shoulder | elbow | wrist | hand | hip | knee | ankle | foot | skin | upper_body | lower_body | trunk | head_and_neck | internal_organs | back | core
- `codes` (array): List of the codes for the medical event in standard classifications (for example SNOMED CT).
  - Constraints: maxLength: 20
  - `items` (ref): One item of the list of the codes for the medical event in standard classifications (for example SNOMED CT).
    - Reference: `ai.newnal.mydata.defs#coding`
- `limitedActivities` (array): List of the movements and activities that are hard or to be avoided after the medical event.
  - Constraints: maxLength: 100
  - `items` (string): One item of the list of the movements and activities that are hard or to be avoided after the medical event.
    - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: walking | standing | sitting | climbing_stairs | bending | lifting | raising_arm | lying_down | rising_from_bed | long_standing | long_sitting | kneeling | rising_from_chair | rising_from_floor
- `name` (string): The name of the medical event, such as a checkup or a procedure.
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `notes` (string): An additional note.
  - Constraints: maxLength: 30000, maxGraphemes: 3000
- `precautions` (array): List of the precautions the user recorded. They are not to be taken as medically verified prohibitions.
  - Constraints: maxLength: 100
  - `items` (string): One item of the list of the precautions the user recorded.
    - Constraints: maxLength: 2560, maxGraphemes: 256
- `provider` (string): The medical institution or practitioner that provided the care.
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `time` (union): The point in time or period of the medical event.
  - One of (closed): `ai.newnal.mydata.defs#instantTime`, `ai.newnal.mydata.defs#intervalTime`
- `timeCertainty` (string): Whether time is exact or approximate. When it is approximate and time is a period, the period gives the earliest and the latest the value may be, not how long it lasted.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: exact | approximate

## #section (`ai.newnal.mydata.healthMedicalEvents#section`)

Type: object

The history of medical events such as checkups and procedures.

### Properties

- `noneKnownCategories` (array): List of the categories of medical event of which, as far as is known, the user has had none (for example surgery). It is a statement, not the absence of one: a category that is not listed and has no item says nothing either way.
  - Constraints: maxLength: 100
  - `items` (string): One item of the list of the categories of medical event of which, as far as is known, the user has had none (for example surgery).
    - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: screening | surgery | hospitalization | vaccination | therapy | dental | imaging | lab | rehabilitation

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One medical event.",
      "properties": {
        "bodySites": {
          "description": "List of the parts of the body the medical event concerned. A broad value (upper_body, lower_body, trunk, head_and_neck, internal_organs) is used when the exact part is not known, and may stand next to exact ones.",
          "items": {
            "description": "One item of the list of the parts of the body the medical event concerned.",
            "knownValues": [
              "head",
              "brain",
              "eye",
              "ear",
              "nose",
              "throat",
              "neck",
              "thyroid",
              "heart",
              "blood_vessels",
              "chest",
              "breast",
              "lung",
              "abdomen",
              "stomach",
              "intestine",
              "liver",
              "gallbladder",
              "kidney",
              "bladder",
              "prostate",
              "uterus",
              "ovary",
              "spine",
              "lower_back",
              "shoulder",
              "elbow",
              "wrist",
              "hand",
              "hip",
              "knee",
              "ankle",
              "foot",
              "skin",
              "upper_body",
              "lower_body",
              "trunk",
              "head_and_neck",
              "internal_organs",
              "back",
              "core"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "category": {
          "description": "The category of the medical event.",
          "knownValues": [
            "screening",
            "surgery",
            "hospitalization",
            "vaccination",
            "therapy",
            "dental",
            "imaging",
            "lab",
            "rehabilitation"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "cautionSites": {
          "description": "List of the parts of the body that still need care or are uncomfortable after the medical event. A broad value (upper_body, lower_body, trunk, head_and_neck, internal_organs) is used when the exact part is not known, and may stand next to exact ones.",
          "items": {
            "description": "One item of the list of the parts of the body that still need care or are uncomfortable after the medical event.",
            "knownValues": [
              "head",
              "brain",
              "eye",
              "ear",
              "nose",
              "throat",
              "neck",
              "thyroid",
              "heart",
              "blood_vessels",
              "chest",
              "breast",
              "lung",
              "abdomen",
              "stomach",
              "intestine",
              "liver",
              "gallbladder",
              "kidney",
              "bladder",
              "prostate",
              "uterus",
              "ovary",
              "spine",
              "lower_back",
              "shoulder",
              "elbow",
              "wrist",
              "hand",
              "hip",
              "knee",
              "ankle",
              "foot",
              "skin",
              "upper_body",
              "lower_body",
              "trunk",
              "head_and_neck",
              "internal_organs",
              "back",
              "core"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "codes": {
          "description": "List of the codes for the medical event in standard classifications (for example SNOMED CT).",
          "items": {
            "description": "One item of the list of the codes for the medical event in standard classifications (for example SNOMED CT).",
            "ref": "ai.newnal.mydata.defs#coding",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        },
        "limitedActivities": {
          "description": "List of the movements and activities that are hard or to be avoided after the medical event.",
          "items": {
            "description": "One item of the list of the movements and activities that are hard or to be avoided after the medical event.",
            "knownValues": [
              "walking",
              "standing",
              "sitting",
              "climbing_stairs",
              "bending",
              "lifting",
              "raising_arm",
              "lying_down",
              "rising_from_bed",
              "long_standing",
              "long_sitting",
              "kneeling",
              "rising_from_chair",
              "rising_from_floor"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "name": {
          "description": "The name of the medical event, such as a checkup or a procedure.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "notes": {
          "description": "An additional note.",
          "maxGraphemes": 3000,
          "maxLength": 30000,
          "type": "string"
        },
        "precautions": {
          "description": "List of the precautions the user recorded. They are not to be taken as medically verified prohibitions.",
          "items": {
            "description": "One item of the list of the precautions the user recorded.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "provider": {
          "description": "The medical institution or practitioner that provided the care.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "time": {
          "closed": true,
          "description": "The point in time or period of the medical event.",
          "refs": [
            "ai.newnal.mydata.defs#instantTime",
            "ai.newnal.mydata.defs#intervalTime"
          ],
          "type": "union"
        },
        "timeCertainty": {
          "description": "Whether time is exact or approximate. When it is approximate and time is a period, the period gives the earliest and the latest the value may be, not how long it lasted.",
          "knownValues": [
            "exact",
            "approximate"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "The history of medical events such as checkups and procedures.",
      "key": "any",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#section",
              "#entry"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "section": {
      "description": "The history of medical events such as checkups and procedures.",
      "properties": {
        "noneKnownCategories": {
          "description": "List of the categories of medical event of which, as far as is known, the user has had none (for example surgery). It is a statement, not the absence of one: a category that is not listed and has no item says nothing either way.",
          "items": {
            "description": "One item of the list of the categories of medical event of which, as far as is known, the user has had none (for example surgery).",
            "knownValues": [
              "screening",
              "surgery",
              "hospitalization",
              "vaccination",
              "therapy",
              "dental",
              "imaging",
              "lab",
              "rehabilitation"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "id": "ai.newnal.mydata.healthMedicalEvents",
  "lexicon": 1
}
```
