@htilabs/platform-common-models 0.8.12 → 0.8.14

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.
Files changed (130) hide show
  1. package/README.md +44 -0
  2. package/dist/config/index.cjs +4 -0
  3. package/dist/config/index.cjs.map +1 -1
  4. package/dist/config/index.d.cts +16 -1
  5. package/dist/config/index.d.ts +16 -1
  6. package/dist/config/index.js +2 -0
  7. package/dist/config/index.js.map +1 -1
  8. package/dist/constants/index.cjs +143 -287
  9. package/dist/constants/index.cjs.map +1 -1
  10. package/dist/constants/index.d.cts +1 -1
  11. package/dist/constants/index.d.ts +1 -1
  12. package/dist/constants/index.js +143 -275
  13. package/dist/constants/index.js.map +1 -1
  14. package/dist/cvcs/index.cjs +12173 -969
  15. package/dist/cvcs/index.cjs.map +1 -1
  16. package/dist/cvcs/index.d.cts +14927 -2662
  17. package/dist/cvcs/index.d.ts +14927 -2662
  18. package/dist/cvcs/index.js +12141 -968
  19. package/dist/cvcs/index.js.map +1 -1
  20. package/dist/{index-I-DiX9eQ.d.ts → index-CDoqrfc1.d.ts} +1 -1
  21. package/dist/{index-CoVr1jIV.d.cts → index-Zu_mOJRn.d.cts} +1 -1
  22. package/dist/index.cjs +13297 -1361
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +1118 -130
  25. package/dist/index.d.ts +1118 -130
  26. package/dist/index.js +13239 -1346
  27. package/dist/index.js.map +1 -1
  28. package/dist/models/index.d.cts +2 -2
  29. package/dist/models/index.d.ts +2 -2
  30. package/dist/mongo/index.cjs +383 -0
  31. package/dist/mongo/index.cjs.map +1 -0
  32. package/dist/mongo/index.d.cts +221 -0
  33. package/dist/mongo/index.d.ts +221 -0
  34. package/dist/mongo/index.js +351 -0
  35. package/dist/mongo/index.js.map +1 -0
  36. package/dist/{platform-auth-BwfZ0bxU.d.cts → platform-auth-AsfnIXfK.d.cts} +2 -74
  37. package/dist/{platform-auth-BwfZ0bxU.d.ts → platform-auth-AsfnIXfK.d.ts} +2 -74
  38. package/dist/schemas/index.cjs +5 -153
  39. package/dist/schemas/index.cjs.map +1 -1
  40. package/dist/schemas/index.d.cts +29 -25
  41. package/dist/schemas/index.d.ts +29 -25
  42. package/dist/schemas/index.js +5 -153
  43. package/dist/schemas/index.js.map +1 -1
  44. package/dist/services/index.cjs +0 -3
  45. package/dist/services/index.cjs.map +1 -1
  46. package/dist/services/index.js +0 -3
  47. package/dist/services/index.js.map +1 -1
  48. package/dist/types/index.d.cts +2 -2
  49. package/dist/types/index.d.ts +2 -2
  50. package/package.json +13 -1
  51. package/src/__sot__/README.md +56 -0
  52. package/src/__sot__/coreIndicators.pin.json +220 -0
  53. package/src/__sot__/cvcIndex.pin.json +268 -0
  54. package/src/__sot__/scoringEmits.pin.json +176 -0
  55. package/src/__tests__/__snapshots__/cvc-sot.snap +125 -37
  56. package/src/__tests__/cvc-136-scoring-invariant.test.ts +326 -0
  57. package/src/__tests__/cvc-drift-gate.test.ts +607 -0
  58. package/src/__tests__/cvc-sot-snapshot.test.ts +50 -8
  59. package/src/__tests__/cvc-structural.test.ts +43 -1
  60. package/src/__tests__/mongo-verifier.test.ts +502 -0
  61. package/src/config/index.ts +8 -2
  62. package/src/constants/ic.ts +213 -333
  63. package/src/constants/service-catalog.ts +4 -2
  64. package/src/cvcs/adminRoles.v1.0.0.json +153 -0
  65. package/src/cvcs/administeringJurisdiction.v1.0.0.json +40 -40
  66. package/src/cvcs/ageBinReporting.v1.0.0.json +40 -40
  67. package/src/cvcs/assertionDomain.v1.1.0.json +78 -105
  68. package/src/cvcs/assertionStatus.v1.0.0.json +80 -0
  69. package/src/cvcs/citizenship.v1.0.0.json +3062 -0
  70. package/src/cvcs/contactInfoTypes.v1.0.0.json +40 -40
  71. package/src/cvcs/coreDhState.v1.0.0.json +113 -0
  72. package/src/cvcs/coreIndicators.v1.0.0.json +2905 -0
  73. package/src/cvcs/createdBySystem.v1.0.0.json +89 -0
  74. package/src/cvcs/employmentStatus.v1.0.0.json +60 -60
  75. package/src/cvcs/exploitationType.v1.0.0.json +106 -0
  76. package/src/cvcs/facilitatorEntityType.v1.0.0.json +40 -40
  77. package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +50 -50
  78. package/src/cvcs/hmisCurrentLivingSituation.v1.0.0.json +409 -0
  79. package/src/cvcs/hmisSex.v1.0.0.json +89 -0
  80. package/src/cvcs/homelessStatus.v1.0.0.json +27 -27
  81. package/src/cvcs/housingSubsidyTypes.v1.0.0.json +26 -24
  82. package/src/cvcs/incarcerationEpisodeType.v1.0.0.json +106 -0
  83. package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +40 -40
  84. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +40 -40
  85. package/src/cvcs/index.ts +73 -2
  86. package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +106 -0
  87. package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +32 -32
  88. package/src/cvcs/militaryBranch.v1.0.0.json +20 -20
  89. package/src/cvcs/militaryStatus.v1.0.0.json +20 -20
  90. package/src/cvcs/minorAdultStatus.v1.0.0.json +80 -0
  91. package/src/cvcs/nameType.v1.0.0.json +40 -40
  92. package/src/cvcs/offenderStatus.v1.0.0.json +40 -40
  93. package/src/cvcs/offenderStatusFamily.v1.0.0.json +36 -36
  94. package/src/cvcs/poPetitionBasis.v1.0.0.json +96 -0
  95. package/src/cvcs/poStatus.v1.0.0.json +144 -0
  96. package/src/cvcs/poViolationStatus.v1.0.0.json +76 -0
  97. package/src/cvcs/radiusBucket.v1.0.0.json +23 -11
  98. package/src/cvcs/recencyBand.v1.0.0.json +126 -42
  99. package/src/cvcs/referralEntityCategory.v1.0.0.json +40 -40
  100. package/src/cvcs/riskSeverityBand.v1.0.0.json +139 -0
  101. package/src/cvcs/roiScope.v1.0.0.json +111 -3
  102. package/src/cvcs/roiStatus.v1.0.0.json +18 -10
  103. package/src/cvcs/romanticRelationshipChangeType.v1.0.0.json +2 -1
  104. package/src/cvcs/serviceCategories.v1.0.0.json +44 -44
  105. package/src/cvcs/serviceDeliveryChannel.v1.0.0.json +147 -0
  106. package/src/cvcs/serviceMechanisms.v1.0.0.json +36 -36
  107. package/src/cvcs/serviceStates.v1.0.0.json +40 -40
  108. package/src/cvcs/sessionTemplate.v1.0.0.json +261 -0
  109. package/src/cvcs/sexProviderSubrole.v1.0.0.json +35 -28
  110. package/src/cvcs/smtType.v1.0.0.json +40 -40
  111. package/src/cvcs/sourceCategory.v1.1.0.json +8 -1
  112. package/src/cvcs/sourceInstrument.v1.0.0.json +458 -0
  113. package/src/cvcs/sourceSystem.v1.0.0.json +203 -0
  114. package/src/cvcs/subjectType.v1.0.0.json +80 -0
  115. package/src/cvcs/traffickingRelevantRole.v1.0.0.json +104 -0
  116. package/src/cvcs/userRoles.v1.0.0.json +203 -0
  117. package/src/cvcs/victimStatusFamily.v1.0.0.json +40 -40
  118. package/src/cvcs/whyNots.v1.0.0.json +385 -0
  119. package/src/generated/cvc-enums.ts +1121 -127
  120. package/src/index.ts +20 -0
  121. package/src/mongo/catalog.ts +65 -0
  122. package/src/mongo/contract.ts +157 -0
  123. package/src/mongo/index.ts +343 -0
  124. package/src/mongo/similarity.ts +133 -0
  125. package/src/mongo/uri.ts +53 -0
  126. package/src/schemas/common.ts +4 -0
  127. package/src/services/cvcRegistryService.ts +1 -1
  128. package/src/cvcs/riskBand.v1.0.0.json +0 -98
  129. package/dist/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-0BIB9sen.d.cts} +8 -8
  130. package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-0BIB9sen.d.ts} +8 -8
