# 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: 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.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 any

### Properties

- `_meta` (ref, required)
  - Reference: `ai.newnal.mydata.defs#recordMeta`
- `data` (union, required)
  - One of (closed): `#section`, `#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, knownValues: egg | milk | buckwheat | peanut | soybean | wheat | mackerel | crab | shrimp | pork | peach | tomato | sulfites | walnut | pine_nut | chicken | beef | squid | shellfish | fish | tree_nuts | sesame | pollen | dust_mite | mold | animal_dander | fine_dust | cold_air | bee | ant | mosquito | tick | latex | metal | adhesive_tape | hair_dye | cosmetics | disinfectant | penicillin | aspirin
- `categories` (array): List of the cause categories of the allergy or intolerance. Usually one; more than one when the same allergy has causes of several kinds.
  - Constraints: maxLength: 100
  - `items` (string): One item of the list of the cause categories of the allergy or intolerance.
    - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: environment | food | medication | biologic | insect | contact
- `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, knownValues: hives | itching | swelling | rash | breathing_difficulty | digestive_upset | runny_nose | sneezing | anaphylaxis
- `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

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

Type: object

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.

### Properties

- `noneKnown` (boolean): True when, as far as is known, the user has no allergy or intolerance. It is a statement, not the absence of one: a section with no item and without this key says nothing either way. It is removed when an item is added.
- `noneKnownCategories` (array): List of the cause categories in which, as far as is known, the user has no allergy or intolerance (for example medication), when that cannot be said of every category.
  - Constraints: maxLength: 100
  - `items` (string): One item of the list of the cause categories in which, as far as is known, the user has no allergy or intolerance (for example medication), when that cannot be said of every category.
    - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: environment | food | medication | biologic | insect | contact

## 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.",
            "knownValues": [
              "egg",
              "milk",
              "buckwheat",
              "peanut",
              "soybean",
              "wheat",
              "mackerel",
              "crab",
              "shrimp",
              "pork",
              "peach",
              "tomato",
              "sulfites",
              "walnut",
              "pine_nut",
              "chicken",
              "beef",
              "squid",
              "shellfish",
              "fish",
              "tree_nuts",
              "sesame",
              "pollen",
              "dust_mite",
              "mold",
              "animal_dander",
              "fine_dust",
              "cold_air",
              "bee",
              "ant",
              "mosquito",
              "tick",
              "latex",
              "metal",
              "adhesive_tape",
              "hair_dye",
              "cosmetics",
              "disinfectant",
              "penicillin",
              "aspirin"
            ],
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "categories": {
          "description": "List of the cause categories of the allergy or intolerance. Usually one; more than one when the same allergy has causes of several kinds.",
          "items": {
            "description": "One item of the list of the cause categories of the allergy or intolerance.",
            "knownValues": [
              "environment",
              "food",
              "medication",
              "biologic",
              "insect",
              "contact"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "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.",
            "knownValues": [
              "hives",
              "itching",
              "swelling",
              "rash",
              "breathing_difficulty",
              "digestive_upset",
              "runny_nose",
              "sneezing",
              "anaphylaxis"
            ],
            "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": "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": "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.",
      "properties": {
        "noneKnown": {
          "description": "True when, as far as is known, the user has no allergy or intolerance. It is a statement, not the absence of one: a section with no item and without this key says nothing either way. It is removed when an item is added.",
          "type": "boolean"
        },
        "noneKnownCategories": {
          "description": "List of the cause categories in which, as far as is known, the user has no allergy or intolerance (for example medication), when that cannot be said of every category.",
          "items": {
            "description": "One item of the list of the cause categories in which, as far as is known, the user has no allergy or intolerance (for example medication), when that cannot be said of every category.",
            "knownValues": [
              "environment",
              "food",
              "medication",
              "biologic",
              "insect",
              "contact"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "id": "ai.newnal.mydata.healthAllergies",
  "lexicon": 1
}
```
