@htilabs/platform-common-models 0.9.0 → 0.12.1

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 (174) hide show
  1. package/dist/config/index.cjs +4 -0
  2. package/dist/config/index.cjs.map +1 -1
  3. package/dist/config/index.d.cts +16 -1
  4. package/dist/config/index.d.ts +16 -1
  5. package/dist/config/index.js +2 -0
  6. package/dist/config/index.js.map +1 -1
  7. package/dist/constants/index.cjs +473 -182
  8. package/dist/constants/index.cjs.map +1 -1
  9. package/dist/constants/index.d.cts +1 -1
  10. package/dist/constants/index.d.ts +1 -1
  11. package/dist/constants/index.js +470 -170
  12. package/dist/constants/index.js.map +1 -1
  13. package/dist/cvc-Cp4uWnAa.d.cts +298 -0
  14. package/dist/cvc-Cp4uWnAa.d.ts +298 -0
  15. package/dist/cvcs/index.cjs +21798 -811
  16. package/dist/cvcs/index.cjs.map +1 -1
  17. package/dist/cvcs/index.d.cts +25138 -2212
  18. package/dist/cvcs/index.d.ts +25138 -2212
  19. package/dist/cvcs/index.js +21736 -810
  20. package/dist/cvcs/index.js.map +1 -1
  21. package/dist/enums/index.cjs +4557 -0
  22. package/dist/enums/index.cjs.map +1 -0
  23. package/dist/enums/index.d.cts +5257 -0
  24. package/dist/enums/index.d.ts +5257 -0
  25. package/dist/enums/index.js +4354 -0
  26. package/dist/enums/index.js.map +1 -0
  27. package/dist/index.cjs +24053 -1052
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +5 -3072
  30. package/dist/index.d.ts +5 -3072
  31. package/dist/index.js +23928 -1039
  32. package/dist/index.js.map +1 -1
  33. package/dist/mongo/index.cjs +383 -0
  34. package/dist/mongo/index.cjs.map +1 -0
  35. package/dist/mongo/index.d.cts +221 -0
  36. package/dist/mongo/index.d.ts +221 -0
  37. package/dist/mongo/index.js +351 -0
  38. package/dist/mongo/index.js.map +1 -0
  39. package/dist/{platform-auth-XVB9aHqR.d.cts → platform-auth-Dv5fu0Fh.d.cts} +22 -77
  40. package/dist/{platform-auth-XVB9aHqR.d.ts → platform-auth-Dv5fu0Fh.d.ts} +22 -77
  41. package/dist/schemas/index.cjs +30 -157
  42. package/dist/schemas/index.cjs.map +1 -1
  43. package/dist/schemas/index.js +30 -157
  44. package/dist/schemas/index.js.map +1 -1
  45. package/dist/services/index.cjs +0 -3
  46. package/dist/services/index.cjs.map +1 -1
  47. package/dist/services/index.js +0 -3
  48. package/dist/services/index.js.map +1 -1
  49. package/dist/types/index.d.cts +2 -2
  50. package/dist/types/index.d.ts +2 -2
  51. package/dist/validation/index.cjs +58 -0
  52. package/dist/validation/index.cjs.map +1 -1
  53. package/dist/validation/index.d.cts +82 -283
  54. package/dist/validation/index.d.ts +82 -283
  55. package/dist/validation/index.js +57 -0
  56. package/dist/validation/index.js.map +1 -1
  57. package/package.json +18 -1
  58. package/src/__sot__/README.md +91 -0
  59. package/src/__sot__/coreIndicatorFields.ts +331 -0
  60. package/src/__sot__/coreIndicators.pin.json +2149 -0
  61. package/src/__sot__/cvcIndex.pin.json +272 -0
  62. package/src/__sot__/scoringEmits.pin.json +176 -0
  63. package/src/__tests__/__snapshots__/cvc-sot.snap +260 -40
  64. package/src/__tests__/core-information-scope-invariant.test.ts +134 -0
  65. package/src/__tests__/cvc-136-scoring-invariant.test.ts +328 -0
  66. package/src/__tests__/cvc-181-182-country-parity.test.ts +163 -0
  67. package/src/__tests__/cvc-drift-gate.test.ts +1036 -0
  68. package/src/__tests__/cvc-sot-snapshot.test.ts +191 -18
  69. package/src/__tests__/cvc-status-parser.test.ts +150 -0
  70. package/src/__tests__/cvc-structural.test.ts +70 -1
  71. package/src/__tests__/mongo-verifier.test.ts +502 -0
  72. package/src/config/index.ts +8 -2
  73. package/src/constants/ic.ts +629 -206
  74. package/src/constants/service-catalog.ts +4 -2
  75. package/src/cvcs/activityType.v1.0.0.json +143 -0
  76. package/src/cvcs/adminRoles.v1.0.0.json +153 -0
  77. package/src/cvcs/administeringJurisdiction.v1.0.0.json +40 -40
  78. package/src/cvcs/ageBinReporting.v1.0.0.json +40 -40
  79. package/src/cvcs/assertionDomain.v1.1.0.json +647 -0
  80. package/src/cvcs/assertionStatus.v1.0.0.json +80 -0
  81. package/src/cvcs/carCorrectionReason.v1.0.0.json +89 -0
  82. package/src/cvcs/caseShareState.v1.0.0.json +62 -0
  83. package/src/cvcs/{checkInPhase.v1.0.0.json → checkInPhase.v1.1.0.json} +20 -2
  84. package/src/cvcs/childChangeType.v1.0.0.json +152 -0
  85. package/src/cvcs/citizenship.v1.0.0.json +3062 -0
  86. package/src/cvcs/contactInfoTypes.v1.0.0.json +40 -40
  87. package/src/cvcs/contactLinkType.v1.0.0.json +89 -0
  88. package/src/cvcs/coreDhState.v1.0.0.json +113 -0
  89. package/src/cvcs/coreFunctions.v1.0.0.json +746 -0
  90. package/src/cvcs/coreIndicators.v1.0.0.json +2918 -0
  91. package/src/cvcs/coreInformationScope.v1.0.0.json +1165 -0
  92. package/src/cvcs/coreReferralOutcome.v1.0.0.json +71 -0
  93. package/src/cvcs/countries.v1.0.0.json +3077 -0
  94. package/src/cvcs/createdBySystem.v1.0.0.json +89 -0
  95. package/src/cvcs/criminalOrgCategory.v1.0.0.json +116 -0
  96. package/src/cvcs/determinationHelperCategories.v1.0.0.json +1166 -0
  97. package/src/cvcs/employmentStatus.v1.0.0.json +60 -60
  98. package/src/cvcs/exploitationType.v1.0.0.json +106 -0
  99. package/src/cvcs/facilitatorEntityType.v1.0.0.json +40 -40
  100. package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +55 -46
  101. package/src/cvcs/hivStatus.v1.0.0.json +71 -0
  102. package/src/cvcs/hmisCurrentLivingSituation.v1.0.0.json +409 -0
  103. package/src/cvcs/hmisRelationshipToHoh.v1.0.0.json +104 -0
  104. package/src/cvcs/homelessStatus.v1.0.0.json +27 -27
  105. package/src/cvcs/housingSubsidyTypes.v1.0.0.json +161 -0
  106. package/src/cvcs/htType.v1.0.0.json +87 -0
  107. package/src/cvcs/identificationStatus.v1.0.0.json +18 -0
  108. package/src/cvcs/immigrationLegalStatusChangeType.v1.0.0.json +143 -0
  109. package/src/cvcs/incarcerationEpisodeType.v1.0.0.json +106 -0
  110. package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +40 -40
  111. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +47 -37
  112. package/src/cvcs/incomeBenefitsSources.v1.0.0.json +31 -2
  113. package/src/cvcs/index.ts +138 -1
  114. package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +28 -18
  115. package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +32 -32
  116. package/src/cvcs/livingSituation.v1.0.0.json +213 -0
  117. package/src/cvcs/mentalHealthStatus.v1.0.0.json +71 -0
  118. package/src/cvcs/militaryBranch.v1.0.0.json +20 -20
  119. package/src/cvcs/militaryStatus.v1.0.0.json +20 -20
  120. package/src/cvcs/minorAdultStatus.v1.0.0.json +80 -0
  121. package/src/cvcs/nameType.v1.0.0.json +40 -40
  122. package/src/cvcs/needsAssessmentChangeType.v1.0.0.json +134 -0
  123. package/src/cvcs/offenderStatus.v1.0.0.json +40 -40
  124. package/src/cvcs/offenderStatusFamily.v1.0.0.json +36 -36
  125. package/src/cvcs/personRelationships.v1.0.0.json +67 -2
  126. package/src/cvcs/poPetitionBasis.v1.0.0.json +96 -0
  127. package/src/cvcs/poStatus.v1.0.0.json +144 -0
  128. package/src/cvcs/poViolationStatus.v1.0.0.json +76 -0
  129. package/src/cvcs/programEnrollmentChangeType.v1.0.0.json +134 -0
  130. package/src/cvcs/provenanceSourceId.v1.0.0.json +134 -0
  131. package/src/cvcs/radiusBucket.v1.0.0.json +110 -0
  132. package/src/cvcs/recencyBand.v1.0.0.json +104 -39
  133. package/src/cvcs/referralEntityCategory.v1.0.0.json +40 -40
  134. package/src/cvcs/referralOrigin.v1.0.0.json +26 -0
  135. package/src/cvcs/relationshipConcern.v1.0.0.json +123 -0
  136. package/src/cvcs/riskCategory.v1.0.0.json +134 -0
  137. package/src/cvcs/riskIdentificationMilestone.v1.0.0.json +109 -0
  138. package/src/cvcs/riskSeverityBand.v1.0.0.json +139 -0
  139. package/src/cvcs/roiMethod.v1.0.0.json +107 -0
  140. package/src/cvcs/roiScope.v1.0.0.json +296 -0
  141. package/src/cvcs/roiStatus.v1.0.0.json +106 -0
  142. package/src/cvcs/romanticRelationshipChangeType.v1.0.0.json +162 -0
  143. package/src/cvcs/serviceAudience.v1.0.0.json +96 -0
  144. package/src/cvcs/serviceCategories.v1.0.0.json +44 -44
  145. package/src/cvcs/serviceDeliveryChannel.v1.0.0.json +147 -0
  146. package/src/cvcs/serviceMechanisms.v1.0.0.json +36 -36
  147. package/src/cvcs/serviceStates.v1.0.0.json +55 -33
  148. package/src/cvcs/sessionNoteVisibility.v1.0.0.json +80 -0
  149. package/src/cvcs/sessionTemplate.v1.0.0.json +283 -0
  150. package/src/cvcs/sexProviderSubrole.v1.0.0.json +35 -28
  151. package/src/cvcs/sharePurpose.v1.0.0.json +80 -12
  152. package/src/cvcs/smtType.v1.0.0.json +40 -40
  153. package/src/cvcs/sourceCategory.v1.1.0.json +8 -1
  154. package/src/cvcs/sourceInstrument.v1.0.0.json +458 -0
  155. package/src/cvcs/sourceSubtype.v1.1.0.json +36 -0
  156. package/src/cvcs/sourceSystem.v1.0.0.json +203 -0
  157. package/src/cvcs/specialNeedsDisabilities.v1.0.0.json +143 -0
  158. package/src/cvcs/subjectType.v1.0.0.json +80 -0
  159. package/src/cvcs/suggestionSource.v1.0.0.json +71 -0
  160. package/src/cvcs/traffickingRelevantRole.v1.0.0.json +104 -0
  161. package/src/cvcs/userRoles.v1.0.0.json +203 -0
  162. package/src/cvcs/verificationMethod.v1.0.0.json +18 -0
  163. package/src/cvcs/victimAbuseTypes.v1.0.0.json +276 -0
  164. package/src/cvcs/victimStatusFamily.v1.0.0.json +40 -40
  165. package/src/cvcs/whyNots.v1.0.0.json +385 -0
  166. package/src/generated/cvc-enums.ts +2318 -10
  167. package/src/mongo/catalog.ts +65 -0
  168. package/src/mongo/contract.ts +157 -0
  169. package/src/mongo/index.ts +343 -0
  170. package/src/mongo/similarity.ts +133 -0
  171. package/src/mongo/uri.ts +53 -0
  172. package/src/services/cvcRegistryService.ts +1 -1
  173. package/src/validation/cvcStatus.ts +209 -0
  174. package/src/validation/index.ts +1 -0
