Functional standard / Definition kinds / Constrains Patient (site configuration, no instance of its own)
patient_fields
Which standard demographics a site collects, and which custom fields it adds.
Runtime
The harness validates Patient.demographics and Patient.custom_fields against the published patient_fields definition for the site.
Elements
| Name | Card. | Type | Description |
|---|---|---|---|
| defaults | 0..1 | object | Fields copied onto a new instance. Values given at creation win. |
| approval_required_for | 0..* | code | Extra states that need an Approval to enter. |
| standard | 0..* | FieldSpec | key, label, field_type, options, required, enabled. Keys must be from the standard demographic set. |
| custom | 0..* | FieldSpec | Site-only fields. |
Example
{ "standard": [{ "key": "phone", "field_type": "text", "enabled": true }], "custom": [{ "key": "mine_id", "label": "Mine", "field_type": "text" }] }