Check genogram data
check_genogramUse this when the user wants a family list checked before drawing a genogram, for example "check my genogram data for mistakes" or "which generation is each person in". Takes the same people, relations and household as make_genogram. Returns the problems found (unknown or duplicate ids, a person who is their own ancestor with the cycle named, more than 2 biological parents, a parent who is not older than the child, couple years outside a partner's life, twins with different parents, too many generations; above 150 people it checks the first 150 and names the people left out), warnings, and each person's generation number when the data is consistent. Draws nothing and makes no files. Relationships only: it does not take health or medical details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| people | Yes | The people, up to 150. Example: [{"id":"p1","name":"Jan","sex":"M","birth_year":1950},{"id":"p2","name":"Ewa","sex":"F","birth_year":1952},{"id":"p3","name":"Ola","sex":"F","birth_year":1980,"index":true}]. | |
| household | No | Ids of the people who live together; drawn with a dashed outline, e.g. ["p2","p3"]. | |
| relations | No | The relationships, up to 600 (at most 150 couples and 100 emotional). Example: [{"type":"couple","a":"p1","b":"p2","kind":"married","start_year":1975},{"type":"parent_child","a":"p1","b":"p3"},{"type":"parent_child","a":"p2","b":"p3"}]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ready | Yes | ||
| shown | No | ||
| counts | Yes | ||
| issues | Yes | ||
| limits | Yes | ||
| people | Yes | ||
| generation_rule | Yes | ||
| people_left_out | No | ||
| people_left_out_count | No |