# ai.newnal.mydata.healthMedicalEvents

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

- 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.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 tid

### Properties

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

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

Type: object

One medical event.

### Properties

- `category` (string): The category of the medical event.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: screening | surgery | hospitalization | vaccination | therapy | dental | imaging | lab | rehabilitation
- `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`
- `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
- `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`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One medical event.",
      "properties": {
        "category": {
          "description": "The category of the medical event.",
          "knownValues": [
            "screening",
            "surgery",
            "hospitalization",
            "vaccination",
            "therapy",
            "dental",
            "imaging",
            "lab",
            "rehabilitation"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "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"
        },
        "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"
        },
        "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"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "The history of medical events such as checkups and procedures.",
      "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.healthMedicalEvents",
  "lexicon": 1
}
```