@@ -1,54 +1,56 @@
1
1
  {
2
2
  "domain": "housing_subsidy_types",
3
- "name": "Core Housing Subsidy Types (PROVISIONAL CVC-233 — pending codebook ratification)",
4
- "version": "1.0.0",
3
+ "name": "Core Housing Subsidy Types (CVC-194)",
4
+ "version": "1.1.0",
5
+ "_status": "CANONICAL NUMBER — RENUMBERED 0.8.13 from CVC-233 to canonical CVC-194. 0.8.12 and earlier shipped this domain at 233, which is NOT its number: live prototype HEAD a596eb9 `Final CVCs/CVC_INDEX.md:47` assigns `core - housing subsidy types` = CVC-194 (Owner Crysta Price, Verification 'Verified', Status 'Drafted - Needs Review'), while `CVC_INDEX.md:31` assigns CVC-233 to a DIFFERENT vocabulary — `core-DH_state`, the five-state determination (Findings) lifecycle (Ready for dev), whose yaml `data/cvcs/core_DH_state.yaml` self-declares `CVC-233 - v1`. This was an unambiguous MISNUMBER, not an ambiguous upstream collision (cf. the held CVC-140 / 161 / 235). platform-common was squatting on DH_state's number while its own canonical number sat free. CONSEQUENCE OF THE SQUAT: because slot 233 LOOKED occupied, the drift/gap analysis never saw that `core-DH_state` was missing entirely. The squat MASKED a real gap. `core-DH_state` is authored at its correct number CVC-233 in this same release (`src/cvcs/coreDhState.v1.0.0.json`). Renumbering is free: no production data exists and consumers persist KEYS, not wire codes. `HousingSubsidyTypesKeys` IS bound by PAVE, but only the generated map VALUES change (`233-*` -> `194-*`); the key identifiers and the TypeScript types are unchanged. Regenerate `cvcKeys.ts`. Substantive segment-2 ordinals are preserved across the renumber.",
6
+ "_source": "htilabstech/prototype@a596eb9 Final CVCs/Living Situation (IC-73)/core - housing subsidy types (CVC-194)",
5
7
  "levels": {
6
8
  "0": "Unknown or Missing",
7
9
  "1": "Housing subsidy type"
8
10
  },
9
11
  "entries": [
10
12
  {
11
- "code": "233-000-000-000-000-000-000",
13
+ "code": "194-000-000-000-000-000-000",
12
14
  "key": "missingness_root",
13
15
  "title": "Unknown, Redacted, or Missing",
14
16
  "selectable": false,
15
17
  "parentCode": null,
16
18
  "childCodes": [
17
- "233-000-000-000-000-000-001",
18
- "233-000-000-000-000-000-002",
19
- "233-000-000-000-000-000-003"
19
+ "194-000-000-000-000-000-001",
20
+ "194-000-000-000-000-000-002",
21
+ "194-000-000-000-000-000-003"
20
22
  ],
21
23
  "definition": "Root group for values indicating absent, withheld, or uncollected data."
22
24
  },
23
25
  {
24
- "code": "233-000-000-000-000-000-001",
26
+ "code": "194-000-000-000-000-000-001",
25
27
  "key": "unknown",
26
28
  "title": "Unknown / not captured",
27
29
  "selectable": true,
28
- "parentCode": "233-000-000-000-000-000-000",
30
+ "parentCode": "194-000-000-000-000-000-000",
29
31
  "childCodes": [],
30
32
  "definition": "The housing subsidy type is unknown or cannot be determined from the available information."
31
33
  },
32
34
  {
33
- "code": "233-000-000-000-000-000-002",
35
+ "code": "194-000-000-000-000-000-002",
34
36
  "key": "anonymous",
35
37
  "title": "Anonymous / declined to answer",
36
38
  "selectable": true,
37
- "parentCode": "233-000-000-000-000-000-000",
39
+ "parentCode": "194-000-000-000-000-000-000",
38
40
  "childCodes": [],
39
41
  "definition": "The housing subsidy type may be withheld by preference or due to redaction; identity is anonymous or redacted."
40
42
  },
41
43
  {
42
- "code": "233-000-000-000-000-000-003",
44
+ "code": "194-000-000-000-000-000-003",
43
45
  "key": "data_not_collected",
44
46
  "title": "Data not collected",
45
47
  "selectable": true,
46
- "parentCode": "233-000-000-000-000-000-000",
48
+ "parentCode": "194-000-000-000-000-000-000",
47
49
  "childCodes": [],
48
50
  "definition": "No attempt was made to collect the housing subsidy type."
49
51
  },
50
52
  {
51
- "code": "233-001-000-000-000-000-000",
53
+ "code": "194-001-000-000-000-000-000",
52
54
  "key": "housing_choice_voucher",
53
55
  "title": "Housing Choice Voucher (Section 8 HCV)",
54
56
  "selectable": true,
@@ -57,7 +59,7 @@
57
59
  "definition": "Tenant-based rental assistance through the HUD Housing Choice Voucher program (Section 8 HCV), which subsidizes rent in private-market units chosen by the tenant."
58
60
  },
59
61
  {
60
- "code": "233-002-000-000-000-000-000",
62
+ "code": "194-002-000-000-000-000-000",
61
63
  "key": "public_housing",
62
64
  "title": "Public housing",
63
65
  "selectable": true,
@@ -66,7 +68,7 @@
66
68
  "definition": "Residence in a public housing unit owned and operated by a public housing authority (PHA), with rent set as a subsidized share of household income."
67
69
  },
68
70
  {
69
- "code": "233-003-000-000-000-000-000",
71
+ "code": "194-003-000-000-000-000-000",
70
72
  "key": "project_based_rental_assistance",
71
73
  "title": "Project-based rental assistance",
72
74
  "selectable": true,
@@ -75,7 +77,7 @@
75
77
  "definition": "Rental assistance tied to a specific housing development or unit (e.g. project-based Section 8, project-based vouchers, or other site-based subsidy) rather than to the tenant."
76
78
  },
77
79
  {
78
- "code": "233-004-000-000-000-000-000",
80
+ "code": "194-004-000-000-000-000-000",
79
81
  "key": "permanent_supportive_housing",
80
82
  "title": "Permanent supportive housing (PSH)",
81
83
  "selectable": true,
@@ -84,7 +86,7 @@
84
86
  "definition": "Permanent housing that pairs a long-term rental subsidy with voluntary supportive services for people with disabilities or chronic homelessness (HUD CoC PSH)."
85
87
  },
86
88
  {
87
- "code": "233-005-000-000-000-000-000",
89
+ "code": "194-005-000-000-000-000-000",
88
90
  "key": "rapid_rehousing_assistance",
89
91
  "title": "Rapid re-housing assistance",
90
92
  "selectable": true,
@@ -93,7 +95,7 @@
93
95
  "definition": "Time-limited rental assistance and housing-stabilization services to help a household quickly exit homelessness into permanent housing (HUD CoC/ESG rapid re-housing)."
94
96
  },
95
97
  {
96
- "code": "233-008-000-000-000-000-000",
98
+ "code": "194-008-000-000-000-000-000",
97
99
  "key": "va_supportive_housing",
98
100
  "title": "VA Supportive Housing (HUD-VASH)",
99
101
  "selectable": true,
@@ -102,7 +104,7 @@
102
104
  "definition": "HUD-VASH: a HUD Housing Choice Voucher paired with VA case management and clinical services for homeless Veterans."
103
105
  },
104
106
  {
105
- "code": "233-009-000-000-000-000-000",
107
+ "code": "194-009-000-000-000-000-000",
106
108
  "key": "grant_per_diem_transition_in_place",
107
109
  "title": "Grant and Per Diem Transition-in-Place (GPD TIP)",
108
110
  "selectable": true,
@@ -111,7 +113,7 @@
111
113
  "definition": "VA Grant and Per Diem Transition-in-Place: transitional housing that converts to permanent housing for the Veteran in the same unit."
112
114
  },
113
115
  {
114
- "code": "233-010-000-000-000-000-000",
116
+ "code": "194-010-000-000-000-000-000",
115
117
  "key": "housing_stability_voucher",
116
118
  "title": "Housing Stability Voucher (HSV)",
117
119
  "selectable": true,
@@ -120,7 +122,7 @@
120
122
  "definition": "Housing Stability Voucher: rental assistance for individuals and families who are homeless, at risk of homelessness, or fleeing domestic violence."
121
123
  },
122
124
  {
123
- "code": "233-011-000-000-000-000-000",
125
+ "code": "194-011-000-000-000-000-000",
124
126
  "key": "family_unification_program",
125
127
  "title": "Family Unification Program (FUP)",
126
128
  "selectable": true,
@@ -129,7 +131,7 @@
129
131
  "definition": "Family Unification Program: HUD vouchers for families at risk of child-welfare separation and for eligible youth aging out of foster care."
130
132
  },
131
133
  {
132
- "code": "233-012-000-000-000-000-000",
134
+ "code": "194-012-000-000-000-000-000",
133
135
  "key": "foster_youth_to_independence",
134
136
  "title": "Foster Youth to Independence (FYI)",
135
137
  "selectable": true,
@@ -138,7 +140,7 @@
138
140
  "definition": "Foster Youth to Independence: HUD vouchers for youth aging out of foster care who are homeless or at risk of homelessness."
139
141
  },
140
142
  {
141
- "code": "233-006-000-000-000-000-000",
143
+ "code": "194-006-000-000-000-000-000",
142
144
  "key": "other_housing_subsidy",
143
145
  "title": "Other housing subsidy",
144
146
  "selectable": true,
@@ -147,7 +149,7 @@
147
149
  "definition": "A housing subsidy or rental-assistance program not covered by the other codes (e.g. state or local subsidy, HOME TBRA, or other program). Record program name and free-text detail alongside this code to preserve analytic value."
148
150
  },
149
151
  {
150
- "code": "233-007-000-000-000-000-000",
152
+ "code": "194-007-000-000-000-000-000",
151
153
  "key": "no_subsidy",
152
154
  "title": "No housing subsidy",
153
155
  "selectable": true,
@@ -0,0 +1,106 @@
1
+ {
2
+ "domain": "incarceration_episode_type",
3
+ "name": "Core Incarceration Episode Type (CVC-198)",
4
+ "version": "1.0.0",
5
+ "_status": "CANONICAL — imported 0.8.13 from the Notion Final CVC codebook (CVC-198, Owner Crysta Price, Status 'Drafted - Needs Review'). Value set for classifying incarceration episode type when `assertion_domain = incarceration` (custody stays such as jail / prison / detention).",
6
+ "_source": "htilabstech/prototype@a596eb9 Living Situation (IC-73)/core - incarceration episode type — codebook 1.csv (CVC-198)",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Incarceration episode type"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "198-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
+ "198-000-000-000-000-000-001",
20
+ "198-000-000-000-000-000-002",
21
+ "198-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."
24
+ },
25
+ {
26
+ "code": "198-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "198-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "Unknown or cannot be determined from the available information.",
33
+ "canonicalCode": "UNK"
34
+ },
35
+ {
36
+ "code": "198-000-000-000-000-000-002",
37
+ "key": "anonymous",
38
+ "title": "Anonymous / declined to answer",
39
+ "selectable": true,
40
+ "parentCode": "198-000-000-000-000-000-000",
41
+ "childCodes": [],
42
+ "definition": "Information may be withheld by preference or due to redaction; identity is anonymous or redacted.",
43
+ "canonicalCode": "ANON"
44
+ },
45
+ {
46
+ "code": "198-000-000-000-000-000-003",
47
+ "key": "data_not_collected",
48
+ "title": "Data not collected",
49
+ "selectable": true,
50
+ "parentCode": "198-000-000-000-000-000-000",
51
+ "childCodes": [],
52
+ "definition": "No attempt was made to collect the information.",
53
+ "canonicalCode": "DNC"
54
+ },
55
+ {
56
+ "code": "198-001-000-000-000-000-000",
57
+ "key": "jail",
58
+ "title": "Jail",
59
+ "selectable": true,
60
+ "parentCode": null,
61
+ "childCodes": [],
62
+ "definition": "Custody stay in a jail facility (typically local/county).",
63
+ "canonicalCode": "jail"
64
+ },
65
+ {
66
+ "code": "198-002-000-000-000-000-000",
67
+ "key": "detention",
68
+ "title": "Detention (generic custody)",
69
+ "selectable": true,
70
+ "parentCode": null,
71
+ "childCodes": [],
72
+ "definition": "Custody stay where jail vs prison is unknown/unspecified (generic detention).",
73
+ "canonicalCode": "detention"
74
+ },
75
+ {
76
+ "code": "198-003-000-000-000-000-000",
77
+ "key": "prison",
78
+ "title": "Prison",
79
+ "selectable": true,
80
+ "parentCode": null,
81
+ "childCodes": [],
82
+ "definition": "Custody stay in a prison facility (state/federal).",
83
+ "canonicalCode": "prison"
84
+ },
85
+ {
86
+ "code": "198-004-000-000-000-000-000",
87
+ "key": "immigration_detention",
88
+ "title": "Immigration detention",
89
+ "selectable": true,
90
+ "parentCode": null,
91
+ "childCodes": [],
92
+ "definition": "Custody stay in immigration detention (civil detention under immigration authority).",
93
+ "canonicalCode": "immigration_detention"
94
+ },
95
+ {
96
+ "code": "198-005-000-000-000-000-000",
97
+ "key": "work_release_or_halfway_house_custody",
98
+ "title": "Work release / custody in halfway house",
99
+ "selectable": true,
100
+ "parentCode": null,
101
+ "childCodes": [],
102
+ "definition": "Custody arrangement where the person is in a work-release program or custody-like halfway house setting (only when treated as custody).",
103
+ "canonicalCode": "work_release_or_halfway_house_custody"
104
+ }
105
+ ]
106
+ }
@@ -7,6 +7,46 @@
7
7
  "1": "Involvement Role"
8
8
  },