@@ -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",
@@ -109,7 +149,8 @@
109
149
  "069-004-002-000-000-000-000",
110
150
  "069-004-003-000-000-000-000",
111
151
  "069-004-004-000-000-000-000",
112
- "069-004-005-000-000-000-000"
152
+ "069-004-005-000-000-000-000",
153
+ "069-004-006-000-000-000-000"
113
154
  ],
114
155
  "definition": "Group of participation roles identifying system-side professionals involved in the incident."
115
156
  },
@@ -159,44 +200,13 @@
159
200
  "definition": "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
160
201
  },
161
202
  {
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",
203
+ "code": "069-004-006-000-000-000-000",
204
+ "key": "legal_professional",
205
+ "title": "Legal professional",
187
206
  "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",
207
+ "parentCode": "069-004-000-000-000-000-000",
198
208
  "childCodes": [],
199
- "definition": "No attempt was made to collect the value."
209
+ "definition": "An attorney or other legal professional (e.g., legal advocate, paralegal) acting in a legal capacity in relation to the incident."
200
210
  }
201
211
  ]
202
212
  }
@@ -65,7 +65,8 @@
65
65
  "selectable": false,
66
66
  "parentCode": null,
67
67
  "childCodes": [
68
- "171-001-001-000-000-000-000"
68
+ "171-001-001-000-000-000-000",
69
+ "171-001-002-000-000-000-000"
69
70
  ],
