Cotton code
134 lines · 2.8 KB · JSONRaw
{  "format_version": 1,  "id": "health_person",  "name": "Health person",  "plural": "Health people",  "picture": null,  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "key",      "name": "Key",      "type": "text",      "required": true,      "hidden": true    },    {      "key": "person",      "name": "Person",      "type": "link",      "link_to": "person",      "required": true,      "readonly": true    },    {      "key": "owner",      "name": "The owner",      "type": "bool",      "readonly": true    },    {      "key": "sex",      "name": "Sex",      "type": "choice",      "choices": [        "female",        "male"      ],      "labels": {        "female": "Female",        "male": "Male"      },      "readonly": true    },    {      "key": "born_on",      "name": "Date of birth",      "type": "date",      "readonly": true    },    {      "key": "age_years",      "name": "Age last printed",      "type": "number",      "readonly": true    },    {      "key": "age_on",      "name": "Age printed on",      "type": "date",      "readonly": true    },    {      "key": "names",      "name": "Names on reports",      "type": "longtext",      "hidden": true,      "readonly": true    },    {      "key": "position",      "name": "Order",      "type": "number",      "hidden": true,      "readonly": true    }  ],  "seal": {    "clear": [      "key"    ]  },  "title": "person",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "person",    "subtitle": "sex",    "trailing": "born_on",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list"  },  "card": {    "face": "health.tag",    "fields": [      {        "slot": "title",        "column": "person"      },      {        "slot": "subtitle",        "column": "sex"      }    ]  },  "page": [    {      "heading": null,      "columns": [        "person",        "owner",        "sex",        "born_on",        "age_years",        "age_on"      ]    }  ],  "sort": {    "column": "position",    "descending": false  },  "empty": {    "title": "Nobody yet",    "message": "Each person whose reports are kept stands here."  },  "row_key": "key",  "instructions": "What Cotton Health keeps of one person whose health records the owner keeps (the owner, or a family member): `person` the shared `person` row, `owner` true for the owner alone (Apple Health is theirs), `sex` and `born_on` as reports printed them or as typed, `age_years` the latest age a report printed and `age_on` that report's day, `names` the printed names confirmed as this person's (a JSON list), `position` their place in the app's switcher. Sex and age choose the reference band a report gives by sex. Sealed: nothing stays clear but the key."}