@htilabs/platform-common-models 0.9.0 → 0.12.0

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 (149) hide show
  1. package/dist/config/index.cjs +85 -0
  2. package/dist/config/index.cjs.map +1 -1
  3. package/dist/config/index.d.cts +94 -4
  4. package/dist/config/index.d.ts +94 -4
  5. package/dist/config/index.js +81 -1
  6. package/dist/config/index.js.map +1 -1
  7. package/dist/constants/index.cjs +456 -181
  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 +453 -169
  12. package/dist/constants/index.js.map +1 -1
  13. package/dist/cvcs/index.cjs +15331 -801
  14. package/dist/cvcs/index.cjs.map +1 -1
  15. package/dist/cvcs/index.d.cts +18167 -2208
  16. package/dist/cvcs/index.d.ts +18167 -2208
  17. package/dist/cvcs/index.js +15282 -801
  18. package/dist/cvcs/index.js.map +1 -1
  19. package/dist/{index-Zu_mOJRn.d.cts → index-CoVr1jIV.d.cts} +1 -1
  20. package/dist/{index-CDoqrfc1.d.ts → index-I-DiX9eQ.d.ts} +1 -1
  21. package/dist/index.cjs +17070 -1056
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +1638 -12
  24. package/dist/index.d.ts +1638 -12
  25. package/dist/index.js +16969 -1043
  26. package/dist/index.js.map +1 -1
  27. package/dist/models/index.d.cts +2 -2
  28. package/dist/models/index.d.ts +2 -2
  29. package/dist/mongo/index.cjs +384 -0
  30. package/dist/mongo/index.cjs.map +1 -0
  31. package/dist/mongo/index.d.cts +221 -0
  32. package/dist/mongo/index.d.ts +221 -0
  33. package/dist/mongo/index.js +352 -0
  34. package/dist/mongo/index.js.map +1 -0
  35. package/dist/{platform-auth-XVB9aHqR.d.cts → platform-auth-v53r3BhN.d.cts} +19 -75
  36. package/dist/{platform-auth-XVB9aHqR.d.ts → platform-auth-v53r3BhN.d.ts} +19 -75
  37. package/dist/schemas/index.cjs +25 -156
  38. package/dist/schemas/index.cjs.map +1 -1
  39. package/dist/schemas/index.d.cts +25 -25
  40. package/dist/schemas/index.d.ts +25 -25
  41. package/dist/schemas/index.js +25 -156
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/services/index.cjs +0 -3
  44. package/dist/services/index.cjs.map +1 -1
  45. package/dist/services/index.js +0 -3
  46. package/dist/services/index.js.map +1 -1
  47. package/dist/types/index.d.cts +2 -2
  48. package/dist/types/index.d.ts +2 -2
  49. package/package.json +9 -1
  50. package/src/__sot__/README.md +56 -0
  51. package/src/__sot__/coreIndicators.pin.json +215 -0
  52. package/src/__sot__/cvcIndex.pin.json +268 -0
  53. package/src/__sot__/scoringEmits.pin.json +176 -0
  54. package/src/__tests__/__snapshots__/cvc-sot.snap +227 -35
  55. package/src/__tests__/cvc-136-scoring-invariant.test.ts +323 -0
  56. package/src/__tests__/cvc-drift-gate.test.ts +603 -0
  57. package/src/__tests__/cvc-sot-snapshot.test.ts +122 -11
  58. package/src/__tests__/cvc-structural.test.ts +56 -1
  59. package/src/__tests__/mongo-verifier.test.ts +502 -0
  60. package/src/__tests__/runtime-contract-validator.test.ts +325 -1
  61. package/src/config/index.ts +197 -6
  62. package/src/constants/ic.ts +512 -206
  63. package/src/constants/service-catalog.ts +4 -2
  64. package/src/cvcs/activityType.v1.0.0.json +143 -0
  65. package/src/cvcs/adminRoles.v1.0.0.json +153 -0
  66. package/src/cvcs/administeringJurisdiction.v1.0.0.json +40 -40
  67. package/src/cvcs/ageBinReporting.v1.0.0.json +40 -40
  68. package/src/cvcs/assertionDomain.v1.1.0.json +629 -0
  69. package/src/cvcs/{checkInPhase.v1.0.0.json → checkInPhase.v1.1.0.json} +20 -2
  70. package/src/cvcs/childChangeType.v1.0.0.json +152 -0
  71. package/src/cvcs/citizenship.v1.0.0.json +3062 -0
  72. package/src/cvcs/contactInfoTypes.v1.0.0.json +40 -40
  73. package/src/cvcs/contactLinkType.v1.0.0.json +89 -0
  74. package/src/cvcs/coreDhState.v1.0.0.json +113 -0
  75. package/src/cvcs/coreFunctions.v1.0.0.json +746 -0
  76. package/src/cvcs/coreIndicators.v1.0.0.json +2840 -0
  77. package/src/cvcs/coreReferralOutcome.v1.0.0.json +71 -0
  78. package/src/cvcs/employmentStatus.v1.0.0.json +60 -60
  79. package/src/cvcs/exploitationType.v1.0.0.json +106 -0
  80. package/src/cvcs/facilitatorEntityType.v1.0.0.json +40 -40
  81. package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +55 -46
  82. package/src/cvcs/hivStatus.v1.0.0.json +71 -0
  83. package/src/cvcs/hmisCurrentLivingSituation.v1.0.0.json +409 -0
  84. package/src/cvcs/hmisRelationshipToHoh.v1.0.0.json +104 -0
  85. package/src/cvcs/homelessStatus.v1.0.0.json +27 -27
  86. package/src/cvcs/housingSubsidyTypes.v1.0.0.json +161 -0
  87. package/src/cvcs/htType.v1.0.0.json +87 -0
  88. package/src/cvcs/identificationStatus.v1.0.0.json +18 -0
  89. package/src/cvcs/immigrationLegalStatusChangeType.v1.0.0.json +143 -0
  90. package/src/cvcs/incarcerationEpisodeType.v1.0.0.json +106 -0
  91. package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +40 -40
  92. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +40 -40
  93. package/src/cvcs/incomeBenefitsSources.v1.0.0.json +31 -2
  94. package/src/cvcs/index.ts +106 -1
  95. package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +28 -18
  96. package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +32 -32
  97. package/src/cvcs/livingSituation.v1.0.0.json +213 -0
  98. package/src/cvcs/mentalHealthStatus.v1.0.0.json +71 -0
  99. package/src/cvcs/militaryBranch.v1.0.0.json +20 -20
  100. package/src/cvcs/militaryStatus.v1.0.0.json +20 -20
  101. package/src/cvcs/nameType.v1.0.0.json +40 -40
  102. package/src/cvcs/needsAssessmentChangeType.v1.0.0.json +134 -0
  103. package/src/cvcs/offenderStatus.v1.0.0.json +40 -40
  104. package/src/cvcs/offenderStatusFamily.v1.0.0.json +36 -36
  105. package/src/cvcs/poPetitionBasis.v1.0.0.json +96 -0
  106. package/src/cvcs/poStatus.v1.0.0.json +144 -0
  107. package/src/cvcs/poViolationStatus.v1.0.0.json +76 -0
  108. package/src/cvcs/programEnrollmentChangeType.v1.0.0.json +134 -0
  109. package/src/cvcs/provenanceSourceId.v1.0.0.json +134 -0
  110. package/src/cvcs/radiusBucket.v1.0.0.json +110 -0
  111. package/src/cvcs/recencyBand.v1.0.0.json +104 -39
  112. package/src/cvcs/referralEntityCategory.v1.0.0.json +40 -40
  113. package/src/cvcs/relationshipConcern.v1.0.0.json +114 -0
  114. package/src/cvcs/riskCategory.v1.0.0.json +134 -0
  115. package/src/cvcs/riskSeverityBand.v1.0.0.json +139 -0
  116. package/src/cvcs/roiMethod.v1.0.0.json +107 -0
  117. package/src/cvcs/roiScope.v1.0.0.json +296 -0
  118. package/src/cvcs/roiStatus.v1.0.0.json +106 -0
  119. package/src/cvcs/romanticRelationshipChangeType.v1.0.0.json +162 -0
  120. package/src/cvcs/serviceAudience.v1.0.0.json +96 -0
  121. package/src/cvcs/serviceCategories.v1.0.0.json +44 -44
  122. package/src/cvcs/serviceDeliveryChannel.v1.0.0.json +147 -0
  123. package/src/cvcs/serviceMechanisms.v1.0.0.json +36 -36
  124. package/src/cvcs/serviceStates.v1.0.0.json +55 -33
  125. package/src/cvcs/sessionNoteVisibility.v1.0.0.json +80 -0
  126. package/src/cvcs/sessionTemplate.v1.0.0.json +261 -0
  127. package/src/cvcs/sexProviderSubrole.v1.0.0.json +35 -28
  128. package/src/cvcs/smtType.v1.0.0.json +40 -40
  129. package/src/cvcs/sourceCategory.v1.1.0.json +8 -1
  130. package/src/cvcs/sourceInstrument.v1.0.0.json +458 -0
  131. package/src/cvcs/sourceSubtype.v1.1.0.json +36 -0
  132. package/src/cvcs/sourceSystem.v1.0.0.json +203 -0
  133. package/src/cvcs/specialNeedsDisabilities.v1.0.0.json +143 -0
  134. package/src/cvcs/suggestionSource.v1.0.0.json +71 -0
  135. package/src/cvcs/traffickingRelevantRole.v1.0.0.json +104 -0
  136. package/src/cvcs/userRoles.v1.0.0.json +203 -0
  137. package/src/cvcs/verificationMethod.v1.0.0.json +18 -0
  138. package/src/cvcs/victimAbuseTypes.v1.0.0.json +276 -0
  139. package/src/cvcs/victimStatusFamily.v1.0.0.json +40 -40
  140. package/src/cvcs/whyNots.v1.0.0.json +385 -0
  141. package/src/generated/cvc-enums.ts +1729 -7
  142. package/src/mongo/catalog.ts +65 -0
  143. package/src/mongo/contract.ts +157 -0
  144. package/src/mongo/index.ts +343 -0
  145. package/src/mongo/similarity.ts +133 -0
  146. package/src/mongo/uri.ts +53 -0
  147. package/src/services/cvcRegistryService.ts +1 -1
  148. package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-BCj1OWqL.d.cts} +8 -8
  149. package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-BCj1OWqL.d.ts} +8 -8
