ai.newnal.mydata.healthMedicalEvents

The history of medical events such as checkups and procedures.

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

Checks

Valid
  • large-string defs.entry.properties.notesmaxLength is over 20 KB. Use a blob for content that large.
  • 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 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
}