70
71
  "definition": "Income from wages, salary, tips, gig/contract work, or other paid employment."
71
72
  },
@@ -78,6 +79,15 @@
78
79
  "childCodes": [],
79
80
  "definition": "Income from wages, salary, tips, gig/contract work, or other paid employment. Includes informal earned income that is not supported by official documentation."
80
81
  },
82
+ {
83
+ "code": "171-001-002-000-000-000-000",
84
+ "key": "informal_income",
85
+ "title": "Informal / undocumented income",
86
+ "selectable": true,
87
+ "parentCode": "171-001-000-000-000-000-000",
88
+ "childCodes": [],
89
+ "definition": "Informal or undocumented income, e.g. cash work or side activity not captured by formal employment or a benefit program."
90
+ },
81
91
  {
82
92
  "code": "171-002-000-000-000-000-000",
83
93
  "key": "cash_benefit",
@@ -326,7 +336,8 @@
326
336
  "parentCode": null,
327
337
  "childCodes": [
328
338
  "171-004-001-000-000-000-000",
329
- "171-004-002-000-000-000-000"
339
+ "171-004-002-000-000-000-000",
340
+ "171-004-003-000-000-000-000"
330
341
  ],
331
342
  "definition": "Income received as interpersonal transfers or support payments (e.g., child support, spousal support)."
332
343
  },