@@ -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
  }
@@ -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
@@ -90,7 +90,7 @@ import announcementAudienceScopeSot from "./announcementAudienceScope.v1.0.0.jso
90
90
  import announcementResponseTypeSot from "./announcementResponseType.v1.0.0.json" with { type: "json" };
91
91
  import basisQuickPicksSot from "./basisQuickPicks.v1.0.0.json" with { type: "json" };
92
92
  import checkInActivitySot from "./checkInActivity.v1.0.0.json" with { type: "json" };
93
- import checkInPhaseSot from "./checkInPhase.v1.0.0.json" with { type: "json" };
93
+ import checkInPhaseSot from "./checkInPhase.v1.1.0.json" with { type: "json" };
94
94
  import childBehavioralConcernsSot from "./childBehavioralConcerns.v1.0.0.json" with { type: "json" };
95
95
  import childCustodyArrangementSot from "./childCustodyArrangement.v1.0.0.json" with { type: "json" };
96
96
  import daIncidentArchiveReasonSot from "./daIncidentArchiveReason.v1.0.0.json" with { type: "json" };
@@ -138,6 +138,62 @@ import threadTypeSot from "./threadType.v1.0.0.json" with { type: "json" };
138
138
  import signatureTypeSot from "./signatureType.v1.0.0.json" with { type: "json" };