9
9
  "entries": [
10
+ {
11
+ "code": "130-000-000-000-000-000-000",
12
+ "key": "missingness_root",
13
+ "title": "Unknown, Redacted, or Missing",
14
+ "selectable": false,
15
+ "parentCode": null,
16
+ "childCodes": [
17
+ "130-000-000-000-000-000-001",
18
+ "130-000-000-000-000-000-002",
19
+ "130-000-000-000-000-000-003"
20
+ ],
21
+ "definition": "Root group for values indicating absent, withheld, or uncollected data."
22
+ },
23
+ {
24
+ "code": "130-000-000-000-000-000-001",
25
+ "key": "unknown",
26
+ "title": "Unknown",
27
+ "selectable": true,
28
+ "parentCode": "130-000-000-000-000-000-000",
29
+ "childCodes": [],
30
+ "definition": "Value is unknown at time of entry."
31
+ },
32
+ {
33
+ "code": "130-000-000-000-000-000-002",
34
+ "key": "anonymous",
35
+ "title": "Anonymous",
36
+ "selectable": true,
37
+ "parentCode": "130-000-000-000-000-000-000",
38
+ "childCodes": [],
39
+ "definition": "Value is intentionally withheld or redacted."
40
+ },
41
+ {
42
+ "code": "130-000-000-000-000-000-003",
43
+ "key": "data_not_collected",
44
+ "title": "Data not collected",
45
+ "selectable": true,
46
+ "parentCode": "130-000-000-000-000-000-000",
47
+ "childCodes": [],
48
+ "definition": "No attempt was made to collect the value."
49
+ },
10
50
  {
11
51
  "code": "130-001-000-000-000-000-000",
12
52
  "key": "victim_primary",
@@ -60,46 +100,6 @@
60
100
  "parentCode": null,
61
101
  "childCodes": [],
62
102
  "definition": "A relevant dependent (often a child) involved in the situation, not necessarily asserted harmed."
63
- },
64
- {
65
- "code": "130-000-000-000-000-000-000",
66
- "key": "missingness_root",
67
- "title": "Unknown, Redacted, or Missing",
68
- "selectable": false,
69
- "parentCode": null,
70
- "childCodes": [
71
- "130-000-000-000-000-000-001",
72
- "130-000-000-000-000-000-002",
73
- "130-000-000-000-000-000-003"
74
- ],
75
- "definition": "Root group for values indicating absent, withheld, or uncollected data."
76
- },
77
- {
78
- "code": "130-000-000-000-000-000-001",
79
- "key": "unknown",
80
- "title": "Unknown",
81
- "selectable": true,
82
- "parentCode": "130-000-000-000-000-000-000",
83
- "childCodes": [],
84
- "definition": "Value is unknown at time of entry."
85
- },
86
- {
87
- "code": "130-000-000-000-000-000-002",
88
- "key": "anonymous",
89
- "title": "Anonymous",
90
- "selectable": true,
91
- "parentCode": "130-000-000-000-000-000-000",
92
- "childCodes": [],
93
- "definition": "Value is intentionally withheld or redacted."
94
- },
95
- {
96
- "code": "130-000-000-000-000-000-003",
97
- "key": "data_not_collected",
98
- "title": "Data not collected",
99
- "selectable": true,
100
- "parentCode": "130-000-000-000-000-000-000",
101
- "childCodes": [],
102
- "definition": "No attempt was made to collect the value."
103
103
  }
104
104
  ]
