# ai.newnal.mydata.healthAllergies

> Allergies and intolerances the user has, with their allergens, reactions and severity. They are kept apart from health.healthStatus so that they can be shared on their own, for example with a food, medication or care service. Other health conditions and symptoms are kept in health.healthStatus, and food preferences and dislikes in interestsAndTastes.food.

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

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

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.healthAllergies#entry`)

Type: object

One allergy or intolerance.

### Properties

- `allergens` (array): List of the allergens or substances that cause the reaction.
  - Constraints: maxLength: 100
  - `items` (string): One item of the list of the allergens or substances that cause the reaction.
    - Constraints: maxLength: 2560, maxGraphemes: 256
- `category` (string): The cause category of the allergy or intolerance.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: environment | food | medication | biologic
- `codes` (array): List of the codes for this allergy or intolerance, or for its allergen, in standard classifications (for example SNOMED CT).
  - Constraints: maxLength: 20
  - `items` (ref): One item of the list of the codes for this allergy or intolerance, or for its allergen, in standard classifications (for example SNOMED CT).
    - Reference: `ai.newnal.mydata.defs#coding`
- `frequency` (string): How often it recurs.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: seasonal | occasional | after_trigger | daily
- `name` (string): The name of the allergy or intolerance.
  - 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
- `reactions` (array): List of the reaction symptoms that appear.
  - Constraints: maxLength: 100
  - `items` (string): One item of the list of the reaction symptoms that appear.
    - Constraints: maxLength: 2560, maxGraphemes: 256
- `severity` (string): The severity of the reaction.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: mild | moderate | severe | critical
- `status` (string): The management or progress status of this allergy or intolerance.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: active | resolved

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One allergy or intolerance.",
      "properties": {
        "allergens": {
          "description": "List of the allergens or substances that cause the reaction.",
          "items": {
            "description": "One item of the list of the allergens or substances that cause the reaction.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "category": {
          "description": "The cause category of the allergy or intolerance.",
          "knownValues": [
            "environment",
            "food",
            "medication",
            "biologic"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "codes": {
          "description": "List of the codes for this allergy or intolerance, or for its allergen, in standard classifications (for example SNOMED CT).",
          "items": {
            "description": "One item of the list of the codes for this allergy or intolerance, or for its allergen, in standard classifications (for example SNOMED CT).",
            "ref": "ai.newnal.mydata.defs#coding",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        },
        "frequency": {
          "description": "How often it recurs.",
          "knownValues": [
            "seasonal",
            "occasional",
            "after_trigger",
            "daily"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "name": {
          "description": "The name of the allergy or intolerance.",
          "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"
        },
        "reactions": {
          "description": "List of the reaction symptoms that appear.",
          "items": {
            "description": "One item of the list of the reaction symptoms that appear.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "severity": {
          "description": "The severity of the reaction.",
          "knownValues": [
            "mild",
            "moderate",
            "severe",
            "critical"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "status": {
          "description": "The management or progress status of this allergy or intolerance.",
          "knownValues": [
            "active",
            "resolved"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Allergies and intolerances the user has, with their allergens, reactions and severity. They are kept apart from health.healthStatus so that they can be shared on their own, for example with a food, medication or care service. Other health conditions and symptoms are kept in health.healthStatus, and food preferences and dislikes in interestsAndTastes.food.",
      "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.healthAllergies",
  "lexicon": 1
}
```