139
139
  import verificationStatusSot from "./verificationStatus.v1.0.0.json" with { type: "json" };
140
140
  import visaTypeSot from "./visaType.v1.0.0.json" with { type: "json" };
141
+ import livingSituationSot from "./livingSituation.v1.0.0.json" with { type: "json" };
142
+ import serviceAudienceSot from "./serviceAudience.v1.0.0.json" with { type: "json" };
143
+ import hmisRelationshipToHohSot from "./hmisRelationshipToHoh.v1.0.0.json" with { type: "json" };
144
+ import victimAbuseTypesSot from "./victimAbuseTypes.v1.0.0.json" with { type: "json" };
145
+ import htTypeSot from "./htType.v1.0.0.json" with { type: "json" };
146
+ import relationshipConcernSot from "./relationshipConcern.v1.0.0.json" with { type: "json" };
147
+ import recencyBandSot from "./recencyBand.v1.0.0.json" with { type: "json" };
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" };
156
+ import riskCategorySot from "./riskCategory.v1.0.0.json" with { type: "json" };
157
+ import coreFunctionsSot from "./coreFunctions.v1.0.0.json" with { type: "json" };
158
+ import needsAssessmentChangeTypeSot from "./needsAssessmentChangeType.v1.0.0.json" with { type: "json" };
159
+ import roiScopeSot from "./roiScope.v1.0.0.json" with { type: "json" };
160
+ import roiStatusSot from "./roiStatus.v1.0.0.json" with { type: "json" };
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
+ // Trunk-only domain (CVC-67) authored on `kl-develop` and never seen by the
191
+ // canonical 0.8.13 line. It shipped as an orphan JSON — the file existed but
192
+ // was never wired into this barrel, so nothing could import it. Wired in here
193
+ // so the drift gate's "every SOT JSON is exported + validated" assertion holds
194
+ // across the merged tree. Coexists with the `CVC_67_HMIS_SEX` constants in
195
+ // `../constants/ic.ts`; the JSON is the SOT, the constants are the legacy view.
196
+ import hmisSexSot from "./hmisSex.v1.0.0.json" with { type: "json" };
141
197
 
