@htilabs/platform-common-models 0.8.8 → 0.8.10
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.
- package/dist/config/index.cjs +191 -0
- package/dist/config/index.cjs.map +1 -0
- package/dist/config/index.d.cts +101 -0
- package/dist/config/index.d.ts +101 -0
- package/dist/config/index.js +165 -0
- package/dist/config/index.js.map +1 -0
- package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-BCj1OWqL.d.cts} +36 -36
- package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-BCj1OWqL.d.ts} +36 -36
- package/dist/cvcs/index.cjs +7253 -6350
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +4459 -3451
- package/dist/cvcs/index.d.ts +4459 -3451
- package/dist/cvcs/index.js +7246 -6350
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-EPjPjR0z.d.cts → index-CoVr1jIV.d.cts} +1 -1
- package/dist/{index-C0J3f169.d.ts → index-I-DiX9eQ.d.ts} +1 -1
- package/dist/index.cjs +3218 -2201
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +290 -148
- package/dist/index.d.ts +290 -148
- package/dist/index.js +7433 -6430
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/schemas/index.d.cts +11 -11
- package/dist/schemas/index.d.ts +11 -11
- package/package.json +7 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +31 -3
- package/src/__tests__/cvc-sot-snapshot.test.ts +10 -2
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/__tests__/runtime-contract-validator.test.ts +556 -0
- package/src/config/fixtures/valid.yaml +90 -0
- package/src/config/index.ts +352 -0
- package/src/cvcs/assertionDomain.v1.0.0.json +18 -0
- package/src/cvcs/childChangeType.v1.0.0.json +152 -0
- package/src/cvcs/hivStatus.v1.0.0.json +71 -0
- package/src/cvcs/immigrationLegalStatusChangeType.v1.0.0.json +143 -0
- package/src/cvcs/index.ts +15 -1
- package/src/cvcs/mentalHealthStatus.v1.0.0.json +71 -0
- package/src/cvcs/programEnrollmentChangeType.v1.0.0.json +134 -0
- package/src/cvcs/romanticRelationshipChangeType.v1.0.0.json +161 -0
- package/src/cvcs/{serviceCategories.v1.1.0.json → serviceCategories.v1.0.0.json} +1091 -1091
- package/src/cvcs/specialNeedsDisabilities.v1.0.0.json +143 -0
- package/src/generated/cvc-enums.ts +300 -144
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "immigration_legal_status_change_type",
|
|
3
|
+
"name": "Immigration & Legal Status 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_immigration_legal_status_change_type.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog). Change-type (CAR verb) vocabulary for the Core Profile Immigration & Legal Status sub-section: per-question capture/update events plus section decline/recapture state transitions.",
|
|
6
|
+
"_source": "prototype/data/cvcs/core_immigration_legal_status_change_type.yaml",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "Immigration & legal status change type"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "977-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
|
+
"977-000-000-000-000-000-001",
|
|
20
|
+
"977-000-000-000-000-000-002",
|
|
21
|
+
"977-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 change-type verbs, so the triplet is added per SOT convention."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "977-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "977-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "Change type is unknown at time of entry."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "977-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "977-000-000-000-000-000-000",
|
|
40
|
+
"childCodes": [],
|
|
41
|
+
"definition": "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"code": "977-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "977-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": "977-001-000-000-000-000-000",
|
|
54
|
+
"key": "immigration_legal_status_section_declined",
|
|
55
|
+
"title": "Section declined",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "Advocate toggled the section's decline-to-answer toggle ON. Records `section_declined` set to `true` per recommendations doc § 4.1.3; `assertion_value_code` set to `DECLINED_TO_ANSWER` per `GDR § 6.5.8`. Clears section's missing-data nag for risk algo."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"code": "977-002-000-000-000-000-000",
|
|
63
|
+
"key": "immigration_legal_status_section_recaptured",
|
|
64
|
+
"title": "Section recaptured",
|
|
65
|
+
"selectable": true,
|
|
66
|
+
"parentCode": null,
|
|
67
|
+
"childCodes": [],
|
|
68
|
+
"definition": "Advocate toggled the section's decline-to-answer toggle OFF (returning to capture). Records `section_declined` set to `false` and re-enables per-question capture per recommendations doc § 4.1.3."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "977-003-000-000-000-000-000",
|
|
72
|
+
"key": "immigration_visa_captured",
|
|
73
|
+
"title": "Visa captured",
|
|
74
|
+
"selectable": true,
|
|
75
|
+
"parentCode": null,
|
|
76
|
+
"childCodes": [],
|
|
77
|
+
"definition": "First-time capture of `p.demographics.visa_type` + optional `visa_expires_at` per recommendations doc § 4.1.1 Q1 + Q1.a."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"code": "977-004-000-000-000-000-000",
|
|
81
|
+
"key": "immigration_visa_updated",
|
|
82
|
+
"title": "Visa updated",
|
|
83
|
+
"selectable": true,
|
|
84
|
+
"parentCode": null,
|
|
85
|
+
"childCodes": [],
|
|
86
|
+
"definition": "Edit to existing visa-type or expiration data. Material edit per `GDR § 5.6.4` (visa changes drive risk-algo + service-eligibility consumers)."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"code": "977-005-000-000-000-000-000",
|
|
90
|
+
"key": "identification_status_captured",
|
|
91
|
+
"title": "Identification status captured",
|
|
92
|
+
"selectable": true,
|
|
93
|
+
"parentCode": null,
|
|
94
|
+
"childCodes": [],
|
|
95
|
+
"definition": "First-time capture of `p.demographics.has_proof_of_id` + optional `proof_of_id_types[]` per recommendations doc § 4.1.1 Q2 + Q2.a."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"code": "977-006-000-000-000-000-000",
|
|
99
|
+
"key": "identification_status_updated",
|
|
100
|
+
"title": "Identification status updated",
|
|
101
|
+
"selectable": true,
|
|
102
|
+
"parentCode": null,
|
|
103
|
+
"childCodes": [],
|
|
104
|
+
"definition": "Edit to existing identification data — has-proof Y/N change, types added / removed."
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"code": "977-007-000-000-000-000-000",
|
|
108
|
+
"key": "le_report_status_captured",
|
|
109
|
+
"title": "LE report status captured",
|
|
110
|
+
"selectable": true,
|
|
111
|
+
"parentCode": null,
|
|
112
|
+
"childCodes": [],
|
|
113
|
+
"definition": "First-time capture of `p.demographics.le_report_status` + optional Q3.a / Q3.b sub-fields per recommendations doc § 4.1.1 Q3."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"code": "977-008-000-000-000-000-000",
|
|
117
|
+
"key": "le_report_status_updated",
|
|
118
|
+
"title": "LE report status updated",
|
|
119
|
+
"selectable": true,
|
|
120
|
+
"parentCode": null,
|
|
121
|
+
"childCodes": [],
|
|
122
|
+
"definition": "Edit to existing LE-report status (transition from `scheduled` → `yes_reported` after the interview occurs; agency / agent / report# changes; etc.)."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"code": "977-009-000-000-000-000-000",
|
|
126
|
+
"key": "trafficking_screening_captured",
|
|
127
|
+
"title": "Trafficking screening captured",
|
|
128
|
+
"selectable": true,
|
|
129
|
+
"parentCode": null,
|
|
130
|
+
"childCodes": [],
|
|
131
|
+
"definition": "First-time capture of attorney trafficking screening fact-anchor per recommendations doc § 4.1.1 Q4 + Q4.a + Q4.b + Q4.c. When Q4.c indicates platform-internal screening, this verb is auto-derived from the platform's IDA + Determination Helper assertions per § 6.5."
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"code": "977-010-000-000-000-000-000",
|
|
135
|
+
"key": "trafficking_screening_updated",
|
|
136
|
+
"title": "Trafficking screening updated",
|
|
137
|
+
"selectable": true,
|
|
138
|
+
"parentCode": null,
|
|
139
|
+
"childCodes": [],
|
|
140
|
+
"definition": "Edit to existing trafficking-screening data — attorney info update, date update, etc."
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
package/src/cvcs/index.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* See locked spec §2 (envelope shape) and §9.2 (entry shape).
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import serviceCategoriesSot from "./serviceCategories.v1.
|
|
22
|
+
import serviceCategoriesSot from "./serviceCategories.v1.0.0.json" with { type: "json" };
|
|
23
23
|
import serviceStatesSot from "./serviceStates.v1.0.0.json" with { type: "json" };
|
|
24
24
|
import serviceMechanismsSot from "./serviceMechanisms.v1.0.0.json" with { type: "json" };
|
|
25
25
|
import incidentParticipationRolesSot from "./incidentParticipationRoles.v1.0.0.json" with { type: "json" };
|
|
@@ -146,6 +146,13 @@ import htTypeSot from "./htType.v1.0.0.json" with { type: "json" };
|
|
|
146
146
|
import relationshipConcernSot from "./relationshipConcern.v1.0.0.json" with { type: "json" };
|
|
147
147
|
import recencyBandSot from "./recencyBand.v1.0.0.json" with { type: "json" };
|
|
148
148
|
import housingSubsidyTypesSot from "./housingSubsidyTypes.v1.0.0.json" with { type: "json" };
|
|
149
|
+
import specialNeedsDisabilitiesSot from "./specialNeedsDisabilities.v1.0.0.json" with { type: "json" };
|
|
150
|
+
import hivStatusSot from "./hivStatus.v1.0.0.json" with { type: "json" };
|
|
151
|
+
import mentalHealthStatusSot from "./mentalHealthStatus.v1.0.0.json" with { type: "json" };
|
|
152
|
+
import childChangeTypeSot from "./childChangeType.v1.0.0.json" with { type: "json" };
|
|
153
|
+
import immigrationLegalStatusChangeTypeSot from "./immigrationLegalStatusChangeType.v1.0.0.json" with { type: "json" };
|
|
154
|
+
import programEnrollmentChangeTypeSot from "./programEnrollmentChangeType.v1.0.0.json" with { type: "json" };
|
|
155
|
+
import romanticRelationshipChangeTypeSot from "./romanticRelationshipChangeType.v1.0.0.json" with { type: "json" };
|
|
149
156
|
|
|
150
157
|
export {
|
|
151
158
|
serviceCategoriesSot,
|
|
@@ -275,4 +282,11 @@ export {
|
|
|
275
282
|
relationshipConcernSot,
|
|
276
283
|
recencyBandSot,
|
|
277
284
|
housingSubsidyTypesSot,
|
|
285
|
+
specialNeedsDisabilitiesSot,
|
|
286
|
+
hivStatusSot,
|
|
287
|
+
mentalHealthStatusSot,
|
|
288
|
+
childChangeTypeSot,
|
|
289
|
+
immigrationLegalStatusChangeTypeSot,
|
|
290
|
+
programEnrollmentChangeTypeSot,
|
|
291
|
+
romanticRelationshipChangeTypeSot,
|
|
278
292
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "mental_health_status",
|
|
3
|
+
"name": "Mental Health Status",
|
|
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_mental_health_status.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog). Single-select presence of a mental health condition or concern (HMIS 4.09 Mental Health Disorder); YES triggers a severity follow-up and contributes to the HMIS 3.08 Disabling Condition rollup.",
|
|
6
|
+
"_source": "prototype/data/cvcs/core_mental_health_status.yaml",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "Mental health status"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "974-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
|
+
"974-000-000-000-000-000-001",
|
|
20
|
+
"974-000-000-000-000-000-002",
|
|
21
|
+
"974-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's own level-1 missingness values (UNK · DK · PNA) map onto this triplet per SOT convention rather than being duplicated as substantive entries."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "974-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "974-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "Mental health status is unknown at time of entry — survivor or advocate doesn't know. Default missing state. Folds the prototype UNK (HMIS 4.09 = Data not collected; survivor/advocate doesn't know) and DK (HMIS 4.09 = Client doesn't know; survivor explicitly says they don't know) values under the standard workspace UNK sentinel."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "974-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "974-000-000-000-000-000-000",
|
|
40
|
+
"childCodes": [],
|
|
41
|
+
"definition": "Value intentionally withheld or redacted. Maps the prototype PNA (HMIS 4.09 = Client prefers not to answer; survivor explicitly declines to answer) under the workspace standard ANON sentinel."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"code": "974-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "974-000-000-000-000-000-000",
|
|
49
|
+
"childCodes": [],
|
|
50
|
+
"definition": "Not collected during this interaction. No attempt was made to collect the value; system-only sentinel per GLOBAL_DESIGN_RULES."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"code": "974-001-000-000-000-000-000",
|
|
54
|
+
"key": "yes",
|
|
55
|
+
"title": "Yes",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "Mental health condition or concern present. Triggers severity follow-up via core_severity_follow_up CVC captured in p.demographics.mental_health_severity. Per HMIS 4.09 guidance: range from situational to serious mental illness. YES (any severity) fires the risk indicator history_of_mental_health_issues, and YES + severity=YES contributes to the HMIS 3.08 Disabling Condition rollup per HMIS 4.09 guidance. (YAML code YES; HMIS 4.09 = Yes.)"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"code": "974-002-000-000-000-000-000",
|
|
63
|
+
"key": "no",
|
|
64
|
+
"title": "No",
|
|
65
|
+
"selectable": true,
|
|
66
|
+
"parentCode": null,
|
|
67
|
+
"childCodes": [],
|
|
68
|
+
"definition": "No mental health condition reported. Does not contribute to the HMIS 3.08 Disabling Condition rollup. (YAML code NO; HMIS 4.09 = No.)"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
@@ -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
|
+
}
|