@htilabs/platform-common-models 0.8.10 → 0.8.12
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/constants/index.cjs +2 -0
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +1520 -5
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +3300 -1612
- package/dist/cvcs/index.d.ts +3300 -1612
- package/dist/cvcs/index.js +1513 -5
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +1705 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +214 -5
- package/dist/index.d.ts +214 -5
- package/dist/index.js +1691 -7
- package/dist/index.js.map +1 -1
- package/dist/{platform-auth-BSKYSDKe.d.cts → platform-auth-BwfZ0bxU.d.cts} +1 -1
- package/dist/{platform-auth-BSKYSDKe.d.ts → platform-auth-BwfZ0bxU.d.ts} +1 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +32 -4
- package/src/__tests__/cvc-sot-snapshot.test.ts +24 -2
- package/src/__tests__/cvc-structural.test.ts +11 -1
- package/src/constants/ic.ts +14 -1
- package/src/cvcs/{assertionDomain.v1.0.0.json → assertionDomain.v1.1.0.json} +12 -3
- package/src/cvcs/{checkInPhase.v1.0.0.json → checkInPhase.v1.1.0.json} +20 -2
- package/src/cvcs/coreFunctions.v1.0.0.json +746 -0
- package/src/cvcs/coreReferralOutcome.v1.0.0.json +71 -0
- package/src/cvcs/index.ts +15 -1
- package/src/cvcs/needsAssessmentChangeType.v1.0.0.json +134 -0
- package/src/cvcs/riskBand.v1.0.0.json +98 -0
- package/src/cvcs/riskCategory.v1.0.0.json +134 -0
- package/src/cvcs/roiScope.v1.0.0.json +188 -0
- package/src/cvcs/roiStatus.v1.0.0.json +98 -0
- package/src/generated/cvc-enums.ts +225 -2
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "roi_scope",
|
|
3
|
+
"name": "ROI Scope",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; codes sourced verbatim from PAVE `@pave/domain` ROI_SCOPE_KEYS (packages/domain/src/enums.ts, PR #439) — PAVE author-own-vocab per the 2026-07-02 steer (ROI_STATUSES precedent). The 15 items are the union of the three presets in PAVE packages/seed-data/raw/roi-scope-presets.json (full_collab / identifying / risk_only), superset-safe vs the stored rois.json scope arrays. The prototype's HTI_SHARE_SCOPE_GROUPS is a 27-item UI superset: the +12 health-accommodation and immigration/legal items are deliberately held OUT (not attested in PAVE seed) and are the documented extension set (ADR-CONTRACT-roi-scope-vocabulary). Item axis only — the named bundles over these items are ROI_SCOPE_PRESET_NAMES. PENDING canonical Notion authoring + steward ratification.",
|
|
6
|
+
"_source": "pave-2.0/packages/domain/src/enums.ts ROI_SCOPE_KEYS (PR #439); titles from prototype HTI_SHARE_SCOPE_GROUPS (HTI-LEADS-PAVE-Thread-prototype.html)",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "ROI scope item"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "983-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
|
+
"983-000-000-000-000-000-001",
|
|
20
|
+
"983-000-000-000-000-000-002",
|
|
21
|
+
"983-000-000-000-000-000-003"
|
|
22
|
+
],
|
|
23
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected) under the workspace standard ANON semantic. The PAVE enum enumerates only the substantive scope items, so the quadruplet is added per SOT convention."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "983-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "983-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "ROI scope item is unknown at time of entry (missingness sentinel)."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "983-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "983-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": "983-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "983-000-000-000-000-000-000",
|
|
49
|
+
"childCodes": [],
|
|
50
|
+
"definition": "No attempt was made to collect the value. System-only sentinel per GLOBAL_DESIGN_RULES."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"code": "983-001-000-000-000-000-000",
|
|
54
|
+
"key": "names",
|
|
55
|
+
"title": "Names + aliases",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "All logged name entries for the subject. Identifying-information scope group."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"code": "983-002-000-000-000-000-000",
|
|
63
|
+
"key": "dob",
|
|
64
|
+
"title": "Date of birth",
|
|
65
|
+
"selectable": true,
|
|
66
|
+
"parentCode": null,
|
|
67
|
+
"childCodes": [],
|
|
68
|
+
"definition": "The subject's date of birth. Identifying-information scope group."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "983-003-000-000-000-000-000",
|
|
72
|
+
"key": "addresses",
|
|
73
|
+
"title": "Addresses",
|
|
74
|
+
"selectable": true,
|
|
75
|
+
"parentCode": null,
|
|
76
|
+
"childCodes": [],
|
|
77
|
+
"definition": "Logged addresses for the subject. Identifying-information scope group."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"code": "983-004-000-000-000-000-000",
|
|
81
|
+
"key": "additional_ids",
|
|
82
|
+
"title": "Additional identifiers",
|
|
83
|
+
"selectable": true,
|
|
84
|
+
"parentCode": null,
|
|
85
|
+
"childCodes": [],
|
|
86
|
+
"definition": "Other identifiers entered separately from the primary identity record. Identifying-information scope group."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"code": "983-005-000-000-000-000-000",
|
|
90
|
+
"key": "demographics",
|
|
91
|
+
"title": "Demographics",
|
|
92
|
+
"selectable": true,
|
|
93
|
+
"parentCode": null,
|
|
94
|
+
"childCodes": [],
|
|
95
|
+
"definition": "Demographic attributes of the subject. Identifying-information scope group."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"code": "983-006-000-000-000-000-000",
|
|
99
|
+
"key": "screen_indicators",
|
|
100
|
+
"title": "Screen indicators + risk level",
|
|
101
|
+
"selectable": true,
|
|
102
|
+
"parentCode": null,
|
|
103
|
+
"childCodes": [],
|
|
104
|
+
"definition": "Screening indicators and the derived risk level. Risk-related scope group."
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"code": "983-007-000-000-000-000-000",
|
|
108
|
+
"key": "victimization",
|
|
109
|
+
"title": "Victimization determination",
|
|
110
|
+
"selectable": true,
|
|
111
|
+
"parentCode": null,
|
|
112
|
+
"childCodes": [],
|
|
113
|
+
"definition": "The recorded victimization determination. Risk-related scope group."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"code": "983-008-000-000-000-000-000",
|
|
117
|
+
"key": "ida_full",
|
|
118
|
+
"title": "Full IDA answers + notes",
|
|
119
|
+
"selectable": true,
|
|
120
|
+
"parentCode": null,
|
|
121
|
+
"childCodes": [],
|
|
122
|
+
"definition": "The complete In-Depth Assessment instrument response, including notes. Risk-related scope group."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"code": "983-009-000-000-000-000-000",
|
|
126
|
+
"key": "ida_consid",
|
|
127
|
+
"title": "IDA “Additional considerations”",
|
|
128
|
+
"selectable": true,
|
|
129
|
+
"parentCode": null,
|
|
130
|
+
"childCodes": [],
|
|
131
|
+
"definition": "The IDA free-text “Additional considerations” field. Risk-related scope group."
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"code": "983-010-000-000-000-000-000",
|
|
135
|
+
"key": "contact_info",
|
|
136
|
+
"title": "Contact info + safety preferences",
|
|
137
|
+
"selectable": true,
|
|
138
|
+
"parentCode": null,
|
|
139
|
+
"childCodes": [],
|
|
140
|
+
"definition": "How to reach the subject, plus their contact-safety preferences. Contact & history scope group."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"code": "983-011-000-000-000-000-000",
|
|
144
|
+
"key": "service_history",
|
|
145
|
+
"title": "Service referrals + needs",
|
|
146
|
+
"selectable": true,
|
|
147
|
+
"parentCode": null,
|
|
148
|
+
"childCodes": [],
|
|
149
|
+
"definition": "Service referrals made and needs recorded for the subject. Contact & history scope group."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"code": "983-012-000-000-000-000-000",
|
|
153
|
+
"key": "screen_notes",
|
|
154
|
+
"title": "Screen notes",
|
|
155
|
+
"selectable": true,
|
|
156
|
+
"parentCode": null,
|
|
157
|
+
"childCodes": [],
|
|
158
|
+
"definition": "Narrative notes captured during screening. Narrative-notes scope group."
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"code": "983-013-000-000-000-000-000",
|
|
162
|
+
"key": "case_notes",
|
|
163
|
+
"title": "Detailed case notes",
|
|
164
|
+
"selectable": true,
|
|
165
|
+
"parentCode": null,
|
|
166
|
+
"childCodes": [],
|
|
167
|
+
"definition": "Detailed narrative case notes. Narrative-notes scope group."
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"code": "983-014-000-000-000-000-000",
|
|
171
|
+
"key": "background",
|
|
172
|
+
"title": "Background information",
|
|
173
|
+
"selectable": true,
|
|
174
|
+
"parentCode": null,
|
|
175
|
+
"childCodes": [],
|
|
176
|
+
"definition": "Background/narrative context about the subject. Narrative-notes scope group."
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"code": "983-015-000-000-000-000-000",
|
|
180
|
+
"key": "system_info",
|
|
181
|
+
"title": "System metadata",
|
|
182
|
+
"selectable": true,
|
|
183
|
+
"parentCode": null,
|
|
184
|
+
"childCodes": [],
|
|
185
|
+
"definition": "System-level record metadata (identifiers, timestamps, provenance). System-metadata scope group."
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "roi_status",
|
|
3
|
+
"name": "ROI Status",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; codes sourced verbatim from PAVE `@pave/domain` ROI_STATUSES (packages/domain/src/enums.ts, PR #397, ADR-CONTRACT-roi-status-vocab ACCEPTED) — the original PAVE author-own-vocab decision (Jevon, 2026-07-02). Lifecycle status of a STORED Release of Information record; DISTINCT from ROI_SEED_STATUSES (the recipient-card badge triad valid/expired/none) and from Thread's un-normalized CaseShareRoiDelivery.roiStatus delivery value. PENDING canonical Notion authoring + steward ratification.",
|
|
6
|
+
"_source": "pave-2.0/packages/domain/src/enums.ts ROI_STATUSES (PR #397)",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "ROI lifecycle status"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "984-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
|
+
"984-000-000-000-000-000-001",
|
|
20
|
+
"984-000-000-000-000-000-002",
|
|
21
|
+
"984-000-000-000-000-000-003"
|
|
22
|
+
],
|
|
23
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected) under the workspace standard ANON semantic. The PAVE enum enumerates only the substantive lifecycle states, so the quadruplet is added per SOT convention."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "984-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "984-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "ROI status is unknown at time of entry (missingness sentinel)."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "984-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "984-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": "984-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "984-000-000-000-000-000-000",
|
|
49
|
+
"childCodes": [],
|
|
50
|
+
"definition": "No attempt was made to collect the value. System-only sentinel per GLOBAL_DESIGN_RULES."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"code": "984-001-000-000-000-000-000",
|
|
54
|
+
"key": "draft",
|
|
55
|
+
"title": "Draft",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "Created, but not yet active — not signed and/or not yet effective."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"code": "984-002-000-000-000-000-000",
|
|
63
|
+
"key": "active",
|
|
64
|
+
"title": "Active",
|
|
65
|
+
"selectable": true,
|
|
66
|
+
"parentCode": null,
|
|
67
|
+
"childCodes": [],
|
|
68
|
+
"definition": "In force. The `createRoi` default and the most common stored state."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "984-003-000-000-000-000-000",
|
|
72
|
+
"key": "expired",
|
|
73
|
+
"title": "Expired",
|
|
74
|
+
"selectable": true,
|
|
75
|
+
"parentCode": null,
|
|
76
|
+
"childCodes": [],
|
|
77
|
+
"definition": "Past its validity window. Collapsed by `roiShareGate.effectiveRoiStatus`."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"code": "984-004-000-000-000-000-000",
|
|
81
|
+
"key": "withdrawn",
|
|
82
|
+
"title": "Withdrawn",
|
|
83
|
+
"selectable": true,
|
|
84
|
+
"parentCode": null,
|
|
85
|
+
"childCodes": [],
|
|
86
|
+
"definition": "Revoked by the survivor — consent pulled. Collapsed by `roiShareGate.effectiveRoiStatus`."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"code": "984-005-000-000-000-000-000",
|
|
90
|
+
"key": "revoked",
|
|
91
|
+
"title": "Revoked",
|
|
92
|
+
"selectable": true,
|
|
93
|
+
"parentCode": null,
|
|
94
|
+
"childCodes": [],
|
|
95
|
+
"definition": "Administratively invalidated (as distinct from survivor-initiated withdrawal)."
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
@@ -2366,7 +2366,7 @@ export type CheckInActivityKey = keyof typeof CheckInActivityKeys;
|
|
|
2366
2366
|
/**
|
|
2367
2367
|
* Key → positional code map for the `check_in_phase` CVC domain.
|
|
2368
2368
|
*
|
|
2369
|
-
* Domain: `check_in_phase` · Version: 1.
|
|
2369
|
+
* Domain: `check_in_phase` · Version: 1.1.0 · Entries: 17
|
|
2370
2370
|
*/
|
|
2371
2371
|
export const CheckInPhaseKeys = {
|
|
2372
2372
|
missingness_root: "907-000-000-000-000-000-000",
|
|
@@ -2384,6 +2384,8 @@ export const CheckInPhaseKeys = {
|
|
|
2384
2384
|
crisis_response_followup: "907-009-000-000-000-000-000",
|
|
2385
2385
|
pre_exit_review: "907-010-000-000-000-000-000",
|
|
2386
2386
|
post_exit_followup: "907-011-000-000-000-000-000",
|
|
2387
|
+
phase_2_followup: "907-012-000-000-000-000-000",
|
|
2388
|
+
phase_3_followup: "907-013-000-000-000-000-000",
|
|
2387
2389
|
} as const;
|
|
2388
2390
|
|
|
2389
2391
|
export type CheckInPhaseKey = keyof typeof CheckInPhaseKeys;
|
|
@@ -3515,7 +3517,7 @@ export type HousingSubsidyTypesKey = keyof typeof HousingSubsidyTypesKeys;
|
|
|
3515
3517
|
/**
|
|
3516
3518
|
* Key → positional code map for the `assertion_domain` CVC domain (CAR assertion domain; PROVISIONAL, pending Notion ratification).
|
|
3517
3519
|
*
|
|
3518
|
-
* Domain: `assertion_domain` · Version: 1.
|
|
3520
|
+
* Domain: `assertion_domain` · Version: 1.1.0 · Entries: 71
|
|
3519
3521
|
*/
|
|
3520
3522
|
export const AssertionDomainKeys = {
|
|
3521
3523
|
missingness_root: "964-000-000-000-000-000-000",
|
|
@@ -3588,6 +3590,7 @@ export const AssertionDomainKeys = {
|
|
|
3588
3590
|
facilitator_entity_type: "964-064-000-000-000-000-000",
|
|
3589
3591
|
child_profile: "964-065-000-000-000-000-000",
|
|
3590
3592
|
romantic_relationship: "964-066-000-000-000-000-000",
|
|
3593
|
+
household_composition: "964-067-000-000-000-000-000",
|
|
3591
3594
|
} as const;
|
|
3592
3595
|
|
|
3593
3596
|
export type AssertionDomainKey = keyof typeof AssertionDomainKeys;
|
|
@@ -3882,3 +3885,223 @@ export const RomanticRelationshipChangeTypeKeys = {
|
|
|
3882
3885
|
} as const;
|
|
3883
3886
|
|
|
3884
3887
|
export type RomanticRelationshipChangeTypeKey = keyof typeof RomanticRelationshipChangeTypeKeys;
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* Key → positional code map for the `risk_category` CVC domain (DRAFT-TEMPORARY; names sourced from @hti/scoring weights/risk.weights.json, the declared risk-taxonomy SOT. Keys `cat_i`..`cat_ix` mirror PAVE's live `TraCategoryId` union, so this doubles as the canonical crosswalk. Weights/aggregation stay in @hti/scoring).
|
|
3891
|
+
*
|
|
3892
|
+
* Domain: `risk_category` · Version: 1.0.0 · Entries: 13
|
|
3893
|
+
*/
|
|
3894
|
+
export const RiskCategoryKeys = {
|
|
3895
|
+
missingness_root: "980-000-000-000-000-000-000",
|
|
3896
|
+
unknown: "980-000-000-000-000-000-001",
|
|
3897
|
+
anonymous: "980-000-000-000-000-000-002",
|
|
3898
|
+
data_not_collected: "980-000-000-000-000-000-003",
|
|
3899
|
+
cat_i: "980-001-000-000-000-000-000",
|
|
3900
|
+
cat_ii: "980-002-000-000-000-000-000",
|
|
3901
|
+
cat_iii: "980-003-000-000-000-000-000",
|
|
3902
|
+
cat_iv: "980-004-000-000-000-000-000",
|
|
3903
|
+
cat_v: "980-005-000-000-000-000-000",
|
|
3904
|
+
cat_vi: "980-006-000-000-000-000-000",
|
|
3905
|
+
cat_vii: "980-007-000-000-000-000-000",
|
|
3906
|
+
cat_viii: "980-008-000-000-000-000-000",
|
|
3907
|
+
cat_ix: "980-009-000-000-000-000-000",
|
|
3908
|
+
} as const;
|
|
3909
|
+
|
|
3910
|
+
export type RiskCategoryKey = keyof typeof RiskCategoryKeys;
|
|
3911
|
+
|
|
3912
|
+
/**
|
|
3913
|
+
* Key → positional code map for the `risk_band` CVC domain (DRAFT-TEMPORARY; names sourced from @hti/scoring src/core/bands.ts, the declared risk-taxonomy SOT. Numeric band cutoffs are calibration and stay in @hti/scoring `RISK_WEIGHTS.bands`).
|
|
3914
|
+
*
|
|
3915
|
+
* Domain: `risk_band` · Version: 1.0.0 · Entries: 9
|
|
3916
|
+
*/
|
|
3917
|
+
export const RiskBandKeys = {
|
|
3918
|
+
missingness_root: "981-000-000-000-000-000-000",
|
|
3919
|
+
unknown: "981-000-000-000-000-000-001",
|
|
3920
|
+
anonymous: "981-000-000-000-000-000-002",
|
|
3921
|
+
data_not_collected: "981-000-000-000-000-000-003",
|
|
3922
|
+
severe: "981-001-000-000-000-000-000",
|
|
3923
|
+
elevated: "981-002-000-000-000-000-000",
|
|
3924
|
+
review: "981-003-000-000-000-000-000",
|
|
3925
|
+
watch: "981-004-000-000-000-000-000",
|
|
3926
|
+
stable: "981-005-000-000-000-000-000",
|
|
3927
|
+
} as const;
|
|
3928
|
+
|
|
3929
|
+
export type RiskBandKey = keyof typeof RiskBandKeys;
|
|
3930
|
+
|
|
3931
|
+
/**
|
|
3932
|
+
* Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, verified v1.0 — the Canonical Authorization Model function registry: 77 functions the roles → functions → gates/tiers graph is built over. NOT provisional numbering. Per-entry lifecycle Status (v1 / future / not-started), Platform Relevance, user/admin relevance and Category are carried in each entry's definition, since the CVC entry schema has no fields for them).
|
|
3933
|
+
*
|
|
3934
|
+
* Domain: `core_functions` · Version: 1.0.0 · Entries: 81
|
|
3935
|
+
*/
|
|
3936
|
+
export const CoreFunctionsKeys = {
|
|
3937
|
+
missingness_root: "133-000-000-000-000-000-000",
|
|
3938
|
+
unknown: "133-000-000-000-000-000-001",
|
|
3939
|
+
anonymous: "133-000-000-000-000-000-002",
|
|
3940
|
+
data_not_collected: "133-000-000-000-000-000-003",
|
|
3941
|
+
account_suspend: "133-001-000-000-000-000-000",
|
|
3942
|
+
aggregate_data_query_generate: "133-002-000-000-000-000-000",
|
|
3943
|
+
api_key_manage: "133-003-000-000-000-000-000",
|
|
3944
|
+
assessments_conduct: "133-004-000-000-000-000-000",
|
|
3945
|
+
audit_anomaly_review: "133-005-000-000-000-000-000",
|
|
3946
|
+
audit_log_view_member: "133-006-000-000-000-000-000",
|
|
3947
|
+
audit_log_view_team: "133-007-000-000-000-000-000",
|
|
3948
|
+
auth_model_manage_platform: "133-008-000-000-000-000-000",
|
|
3949
|
+
break_glass: "133-009-000-000-000-000-000",
|
|
3950
|
+
case_assign_reassign: "133-010-000-000-000-000-000",
|
|
3951
|
+
case_claim: "133-011-000-000-000-000-000",
|
|
3952
|
+
case_collaborator_add: "133-012-000-000-000-000-000",
|
|
3953
|
+
case_edit: "133-013-000-000-000-000-000",
|
|
3954
|
+
case_needs_action_flag_manage: "133-014-000-000-000-000-000",
|
|
3955
|
+
case_outcomes_edit: "133-015-000-000-000-000-000",
|
|
3956
|
+
case_purge: "133-016-000-000-000-000-000",
|
|
3957
|
+
case_reopen: "133-017-000-000-000-000-000",
|
|
3958
|
+
case_side_panel_use: "133-018-000-000-000-000-000",
|
|
3959
|
+
case_transfer_bulk: "133-019-000-000-000-000-000",
|
|
3960
|
+
case_view: "133-020-000-000-000-000-000",
|
|
3961
|
+
ci_periodic_review: "133-021-000-000-000-000-000",
|
|
3962
|
+
ci_record_purge_or_retire: "133-022-000-000-000-000-000",
|
|
3963
|
+
ci_record_validate: "133-023-000-000-000-000-000",
|
|
3964
|
+
ci_to_evidence_export_authorize: "133-024-000-000-000-000-000",
|
|
3965
|
+
dashboard_approve_shared: "133-025-000-000-000-000-000",
|
|
3966
|
+
data_qa_workflow_run: "133-026-000-000-000-000-000",
|
|
3967
|
+
deconfliction_alert_acknowledge: "133-027-000-000-000-000-000",
|
|
3968
|
+
determination_perform: "133-028-000-000-000-000-000",
|
|
3969
|
+
disclose_external: "133-029-000-000-000-000-000",
|
|
3970
|
+
disclose_external_request: "133-030-000-000-000-000-000",
|
|
3971
|
+
export_deidentified: "133-031-000-000-000-000-000",
|
|
3972
|
+
export_disclosure_log_review: "133-032-000-000-000-000-000",
|
|
3973
|
+
export_template_config_manage: "133-033-000-000-000-000-000",
|
|
3974
|
+
gov_data_quality_review: "133-034-000-000-000-000-000",
|
|
3975
|
+
idb_record_create: "133-035-000-000-000-000-000",
|
|
3976
|
+
incident_response_remediate: "133-036-000-000-000-000-000",
|
|
3977
|
+
investigation_create_claim: "133-037-000-000-000-000-000",
|
|
3978
|
+
investigative_database_search: "133-038-000-000-000-000-000",
|
|
3979
|
+
lead_create: "133-039-000-000-000-000-000",
|
|
3980
|
+
lead_publish: "133-040-000-000-000-000-000",
|
|
3981
|
+
magic_link_share_send: "133-041-000-000-000-000-000",
|
|
3982
|
+
member_account_report_generate: "133-042-000-000-000-000-000",
|
|
3983
|
+
member_onboarding_support: "133-043-000-000-000-000-000",
|
|
3984
|
+
open_source_search: "133-044-000-000-000-000-000",
|
|
3985
|
+
outbound_share_followup_review: "133-045-000-000-000-000-000",
|
|
3986
|
+
person_association_update: "133-046-000-000-000-000-000",
|
|
3987
|
+
platform_perm_modify: "133-047-000-000-000-000-000",
|
|
3988
|
+
platform_policy_enforcement_manage: "133-048-000-000-000-000-000",
|
|
3989
|
+
record_print: "133-049-000-000-000-000-000",
|
|
3990
|
+
referral_receive_external: "133-050-000-000-000-000-000",
|
|
3991
|
+
referral_receive_internal: "133-051-000-000-000-000-000",
|
|
3992
|
+
referral_send_external: "133-052-000-000-000-000-000",
|
|
3993
|
+
referral_send_internal: "133-053-000-000-000-000-000",
|
|
3994
|
+
reporting_dashboard_config_manage: "133-054-000-000-000-000-000",
|
|
3995
|
+
retention_compliance_review: "133-055-000-000-000-000-000",
|
|
3996
|
+
roi_submit_manage: "133-056-000-000-000-000-000",
|
|
3997
|
+
role_assign: "133-057-000-000-000-000-000",
|
|
3998
|
+
roles_accounts_toggle: "133-058-000-000-000-000-000",
|
|
3999
|
+
sandbox_environment_manage: "133-059-000-000-000-000-000",
|
|
4000
|
+
screening_conduct: "133-060-000-000-000-000-000",
|
|
4001
|
+
screening_view: "133-061-000-000-000-000-000",
|
|
4002
|
+
security_restrict_apply: "133-062-000-000-000-000-000",
|
|
4003
|
+
session_create: "133-063-000-000-000-000-000",
|
|
4004
|
+
share_approve: "133-064-000-000-000-000-000",
|
|
4005
|
+
share_config: "133-065-000-000-000-000-000",
|
|
4006
|
+
share_rule_approve_cross_agency: "133-066-000-000-000-000-000",
|
|
4007
|
+
share_vsp_to_le: "133-067-000-000-000-000-000",
|
|
4008
|
+
support_ticket_triage: "133-068-000-000-000-000-000",
|
|
4009
|
+
system_diagnostics_view: "133-069-000-000-000-000-000",
|
|
4010
|
+
team_config_manage: "133-070-000-000-000-000-000",
|
|
4011
|
+
team_membership_manage: "133-071-000-000-000-000-000",
|
|
4012
|
+
team_workflow_config_manage: "133-072-000-000-000-000-000",
|
|
4013
|
+
thread_share_accept: "133-073-000-000-000-000-000",
|
|
4014
|
+
thread_share_send: "133-074-000-000-000-000-000",
|
|
4015
|
+
training_content_upload: "133-075-000-000-000-000-000",
|
|
4016
|
+
training_gate_manage: "133-076-000-000-000-000-000",
|
|
4017
|
+
usr_manage: "133-077-000-000-000-000-000",
|
|
4018
|
+
} as const;
|
|
4019
|
+
|
|
4020
|
+
export type CoreFunctionsKey = keyof typeof CoreFunctionsKeys;
|
|
4021
|
+
|
|
4022
|
+
/**
|
|
4023
|
+
* Key → positional code map for the `needs_assessment_change_type` CVC domain (DRAFT-TEMPORARY; the 9 fine-grained per-mutation Needs-Assessment CAR change types, sourced from PAVE `@pave/domain` NEEDS_ASSESSMENT_CHANGE_TYPES. CASING NORMALIZED: PAVE stores SCREAMING_SNAKE, CVC keys are lower_snake. DISTINCT from the coarse 3-verb section-boundary registry NEEDS_ASSESSMENT_VERB_REGISTRY).
|
|
4024
|
+
*
|
|
4025
|
+
* Domain: `needs_assessment_change_type` · Version: 1.0.0 · Entries: 13
|
|
4026
|
+
*/
|
|
4027
|
+
export const NeedsAssessmentChangeTypeKeys = {
|
|
4028
|
+
missingness_root: "982-000-000-000-000-000-000",
|
|
4029
|
+
unknown: "982-000-000-000-000-000-001",
|
|
4030
|
+
anonymous: "982-000-000-000-000-000-002",
|
|
4031
|
+
data_not_collected: "982-000-000-000-000-000-003",
|
|
4032
|
+
answer_recorded: "982-001-000-000-000-000-000",
|
|
4033
|
+
answer_changed: "982-002-000-000-000-000-000",
|
|
4034
|
+
answer_cleared: "982-003-000-000-000-000-000",
|
|
4035
|
+
section_declined: "982-004-000-000-000-000-000",
|
|
4036
|
+
section_undeclined: "982-005-000-000-000-000-000",
|
|
4037
|
+
section_submitted: "982-006-000-000-000-000-000",
|
|
4038
|
+
assessment_submitted: "982-007-000-000-000-000-000",
|
|
4039
|
+
service_instance_generated: "982-008-000-000-000-000-000",
|
|
4040
|
+
service_instance_linked: "982-009-000-000-000-000-000",
|
|
4041
|
+
} as const;
|
|
4042
|
+
|
|
4043
|
+
export type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
|
|
4044
|
+
|
|
4045
|
+
/**
|
|
4046
|
+
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; the 15 ROI scope ITEMS an ROI authorizes for sharing, sourced from PAVE `@pave/domain` ROI_SCOPE_KEYS. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES. The prototype's 27-item HTI_SHARE_SCOPE_GROUPS superset holds +12 health-accommodation / immigration-legal items that are the documented extension set).
|
|
4047
|
+
*
|
|
4048
|
+
* Domain: `roi_scope` · Version: 1.0.0 · Entries: 19
|
|
4049
|
+
*/
|
|
4050
|
+
export const RoiScopeKeys = {
|
|
4051
|
+
missingness_root: "983-000-000-000-000-000-000",
|
|
4052
|
+
unknown: "983-000-000-000-000-000-001",
|
|
4053
|
+
anonymous: "983-000-000-000-000-000-002",
|
|
4054
|
+
data_not_collected: "983-000-000-000-000-000-003",
|
|
4055
|
+
names: "983-001-000-000-000-000-000",
|
|
4056
|
+
dob: "983-002-000-000-000-000-000",
|
|
4057
|
+
addresses: "983-003-000-000-000-000-000",
|
|
4058
|
+
additional_ids: "983-004-000-000-000-000-000",
|
|
4059
|
+
demographics: "983-005-000-000-000-000-000",
|
|
4060
|
+
screen_indicators: "983-006-000-000-000-000-000",
|
|
4061
|
+
victimization: "983-007-000-000-000-000-000",
|
|
4062
|
+
ida_full: "983-008-000-000-000-000-000",
|
|
4063
|
+
ida_consid: "983-009-000-000-000-000-000",
|
|
4064
|
+
contact_info: "983-010-000-000-000-000-000",
|
|
4065
|
+
service_history: "983-011-000-000-000-000-000",
|
|
4066
|
+
screen_notes: "983-012-000-000-000-000-000",
|
|
4067
|
+
case_notes: "983-013-000-000-000-000-000",
|
|
4068
|
+
background: "983-014-000-000-000-000-000",
|
|
4069
|
+
system_info: "983-015-000-000-000-000-000",
|
|
4070
|
+
} as const;
|
|
4071
|
+
|
|
4072
|
+
export type RoiScopeKey = keyof typeof RoiScopeKeys;
|
|
4073
|
+
|
|
4074
|
+
/**
|
|
4075
|
+
* Key → positional code map for the `roi_status` CVC domain (DRAFT-TEMPORARY; the 5-state lifecycle of a STORED Release of Information, sourced from PAVE `@pave/domain` ROI_STATUSES. DISTINCT from ROI_SEED_STATUSES, the recipient-card badge triad valid/expired/none).
|
|
4076
|
+
*
|
|
4077
|
+
* Domain: `roi_status` · Version: 1.0.0 · Entries: 9
|
|
4078
|
+
*/
|
|
4079
|
+
export const RoiStatusKeys = {
|
|
4080
|
+
missingness_root: "984-000-000-000-000-000-000",
|
|
4081
|
+
unknown: "984-000-000-000-000-000-001",
|
|
4082
|
+
anonymous: "984-000-000-000-000-000-002",
|
|
4083
|
+
data_not_collected: "984-000-000-000-000-000-003",
|
|
4084
|
+
draft: "984-001-000-000-000-000-000",
|
|
4085
|
+
active: "984-002-000-000-000-000-000",
|
|
4086
|
+
expired: "984-003-000-000-000-000-000",
|
|
4087
|
+
withdrawn: "984-004-000-000-000-000-000",
|
|
4088
|
+
revoked: "984-005-000-000-000-000-000",
|
|
4089
|
+
} as const;
|
|
4090
|
+
|
|
4091
|
+
export type RoiStatusKey = keyof typeof RoiStatusKeys;
|
|
4092
|
+
|
|
4093
|
+
/**
|
|
4094
|
+
* Key → positional code map for the `core_referral_outcome` CVC domain (DRAFT-TEMPORARY; the binary referral-outcome axis attained / not_attained, grounded in the HMIS FY2026 Data Standards “P2 Referrals Provided” element + IC-59. The REASON a referral was not attained is a separate axis and is deliberately not folded in).
|
|
4095
|
+
*
|
|
4096
|
+
* Domain: `core_referral_outcome` · Version: 1.0.0 · Entries: 6
|
|
4097
|
+
*/
|
|
4098
|
+
export const CoreReferralOutcomeKeys = {
|
|
4099
|
+
missingness_root: "975-000-000-000-000-000-000",
|
|
4100
|
+
unknown: "975-000-000-000-000-000-001",
|
|
4101
|
+
anonymous: "975-000-000-000-000-000-002",
|
|
4102
|
+
data_not_collected: "975-000-000-000-000-000-003",
|
|
4103
|
+
attained: "975-001-000-000-000-000-000",
|
|
4104
|
+
not_attained: "975-002-000-000-000-000-000",
|
|
4105
|
+
} as const;
|
|
4106
|
+
|
|
4107
|
+
export type CoreReferralOutcomeKey = keyof typeof CoreReferralOutcomeKeys;
|