@htilabs/platform-common-models 0.8.8 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,134 @@
1
+ {
2
+ "domain": "program_enrollment_change_type",
3
+ "name": "Program Enrollment Change Type",
4
+ "version": "1.0.0",
5
+ "_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; codes from prototype/data/cvcs/core_program_enrollment_change_type.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog). Generalized lifecycle CAR-verb vocabulary for the status transitions of HTI program-enrollment and federal-protection legal-action records.",
6
+ "_source": "prototype/data/cvcs/core_program_enrollment_change_type.yaml",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Record lifecycle verb"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "978-000-000-000-000-000-000",
14
+ "key": "missingness_root",
15
+ "title": "Unknown, Redacted, or Missing",
16
+ "selectable": false,
17
+ "parentCode": null,
18
+ "childCodes": [
19
+ "978-000-000-000-000-000-001",
20
+ "978-000-000-000-000-000-002",
21
+ "978-000-000-000-000-000-003"
22
+ ],
23
+ "definition": "Root group for values indicating absent, withheld, or uncollected data. Standard workspace missingness triplet; the prototype YAML enumerates only level-1 canonical lifecycle verbs, so the triplet is added per SOT convention."
24
+ },
25
+ {
26
+ "code": "978-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "978-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "Enrollment change type is unknown at time of entry."
33
+ },
34
+ {
35
+ "code": "978-000-000-000-000-000-002",
36
+ "key": "anonymous",
37
+ "title": "Anonymous / declined to answer",
38
+ "selectable": true,
39
+ "parentCode": "978-000-000-000-000-000-000",
40
+ "childCodes": [],
41
+ "definition": "Value intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
42
+ },
43
+ {
44
+ "code": "978-000-000-000-000-000-003",
45
+ "key": "data_not_collected",
46
+ "title": "Data not collected",
47
+ "selectable": true,
48
+ "parentCode": "978-000-000-000-000-000-000",
49
+ "childCodes": [],
50
+ "definition": "Not collected during this interaction. System-only sentinel per GLOBAL_DESIGN_RULES."
51
+ },
52
+ {
53
+ "code": "978-001-000-000-000-000-000",
54
+ "key": "program_enrollment_drafted",
55
+ "title": "Program enrollment drafted",
56
+ "selectable": true,
57
+ "parentCode": null,
58
+ "childCodes": [],
59
+ "definition": "Advocate creates the record in `applied` status (typically from `NEEDS-IMM-TVAP-1` Yes or analogous demand answer for non-TVAP programs). Status transition → APPLIED. Permission gate per § 4.3.5 — `case_nav` user role."
60
+ },
61
+ {
62
+ "code": "978-002-000-000-000-000-000",
63
+ "key": "program_enrollment_submitted",
64
+ "title": "Program enrollment submitted",
65
+ "selectable": true,
66
+ "parentCode": null,
67
+ "childCodes": [],
68
+ "definition": "Supervisor submits the record to the external administering entity (USCRI for TVAP; USCIS for federal-protection legal actions; analogous for other programs). Status transition APPLIED → PENDING. Permission gate per § 4.3.5 — proposed `program_enrollment_supervisor_review` function (composite — review sub-action)."
69
+ },
70
+ {
71
+ "code": "978-003-000-000-000-000-000",
72
+ "key": "program_enrollment_approved",
73
+ "title": "Program enrollment approved",
74
+ "selectable": true,
75
+ "parentCode": null,
76
+ "childCodes": [],
77
+ "definition": "External administering entity returns approval. Captures program-specific identifiers at this transition — USCRI # + USCIS Alien Number for TVAP; analogous identifiers for other programs. Status transition PENDING → APPROVED. Permission gate per § 4.3.5 — proposed `program_enrollment_supervisor_review` function (composite — approval-record sub-action)."
78
+ },
79
+ {
80
+ "code": "978-004-000-000-000-000-000",
81
+ "key": "program_enrollment_activated",
82
+ "title": "Program enrollment activated",
83
+ "selectable": true,
84
+ "parentCode": null,
85
+ "childCodes": [],
86
+ "definition": "Survivor's program-funded services begin. Status transition APPROVED → ACTIVE. Permission gate per § 4.3.5 — `case_nav` user role."
87
+ },
88
+ {
89
+ "code": "978-005-000-000-000-000-000",
90
+ "key": "program_enrollment_denied",
91
+ "title": "Program enrollment denied",
92
+ "selectable": true,
93
+ "parentCode": null,
94
+ "childCodes": [],
95
+ "definition": "External administering entity returns denial. Status transition PENDING → DENIED. Permission gate per § 4.3.5 — proposed `program_enrollment_supervisor_review` function (composite — approval-record sub-action)."
96
+ },
97
+ {
98
+ "code": "978-006-000-000-000-000-000",
99
+ "key": "program_enrollment_closed",
100
+ "title": "Program enrollment closed",
101
+ "selectable": true,
102
+ "parentCode": null,
103
+ "childCodes": [],
104
+ "definition": "Active enrollment ends — client transfers / leaves program / case closure. Status transition ACTIVE → CLOSED. Carries closure_reason from `core_exit_reasons` CVC (canonical v2.2 — the May 7 `core_program_enrollment_closure_reason` was retired May 14 in favor of unified `core_exit_reasons.yaml`). Permission gate per § 4.3.5 — proposed `program_enrollment_supervisor_review` function (composite — discontinuation-authorize sub-action)."
105
+ },
106
+ {
107
+ "code": "978-007-000-000-000-000-000",
108
+ "key": "program_enrollment_expired",
109
+ "title": "Program enrollment expired",
110
+ "selectable": true,
111
+ "parentCode": null,
112
+ "childCodes": [],
113
+ "definition": "Active enrollment lapses without renewal (recertification deadline missed). Status transition ACTIVE → EXPIRED. Permission gate per § 4.3.5 — `case_nav` user role (recertification reminder workflow)."
114
+ },
115
+ {
116
+ "code": "978-008-000-000-000-000-000",
117
+ "key": "program_enrollment_restored",
118
+ "title": "Program enrollment restored",
119
+ "selectable": true,
120
+ "parentCode": null,
121
+ "childCodes": [],
122
+ "definition": "Re-activated after closure / expiration (rare; possible). Status transition CLOSED/EXPIRED → ACTIVE. Permission gate per § 4.3.5 — proposed `program_enrollment_supervisor_review` function."
123
+ },
124
+ {
125
+ "code": "978-009-000-000-000-000-000",
126
+ "key": "program_prior_history_captured",
127
+ "title": "Program prior history captured",
128
+ "selectable": true,
129
+ "parentCode": null,
130
+ "childCodes": [],
131
+ "definition": "Advocate records prior-agency enrollment (the survivor was previously enrolled in TVAP at another agency before transferring to current agency). Distinct from current-agency enrollment lifecycle. No status transition (historical record). Permission gate per § 4.3.5 — `case_nav` user role."
132
+ }
133
+ ]
134
+ }
@@ -0,0 +1,161 @@
1
+ {
2
+ "domain": "romantic_relationship_change_type",
3
+ "name": "Romantic Relationship Change Type",
4
+ "version": "1.0.0",
5
+ "_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; codes from prototype/data/cvcs/core_romantic_relationship_change_type.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog). Verb codebook for CAR/StatusLog rows emitted by the Romantic Relationships sub-section of Core Profile (marital-status + relationship-status snapshots and the romantic-partners sub-log lifecycle).",
6
+ "_source": "prototype/data/cvcs/core_romantic_relationship_change_type.yaml",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Romantic relationship change type"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "979-000-000-000-000-000-000",
14
+ "key": "missingness_root",
15
+ "title": "Unknown, Redacted, or Missing",
16
+ "selectable": false,
17
+ "parentCode": null,
18
+ "childCodes": [
19
+ "979-000-000-000-000-000-001",
20
+ "979-000-000-000-000-000-002",
21
+ "979-000-000-000-000-000-003"
22
+ ],
23
+ "definition": "Root group for values indicating absent, withheld, or uncollected data. Standard workspace missingness triplet; the prototype YAML enumerates only substantive change-type verbs, so the triplet is added per SOT convention."
24
+ },
25
+ {
26
+ "code": "979-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "979-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "Romantic relationship change type is unknown at time of entry."
33
+ },
34
+ {
35
+ "code": "979-000-000-000-000-000-002",
36
+ "key": "anonymous",
37
+ "title": "Anonymous / declined to answer",
38
+ "selectable": true,
39
+ "parentCode": "979-000-000-000-000-000-000",
40
+ "childCodes": [],
41
+ "definition": "Value intentionally withheld or redacted."
42
+ },
43
+ {
44
+ "code": "979-000-000-000-000-000-003",
45
+ "key": "data_not_collected",
46
+ "title": "Data not collected",
47
+ "selectable": true,
48
+ "parentCode": "979-000-000-000-000-000-000",
49
+ "childCodes": [],
50
+ "definition": "Not collected during this interaction."
51
+ },
52
+ {
53
+ "code": "979-001-000-000-000-000-000",
54
+ "key": "romantic_partner_added",
55
+ "title": "Romantic partner added",
56
+ "selectable": true,
57
+ "parentCode": null,
58
+ "childCodes": [],
59
+ "definition": "Emitted on save of a new partner row. Fires even when `subject_id` is silently reused via Q8.6 same-person merge — the verb describes the relationship row, not the person record."
60
+ },
61
+ {
62
+ "code": "979-002-000-000-000-000-000",
63
+ "key": "romantic_partner_updated",
64
+ "title": "Romantic partner updated",
65
+ "selectable": true,
66
+ "parentCode": null,
67
+ "childCodes": [],
68
+ "definition": "Edit of an existing partner row's identity, contact, or `is_current_spouse` flag. Ties and dynamics deltas use the dedicated verbs below."
69
+ },
70
+ {
71
+ "code": "979-003-000-000-000-000-000",
72
+ "key": "romantic_partner_archived",
73
+ "title": "Romantic partner archived",
74
+ "selectable": true,
75
+ "parentCode": null,
76
+ "childCodes": [],
77
+ "definition": "Romantic partner archived."
78
+ },
79
+ {
80
+ "code": "979-004-000-000-000-000-000",
81
+ "key": "romantic_partner_restored",
82
+ "title": "Romantic partner restored from archive",
83
+ "selectable": true,
84
+ "parentCode": null,
85
+ "childCodes": [],
86
+ "definition": "Romantic partner restored from archive."
87
+ },
88
+ {
89
+ "code": "979-005-000-000-000-000-000",
90
+ "key": "romantic_partner_ties_changed",
91
+ "title": "Romantic partner — ties changed",
92
+ "selectable": true,
93
+ "parentCode": null,
94
+ "childCodes": [],
95
+ "definition": "DELTA-STYLE — one row per add/remove. `assertion_value_code` carries the L2 tie code from `core - relationship ties` (CVC-158)."
96
+ },
97
+ {
98
+ "code": "979-006-000-000-000-000-000",
99
+ "key": "romantic_partner_dynamics_changed",
100
+ "title": "Romantic partner — dynamics changed",
101
+ "selectable": true,
102
+ "parentCode": null,
103
+ "childCodes": [],
104
+ "definition": "DELTA-STYLE — one row per add/remove. `assertion_value_code` carries the L1 dynamics code from `core - relationship_dynamics` (CVC-145, vocab_status=draft)."
105
+ },
106
+ {
107
+ "code": "979-007-000-000-000-000-000",
108
+ "key": "marital_status_set",
109
+ "title": "Marital status set",
110
+ "selectable": true,
111
+ "parentCode": null,
112
+ "childCodes": [],
113
+ "definition": "First-time capture (transition from null / DNC → an L1 code)."
114
+ },
115
+ {
116
+ "code": "979-008-000-000-000-000-000",
117
+ "key": "marital_status_changed",
118
+ "title": "Marital status changed",
119
+ "selectable": true,
120
+ "parentCode": null,
121
+ "childCodes": [],
122
+ "definition": "Subsequent change (L1 → L1, e.g. married → divorced). Per Q8.3 sign-off, partner rows flagged `is_current_spouse: true` are NOT auto-flipped on this verb — the partner row surfaces a soft-warning chip instead."
123
+ },
124
+ {
125
+ "code": "979-009-000-000-000-000-000",
126
+ "key": "marital_status_declined",
127
+ "title": "Marital status — declined to answer",
128
+ "selectable": true,
129
+ "parentCode": null,
130
+ "childCodes": [],
131
+ "definition": "Per Q8.5 sign-off, sub-section-level Decline-to-answer toggle emits this verb (one row) with `assertion_value_code: ANON`. Restore-from-decline re-emits `MARITAL_STATUS_SET` on next answer."
132
+ },
133
+ {
134
+ "code": "979-010-000-000-000-000-000",
135
+ "key": "relationship_status_set",
136
+ "title": "Current relationship status set",
137
+ "selectable": true,
138
+ "parentCode": null,
139
+ "childCodes": [],
140
+ "definition": "First-time capture (Y/N/U pill row first answer)."
141
+ },
142
+ {
143
+ "code": "979-011-000-000-000-000-000",
144
+ "key": "relationship_status_changed",
145
+ "title": "Current relationship status changed",
146
+ "selectable": true,
147
+ "parentCode": null,
148
+ "childCodes": [],
149
+ "definition": "Subsequent flip between `partnered` ↔ `not_partnered` ↔ `UNK`."
150
+ },
151
+ {
152
+ "code": "979-012-000-000-000-000-000",
153
+ "key": "relationship_status_declined",
154
+ "title": "Current relationship status — declined to answer",
155
+ "selectable": true,
156
+ "parentCode": null,
157
+ "childCodes": [],
158
+ "definition": "Per Q8.5 sign-off, sub-section-level Decline-to-answer toggle emits this verb (one row) with `assertion_value_code: ANON`. Restore-from-decline re-emits `RELATIONSHIP_STATUS_SET` on next answer."
159
+ }
160
+ ]
161
+ }