@@ -348,6 +359,15 @@
348
359
  "childCodes": [],
349
360
  "definition": "All periodic payments received from an ex-spouse as alimony or spousal support. Excludes one-time property settlements."
350
361
  },
362
+ {
363
+ "code": "171-004-003-000-000-000-000",
364
+ "key": "family_friend_support",
365
+ "title": "Family / friend financial support",
366
+ "selectable": true,
367
+ "parentCode": "171-004-000-000-000-000-000",
368
+ "childCodes": [],
369
+ "definition": "Informal financial support from family or friends, not a documented benefit program."
370
+ },
351
371
  {
352
372
  "code": "171-005-000-000-000-000-000",
353
373
  "key": "other_unspecified",
@@ -387,6 +407,15 @@
387
407
  "parentCode": "171-005-000-000-000-000-000",
388
408
  "childCodes": [],
389
409
  "definition": "Income received as a stipend, scholarship refund, training allowance, or other education-related payment that can function as income for living expenses. Funder-specific exclusions may apply (e.g., SSVF)."
410
+ },
411
+ {
412
+ "code": "171-006-000-000-000-000-000",
413
+ "key": "victim_compensation",
414
+ "title": "Crime victim compensation",
415
+ "selectable": true,
416
+ "parentCode": null,
417
+ "childCodes": [],
418
+ "definition": "Income or benefits from a state or federal crime-victim compensation program (e.g. VOCA-funded victim compensation)."
390
419
  }
391
420
  ]
392
421
  }
