{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One ability to perform a bodily function or everyday movement.",
      "properties": {
        "abilityLevel": {
          "description": "The level at which that movement or function is performed.",
          "knownValues": [
            "independent",
            "limited",
            "assisted",
            "unable"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "activity": {
          "description": "The kind of movement or function.",
          "knownValues": [
            "walking",
            "standing",
            "sitting",
            "climbing_stairs",
            "lifting",
            "gripping",
            "reaching",
            "seeing",
            "hearing",
            "speaking",
            "chewing",
            "swallowing",
            "eating",
            "dressing",
            "bathing",
            "toileting",
            "remembering",
            "concentrating"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "assistance": {
          "description": "List of assistive devices and forms of support.",
          "items": {
            "description": "One item of the list of assistive devices and forms of support.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "notes": {
          "description": "Free-form text and supplementary explanation.",
          "maxGraphemes": 3000,
          "maxLength": 30000,
          "type": "string"
        },
        "observedAt": {
          "description": "The time this functional state was actually observed or assessed. Not the time the record was stored or updated.",
          "format": "datetime",
          "type": "string"
        },
        "side": {
          "description": "The direction or side of the body.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "The general ability to perform bodily functions and everyday movements. It is not the same as a diagnosis or an official disability determination: health conditions and symptoms are kept in health.healthStatus, medical documents in health.medicalRecords, and accessibility preferences when using services in interactionPreferences.accessibility.",
      "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.healthFunctionalAbilities",
  "lexicon": 1
}
