# ai.newnal.illi.family.parentData

> ILLI's own state of one parent's E04 data: how far each category has been entered, which questions were skipped or answered 'not sure', and the family's story answers. Record key = the parent slot (1 or 2). Written by the root admin's session into the root admin's repo of the family sphere; the parent's data itself are ai.newnal.mydata.* records in the parent's own repo (dev-spec 21 §4.2).

- Kind: record
- Record key: any
- Authority: family.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.family.parentData)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.family.parentData/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.family.parentData/analytics)

## Record (`ai.newnal.illi.family.parentData`)

Type: record · key any

### Properties

- `categories` (array, required)
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `#categoryState`
- `items` (array, required): Questions without a value that were skipped or answered 'not sure'. An item disappears when a value is written for it.
  - Constraints: maxLength: 200
  - `items` (ref)
    - Reference: `#itemState`
- `slot` (integer, required): The parent slot, 1 or 2.
  - Constraints: minimum: 1, maximum: 2
- `stories` (array, required)
  - Constraints: maxLength: 100
  - `items` (ref)
    - Reference: `#story`
- `updatedAt` (string · datetime, required)

## #categoryState (`ai.newnal.illi.family.parentData#categoryState`)

Type: object

### Properties

- `completedAt` (string · datetime)
- `completedBy` (string · did)
- `key` (string, required)
  - Constraints: knownValues: mobility | health | interests | contentTaste | schedule
- `state` (string, required): complete only when a guardian pressed complete; it stays complete after later edits.
  - Constraints: knownValues: notStarted | inProgress | complete

## #itemState (`ai.newnal.illi.family.parentData#itemState`)

Type: object

### Properties

- `at` (string · datetime, required)
- `by` (string · did, required)
- `key` (string, required): The question key, e.g. mobility.walking, health.allergies, interests.travel.regions.
  - Constraints: maxLength: 100
- `state` (string, required)
  - Constraints: knownValues: skipped | notSure | none

## #story (`ai.newnal.illi.family.parentData#story`)

Type: object

### Properties

- `at` (string · datetime, required)
- `by` (string · did, required)
- `questionKey` (string, required): The story question of the interests screen (A-E04-09) this answer belongs to.
  - Constraints: maxLength: 100
- `text` (string, required)
  - Constraints: maxLength: 3000, maxGraphemes: 300

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "categoryState": {
      "properties": {
        "completedAt": {
          "format": "datetime",
          "type": "string"
        },
        "completedBy": {
          "format": "did",
          "type": "string"
        },
        "key": {
          "knownValues": [
            "mobility",
            "health",
            "interests",
            "contentTaste",
            "schedule"
          ],
          "type": "string"
        },
        "state": {
          "description": "complete only when a guardian pressed complete; it stays complete after later edits.",
          "knownValues": [
            "notStarted",
            "inProgress",
            "complete"
          ],
          "type": "string"
        }
      },
      "required": [
        "key",
        "state"
      ],
      "type": "object"
    },
    "itemState": {
      "properties": {
        "at": {
          "format": "datetime",
          "type": "string"
        },
        "by": {
          "format": "did",
          "type": "string"
        },
        "key": {
          "description": "The question key, e.g. mobility.walking, health.allergies, interests.travel.regions.",
          "maxLength": 100,
          "type": "string"
        },
        "state": {
          "knownValues": [
            "skipped",
            "notSure",
            "none"
          ],
          "type": "string"
        }
      },
      "required": [
        "key",
        "state",
        "at",
        "by"
      ],
      "type": "object"
    },
    "main": {
      "description": "ILLI's own state of one parent's E04 data: how far each category has been entered, which questions were skipped or answered 'not sure', and the family's story answers. Record key = the parent slot (1 or 2). Written by the root admin's session into the root admin's repo of the family sphere; the parent's data itself are ai.newnal.mydata.* records in the parent's own repo (dev-spec 21 §4.2).",
      "key": "any",
      "record": {
        "properties": {
          "categories": {
            "items": {
              "ref": "#categoryState",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "items": {
            "description": "Questions without a value that were skipped or answered 'not sure'. An item disappears when a value is written for it.",
            "items": {
              "ref": "#itemState",
              "type": "ref"
            },
            "maxLength": 200,
            "type": "array"
          },
          "slot": {
            "description": "The parent slot, 1 or 2.",
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          },
          "stories": {
            "items": {
              "ref": "#story",
              "type": "ref"
            },
            "maxLength": 100,
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "slot",
          "categories",
          "items",
          "stories",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "story": {
      "properties": {
        "at": {
          "format": "datetime",
          "type": "string"
        },
        "by": {
          "format": "did",
          "type": "string"
        },
        "questionKey": {
          "description": "The story question of the interests screen (A-E04-09) this answer belongs to.",
          "maxLength": 100,
          "type": "string"
        },
        "text": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        }
      },
      "required": [
        "questionKey",
        "text",
        "at",
        "by"
      ],
      "type": "object"
    }
  },
  "id": "ai.newnal.illi.family.parentData",
  "lexicon": 1
}
```
