Functional standard / Definition kinds / Constrains HealthProfile
health_profile
Which codes a profile watches, and when it is created automatically.
Runtime
auto_for_conditions creates the profile when one of those conditions is recorded. ttl_days sets expires_at.
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. |
| profile_type | 1..1 | code | general, condition, or episode. |
| tags | 1..1 | ProfileTags | conditions, measurements, medications, outcomes. |
| ttl_days | 0..1 | integer | Short-lived profiles expire after this many days. |
| auto_for_conditions | 0..* | code | Condition codes that create this profile. |
Example
{ "profile_type": "condition", "auto_for_conditions": ["mdd"], "tags": { "measurements": ["phq9_score"] } }