@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.
- 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.cjs +3218 -2201
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +288 -146
- package/dist/index.d.ts +288 -146
- package/dist/index.js +7433 -6430
- package/dist/index.js.map +1 -1
- package/package.json +1 -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/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
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"service_categories": {
|
|
14
14
|
"count": 151,
|
|
15
|
-
"hash": "
|
|
15
|
+
"hash": "a7c7a9b09d46c5ba8f5608d3e44331b862b07d67fac969f4bf204dca82b5fbd5"
|
|
16
16
|
},
|
|
17
17
|
"incident_participation_roles": {
|
|
18
18
|
"count": 19,
|
|
@@ -511,8 +511,8 @@
|
|
|
511
511
|
"hash": "4341619e6016822fcc353987a635421c767391a85f2ff7602726ca02bfa0f4f7"
|
|
512
512
|
},
|
|
513
513
|
"assertion_domain": {
|
|
514
|
-
"count":
|
|
515
|
-
"hash": "
|
|
514
|
+
"count": 70,
|
|
515
|
+
"hash": "e4c8d543c4e99b1e21b304ab1ae07396231d2147f9f9ce30c7ede235b08ebb14"
|
|
516
516
|
},
|
|
517
517
|
"activity_type": {
|
|
518
518
|
"count": 14,
|
|
@@ -541,6 +541,34 @@
|
|
|
541
541
|
"session_note_visibility": {
|
|
542
542
|
"count": 7,
|
|
543
543
|
"hash": "6ad8e821e790b3ba303578c1ea78081d48264a96765299002b5545a7e78be3d0"
|
|
544
|
+
},
|
|
545
|
+
"special_needs_disabilities": {
|
|
546
|
+
"count": 14,
|
|
547
|
+
"hash": "d7309a7113de4b6e113126e952fe32b0f61daaef35f8f5e4033815f62f276320"
|
|
548
|
+
},
|
|
549
|
+
"hiv_status": {
|
|
550
|
+
"count": 6,
|
|
551
|
+
"hash": "18662b98fd25c6e68f556a3b4980801a5d807acbadaff759284a006af8dd5e39"
|
|
552
|
+
},
|
|
553
|
+
"mental_health_status": {
|
|
554
|
+
"count": 6,
|
|
555
|
+
"hash": "fa57c54bb1f0a92c5311ced4c24e22594ed47c206b84bbc33a951eedc9c226b2"
|
|
556
|
+
},
|
|
557
|
+
"child_change_type": {
|
|
558
|
+
"count": 15,
|
|
559
|
+
"hash": "194d6bc1244d21e696c7575936d56e8ce96a342c28ecef030517727ff50753fd"
|
|
560
|
+
},
|
|
561
|
+
"immigration_legal_status_change_type": {
|
|
562
|
+
"count": 14,
|
|
563
|
+
"hash": "022a25d6357bb3c883931daafa36d9a6f3c235913ef53fdf5f78959c442e9bb8"
|
|
564
|
+
},
|
|
565
|
+
"program_enrollment_change_type": {
|
|
566
|
+
"count": 13,
|
|
567
|
+
"hash": "5aa518bdbfded8ea20d5895c5bbd45d4b238356273e5452e52b93dcbbff250e4"
|
|
568
|
+
},
|
|
569
|
+
"romantic_relationship_change_type": {
|
|
570
|
+
"count": 16,
|
|
571
|
+
"hash": "861a5584a875057a67e0e8727b92c64d48be64a7dba8a1eb4af19268cf6b1ccb"
|
|
544
572
|
}
|
|
545
573
|
}
|
|
546
574
|
}
|
|
@@ -66,7 +66,7 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
66
66
|
// for the Thread th-epqet.3 7-bucket lifecycle = 17.
|
|
67
67
|
{ file: "serviceStates.v1.0.0.json", domain: "service_states", expectedCount: 17 },
|
|
68
68
|
// Spec §8.1 — "Entries: 147" + 4 missingness = 151
|
|
69
|
-
{ file: "serviceCategories.v1.
|
|
69
|
+
{ file: "serviceCategories.v1.0.0.json", domain: "service_categories", expectedCount: 151 },
|
|
70
70
|
// CVC-69 — 4 group parents + 11 role leaves + 4 missingness = 19
|
|
71
71
|
{
|
|
72
72
|
file: "incidentParticipationRoles.v1.0.0.json",
|
|
@@ -586,7 +586,7 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
586
586
|
// root + 3 canonical missingness children = 16. CVC number is PROVISIONAL
|
|
587
587
|
// pending ratification.
|
|
588
588
|
{ file: "housingSubsidyTypes.v1.0.0.json", domain: "housing_subsidy_types", expectedCount: 16 },
|
|
589
|
-
{ file: "assertionDomain.v1.0.0.json", domain: "assertion_domain", expectedCount:
|
|
589
|
+
{ file: "assertionDomain.v1.0.0.json", domain: "assertion_domain", expectedCount: 70 },
|
|
590
590
|
{ file: "activityType.v1.0.0.json", domain: "activity_type", expectedCount: 14 },
|
|
591
591
|
{ file: "provenanceSourceId.v1.0.0.json", domain: "provenance_source_id", expectedCount: 13 },
|
|
592
592
|
{ file: "radiusBucket.v1.0.0.json", domain: "radius_bucket", expectedCount: 9 },
|
|
@@ -594,6 +594,14 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
594
594
|
{ file: "suggestionSource.v1.0.0.json", domain: "suggestion_source", expectedCount: 6 },
|
|
595
595
|
{ file: "roiMethod.v1.0.0.json", domain: "roi_method", expectedCount: 10 },
|
|
596
596
|
{ file: "sessionNoteVisibility.v1.0.0.json", domain: "session_note_visibility", expectedCount: 7 },
|
|
597
|
+
// DRAFT-TEMPORARY prototype direct-imports (0.8.9; provisional 900+ ids; pending Notion ratification).
|
|
598
|
+
{ file: "specialNeedsDisabilities.v1.0.0.json", domain: "special_needs_disabilities", expectedCount: 14 },
|
|
599
|
+
{ file: "hivStatus.v1.0.0.json", domain: "hiv_status", expectedCount: 6 },
|
|
600
|
+
{ file: "mentalHealthStatus.v1.0.0.json", domain: "mental_health_status", expectedCount: 6 },
|
|
601
|
+
{ file: "childChangeType.v1.0.0.json", domain: "child_change_type", expectedCount: 15 },
|
|
602
|
+
{ file: "immigrationLegalStatusChangeType.v1.0.0.json", domain: "immigration_legal_status_change_type", expectedCount: 14 },
|
|
603
|
+
{ file: "programEnrollmentChangeType.v1.0.0.json", domain: "program_enrollment_change_type", expectedCount: 13 },
|
|
604
|
+
{ file: "romanticRelationshipChangeType.v1.0.0.json", domain: "romantic_relationship_change_type", expectedCount: 16 },
|
|
597
605
|
] as const;
|
|
598
606
|
|
|
599
607
|
// ─── Helpers ────────────────────────────────────────────────────────────────
|
|
@@ -50,7 +50,7 @@ interface SotFile {
|
|
|
50
50
|
const SOT_FILES: readonly SotFile[] = [
|
|
51
51
|
{ file: "serviceMechanisms.v1.0.0.json", expectedDomain: "service_mechanisms" },
|
|
52
52
|
{ file: "serviceStates.v1.0.0.json", expectedDomain: "service_states" },
|
|
53
|
-
{ file: "serviceCategories.v1.
|
|
53
|
+
{ file: "serviceCategories.v1.0.0.json", expectedDomain: "service_categories" },
|
|
54
54
|
{ file: "incidentParticipationRoles.v1.0.0.json", expectedDomain: "incident_participation_roles" },
|
|
55
55
|
{ file: "incidentInvolvementRoles.v1.0.0.json", expectedDomain: "incident_involvement_roles" },
|
|
56
56
|
{ file: "raceEthnicity.v1.0.0.json", expectedDomain: "race_ethnicity" },
|
|
@@ -255,7 +255,7 @@ describe("CVC structural invariants (locked spec §4)", () => {
|
|
|
255
255
|
// Guard against a future regression where CvcEntrySchema stops passing
|
|
256
256
|
// domain-specific fields through. Without this, C6 would silently pass
|
|
257
257
|
// on an empty input.
|
|
258
|
-
const raw = loadSot("serviceCategories.v1.
|
|
258
|
+
const raw = loadSot("serviceCategories.v1.0.0.json");
|
|
259
259
|
const envelope = CvcEnvelopeSchema.parse(raw);
|
|
260
260
|
const withRelevant = envelope.entries.filter((e) => {
|
|
261
261
|
const field = (e as unknown as Record<string, unknown>)[
|
|
@@ -624,6 +624,24 @@
|
|
|
624
624
|
"parentCode": null,
|
|
625
625
|
"childCodes": [],
|
|
626
626
|
"definition": "Assertion domain 'facilitator_entity_type' — the subject/section a CAR asserts against."
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"code": "964-065-000-000-000-000-000",
|
|
630
|
+
"key": "child_profile",
|
|
631
|
+
"title": "Child profile",
|
|
632
|
+
"selectable": true,
|
|
633
|
+
"parentCode": null,
|
|
634
|
+
"childCodes": [],
|
|
635
|
+
"definition": "assertion_domain partition for CARs on a Child profile subject-record entity (Add Child / Edit Child; core_child_change_type verbs). DRAFT-TEMPORARY direct import from prototype, pending Notion ratification."
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"code": "964-066-000-000-000-000-000",
|
|
639
|
+
"key": "romantic_relationship",
|
|
640
|
+
"title": "Romantic relationship",
|
|
641
|
+
"selectable": true,
|
|
642
|
+
"parentCode": null,
|
|
643
|
+
"childCodes": [],
|
|
644
|
+
"definition": "assertion_domain partition for CARs on Romantic Relationships (marital status, relationship status, romantic partners; core_romantic_relationship_change_type verbs). DISTINCT from household_relationships (HoH tenure). DRAFT-TEMPORARY direct import from prototype, pending Notion ratification. Resolves the romantic-domain 'new domain vs split' question as a net-new domain, subject to steward ratification."
|
|
627
645
|
}
|
|
628
646
|
]
|
|
629
647
|
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "child_change_type",
|
|
3
|
+
"name": "Child 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_child_change_type.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog). Lifecycle + sub-block change-event verbs (CHILD_* CARs) emitted by the Add/Edit Child openers and child-profile sub-blocks; routes to StatusLog under assertion_domain child_profile.",
|
|
6
|
+
"_source": "prototype/data/cvcs/core_child_change_type.yaml",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "Child profile change event (CAR verb)"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "976-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
|
+
"976-000-000-000-000-000-001",
|
|
20
|
+
"976-000-000-000-000-000-002",
|
|
21
|
+
"976-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). The prototype YAML enumerates only the substantive level-1 CHILD_* change verbs, so the triplet is added per SOT convention."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "976-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "976-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "Change-event type is unknown at time of entry (missingness sentinel)."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "976-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "976-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": "976-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "976-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": "976-001-000-000-000-000-000",
|
|
54
|
+
"key": "child_added",
|
|
55
|
+
"title": "Child added",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "Fires once per Add Child save when a new HTI_CHILD_PROFILES[] row is created. Carries { subject_id, child_person_id, child_profile_id, relationship_type_code (locked to parent_child / child_of) }. Pairs with separate value-level CARs for sub-block fields populated in the same save. (YAML code CHILD_ADDED.)"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"code": "976-002-000-000-000-000-000",
|
|
63
|
+
"key": "child_updated",
|
|
64
|
+
"title": "Child profile updated",
|
|
65
|
+
"selectable": true,
|
|
66
|
+
"parentCode": null,
|
|
67
|
+
"childCodes": [],
|
|
68
|
+
"definition": "Fires on Edit Child save when a row is updated. Carries the changed-field delta. Per GDR § 5.6.4 trivial-edit policy, single-field micro-edits may suppress the CAR; material multi-field edits emit one row. (YAML code CHILD_UPDATED.)"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "976-003-000-000-000-000-000",
|
|
72
|
+
"key": "child_archived",
|
|
73
|
+
"title": "Child archived",
|
|
74
|
+
"selectable": true,
|
|
75
|
+
"parentCode": null,
|
|
76
|
+
"childCodes": [],
|
|
77
|
+
"definition": "Fires when archiveChild is called. Soft-archive — sets active.to timestamp; row remains queryable. Carries { subject_id, child_person_id, child_profile_id, archived_reason (optional) }. (YAML code CHILD_ARCHIVED.)"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"code": "976-004-000-000-000-000-000",
|
|
81
|
+
"key": "child_restored",
|
|
82
|
+
"title": "Child restored",
|
|
83
|
+
"selectable": true,
|
|
84
|
+
"parentCode": null,
|
|
85
|
+
"childCodes": [],
|
|
86
|
+
"definition": "Fires when restoreChild is called on an archived row. Carries { subject_id, child_person_id, child_profile_id }. (YAML code CHILD_RESTORED.)"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"code": "976-005-000-000-000-000-000",
|
|
90
|
+
"key": "child_education_updated",
|
|
91
|
+
"title": "Child education updated",
|
|
92
|
+
"selectable": true,
|
|
93
|
+
"parentCode": null,
|
|
94
|
+
"childCodes": [],
|
|
95
|
+
"definition": "Fires when school/daycare attendance Y/N/U + name + grade + level fields change in aggregate. Carries the school/daycare snapshot. (YAML code CHILD_EDUCATION_UPDATED.)"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"code": "976-006-000-000-000-000-000",
|
|
99
|
+
"key": "child_health_updated",
|
|
100
|
+
"title": "Child health & needs updated",
|
|
101
|
+
"selectable": true,
|
|
102
|
+
"parentCode": null,
|
|
103
|
+
"childCodes": [],
|
|
104
|
+
"definition": "Fires when special-needs codes / medication needs / accommodations / allergies / immediate health needs change in aggregate. Multi-field aggregate verb keeps the CAR ledger digestible. (YAML code CHILD_HEALTH_UPDATED.)"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"code": "976-007-000-000-000-000-000",
|
|
108
|
+
"key": "child_custody_updated",
|
|
109
|
+
"title": "Child custody arrangement updated",
|
|
110
|
+
"selectable": true,
|
|
111
|
+
"parentCode": null,
|
|
112
|
+
"childCodes": [],
|
|
113
|
+
"definition": "Fires when custody_arrangement_code or any of the Y/N flags (court-ordered custody / documentation / visitation / other contact / Child Welfare involvement) change. Aggregate verb covering the custody sub-block. (YAML code CHILD_CUSTODY_UPDATED.)"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"code": "976-008-000-000-000-000-000",
|
|
117
|
+
"key": "child_parental_rights_updated",
|
|
118
|
+
"title": "Child loss of parental rights updated",
|
|
119
|
+
"selectable": true,
|
|
120
|
+
"parentCode": null,
|
|
121
|
+
"childCodes": [],
|
|
122
|
+
"definition": "Fires when the per-child LoPR sub-block changes (Y/N + court-ordered + voluntary + caregiver + restrictions). Distinct from CHILD_CUSTODY_UPDATED: LoPR captures the historical / terminal-state of rights; custody captures the current arrangement. (YAML code CHILD_PARENTAL_RIGHTS_UPDATED.)"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"code": "976-009-000-000-000-000-000",
|
|
126
|
+
"key": "child_behavioral_concerns_updated",
|
|
127
|
+
"title": "Child behavioral concerns updated",
|
|
128
|
+
"selectable": true,
|
|
129
|
+
"parentCode": null,
|
|
130
|
+
"childCodes": [],
|
|
131
|
+
"definition": "Fires when behavioral_concern_codes[] or behavioral_concerns_other_text changes. Privacy-sensitive disclosure — review surface implications before exposing this CAR's body in cross-org sharing contexts. (YAML code CHILD_BEHAVIORAL_CONCERNS_UPDATED.)"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"code": "976-010-000-000-000-000-000",
|
|
135
|
+
"key": "child_household_linked",
|
|
136
|
+
"title": "Child linked to household roster",
|
|
137
|
+
"selectable": true,
|
|
138
|
+
"parentCode": null,
|
|
139
|
+
"childCodes": [],
|
|
140
|
+
"definition": "Fires when \"Do they live with you?\" toggles to Yes / Sometimes and an HTI_HOUSEHOLD_MEMBERSHIP[] row is auto-created from the Child profile. Carries { subject_id, child_person_id, hh_membership_id }. Pairs with the H3-side HOUSEHOLD_MEMBER_ADDED CAR (which fires from the membership row creation). (YAML code CHILD_HOUSEHOLD_LINKED.)"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"code": "976-011-000-000-000-000-000",
|
|
144
|
+
"key": "child_household_unlinked",
|
|
145
|
+
"title": "Child unlinked from household roster",
|
|
146
|
+
"selectable": true,
|
|
147
|
+
"parentCode": null,
|
|
148
|
+
"childCodes": [],
|
|
149
|
+
"definition": "Fires when \"Do they live with you?\" toggles from Yes / Sometimes back to No / Unknown and the existing HTI_HOUSEHOLD_MEMBERSHIP[] row is archived. Idempotent if already unlinked. (YAML code CHILD_HOUSEHOLD_UNLINKED.)"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "hiv_status",
|
|
3
|
+
"name": "HIV 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_hiv_status.yaml; PENDING canonical Notion authoring (PAVE Auditability backlog). Single-select HIV / AIDS or related diagnosis status per HMIS 4.08; YES auto-qualifies HMIS 3.08 Disabling Condition rollup.",
|
|
6
|
+
"_source": "prototype/data/cvcs/core_hiv_status.yaml",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "HIV / AIDS status"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "973-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
|
+
"973-000-000-000-000-000-001",
|
|
20
|
+
"973-000-000-000-000-000-002",
|
|
21
|
+
"973-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 three HMIS 4.08 non-response codes (DK 'Client doesn't know', PNA 'Client prefers not to answer', UNK 'Data not collected') are folded onto this triplet per SOT convention rather than duplicated as substantive values."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "973-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "973-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "Survivor explicitly says they don't know their HIV status. Useful when the survivor hasn't been tested OR doesn't recall test results. Maps the prototype YAML DK value (HMIS 4.08 = Client doesn't know) onto the standard missingness triplet."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "973-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "973-000-000-000-000-000-000",
|
|
40
|
+
"childCodes": [],
|
|
41
|
+
"definition": "Value intentionally withheld or redacted. Survivor explicitly declines to answer. Maps the prototype YAML PNA value (HMIS 4.08 = Client prefers not to answer) onto the standard workspace ANON sentinel."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"code": "973-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "973-000-000-000-000-000-000",
|
|
49
|
+
"childCodes": [],
|
|
50
|
+
"definition": "Not collected during this interaction — the question wasn't asked or the conversation didn't reach resolution. Default missing state. Maps the prototype YAML UNK value (HMIS 4.08 = Data not collected) onto the standard missingness triplet."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"code": "973-001-000-000-000-000-000",
|
|
54
|
+
"key": "yes",
|
|
55
|
+
"title": "Yes",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "HIV / AIDS or related diagnosis confirmed by a healthcare professional. Auto-qualifies for HMIS 3.08 Disabling Condition rollup (no severity follow-up required per HMIS 4.08 guidance). HMIS 4.08 = Yes. (YAML code YES.)"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"code": "973-002-000-000-000-000-000",
|
|
63
|
+
"key": "no",
|
|
64
|
+
"title": "No",
|
|
65
|
+
"selectable": true,
|
|
66
|
+
"parentCode": null,
|
|
67
|
+
"childCodes": [],
|
|
68
|
+
"definition": "No HIV / AIDS diagnosis. Does not contribute to HMIS 3.08 Disabling Condition rollup. HMIS 4.08 = No. (YAML code NO.)"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
@@ -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
|
+
}
|