105
105
  }
@@ -8,6 +8,46 @@
8
8
  "2": "Role"
9
9
  },
10
10
  "entries": [
11
+ {
12
+ "code": "069-000-000-000-000-000-000",
13
+ "key": "missingness_root",
14
+ "title": "Unknown, Redacted, or Missing",
15
+ "selectable": false,
16
+ "parentCode": null,
17
+ "childCodes": [
18
+ "069-000-000-000-000-000-001",
19
+ "069-000-000-000-000-000-002",
20
+ "069-000-000-000-000-000-003"
21
+ ],
22
+ "definition": "Root group for values indicating absent, withheld, or uncollected data."
23
+ },
24
+ {
25
+ "code": "069-000-000-000-000-000-001",
26
+ "key": "unknown",
27
+ "title": "Unknown",
28
+ "selectable": true,
29
+ "parentCode": "069-000-000-000-000-000-000",
30
+ "childCodes": [],
31
+ "definition": "Value is unknown at time of entry."
32
+ },
33
+ {
34
+ "code": "069-000-000-000-000-000-002",
35
+ "key": "anonymous",
36
+ "title": "Anonymous",
37
+ "selectable": true,
38
+ "parentCode": "069-000-000-000-000-000-000",
39
+ "childCodes": [],
40
+ "definition": "Value is intentionally withheld or redacted."
41
+ },
42
+ {
43
+ "code": "069-000-000-000-000-000-003",
44
+ "key": "data_not_collected",
45
+ "title": "Data not collected",
46
+ "selectable": true,
47
+ "parentCode": "069-000-000-000-000-000-000",
48
+ "childCodes": [],
49
+ "definition": "No attempt was made to collect the value."
50
+ },
11
51
  {
12
52
  "code": "069-001-000-000-000-000-000",
13
53
  "key": "client_group",
@@ -157,46 +197,6 @@
157
197
  "parentCode": "069-004-000-000-000-000-000",
158
198
  "childCodes": [],
159
199
  "definition": "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
160
- },
161
- {
162
- "code": "069-000-000-000-000-000-000",
163
- "key": "missingness_root",
164
- "title": "Unknown, Redacted, or Missing",
165
- "selectable": false,
166
- "parentCode": null,
167
- "childCodes": [
168
- "069-000-000-000-000-000-001",
169
- "069-000-000-000-000-000-002",
170
- "069-000-000-000-000-000-003"
171
- ],
172
- "definition": "Root group for values indicating absent, withheld, or uncollected data."
173
- },
174
- {
175
- "code": "069-000-000-000-000-000-001",
176
- "key": "unknown",
177
- "title": "Unknown",
178
- "selectable": true,
179
- "parentCode": "069-000-000-000-000-000-000",
180
- "childCodes": [],
181
- "definition": "Value is unknown at time of entry."
182
- },
183
- {
184
- "code": "069-000-000-000-000-000-002",
185
- "key": "anonymous",
186
- "title": "Anonymous",
187
- "selectable": true,
188
- "parentCode": "069-000-000-000-000-000-000",
189
- "childCodes": [],
190
- "definition": "Value is intentionally withheld or redacted."
191
- },
192
- {
193
- "code": "069-000-000-000-000-000-003",
194
- "key": "data_not_collected",
195
- "title": "Data not collected",
196
- "selectable": true,
197
- "parentCode": "069-000-000-000-000-000-000",
198
- "childCodes": [],
199
- "definition": "No attempt was made to collect the value."
200
200
  }
201
201
  ]