142
198
  export {
143
199
  serviceCategoriesSot,
@@ -259,4 +315,53 @@ export {
259
315
  signatureTypeSot,
260
316
  verificationStatusSot,
261
317
  visaTypeSot,
318
+ livingSituationSot,
319
+ serviceAudienceSot,
320
+ hmisRelationshipToHohSot,
321
+ victimAbuseTypesSot,
322
+ htTypeSot,
323
+ relationshipConcernSot,
324
+ recencyBandSot,
325
+ housingSubsidyTypesSot,
326
+ specialNeedsDisabilitiesSot,
327
+ hivStatusSot,
328
+ mentalHealthStatusSot,
329
+ childChangeTypeSot,
330
+ immigrationLegalStatusChangeTypeSot,
331
+ programEnrollmentChangeTypeSot,
332
+ romanticRelationshipChangeTypeSot,
333
+ riskCategorySot,
334
+ coreFunctionsSot,
335
+ needsAssessmentChangeTypeSot,
336
+ roiScopeSot,
337
+ roiStatusSot,
338
+ coreReferralOutcomeSot,
339
+ coreIndicatorsSot,
340
+ coreDhStateSot,
341
+ riskSeverityBandSot,
342
+ adminRolesSot,
343
+ userRolesSot,
344
+ hmisCurrentLivingSituationSot,
345
+ juvenileJusticeEpisodeTypeSot,
346
+ incarcerationEpisodeTypeSot,
347
+ exploitationTypeSot,
348
+ sourceSystemSot,
349
+ sourceInstrumentSot,
350
+ poPetitionBasisSot,
351
+ poStatusSot,
352
+ poViolationStatusSot,
353
+ sessionTemplateSot,
354
+ serviceDeliveryChannelSot,
355
+ whyNotsSot,
356
+ citizenshipSot,
357
+ traffickingRelevantRoleSot,
358
+ activityTypeSot,
359
+ assertionDomainSot,
360
+ contactLinkTypeSot,
361
+ provenanceSourceIdSot,
362
+ radiusBucketSot,
363
+ roiMethodSot,
364
+ sessionNoteVisibilitySot,
365
+ suggestionSourceSot,
366
+ hmisSexSot,
262
367
  };
@@ -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
  }