package/src/cvcs/index.ts CHANGED
@@ -44,6 +44,8 @@ import contactSafetyStatusSot from "./contactSafetyStatus.v1.0.0.json" with { ty
44
44
  import highestEducationLevelCompletedSot from "./highestEducationLevelCompleted.v1.0.0.json" with { type: "json" };
45
45
  import preferredContactMethodSot from "./preferredContactMethod.v1.0.0.json" with { type: "json" };
46
46
  import sharePurposeSot from "./sharePurpose.v1.0.0.json" with { type: "json" };
47
+ import referralOriginSot from "./referralOrigin.v1.0.0.json" with { type: "json" };
48
+ import caseShareStateSot from "./caseShareState.v1.0.0.json" with { type: "json" };
47
49
  import facilitatorEntityTypeSot from "./facilitatorEntityType.v1.0.0.json" with { type: "json" };
48
50
  import facilitatorSubroleSot from "./facilitatorSubrole.v1.0.0.json" with { type: "json" };
49
51
  import maritalStatusLegalSot from "./maritalStatusLegal.v1.0.0.json" with { type: "json" };
@@ -90,7 +92,7 @@ import announcementAudienceScopeSot from "./announcementAudienceScope.v1.0.0.jso
90
92
  import announcementResponseTypeSot from "./announcementResponseType.v1.0.0.json" with { type: "json" };
91
93
  import basisQuickPicksSot from "./basisQuickPicks.v1.0.0.json" with { type: "json" };
92
94
  import checkInActivitySot from "./checkInActivity.v1.0.0.json" with { type: "json" };
93
- import checkInPhaseSot from "./checkInPhase.v1.0.0.json" with { type: "json" };
95
+ import checkInPhaseSot from "./checkInPhase.v1.1.0.json" with { type: "json" };
94
96
  import childBehavioralConcernsSot from "./childBehavioralConcerns.v1.0.0.json" with { type: "json" };
95
97
  import childCustodyArrangementSot from "./childCustodyArrangement.v1.0.0.json" with { type: "json" };
96
98
  import daIncidentArchiveReasonSot from "./daIncidentArchiveReason.v1.0.0.json" with { type: "json" };
@@ -138,6 +140,80 @@ import threadTypeSot from "./threadType.v1.0.0.json" with { type: "json" };
138
140
  import signatureTypeSot from "./signatureType.v1.0.0.json" with { type: "json" };
139
141
  import verificationStatusSot from "./verificationStatus.v1.0.0.json" with { type: "json" };
140
142
  import visaTypeSot from "./visaType.v1.0.0.json" with { type: "json" };
143
+ import livingSituationSot from "./livingSituation.v1.0.0.json" with { type: "json" };
144
+ import serviceAudienceSot from "./serviceAudience.v1.0.0.json" with { type: "json" };
145
+ import hmisRelationshipToHohSot from "./hmisRelationshipToHoh.v1.0.0.json" with { type: "json" };
146
+ import victimAbuseTypesSot from "./victimAbuseTypes.v1.0.0.json" with { type: "json" };
147
+ import htTypeSot from "./htType.v1.0.0.json" with { type: "json" };
148
+ import relationshipConcernSot from "./relationshipConcern.v1.0.0.json" with { type: "json" };
149
+ import recencyBandSot from "./recencyBand.v1.0.0.json" with { type: "json" };
150
+ import housingSubsidyTypesSot from "./housingSubsidyTypes.v1.0.0.json" with { type: "json" };
151
+ import specialNeedsDisabilitiesSot from "./specialNeedsDisabilities.v1.0.0.json" with { type: "json" };
152
+ import hivStatusSot from "./hivStatus.v1.0.0.json" with { type: "json" };
153
+ import mentalHealthStatusSot from "./mentalHealthStatus.v1.0.0.json" with { type: "json" };
154
+ import childChangeTypeSot from "./childChangeType.v1.0.0.json" with { type: "json" };
155
+ import immigrationLegalStatusChangeTypeSot from "./immigrationLegalStatusChangeType.v1.0.0.json" with { type: "json" };
156
+ import programEnrollmentChangeTypeSot from "./programEnrollmentChangeType.v1.0.0.json" with { type: "json" };
157
+ import romanticRelationshipChangeTypeSot from "./romanticRelationshipChangeType.v1.0.0.json" with { type: "json" };
158
+ import riskCategorySot from "./riskCategory.v1.0.0.json" with { type: "json" };
159
+ import coreFunctionsSot from "./coreFunctions.v1.0.0.json" with { type: "json" };
160
+ import needsAssessmentChangeTypeSot from "./needsAssessmentChangeType.v1.0.0.json" with { type: "json" };
161
+ import coreInformationScopeSot from "./coreInformationScope.v1.0.0.json" with { type: "json" };
162
+ import roiScopeSot from "./roiScope.v1.0.0.json" with { type: "json" };
163
+ import roiStatusSot from "./roiStatus.v1.0.0.json" with { type: "json" };
164
+ import coreReferralOutcomeSot from "./coreReferralOutcome.v1.0.0.json" with { type: "json" };
165
+ import coreIndicatorsSot from "./coreIndicators.v1.0.0.json" with { type: "json" };
166
+ import coreDhStateSot from "./coreDhState.v1.0.0.json" with { type: "json" };
167
+ import riskSeverityBandSot from "./riskSeverityBand.v1.0.0.json" with { type: "json" };
168
+ import riskIdentificationMilestoneSot from "./riskIdentificationMilestone.v1.0.0.json" with { type: "json" };
169
+ import adminRolesSot from "./adminRoles.v1.0.0.json" with { type: "json" };
170
+ import userRolesSot from "./userRoles.v1.0.0.json" with { type: "json" };
171
+ import hmisCurrentLivingSituationSot from "./hmisCurrentLivingSituation.v1.0.0.json" with { type: "json" };
172
+ import juvenileJusticeEpisodeTypeSot from "./juvenileJusticeEpisodeType.v1.0.0.json" with { type: "json" };
173
+ import incarcerationEpisodeTypeSot from "./incarcerationEpisodeType.v1.0.0.json" with { type: "json" };
174
+ import exploitationTypeSot from "./exploitationType.v1.0.0.json" with { type: "json" };
175
+ import sourceSystemSot from "./sourceSystem.v1.0.0.json" with { type: "json" };
176
+ import sourceInstrumentSot from "./sourceInstrument.v1.0.0.json" with { type: "json" };
177
+ import poPetitionBasisSot from "./poPetitionBasis.v1.0.0.json" with { type: "json" };
178
+ import poStatusSot from "./poStatus.v1.0.0.json" with { type: "json" };
179
+ import poViolationStatusSot from "./poViolationStatus.v1.0.0.json" with { type: "json" };
180
+ import sessionTemplateSot from "./sessionTemplate.v1.0.0.json" with { type: "json" };
181
+ import serviceDeliveryChannelSot from "./serviceDeliveryChannel.v1.0.0.json" with { type: "json" };
182
+ import whyNotsSot from "./whyNots.v1.0.0.json" with { type: "json" };
183
+ import citizenshipSot from "./citizenship.v1.0.0.json" with { type: "json" };
184
+ import countriesSot from "./countries.v1.0.0.json" with { type: "json" };
185
+ import determinationHelperCategoriesSot from "./determinationHelperCategories.v1.0.0.json" with { type: "json" };
186
+ import traffickingRelevantRoleSot from "./traffickingRelevantRole.v1.0.0.json" with { type: "json" };
187
+ // Domains that were never exported from this barrel (found by the CVC drift gate).
188
+ import activityTypeSot from "./activityType.v1.0.0.json" with { type: "json" };
189
+ import assertionDomainSot from "./assertionDomain.v1.1.0.json" with { type: "json" };
190
+ import contactLinkTypeSot from "./contactLinkType.v1.0.0.json" with { type: "json" };
191
+ import provenanceSourceIdSot from "./provenanceSourceId.v1.0.0.json" with { type: "json" };
192
+ import radiusBucketSot from "./radiusBucket.v1.0.0.json" with { type: "json" };
193
+ import roiMethodSot from "./roiMethod.v1.0.0.json" with { type: "json" };
194
+ import sessionNoteVisibilitySot from "./sessionNoteVisibility.v1.0.0.json" with { type: "json" };
195
+ import suggestionSourceSot from "./suggestionSource.v1.0.0.json" with { type: "json" };
196
+ // GDR §10.1 CAR-contract vocabularies (provisional 900-block; PAVE @pave/domain
197
+ // verbatim; bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish).
198
+ import assertionStatusSot from "./assertionStatus.v1.0.0.json" with { type: "json" };
199
+ import carCorrectionReasonSot from "./carCorrectionReason.v1.0.0.json" with { type: "json" };
200
+ import createdBySystemSot from "./createdBySystem.v1.0.0.json" with { type: "json" };
201
+ import subjectTypeSot from "./subjectType.v1.0.0.json" with { type: "json" };
202
+ import minorAdultStatusSot from "./minorAdultStatus.v1.0.0.json" with { type: "json" };
203
+ // Trunk-only domain (CVC-67) authored on `kl-develop` and never seen by the
204
+ // canonical 0.8.13 line. It shipped as an orphan JSON — the file existed but
205
+ // was never wired into this barrel, so nothing could import it. Wired in here
206
+ // so the drift gate's "every SOT JSON is exported + validated" assertion holds
207
+ // across the merged tree. Coexists with the `CVC_67_HMIS_SEX` constants in
208
+ // `../constants/ic.ts`; the JSON is the SOT, the constants are the legacy view.
209
+ import hmisSexSot from "./hmisSex.v1.0.0.json" with { type: "json" };
210
+ // Domain authored in PR #142 (0.8.15) alongside the codegen manifest entry in
211
+ // scripts/codegen-cvc-enums.ts, but never wired into this barrel — the SOT
212
+ // JSON shipped and `src/generated/cvc-enums.ts` regenerated correctly (it
213
+ // reads `src/cvcs/*.json` directly), but this file does not, so the export
214
+ // never reached the compiled `dist/cvcs/`. Wired in here so downstream
215
+ // consumers that derive their key maps from `./cvcs` (e.g. PAVE) can see it.
216
+ import criminalOrgCategorySot from "./criminalOrgCategory.v1.0.0.json" with { type: "json" };
141
217
 
142
218
  export {
143
219
  serviceCategoriesSot,
@@ -165,6 +241,8 @@ export {
165
241
  highestEducationLevelCompletedSot,
166
242
  preferredContactMethodSot,
167
243
  sharePurposeSot,
244
+ referralOriginSot,
245
+ caseShareStateSot,
168
246
  facilitatorEntityTypeSot,
169
247
  facilitatorSubroleSot,
170
248
  maritalStatusLegalSot,
@@ -259,4 +337,63 @@ export {
259
337
  signatureTypeSot,
260
338
  verificationStatusSot,
261
339
  visaTypeSot,
340
+ livingSituationSot,
341
+ serviceAudienceSot,
342
+ hmisRelationshipToHohSot,
343
+ victimAbuseTypesSot,
344
+ htTypeSot,
345
+ relationshipConcernSot,
346
+ recencyBandSot,
347
+ housingSubsidyTypesSot,
348
+ specialNeedsDisabilitiesSot,
349
+ hivStatusSot,
350
+ mentalHealthStatusSot,
351
+ childChangeTypeSot,
352
+ immigrationLegalStatusChangeTypeSot,
353
+ programEnrollmentChangeTypeSot,
354
+ romanticRelationshipChangeTypeSot,
355
+ riskCategorySot,
356
+ coreFunctionsSot,
357
+ needsAssessmentChangeTypeSot,
358
+ coreInformationScopeSot,
359
+ roiScopeSot,
360
+ roiStatusSot,
361
+ coreReferralOutcomeSot,
362
+ coreIndicatorsSot,
363
+ coreDhStateSot,
364
+ riskSeverityBandSot,
365
+ riskIdentificationMilestoneSot,
366
+ adminRolesSot,
367
+ userRolesSot,
368
+ hmisCurrentLivingSituationSot,
369
+ juvenileJusticeEpisodeTypeSot,
370
+ incarcerationEpisodeTypeSot,
371
+ exploitationTypeSot,
372
+ sourceSystemSot,
373
+ sourceInstrumentSot,
374
+ poPetitionBasisSot,
375
+ poStatusSot,
376
+ poViolationStatusSot,
377
+ sessionTemplateSot,
378
+ serviceDeliveryChannelSot,
379
+ whyNotsSot,
380
+ citizenshipSot,
381
+ countriesSot,
382
+ determinationHelperCategoriesSot,
383
+ traffickingRelevantRoleSot,
384
+ activityTypeSot,
385
+ assertionDomainSot,
386
+ contactLinkTypeSot,
387
+ provenanceSourceIdSot,
388
+ radiusBucketSot,
389
+ roiMethodSot,
390
+ sessionNoteVisibilitySot,
391
+ suggestionSourceSot,
392
+ assertionStatusSot,
393
+ carCorrectionReasonSot,
394
+ createdBySystemSot,
395
+ subjectTypeSot,
396
+ minorAdultStatusSot,
397
+ hmisSexSot,
398
+ criminalOrgCategorySot,
262
399
  };
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "domain": "juvenile_justice_episode_type",
3
- "name": "Core Juvenile Justice Episode Type",
3
+ "name": "Core Juvenile Justice Episode Type (CVC-197)",
4
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)",
5
7
  "levels": {
6
8
  "0": "Unknown or Missing",
7
- "1": "Episode Type"
9
+ "1": "Juvenile justice episode type"
8
10
  },
9
11
  "entries": [
10
12
  {
@@ -18,7 +20,7 @@
18
20
  "197-000-000-000-000-000-002",
19
21
  "197-000-000-000-000-000-003"
20
22
  ],
21
- "definition": "Root group for values indicating absent, withheld, or uncollected data."
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."
22
24
  },
23
25
  {
24
26
  "code": "197-000-000-000-000-000-001",
@@ -27,16 +29,18 @@
27
29
  "selectable": true,
28
30
  "parentCode": "197-000-000-000-000-000-000",
29
31
  "childCodes": [],
30
- "definition": "Value is unknown at time of entry."
32
+ "definition": "Unknown or cannot be determined from the available information.",
33
+ "canonicalCode": "UNK"
31
34
  },
32
35
  {
33
36
  "code": "197-000-000-000-000-000-002",
34
37
  "key": "anonymous",
35
- "title": "Anonymous",
38
+ "title": "Anonymous / declined to answer",
36
39
  "selectable": true,
37
40
  "parentCode": "197-000-000-000-000-000-000",
38
41
  "childCodes": [],
39
- "definition": "Value is intentionally withheld or redacted."
42
+ "definition": "Information may be withheld by preference or due to redaction; identity is anonymous or redacted.",
43
+ "canonicalCode": "ANON"
40
44
  },
41
45
  {
42
46
  "code": "197-000-000-000-000-000-003",
@@ -45,16 +49,18 @@
45
49
  "selectable": true,
46
50
  "parentCode": "197-000-000-000-000-000-000",
47
51
  "childCodes": [],
48
- "definition": "No attempt was made to collect the value."
52
+ "definition": "No attempt was made to collect the information.",
53
+ "canonicalCode": "DNC"
49
54
  },
50
55
  {
51
56
  "code": "197-001-000-000-000-000-000",
52
- "key": "detention_stay",
53
- "title": "Detention stay",
57
+ "key": "pending_adjudication",
58
+ "title": "Pending charges / adjudication process",
54
59
  "selectable": true,
55
60
  "parentCode": null,
56
61
  "childCodes": [],
57
- "definition": "A period of confinement in a juvenile detention facility."
62
+ "definition": "Juvenile justice involvement primarily characterized by an active charges/adjudication process (court process) without clear custody/supervision details.",
63
+ "canonicalCode": "pending_adjudication"
58
64
  },
59
65
  {
60
66
  "code": "197-002-000-000-000-000-000",
@@ -63,16 +69,18 @@
63
69
  "selectable": true,
64
70
  "parentCode": null,
65
71
  "childCodes": [],
66
- "definition": "Participation in a program that diverts a youth away from formal juvenile court processing."
72
+ "definition": "Participation in a diversion program or diversionary pathway in the juvenile justice system.",
73
+ "canonicalCode": "diversion_program"
67
74
  },
68
75
  {
69
76
  "code": "197-003-000-000-000-000-000",
70
- "key": "pending_adjudication",
71
- "title": "Pending charges / adjudication process",
77
+ "key": "residential_jj_placement",
78
+ "title": "Residential JJ placement",
72
79
  "selectable": true,
73
80
  "parentCode": null,
74
81
  "childCodes": [],
75
- "definition": "An open juvenile case awaiting adjudication."
82
+ "definition": "Residential juvenile justice placement (e.g., juvenile correctional/residential facility placement) beyond short-term detention.",
83
+ "canonicalCode": "residential_jj_placement"
76
84
  },
77
85
  {
78
86
  "code": "197-004-000-000-000-000-000",
@@ -81,16 +89,18 @@
81
89
  "selectable": true,
82
90
  "parentCode": null,
83
91
  "childCodes": [],
84
- "definition": "Court-ordered supervision of a youth in the community rather than in confinement."
92
+ "definition": "Juvenile probation or community supervision without custody/residential placement.",
93
+ "canonicalCode": "probation_supervision"
85
94
  },
86
95
  {
87
96
  "code": "197-005-000-000-000-000-000",
88
- "key": "residential_jj_placement",
89
- "title": "Residential JJ placement",
97
+ "key": "detention_stay",
98
+ "title": "Detention stay",
90
99
  "selectable": true,
91
100
  "parentCode": null,
92
101
  "childCodes": [],
93
- "definition": "Placement in a residential juvenile justice facility (e.g. training school, residential treatment)."
102
+ "definition": "Time in juvenile detention custody (detention facility stay).",
103
+ "canonicalCode": "detention_stay"
94
104
  }
95
105
  ]
96
106
  }