202
202
  }
package/src/cvcs/index.ts CHANGED
@@ -154,12 +154,52 @@ import immigrationLegalStatusChangeTypeSot from "./immigrationLegalStatusChangeT
154
154
  import programEnrollmentChangeTypeSot from "./programEnrollmentChangeType.v1.0.0.json" with { type: "json" };
155
155
  import romanticRelationshipChangeTypeSot from "./romanticRelationshipChangeType.v1.0.0.json" with { type: "json" };
156
156
  import riskCategorySot from "./riskCategory.v1.0.0.json" with { type: "json" };
157
- import riskBandSot from "./riskBand.v1.0.0.json" with { type: "json" };
158
157
  import coreFunctionsSot from "./coreFunctions.v1.0.0.json" with { type: "json" };
159
158
  import needsAssessmentChangeTypeSot from "./needsAssessmentChangeType.v1.0.0.json" with { type: "json" };
160
159
  import roiScopeSot from "./roiScope.v1.0.0.json" with { type: "json" };
161
160
  import roiStatusSot from "./roiStatus.v1.0.0.json" with { type: "json" };
162
161
  import coreReferralOutcomeSot from "./coreReferralOutcome.v1.0.0.json" with { type: "json" };
162
+ import coreIndicatorsSot from "./coreIndicators.v1.0.0.json" with { type: "json" };
163
+ import coreDhStateSot from "./coreDhState.v1.0.0.json" with { type: "json" };
164
+ import riskSeverityBandSot from "./riskSeverityBand.v1.0.0.json" with { type: "json" };
165
+ import adminRolesSot from "./adminRoles.v1.0.0.json" with { type: "json" };
166
+ import userRolesSot from "./userRoles.v1.0.0.json" with { type: "json" };
167
+ import hmisCurrentLivingSituationSot from "./hmisCurrentLivingSituation.v1.0.0.json" with { type: "json" };
168
+ import juvenileJusticeEpisodeTypeSot from "./juvenileJusticeEpisodeType.v1.0.0.json" with { type: "json" };
169
+ import incarcerationEpisodeTypeSot from "./incarcerationEpisodeType.v1.0.0.json" with { type: "json" };
170
+ import exploitationTypeSot from "./exploitationType.v1.0.0.json" with { type: "json" };
171
+ import sourceSystemSot from "./sourceSystem.v1.0.0.json" with { type: "json" };
172
+ import sourceInstrumentSot from "./sourceInstrument.v1.0.0.json" with { type: "json" };
173
+ import poPetitionBasisSot from "./poPetitionBasis.v1.0.0.json" with { type: "json" };
174
+ import poStatusSot from "./poStatus.v1.0.0.json" with { type: "json" };
175
+ import poViolationStatusSot from "./poViolationStatus.v1.0.0.json" with { type: "json" };
176
+ import sessionTemplateSot from "./sessionTemplate.v1.0.0.json" with { type: "json" };
177
+ import serviceDeliveryChannelSot from "./serviceDeliveryChannel.v1.0.0.json" with { type: "json" };
178
+ import whyNotsSot from "./whyNots.v1.0.0.json" with { type: "json" };
179
+ import citizenshipSot from "./citizenship.v1.0.0.json" with { type: "json" };
180
+ import traffickingRelevantRoleSot from "./traffickingRelevantRole.v1.0.0.json" with { type: "json" };
181
+ // Domains that were never exported from this barrel (found by the CVC drift gate).
182
+ import activityTypeSot from "./activityType.v1.0.0.json" with { type: "json" };
183
+ import assertionDomainSot from "./assertionDomain.v1.1.0.json" with { type: "json" };
184
+ import contactLinkTypeSot from "./contactLinkType.v1.0.0.json" with { type: "json" };
185
+ import provenanceSourceIdSot from "./provenanceSourceId.v1.0.0.json" with { type: "json" };
186
+ import radiusBucketSot from "./radiusBucket.v1.0.0.json" with { type: "json" };
187
+ import roiMethodSot from "./roiMethod.v1.0.0.json" with { type: "json" };
188
+ import sessionNoteVisibilitySot from "./sessionNoteVisibility.v1.0.0.json" with { type: "json" };
189
+ import suggestionSourceSot from "./suggestionSource.v1.0.0.json" with { type: "json" };
190
+ // GDR §10.1 CAR-contract vocabularies (provisional 900-block; PAVE @pave/domain
191
+ // verbatim; bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish).
192
+ import assertionStatusSot from "./assertionStatus.v1.0.0.json" with { type: "json" };
193
+ import createdBySystemSot from "./createdBySystem.v1.0.0.json" with { type: "json" };
194
+ import subjectTypeSot from "./subjectType.v1.0.0.json" with { type: "json" };
195
+ import minorAdultStatusSot from "./minorAdultStatus.v1.0.0.json" with { type: "json" };
196
+ // Trunk-only domain (CVC-67) authored on `kl-develop` and never seen by the
197
+ // canonical 0.8.13 line. It shipped as an orphan JSON — the file existed but
198
+ // was never wired into this barrel, so nothing could import it. Wired in here
199
+ // so the drift gate's "every SOT JSON is exported + validated" assertion holds
200
+ // across the merged tree. Coexists with the `CVC_67_HMIS_SEX` constants in
201
+ // `../constants/ic.ts`; the JSON is the SOT, the constants are the legacy view.
202
+ import hmisSexSot from "./hmisSex.v1.0.0.json" with { type: "json" };
163
203
 