@@ -7,33 +7,6 @@
7
7
  "1": "Involvement status"
8
8
  },
9
9
  "entries": [
10
- {
11
- "code": "095-001-000-000-000-000-000",
12
- "key": "current",
13
- "title": "Current",
14
- "selectable": true,
15
- "parentCode": null,
16
- "childCodes": [],
17
- "definition": "Indicates that the individual is currently involved with the juvenile justice system, such as being under detention, probation, diversion supervision, or active juvenile court oversight."
18
- },
19
- {
20
- "code": "095-002-000-000-000-000-000",
21
- "key": "never",
22
- "title": "Never",
23
- "selectable": true,
24
- "parentCode": null,
25
- "childCodes": [],
26
- "definition": "Indicates that the individual has no known history of involvement with the juvenile justice system."
27
- },
28
- {
29
- "code": "095-003-000-000-000-000-000",
30
- "key": "previous",
31
- "title": "Previous",
32
- "selectable": true,
33
- "parentCode": null,
34
- "childCodes": [],
35
- "definition": "Indicates that the individual previously had involvement with the juvenile justice system but is not currently under juvenile justice supervision. Maps to HMIS R12 'Yes' (Formerly a Ward of Juvenile Justice System)."
36
- },
37
10
  {
38
11
  "code": "095-000-000-000-000-000-000",
39
12
  "key": "missingness_root",
@@ -56,6 +29,15 @@
56
29
  "childCodes": [],
57
30
  "definition": "Indicates that it is not known whether the individual has ever been involved with the juvenile justice system. Maps to HMIS R12 'Client doesn't know'."
58
31
  },
32
+ {
33
+ "code": "095-000-000-000-000-000-003",
34
+ "key": "data_not_collected",
35
+ "title": "Data not collected",
36
+ "selectable": true,
37
+ "parentCode": "095-000-000-000-000-000-000",
38
+ "childCodes": [],
39
+ "definition": "Indicates the question was not asked and/or a value was not obtained; distinguish from 'unknown' (asked but not known) and 'prefer_not_to_answer' (asked but declined). Maps to HMIS R12 'Data not collected'."
40
+ },
59
41
  {
60
42
  "code": "095-000-000-000-000-000-002",
61
43
  "key": "prefer_not_to_answer",
@@ -66,13 +48,31 @@
66
48
  "definition": "Indicates the individual was asked about juvenile justice involvement history and chose not to answer. Maps to HMIS R12 'Client prefers not to answer'."
67
49
  },
68
50
  {
69
- "code": "095-000-000-000-000-000-003",
70
- "key": "data_not_collected",
71
- "title": "Data not collected",
51
+ "code": "095-001-000-000-000-000-000",
52
+ "key": "current",
53
+ "title": "Current",
72
54
  "selectable": true,
73
- "parentCode": "095-000-000-000-000-000-000",
55
+ "parentCode": null,
74
56
  "childCodes": [],
75
- "definition": "Indicates the question was not asked and/or a value was not obtained; distinguish from 'unknown' (asked but not known) and 'prefer_not_to_answer' (asked but declined). Maps to HMIS R12 'Data not collected'."
57
+ "definition": "Indicates that the individual is currently involved with the juvenile justice system, such as being under detention, probation, diversion supervision, or active juvenile court oversight."
58
+ },
59
+ {
60
+ "code": "095-002-000-000-000-000-000",
61
+ "key": "never",
62
+ "title": "Never",
63
+ "selectable": true,
64
+ "parentCode": null,
65
+ "childCodes": [],
66
+ "definition": "Indicates that the individual has no known history of involvement with the juvenile justice system."
67
+ },
68
+ {
69
+ "code": "095-003-000-000-000-000-000",
70
+ "key": "previous",
71
+ "title": "Previous",
72
+ "selectable": true,
73
+ "parentCode": null,
74
+ "childCodes": [],
75
+ "definition": "Indicates that the individual previously had involvement with the juvenile justice system but is not currently under juvenile justice supervision. Maps to HMIS R12 'Yes' (Formerly a Ward of Juvenile Justice System)."
76
76
  }
77
77
  ]
78
78
  }