164
204
  export {
165
205
  serviceCategoriesSot,
@@ -297,10 +337,41 @@ export {
297
337
  programEnrollmentChangeTypeSot,
298
338
  romanticRelationshipChangeTypeSot,
299
339
  riskCategorySot,
300
- riskBandSot,
301
340
  coreFunctionsSot,
302
341
  needsAssessmentChangeTypeSot,
303
342
  roiScopeSot,
304
343
  roiStatusSot,
305
344
  coreReferralOutcomeSot,
345
+ coreIndicatorsSot,
346
+ coreDhStateSot,
347
+ riskSeverityBandSot,
348
+ adminRolesSot,
349
+ userRolesSot,
350
+ hmisCurrentLivingSituationSot,
351
+ juvenileJusticeEpisodeTypeSot,
352
+ incarcerationEpisodeTypeSot,
353
+ exploitationTypeSot,
354
+ sourceSystemSot,
355
+ sourceInstrumentSot,
356
+ poPetitionBasisSot,
357
+ poStatusSot,
358
+ poViolationStatusSot,
359
+ sessionTemplateSot,
360
+ serviceDeliveryChannelSot,
361
+ whyNotsSot,
362
+ citizenshipSot,
363
+ traffickingRelevantRoleSot,
364
+ activityTypeSot,
365
+ assertionDomainSot,
366
+ contactLinkTypeSot,
367
+ provenanceSourceIdSot,
368
+ radiusBucketSot,
369
+ roiMethodSot,
370
+ sessionNoteVisibilitySot,
371
+ suggestionSourceSot,
372
+ assertionStatusSot,
373
+ createdBySystemSot,
374
+ subjectTypeSot,
375
+ minorAdultStatusSot,
376
+ hmisSexSot,
306
377
  };
@@ -0,0 +1,106 @@
1
+ {
2
+ "domain": "juvenile_justice_episode_type",
3
+ "name": "Core Juvenile Justice Episode Type (CVC-197)",
4
+ "version": "1.0.0",
5
+ "_status": "CANONICAL — imported 0.8.13 from the Notion Final CVC codebook (CVC-197, Owner Crysta Price, Status 'Drafting'). Value set for classifying the TYPE of a juvenile-justice involvement EPISODE asserted when `assertion_domain = juvenile_justice_involvement`. DISTINCT from CVC-95 `juvenile_justice_involvement_status` (the point-in-time status axis) — 197 types the episode, 95 states the status.",
6
+ "_source": "htilabstech/prototype@a596eb9 Living Situation (IC-73)/core - juvenile_justice_episode_type — codebook 1.csv (CVC-197)",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Juvenile justice episode type"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "197-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
+ "197-000-000-000-000-000-001",
20
+ "197-000-000-000-000-000-002",
21
+ "197-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."
24
+ },
25
+ {
26
+ "code": "197-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "197-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "Unknown or cannot be determined from the available information.",
33
+ "canonicalCode": "UNK"
34
+ },
35
+ {
36
+ "code": "197-000-000-000-000-000-002",
37
+ "key": "anonymous",
38
+ "title": "Anonymous / declined to answer",
39
+ "selectable": true,
40
+ "parentCode": "197-000-000-000-000-000-000",
41
+ "childCodes": [],
42
+ "definition": "Information may be withheld by preference or due to redaction; identity is anonymous or redacted.",
43
+ "canonicalCode": "ANON"
44
+ },
45
+ {
46
+ "code": "197-000-000-000-000-000-003",
47
+ "key": "data_not_collected",
48
+ "title": "Data not collected",
49
+ "selectable": true,
50
+ "parentCode": "197-000-000-000-000-000-000",
51
+ "childCodes": [],
52
+ "definition": "No attempt was made to collect the information.",
53
+ "canonicalCode": "DNC"
54
+ },
55
+ {
56
+ "code": "197-001-000-000-000-000-000",
57
+ "key": "pending_adjudication",
58
+ "title": "Pending charges / adjudication process",
59
+ "selectable": true,
60
+ "parentCode": null,
61
+ "childCodes": [],
62
+ "definition": "Juvenile justice involvement primarily characterized by an active charges/adjudication process (court process) without clear custody/supervision details.",
63
+ "canonicalCode": "pending_adjudication"
64
+ },
65
+ {
66
+ "code": "197-002-000-000-000-000-000",
67
+ "key": "diversion_program",
68
+ "title": "Diversion program",
69
+ "selectable": true,
70
+ "parentCode": null,
71
+ "childCodes": [],
72
+ "definition": "Participation in a diversion program or diversionary pathway in the juvenile justice system.",
73
+ "canonicalCode": "diversion_program"
74
+ },
75
+ {
76
+ "code": "197-003-000-000-000-000-000",
77
+ "key": "residential_jj_placement",
78
+ "title": "Residential JJ placement",
79
+ "selectable": true,
80
+ "parentCode": null,
81
+ "childCodes": [],
82
+ "definition": "Residential juvenile justice placement (e.g., juvenile correctional/residential facility placement) beyond short-term detention.",
83
+ "canonicalCode": "residential_jj_placement"
84
+ },
85
+ {
86
+ "code": "197-004-000-000-000-000-000",
87
+ "key": "probation_supervision",
88
+ "title": "Probation / community supervision (juvenile)",
89
+ "selectable": true,
90
+ "parentCode": null,
91
+ "childCodes": [],
92
+ "definition": "Juvenile probation or community supervision without custody/residential placement.",
93
+ "canonicalCode": "probation_supervision"
94
+ },
95
+ {
96
+ "code": "197-005-000-000-000-000-000",
97
+ "key": "detention_stay",
98
+ "title": "Detention stay",
99
+ "selectable": true,
100
+ "parentCode": null,
101
+ "childCodes": [],
102
+ "definition": "Time in juvenile detention custody (detention facility stay).",
103
+ "canonicalCode": "detention_stay"
104
+ }
105
+ ]
106
+ }