@htilabs/platform-common-models 0.2.0-beta.4 → 0.4.0-beta.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 (74) hide show
  1. package/README.md +38 -0
  2. package/dist/constants/index.cjs +0 -843
  3. package/dist/constants/index.cjs.map +1 -1
  4. package/dist/constants/index.d.cts +146 -5
  5. package/dist/constants/index.d.ts +146 -5
  6. package/dist/constants/index.js +0 -786
  7. package/dist/constants/index.js.map +1 -1
  8. package/dist/{platform-role-AHv1l5Og.d.cts → cvcEntry-wqktWfzE.d.cts} +231 -37
  9. package/dist/{platform-role-AHv1l5Og.d.ts → cvcEntry-wqktWfzE.d.ts} +231 -37
  10. package/dist/cvcs/index.cjs +2350 -0
  11. package/dist/cvcs/index.cjs.map +1 -0
  12. package/dist/cvcs/index.d.cts +2449 -0
  13. package/dist/cvcs/index.d.ts +2449 -0
  14. package/dist/cvcs/index.js +2321 -0
  15. package/dist/cvcs/index.js.map +1 -0
  16. package/dist/index--NCIPluF.d.cts +378 -0
  17. package/dist/index-CFOrHA8l.d.ts +378 -0
  18. package/dist/index.cjs +3132 -843
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +217 -3
  21. package/dist/index.d.ts +217 -3
  22. package/dist/index.js +3106 -786
  23. package/dist/index.js.map +1 -1
  24. package/dist/models/index.cjs +212 -0
  25. package/dist/models/index.cjs.map +1 -1
  26. package/dist/models/index.d.cts +3 -292
  27. package/dist/models/index.d.ts +3 -292
  28. package/dist/models/index.js +210 -0
  29. package/dist/models/index.js.map +1 -1
  30. package/dist/{platform-auth-BTbQIY3b.d.cts → platform-auth-C-G2qeGM.d.cts} +1 -297
  31. package/dist/{platform-auth-BTbQIY3b.d.ts → platform-auth-C-G2qeGM.d.ts} +1 -297
  32. package/dist/schemas/index.cjs +196 -729
  33. package/dist/schemas/index.cjs.map +1 -1
  34. package/dist/schemas/index.d.cts +11 -11
  35. package/dist/schemas/index.d.ts +11 -11
  36. package/dist/schemas/index.js +190 -729
  37. package/dist/schemas/index.js.map +1 -1
  38. package/dist/services/index.cjs +1443 -0
  39. package/dist/services/index.cjs.map +1 -0
  40. package/dist/services/index.d.cts +305 -0
  41. package/dist/services/index.d.ts +305 -0
  42. package/dist/services/index.js +1418 -0
  43. package/dist/services/index.js.map +1 -0
  44. package/dist/types/index.d.cts +2 -2
  45. package/dist/types/index.d.ts +2 -2
  46. package/dist/validation/index.cjs +254 -0
  47. package/dist/validation/index.cjs.map +1 -0
  48. package/dist/validation/index.d.cts +252 -0
  49. package/dist/validation/index.d.ts +252 -0
  50. package/dist/validation/index.js +221 -0
  51. package/dist/validation/index.js.map +1 -0
  52. package/package.json +36 -12
  53. package/src/__tests__/__snapshots__/cvc-sot.snap +18 -0
  54. package/src/__tests__/cvc-sot-snapshot.test.ts +184 -0
  55. package/src/__tests__/cvc-structural.test.ts +129 -0
  56. package/src/constants/ic.ts +0 -925
  57. package/src/constants/service-catalog.ts +146 -4
  58. package/src/cvcs/index.ts +30 -0
  59. package/src/cvcs/serviceCategories.v1.0.0.json +2077 -0
  60. package/src/cvcs/serviceMechanisms.v1.0.0.json +87 -0
  61. package/src/cvcs/serviceStates.v1.0.0.json +146 -0
  62. package/src/generated/cvc-enums.ts +213 -0
  63. package/src/index.ts +61 -1
  64. package/src/models/cvcEntryModel.ts +32 -0
  65. package/src/models/cvcRegistryModel.ts +35 -0
  66. package/src/models/index.ts +8 -0
  67. package/src/schemas/cvcEntry.ts +159 -0
  68. package/src/schemas/cvcRegistry.ts +150 -0
  69. package/src/schemas/index.ts +16 -0
  70. package/src/services/__tests__/cvcRegistryService.test.ts +614 -0
  71. package/src/services/cvcRegistryService.ts +729 -0
  72. package/src/services/index.ts +21 -0
  73. package/src/validation/cvc.ts +397 -0
  74. package/src/validation/index.ts +15 -0
package/dist/index.cjs CHANGED
@@ -62,11 +62,6 @@ __export(src_exports, {
62
62
  CVC_136_OPTIONS: () => CVC_136_OPTIONS,
63
63
  CVC_136_TYPE_TO_CATEGORY: () => CVC_136_TYPE_TO_CATEGORY,
64
64
  CVC_136_VALUES: () => CVC_136_VALUES,
65
- CVC_137_LABELS: () => CVC_137_LABELS,
66
- CVC_137_MISSINGNESS_VALUES: () => CVC_137_MISSINGNESS_VALUES,
67
- CVC_137_RECENCY_BAND: () => CVC_137_RECENCY_BAND,
68
- CVC_137_SELECTABLE_VALUES: () => CVC_137_SELECTABLE_VALUES,
69
- CVC_137_VALUES: () => CVC_137_VALUES,
70
65
  CVC_145_CATEGORY: () => CVC_145_CATEGORY,
71
66
  CVC_145_CATEGORY_LABELS: () => CVC_145_CATEGORY_LABELS,
72
67
  CVC_145_CATEGORY_ORDER: () => CVC_145_CATEGORY_ORDER,
@@ -82,12 +77,6 @@ __export(src_exports, {
82
77
  CVC_148_LABELS: () => CVC_148_LABELS,
83
78
  CVC_148_TRIBES: () => CVC_148_TRIBES,
84
79
  CVC_148_VALUES: () => CVC_148_VALUES,
85
- CVC_149_APP_DOMAINS: () => CVC_149_APP_DOMAINS,
86
- CVC_149_CONTACT_INFO_TYPE: () => CVC_149_CONTACT_INFO_TYPE,
87
- CVC_149_LABELS: () => CVC_149_LABELS,
88
- CVC_149_PRIMARY_TYPES: () => CVC_149_PRIMARY_TYPES,
89
- CVC_149_SOCIAL_DOMAINS: () => CVC_149_SOCIAL_DOMAINS,
90
- CVC_149_VALUES: () => CVC_149_VALUES,
91
80
  CVC_150_EYE_COLOR: () => CVC_150_EYE_COLOR,
92
81
  CVC_150_LABELS: () => CVC_150_LABELS,
93
82
  CVC_150_VALUES: () => CVC_150_VALUES,
@@ -100,11 +89,6 @@ __export(src_exports, {
100
89
  CVC_153_LABELS: () => CVC_153_LABELS,
101
90
  CVC_153_SMT_TYPE: () => CVC_153_SMT_TYPE,
102
91
  CVC_153_VALUES: () => CVC_153_VALUES,
103
- CVC_155_CONTACT_SAFETY_STATUS: () => CVC_155_CONTACT_SAFETY_STATUS,
104
- CVC_155_LABELS: () => CVC_155_LABELS,
105
- CVC_155_MISSINGNESS_VALUES: () => CVC_155_MISSINGNESS_VALUES,
106
- CVC_155_SELECTABLE_VALUES: () => CVC_155_SELECTABLE_VALUES,
107
- CVC_155_VALUES: () => CVC_155_VALUES,
108
92
  CVC_156_LABELS: () => CVC_156_LABELS,
109
93
  CVC_156_MARITAL_STATUS: () => CVC_156_MARITAL_STATUS,
110
94
  CVC_156_VALUES: () => CVC_156_VALUES,
@@ -157,55 +141,15 @@ __export(src_exports, {
157
141
  CVC_17_LEVEL_1_OPTIONS: () => CVC_17_LEVEL_1_OPTIONS,
158
142
  CVC_17_LEVEL_2_TRANSGENDER_OPTIONS: () => CVC_17_LEVEL_2_TRANSGENDER_OPTIONS,
159
143
  CVC_17_TRANSGENDER_VALUES: () => CVC_17_TRANSGENDER_VALUES,
160
- CVC_17_VALUES: () => CVC_17_VALUES,
161
144
  CVC_180_EDUCATION_LEVEL: () => CVC_180_EDUCATION_LEVEL,
162
145
  CVC_180_LABELS: () => CVC_180_LABELS,
163
146
  CVC_180_ORDINAL: () => CVC_180_ORDINAL,
164
147
  CVC_180_VALUES: () => CVC_180_VALUES,
165
148
  CVC_181_COUNTRIES: () => CVC_181_COUNTRIES,
166
149
  CVC_181_LABELS: () => CVC_181_LABELS,
167
- CVC_185_LABELS: () => CVC_185_LABELS,
168
- CVC_185_PREFERRED_CONTACT_METHOD: () => CVC_185_PREFERRED_CONTACT_METHOD,
169
- CVC_185_VALUES: () => CVC_185_VALUES,
170
- CVC_186_CENSUS_DIVISIONS: () => CVC_186_CENSUS_DIVISIONS,
171
- CVC_186_CENSUS_REGIONS: () => CVC_186_CENSUS_REGIONS,
172
- CVC_186_LABELS: () => CVC_186_LABELS,
173
- CVC_186_US_REGION: () => CVC_186_US_REGION,
174
- CVC_186_VALUES: () => CVC_186_VALUES,
175
- CVC_188_LABELS: () => CVC_188_LABELS,
176
- CVC_188_US_STATE: () => CVC_188_US_STATE,
177
- CVC_188_VALUES: () => CVC_188_VALUES,
178
- CVC_191_LABELS: () => CVC_191_LABELS,
179
- CVC_191_LOCATION_TYPE: () => CVC_191_LOCATION_TYPE,
180
- CVC_191_MISSINGNESS_VALUES: () => CVC_191_MISSINGNESS_VALUES,
181
- CVC_191_SELECTABLE_VALUES: () => CVC_191_SELECTABLE_VALUES,
182
- CVC_191_VALUES: () => CVC_191_VALUES,
183
- CVC_192_LABELS: () => CVC_192_LABELS,
184
- CVC_192_LIVING_SITUATION: () => CVC_192_LIVING_SITUATION,
185
- CVC_192_MISSINGNESS_VALUES: () => CVC_192_MISSINGNESS_VALUES,
186
- CVC_192_SELECTABLE_VALUES: () => CVC_192_SELECTABLE_VALUES,
187
- CVC_192_VALUES: () => CVC_192_VALUES,
188
- CVC_193_HMIS_LIVING_SITUATION: () => CVC_193_HMIS_LIVING_SITUATION,
189
- CVC_193_HOMELESS_VALUES: () => CVC_193_HOMELESS_VALUES,
190
- CVC_193_INSTITUTIONAL_VALUES: () => CVC_193_INSTITUTIONAL_VALUES,
191
- CVC_193_LABELS: () => CVC_193_LABELS,
192
- CVC_193_MISSINGNESS_VALUES: () => CVC_193_MISSINGNESS_VALUES,
193
- CVC_193_PERMANENT_VALUES: () => CVC_193_PERMANENT_VALUES,
194
- CVC_193_TEMPORARY_VALUES: () => CVC_193_TEMPORARY_VALUES,
195
- CVC_193_VALUES: () => CVC_193_VALUES,
196
- CVC_194_HOUSING_SUBSIDY_TYPE: () => CVC_194_HOUSING_SUBSIDY_TYPE,
197
- CVC_194_LABELS: () => CVC_194_LABELS,
198
- CVC_194_MISSINGNESS_VALUES: () => CVC_194_MISSINGNESS_VALUES,
199
- CVC_194_SELECTABLE_VALUES: () => CVC_194_SELECTABLE_VALUES,
200
- CVC_194_VALUES: () => CVC_194_VALUES,
201
150
  CVC_196_CHILD_WELFARE_EPISODE_TYPE: () => CVC_196_CHILD_WELFARE_EPISODE_TYPE,
202
151
  CVC_196_LABELS: () => CVC_196_LABELS,
203
152
  CVC_196_VALUES: () => CVC_196_VALUES,
204
- CVC_197_JUVENILE_JUSTICE_EPISODE: () => CVC_197_JUVENILE_JUSTICE_EPISODE,
205
- CVC_197_LABELS: () => CVC_197_LABELS,
206
- CVC_197_MISSINGNESS_VALUES: () => CVC_197_MISSINGNESS_VALUES,
207
- CVC_197_SELECTABLE_VALUES: () => CVC_197_SELECTABLE_VALUES,
208
- CVC_197_VALUES: () => CVC_197_VALUES,
209
153
  CVC_1_LABELS: () => CVC_1_LABELS,
210
154
  CVC_1_NAME_TYPE: () => CVC_1_NAME_TYPE,
211
155
  CVC_1_STRUCTURED_NAME_TYPES: () => CVC_1_STRUCTURED_NAME_TYPES,
@@ -215,7 +159,6 @@ __export(src_exports, {
215
159
  CVC_67_LABELS: () => CVC_67_LABELS,
216
160
  CVC_67_MISSINGNESS_VALUES: () => CVC_67_MISSINGNESS_VALUES,
217
161
  CVC_67_SELECTABLE_VALUES: () => CVC_67_SELECTABLE_VALUES,
218
- CVC_67_VALUES: () => CVC_67_VALUES,
219
162
  CVC_72_HT_TYPE: () => CVC_72_HT_TYPE,
220
163
  CVC_72_LABELS: () => CVC_72_LABELS,
221
164
  CVC_72_VALUES: () => CVC_72_VALUES,
@@ -240,6 +183,11 @@ __export(src_exports, {
240
183
  CVC_99_ENGLISH_PROFICIENCY: () => CVC_99_ENGLISH_PROFICIENCY,
241
184
  CVC_99_LABELS: () => CVC_99_LABELS,
242
185
  CVC_99_VALUES: () => CVC_99_VALUES,
186
+ CvcCodeSchema: () => CvcCodeSchema,
187
+ CvcEntrySchema: () => CvcEntrySchema,
188
+ CvcEnvelopeSchema: () => CvcEnvelopeSchema,
189
+ CvcKeySchema: () => CvcKeySchema,
190
+ CvcRegistryService: () => CvcRegistryService,
243
191
  DATA_QUALITY: () => DATA_QUALITY,
244
192
  DATA_QUALITY_DESCRIPTIONS: () => DATA_QUALITY_DESCRIPTIONS,
245
193
  DATA_QUALITY_LABELS: () => DATA_QUALITY_LABELS,
@@ -346,20 +294,37 @@ __export(src_exports, {
346
294
  SHARE_VIEW_VALUES: () => SHARE_VIEW_VALUES,
347
295
  SUBMISSION_STATES: () => SUBMISSION_STATES,
348
296
  SUBMISSION_STATE_LABELS: () => SUBMISSION_STATE_LABELS,
297
+ ServiceCategoryEntrySchema: () => ServiceCategoryEntrySchema,
298
+ ServiceCategoryKeys: () => ServiceCategoryKeys,
299
+ ServiceMechanismKeys: () => ServiceMechanismKeys,
300
+ ServiceStateKeys: () => ServiceStateKeys,
349
301
  THREAD_INVOLVEMENT_ROLES: () => THREAD_INVOLVEMENT_ROLES,
350
302
  USER_STATUS: () => USER_STATUS,
351
303
  USER_STATUS_LABELS: () => USER_STATUS_LABELS,
352
304
  VALID_INTERACTION_TYPES: () => VALID_INTERACTION_TYPES,
353
305
  VALID_RECORD_STATES: () => VALID_RECORD_STATES,
354
306
  addressSchema: () => addressSchema,
307
+ applyEntryOverrides: () => applyEntryOverrides,
308
+ buildCvcEntrySchema: () => buildCvcEntrySchema,
309
+ buildCvcRegistrySchema: () => buildCvcRegistrySchema,
355
310
  buildFormSchema: () => buildFormSchema,
356
311
  buildPlatformFunctionSchema: () => buildPlatformFunctionSchema,
357
312
  buildPlatformRoleSchema: () => buildPlatformRoleSchema,
358
313
  buildQuestionSchema: () => buildQuestionSchema,
359
314
  buildScoringRuleSchema: () => buildScoringRuleSchema,
360
315
  buildSectionSchema: () => buildSectionSchema,
316
+ cascadeExclusions: () => cascadeExclusions,
361
317
  choiceSchema: () => choiceSchema,
318
+ compileCvcEntryModel: () => compileModel8,
319
+ compileCvcRegistryModel: () => compileModel7,
362
320
  createPlatformModels: () => createPlatformModels,
321
+ cvcEntryModel: () => cvcEntryModel_exports,
322
+ cvcEntrySchemaDefinition: () => cvcEntrySchemaDefinition,
323
+ cvcEntrySchemaOptions: () => cvcEntrySchemaOptions,
324
+ cvcRegistryModel: () => cvcRegistryModel_exports,
325
+ cvcRegistrySchemaDefinition: () => cvcRegistrySchemaDefinition,
326
+ cvcRegistrySchemaOptions: () => cvcRegistrySchemaOptions,
327
+ cvcVersionsToRecord: () => cvcVersionsToRecord,
363
328
  demographicsSchema: () => demographicsSchema,
364
329
  deriveAgeBinFromAge: () => deriveAgeBinFromAge,
365
330
  emailSchema: () => emailSchema,
@@ -398,6 +363,7 @@ __export(src_exports, {
398
363
  questionModel: () => questionModel_exports,
399
364
  questionSchemaDefinition: () => questionSchemaDefinition,
400
365
  questionSchemaOptions: () => questionSchemaOptions,
366
+ resolveRegistryWithInheritance: () => resolveRegistryWithInheritance,
401
367
  scoringConditionSchema: () => scoringConditionSchema,
402
368
  scoringRecommendationSchema: () => scoringRecommendationSchema,
403
369
  scoringRuleModel: () => scoringRuleModel_exports,
@@ -408,6 +374,9 @@ __export(src_exports, {
408
374
  sectionQuestionRefSchema: () => sectionQuestionRefSchema,
409
375
  sectionSchemaDefinition: () => sectionSchemaDefinition,
410
376
  sectionSchemaOptions: () => sectionSchemaOptions,
377
+ serviceCategoriesSot: () => serviceCategories_v1_0_0_default,
378
+ serviceMechanismsSot: () => serviceMechanisms_v1_0_0_default,
379
+ serviceStatesSot: () => serviceStates_v1_0_0_default,
411
380
  sortRelationshipsByPriority: () => sortRelationshipsByPriority,
412
381
  visibilityRuleSchema: () => visibilityRuleSchema
413
382
  });
@@ -1459,16 +1428,6 @@ function isTransgenderGenderIdentity(value) {
1459
1428
  if (!value) return false;
1460
1429
  return CVC_17_TRANSGENDER_VALUES.includes(value);
1461
1430
  }
1462
- var CVC_17_VALUES = [
1463
- CVC_17_CORE_GENDER_IDENTITY.MALE,
1464
- CVC_17_CORE_GENDER_IDENTITY.FEMALE,
1465
- CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER,
1466
- CVC_17_CORE_GENDER_IDENTITY.NON_BINARY,
1467
- CVC_17_CORE_GENDER_IDENTITY.OTHER,
1468
- CVC_17_CORE_GENDER_IDENTITY.UNKNOWN,
1469
- CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_FTM,
1470
- CVC_17_CORE_GENDER_IDENTITY.TRANSGENDER_MTF
1471
- ];
1472
1431
  var IC_24_RACE = {
1473
1432
  AMERICAN_INDIAN_ALASKA_NATIVE: 1,
1474
1433
  ASIAN: 2,
@@ -4385,725 +4344,6 @@ var CVC_67_SELECTABLE_VALUES = [
4385
4344
  var CVC_67_MISSINGNESS_VALUES = [
4386
4345
  CVC_67_HMIS_SEX.DATA_NOT_COLLECTED
4387
4346
  ];
4388
- var CVC_67_VALUES = [
4389
- CVC_67_HMIS_SEX.MALE,
4390
- CVC_67_HMIS_SEX.FEMALE,
4391
- CVC_67_HMIS_SEX.CLIENT_PREFERS_NOT_TO_ANSWER,
4392
- CVC_67_HMIS_SEX.CLIENT_DOESNT_KNOW,
4393
- CVC_67_HMIS_SEX.DATA_NOT_COLLECTED
4394
- ];
4395
- var CVC_137_RECENCY_BAND = {
4396
- // Primary recency values
4397
- WITHIN_3_MONTHS: "W3M",
4398
- MONTHS_3_TO_6: "M3_6",
4399
- MONTHS_6_TO_12: "M6_12",
4400
- ONE_YEAR_OR_MORE: "Y1P",
4401
- LESS_THAN_3_YEARS: "YLT3",
4402
- YEARS_3_TO_10: "Y3_10",
4403
- TEN_PLUS_YEARS: "Y10P",
4404
- // Missingness values
4405
- UNKNOWN: "UNK",
4406
- DATA_NOT_COLLECTED: "DNC",
4407
- ANONYMOUS: "ANON",
4408
- PREFERS_NOT_TO_ANSWER: "PNA"
4409
- };
4410
- var CVC_137_LABELS = {
4411
- [CVC_137_RECENCY_BAND.WITHIN_3_MONTHS]: "Within past 3 months",
4412
- [CVC_137_RECENCY_BAND.MONTHS_3_TO_6]: "3-6 months ago",
4413
- [CVC_137_RECENCY_BAND.MONTHS_6_TO_12]: "6-12 months ago",
4414
- [CVC_137_RECENCY_BAND.ONE_YEAR_OR_MORE]: "One year or more",
4415
- [CVC_137_RECENCY_BAND.LESS_THAN_3_YEARS]: "Less than 3 years ago",
4416
- [CVC_137_RECENCY_BAND.YEARS_3_TO_10]: "3-10 years ago",
4417
- [CVC_137_RECENCY_BAND.TEN_PLUS_YEARS]: "10+ years ago",
4418
- [CVC_137_RECENCY_BAND.UNKNOWN]: "Unknown",
4419
- [CVC_137_RECENCY_BAND.DATA_NOT_COLLECTED]: "Data not collected",
4420
- [CVC_137_RECENCY_BAND.ANONYMOUS]: "Anonymous",
4421
- [CVC_137_RECENCY_BAND.PREFERS_NOT_TO_ANSWER]: "Client prefers not to answer"
4422
- };
4423
- var CVC_137_VALUES = [
4424
- CVC_137_RECENCY_BAND.WITHIN_3_MONTHS,
4425
- CVC_137_RECENCY_BAND.MONTHS_3_TO_6,
4426
- CVC_137_RECENCY_BAND.MONTHS_6_TO_12,
4427
- CVC_137_RECENCY_BAND.ONE_YEAR_OR_MORE,
4428
- CVC_137_RECENCY_BAND.LESS_THAN_3_YEARS,
4429
- CVC_137_RECENCY_BAND.YEARS_3_TO_10,
4430
- CVC_137_RECENCY_BAND.TEN_PLUS_YEARS,
4431
- CVC_137_RECENCY_BAND.UNKNOWN,
4432
- CVC_137_RECENCY_BAND.DATA_NOT_COLLECTED,
4433
- CVC_137_RECENCY_BAND.ANONYMOUS,
4434
- CVC_137_RECENCY_BAND.PREFERS_NOT_TO_ANSWER
4435
- ];
4436
- var CVC_137_SELECTABLE_VALUES = [
4437
- CVC_137_RECENCY_BAND.WITHIN_3_MONTHS,
4438
- CVC_137_RECENCY_BAND.MONTHS_3_TO_6,
4439
- CVC_137_RECENCY_BAND.MONTHS_6_TO_12,
4440
- CVC_137_RECENCY_BAND.ONE_YEAR_OR_MORE,
4441
- CVC_137_RECENCY_BAND.LESS_THAN_3_YEARS,
4442
- CVC_137_RECENCY_BAND.YEARS_3_TO_10,
4443
- CVC_137_RECENCY_BAND.TEN_PLUS_YEARS
4444
- ];
4445
- var CVC_137_MISSINGNESS_VALUES = [
4446
- CVC_137_RECENCY_BAND.UNKNOWN,
4447
- CVC_137_RECENCY_BAND.DATA_NOT_COLLECTED,
4448
- CVC_137_RECENCY_BAND.ANONYMOUS,
4449
- CVC_137_RECENCY_BAND.PREFERS_NOT_TO_ANSWER
4450
- ];
4451
- var CVC_197_JUVENILE_JUSTICE_EPISODE = {
4452
- DIVERSION_PROGRAM: "diversion_program",
4453
- PROBATION_SUPERVISION: "probation_supervision",
4454
- PENDING_ADJUDICATION: "pending_adjudication",
4455
- DETENTION_STAY: "detention_stay",
4456
- RESIDENTIAL_JJ_PLACEMENT: "residential_jj_placement",
4457
- // Missingness values
4458
- DATA_NOT_COLLECTED: "DNC",
4459
- UNKNOWN: "UNK",
4460
- ANONYMOUS: "ANON"
4461
- };
4462
- var CVC_197_LABELS = {
4463
- [CVC_197_JUVENILE_JUSTICE_EPISODE.DIVERSION_PROGRAM]: "Diversion program",
4464
- [CVC_197_JUVENILE_JUSTICE_EPISODE.PROBATION_SUPERVISION]: "Probation supervision",
4465
- [CVC_197_JUVENILE_JUSTICE_EPISODE.PENDING_ADJUDICATION]: "Pending adjudication",
4466
- [CVC_197_JUVENILE_JUSTICE_EPISODE.DETENTION_STAY]: "Detention stay",
4467
- [CVC_197_JUVENILE_JUSTICE_EPISODE.RESIDENTIAL_JJ_PLACEMENT]: "Residential JJ placement",
4468
- [CVC_197_JUVENILE_JUSTICE_EPISODE.DATA_NOT_COLLECTED]: "Data not collected",
4469
- [CVC_197_JUVENILE_JUSTICE_EPISODE.UNKNOWN]: "Unknown",
4470
- [CVC_197_JUVENILE_JUSTICE_EPISODE.ANONYMOUS]: "Anonymous"
4471
- };
4472
- var CVC_197_VALUES = [
4473
- CVC_197_JUVENILE_JUSTICE_EPISODE.DIVERSION_PROGRAM,
4474
- CVC_197_JUVENILE_JUSTICE_EPISODE.PROBATION_SUPERVISION,
4475
- CVC_197_JUVENILE_JUSTICE_EPISODE.PENDING_ADJUDICATION,
4476
- CVC_197_JUVENILE_JUSTICE_EPISODE.DETENTION_STAY,
4477
- CVC_197_JUVENILE_JUSTICE_EPISODE.RESIDENTIAL_JJ_PLACEMENT,
4478
- CVC_197_JUVENILE_JUSTICE_EPISODE.DATA_NOT_COLLECTED,
4479
- CVC_197_JUVENILE_JUSTICE_EPISODE.UNKNOWN,
4480
- CVC_197_JUVENILE_JUSTICE_EPISODE.ANONYMOUS
4481
- ];
4482
- var CVC_197_SELECTABLE_VALUES = [
4483
- CVC_197_JUVENILE_JUSTICE_EPISODE.DIVERSION_PROGRAM,
4484
- CVC_197_JUVENILE_JUSTICE_EPISODE.PROBATION_SUPERVISION,
4485
- CVC_197_JUVENILE_JUSTICE_EPISODE.PENDING_ADJUDICATION,
4486
- CVC_197_JUVENILE_JUSTICE_EPISODE.DETENTION_STAY,
4487
- CVC_197_JUVENILE_JUSTICE_EPISODE.RESIDENTIAL_JJ_PLACEMENT
4488
- ];
4489
- var CVC_197_MISSINGNESS_VALUES = [
4490
- CVC_197_JUVENILE_JUSTICE_EPISODE.DATA_NOT_COLLECTED,
4491
- CVC_197_JUVENILE_JUSTICE_EPISODE.UNKNOWN,
4492
- CVC_197_JUVENILE_JUSTICE_EPISODE.ANONYMOUS
4493
- ];
4494
- var CVC_149_CONTACT_INFO_TYPE = {
4495
- // Primary types (level 1)
4496
- PHONE: "CONTACT_PHONE",
4497
- EMAIL: "CONTACT_EMAIL",
4498
- APP: "CONTACT_APP",
4499
- SOCIAL_MEDIA: "CONTACT_SOCIAL_MEDIA",
4500
- // App domains (level 2)
4501
- APP_CASHAPP: "CONTACT_APP_CASHAPP",
4502
- APP_KIK: "CONTACT_APP_KIK",
4503
- APP_PAYPAL: "CONTACT_APP_PAYPAL",
4504
- APP_VENMO: "CONTACT_APP_VENMO",
4505
- APP_WECHAT: "CONTACT_APP_WECHAT",
4506
- APP_WHATSAPP: "CONTACT_APP_WHATSAPP",
4507
- APP_OTHER: "CONTACT_APP_OTHER",
4508
- // Social media domains (level 2)
4509
- SOCIAL_FACEBOOK: "CONTACT_SOCIAL_FACEBOOK",
4510
- SOCIAL_INSTAGRAM: "CONTACT_SOCIAL_INSTAGRAM",
4511
- SOCIAL_ONLYFANS: "CONTACT_SOCIAL_ONLYFANS",
4512
- SOCIAL_REDDIT: "CONTACT_SOCIAL_REDDIT",
4513
- SOCIAL_SNAPCHAT: "CONTACT_SOCIAL_SNAPCHAT",
4514
- SOCIAL_TIKTOK: "CONTACT_SOCIAL_TIKTOK",
4515
- SOCIAL_X: "CONTACT_SOCIAL_X",
4516
- SOCIAL_YOUTUBE: "CONTACT_SOCIAL_YOUTUBE",
4517
- SOCIAL_OTHER: "CONTACT_SOCIAL_OTHER"
4518
- };
4519
- var CVC_149_LABELS = {
4520
- [CVC_149_CONTACT_INFO_TYPE.PHONE]: "Phone",
4521
- [CVC_149_CONTACT_INFO_TYPE.EMAIL]: "Email",
4522
- [CVC_149_CONTACT_INFO_TYPE.APP]: "App (messaging/payment/other)",
4523
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_MEDIA]: "Social Media",
4524
- [CVC_149_CONTACT_INFO_TYPE.APP_CASHAPP]: "App \u2014 Cash App",
4525
- [CVC_149_CONTACT_INFO_TYPE.APP_KIK]: "App \u2014 Kik",
4526
- [CVC_149_CONTACT_INFO_TYPE.APP_PAYPAL]: "App \u2014 PayPal",
4527
- [CVC_149_CONTACT_INFO_TYPE.APP_VENMO]: "App \u2014 Venmo",
4528
- [CVC_149_CONTACT_INFO_TYPE.APP_WECHAT]: "App \u2014 WeChat",
4529
- [CVC_149_CONTACT_INFO_TYPE.APP_WHATSAPP]: "App \u2014 WhatsApp",
4530
- [CVC_149_CONTACT_INFO_TYPE.APP_OTHER]: "App \u2014 Other",
4531
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_FACEBOOK]: "Social Media \u2014 Facebook",
4532
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_INSTAGRAM]: "Social Media \u2014 Instagram",
4533
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_ONLYFANS]: "Social Media \u2014 OnlyFans",
4534
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_REDDIT]: "Social Media \u2014 Reddit",
4535
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_SNAPCHAT]: "Social Media \u2014 Snapchat",
4536
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_TIKTOK]: "Social Media \u2014 TikTok",
4537
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_X]: "Social Media \u2014 X",
4538
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_YOUTUBE]: "Social Media \u2014 YouTube",
4539
- [CVC_149_CONTACT_INFO_TYPE.SOCIAL_OTHER]: "Social Media \u2014 Other"
4540
- };
4541
- var CVC_149_PRIMARY_TYPES = [
4542
- CVC_149_CONTACT_INFO_TYPE.PHONE,
4543
- CVC_149_CONTACT_INFO_TYPE.EMAIL,
4544
- CVC_149_CONTACT_INFO_TYPE.APP,
4545
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_MEDIA
4546
- ];
4547
- var CVC_149_APP_DOMAINS = [
4548
- CVC_149_CONTACT_INFO_TYPE.APP_CASHAPP,
4549
- CVC_149_CONTACT_INFO_TYPE.APP_KIK,
4550
- CVC_149_CONTACT_INFO_TYPE.APP_PAYPAL,
4551
- CVC_149_CONTACT_INFO_TYPE.APP_VENMO,
4552
- CVC_149_CONTACT_INFO_TYPE.APP_WECHAT,
4553
- CVC_149_CONTACT_INFO_TYPE.APP_WHATSAPP,
4554
- CVC_149_CONTACT_INFO_TYPE.APP_OTHER
4555
- ];
4556
- var CVC_149_SOCIAL_DOMAINS = [
4557
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_FACEBOOK,
4558
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_INSTAGRAM,
4559
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_ONLYFANS,
4560
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_REDDIT,
4561
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_SNAPCHAT,
4562
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_TIKTOK,
4563
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_X,
4564
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_YOUTUBE,
4565
- CVC_149_CONTACT_INFO_TYPE.SOCIAL_OTHER
4566
- ];
4567
- var CVC_149_VALUES = [
4568
- ...CVC_149_PRIMARY_TYPES,
4569
- ...CVC_149_APP_DOMAINS,
4570
- ...CVC_149_SOCIAL_DOMAINS
4571
- ];
4572
- var CVC_155_CONTACT_SAFETY_STATUS = {
4573
- SAFE: "safe",
4574
- NOT_SAFE: "not_safe",
4575
- UNKNOWN: "UNK",
4576
- DATA_NOT_COLLECTED: "DNC",
4577
- ANONYMOUS: "ANON"
4578
- };
4579
- var CVC_155_LABELS = {
4580
- [CVC_155_CONTACT_SAFETY_STATUS.SAFE]: "Safe",
4581
- [CVC_155_CONTACT_SAFETY_STATUS.NOT_SAFE]: "Not safe",
4582
- [CVC_155_CONTACT_SAFETY_STATUS.UNKNOWN]: "Unknown",
4583
- [CVC_155_CONTACT_SAFETY_STATUS.DATA_NOT_COLLECTED]: "Data not collected",
4584
- [CVC_155_CONTACT_SAFETY_STATUS.ANONYMOUS]: "Anonymous"
4585
- };
4586
- var CVC_155_VALUES = [
4587
- CVC_155_CONTACT_SAFETY_STATUS.SAFE,
4588
- CVC_155_CONTACT_SAFETY_STATUS.NOT_SAFE,
4589
- CVC_155_CONTACT_SAFETY_STATUS.UNKNOWN,
4590
- CVC_155_CONTACT_SAFETY_STATUS.DATA_NOT_COLLECTED,
4591
- CVC_155_CONTACT_SAFETY_STATUS.ANONYMOUS
4592
- ];
4593
- var CVC_155_SELECTABLE_VALUES = [
4594
- CVC_155_CONTACT_SAFETY_STATUS.SAFE,
4595
- CVC_155_CONTACT_SAFETY_STATUS.NOT_SAFE
4596
- ];
4597
- var CVC_155_MISSINGNESS_VALUES = [
4598
- CVC_155_CONTACT_SAFETY_STATUS.UNKNOWN,
4599
- CVC_155_CONTACT_SAFETY_STATUS.DATA_NOT_COLLECTED,
4600
- CVC_155_CONTACT_SAFETY_STATUS.ANONYMOUS
4601
- ];
4602
- var CVC_185_PREFERRED_CONTACT_METHOD = {
4603
- CALL: "call",
4604
- TEXT: "text",
4605
- EMAIL: "email",
4606
- MESSAGING_APP: "messaging_app_dm"
4607
- };
4608
- var CVC_185_LABELS = {
4609
- [CVC_185_PREFERRED_CONTACT_METHOD.CALL]: "Call (voice)",
4610
- [CVC_185_PREFERRED_CONTACT_METHOD.TEXT]: "Text (SMS)",
4611
- [CVC_185_PREFERRED_CONTACT_METHOD.EMAIL]: "Email",
4612
- [CVC_185_PREFERRED_CONTACT_METHOD.MESSAGING_APP]: "Messaging app DM"
4613
- };
4614
- var CVC_185_VALUES = [
4615
- CVC_185_PREFERRED_CONTACT_METHOD.CALL,
4616
- CVC_185_PREFERRED_CONTACT_METHOD.TEXT,
4617
- CVC_185_PREFERRED_CONTACT_METHOD.EMAIL,
4618
- CVC_185_PREFERRED_CONTACT_METHOD.MESSAGING_APP
4619
- ];
4620
- var CVC_186_US_REGION = {
4621
- // Census Regions (4)
4622
- NORTHEAST: "CEN-REG-NE",
4623
- MIDWEST: "CEN-REG-MW",
4624
- SOUTH: "CEN-REG-S",
4625
- WEST: "CEN-REG-W",
4626
- // Census Divisions (9)
4627
- NEW_ENGLAND: "CEN-DIV-NE",
4628
- MIDDLE_ATLANTIC: "CEN-DIV-MA",
4629
- EAST_NORTH_CENTRAL: "CEN-DIV-ENC",
4630
- WEST_NORTH_CENTRAL: "CEN-DIV-WNC",
4631
- SOUTH_ATLANTIC: "CEN-DIV-SA",
4632
- EAST_SOUTH_CENTRAL: "CEN-DIV-ESC",
4633
- WEST_SOUTH_CENTRAL: "CEN-DIV-WSC",
4634
- MOUNTAIN: "CEN-DIV-MTN",
4635
- PACIFIC: "CEN-DIV-PAC",
4636
- // Alternative regional groupings (REG-1 through REG-10)
4637
- REG_NEW_ENGLAND: "REG-1",
4638
- REG_MID_ATLANTIC: "REG-2",
4639
- REG_MIDWEST_EAST: "REG-3",
4640
- REG_MIDWEST_WEST: "REG-4",
4641
- REG_SOUTHEAST: "REG-5",
4642
- REG_SOUTHWEST: "REG-6",
4643
- REG_MOUNTAIN_WEST: "REG-7",
4644
- REG_PACIFIC: "REG-8",
4645
- REG_ALASKA: "REG-9",
4646
- REG_HAWAII: "REG-10"
4647
- };
4648
- var CVC_186_LABELS = {
4649
- [CVC_186_US_REGION.NORTHEAST]: "Northeast",
4650
- [CVC_186_US_REGION.MIDWEST]: "Midwest",
4651
- [CVC_186_US_REGION.SOUTH]: "South",
4652
- [CVC_186_US_REGION.WEST]: "West",
4653
- [CVC_186_US_REGION.NEW_ENGLAND]: "New England",
4654
- [CVC_186_US_REGION.MIDDLE_ATLANTIC]: "Middle Atlantic",
4655
- [CVC_186_US_REGION.EAST_NORTH_CENTRAL]: "East North Central",
4656
- [CVC_186_US_REGION.WEST_NORTH_CENTRAL]: "West North Central",
4657
- [CVC_186_US_REGION.SOUTH_ATLANTIC]: "South Atlantic",
4658
- [CVC_186_US_REGION.EAST_SOUTH_CENTRAL]: "East South Central",
4659
- [CVC_186_US_REGION.WEST_SOUTH_CENTRAL]: "West South Central",
4660
- [CVC_186_US_REGION.MOUNTAIN]: "Mountain",
4661
- [CVC_186_US_REGION.PACIFIC]: "Pacific",
4662
- [CVC_186_US_REGION.REG_NEW_ENGLAND]: "New England",
4663
- [CVC_186_US_REGION.REG_MID_ATLANTIC]: "Mid-Atlantic",
4664
- [CVC_186_US_REGION.REG_MIDWEST_EAST]: "Midwest - East",
4665
- [CVC_186_US_REGION.REG_MIDWEST_WEST]: "Midwest - West",
4666
- [CVC_186_US_REGION.REG_SOUTHEAST]: "Southeast",
4667
- [CVC_186_US_REGION.REG_SOUTHWEST]: "Southwest",
4668
- [CVC_186_US_REGION.REG_MOUNTAIN_WEST]: "Mountain West",
4669
- [CVC_186_US_REGION.REG_PACIFIC]: "Pacific",
4670
- [CVC_186_US_REGION.REG_ALASKA]: "Alaska",
4671
- [CVC_186_US_REGION.REG_HAWAII]: "Hawaii"
4672
- };
4673
- var CVC_186_CENSUS_REGIONS = [
4674
- CVC_186_US_REGION.NORTHEAST,
4675
- CVC_186_US_REGION.MIDWEST,
4676
- CVC_186_US_REGION.SOUTH,
4677
- CVC_186_US_REGION.WEST
4678
- ];
4679
- var CVC_186_CENSUS_DIVISIONS = [
4680
- CVC_186_US_REGION.NEW_ENGLAND,
4681
- CVC_186_US_REGION.MIDDLE_ATLANTIC,
4682
- CVC_186_US_REGION.EAST_NORTH_CENTRAL,
4683
- CVC_186_US_REGION.WEST_NORTH_CENTRAL,
4684
- CVC_186_US_REGION.SOUTH_ATLANTIC,
4685
- CVC_186_US_REGION.EAST_SOUTH_CENTRAL,
4686
- CVC_186_US_REGION.WEST_SOUTH_CENTRAL,
4687
- CVC_186_US_REGION.MOUNTAIN,
4688
- CVC_186_US_REGION.PACIFIC
4689
- ];
4690
- var CVC_186_VALUES = Object.values(CVC_186_US_REGION);
4691
- var CVC_188_US_STATE = {
4692
- AL: "AL",
4693
- AK: "AK",
4694
- AZ: "AZ",
4695
- AR: "AR",
4696
- CA: "CA",
4697
- CO: "CO",
4698
- CT: "CT",
4699
- DE: "DE",
4700
- FL: "FL",
4701
- GA: "GA",
4702
- HI: "HI",
4703
- ID: "ID",
4704
- IL: "IL",
4705
- IN: "IN",
4706
- IA: "IA",
4707
- KS: "KS",
4708
- KY: "KY",
4709
- LA: "LA",
4710
- ME: "ME",
4711
- MD: "MD",
4712
- MA: "MA",
4713
- MI: "MI",
4714
- MN: "MN",
4715
- MS: "MS",
4716
- MO: "MO",
4717
- MT: "MT",
4718
- NE: "NE",
4719
- NV: "NV",
4720
- NH: "NH",
4721
- NJ: "NJ",
4722
- NM: "NM",
4723
- NY: "NY",
4724
- NC: "NC",
4725
- ND: "ND",
4726
- OH: "OH",
4727
- OK: "OK",
4728
- OR: "OR",
4729
- PA: "PA",
4730
- RI: "RI",
4731
- SC: "SC",
4732
- SD: "SD",
4733
- TN: "TN",
4734
- TX: "TX",
4735
- UT: "UT",
4736
- VT: "VT",
4737
- VA: "VA",
4738
- WA: "WA",
4739
- WV: "WV",
4740
- WI: "WI",
4741
- WY: "WY"
4742
- };
4743
- var CVC_188_LABELS = {
4744
- [CVC_188_US_STATE.AL]: "Alabama",
4745
- [CVC_188_US_STATE.AK]: "Alaska",
4746
- [CVC_188_US_STATE.AZ]: "Arizona",
4747
- [CVC_188_US_STATE.AR]: "Arkansas",
4748
- [CVC_188_US_STATE.CA]: "California",
4749
- [CVC_188_US_STATE.CO]: "Colorado",
4750
- [CVC_188_US_STATE.CT]: "Connecticut",
4751
- [CVC_188_US_STATE.DE]: "Delaware",
4752
- [CVC_188_US_STATE.FL]: "Florida",
4753
- [CVC_188_US_STATE.GA]: "Georgia",
4754
- [CVC_188_US_STATE.HI]: "Hawaii",
4755
- [CVC_188_US_STATE.ID]: "Idaho",
4756
- [CVC_188_US_STATE.IL]: "Illinois",
4757
- [CVC_188_US_STATE.IN]: "Indiana",
4758
- [CVC_188_US_STATE.IA]: "Iowa",
4759
- [CVC_188_US_STATE.KS]: "Kansas",
4760
- [CVC_188_US_STATE.KY]: "Kentucky",
4761
- [CVC_188_US_STATE.LA]: "Louisiana",
4762
- [CVC_188_US_STATE.ME]: "Maine",
4763
- [CVC_188_US_STATE.MD]: "Maryland",
4764
- [CVC_188_US_STATE.MA]: "Massachusetts",
4765
- [CVC_188_US_STATE.MI]: "Michigan",
4766
- [CVC_188_US_STATE.MN]: "Minnesota",
4767
- [CVC_188_US_STATE.MS]: "Mississippi",
4768
- [CVC_188_US_STATE.MO]: "Missouri",
4769
- [CVC_188_US_STATE.MT]: "Montana",
4770
- [CVC_188_US_STATE.NE]: "Nebraska",
4771
- [CVC_188_US_STATE.NV]: "Nevada",
4772
- [CVC_188_US_STATE.NH]: "New Hampshire",
4773
- [CVC_188_US_STATE.NJ]: "New Jersey",
4774
- [CVC_188_US_STATE.NM]: "New Mexico",
4775
- [CVC_188_US_STATE.NY]: "New York",
4776
- [CVC_188_US_STATE.NC]: "North Carolina",
4777
- [CVC_188_US_STATE.ND]: "North Dakota",
4778
- [CVC_188_US_STATE.OH]: "Ohio",
4779
- [CVC_188_US_STATE.OK]: "Oklahoma",
4780
- [CVC_188_US_STATE.OR]: "Oregon",
4781
- [CVC_188_US_STATE.PA]: "Pennsylvania",
4782
- [CVC_188_US_STATE.RI]: "Rhode Island",
4783
- [CVC_188_US_STATE.SC]: "South Carolina",
4784
- [CVC_188_US_STATE.SD]: "South Dakota",
4785
- [CVC_188_US_STATE.TN]: "Tennessee",
4786
- [CVC_188_US_STATE.TX]: "Texas",
4787
- [CVC_188_US_STATE.UT]: "Utah",
4788
- [CVC_188_US_STATE.VT]: "Vermont",
4789
- [CVC_188_US_STATE.VA]: "Virginia",
4790
- [CVC_188_US_STATE.WA]: "Washington",
4791
- [CVC_188_US_STATE.WV]: "West Virginia",
4792
- [CVC_188_US_STATE.WI]: "Wisconsin",
4793
- [CVC_188_US_STATE.WY]: "Wyoming"
4794
- };
4795
- var CVC_188_VALUES = Object.values(CVC_188_US_STATE);
4796
- var CVC_191_LOCATION_TYPE = {
4797
- // Core residence/location types
4798
- CURRENT_RESIDENCE: "CURR_RES",
4799
- CURRENT_LOCATION: "CURR_LOC",
4800
- PRIOR_RESIDENCE: "PRIOR_RES",
4801
- SERVICE_DELIVERY: "SRV_LOC",
4802
- MEET_CONTACT: "MEET_LOC",
4803
- JURISDICTION_ROUTING: "JURIS_ROUTE",
4804
- WORK_SCHOOL_BUSINESS: "WORK_SCH_BUS",
4805
- TRAVEL_STOP: "TRAVEL_STOP",
4806
- INCIDENT: "INCIDENT",
4807
- PROGRAM_PROJECT: "PROG_LOC",
4808
- // Derived/analytical location types
4809
- AD_LOCATION_DERIVED: "AD_LOC_DER",
4810
- IP_LOCATION_DERIVED: "IP_LOC_DER",
4811
- // Catch-all and missingness
4812
- OTHER: "OTHER",
4813
- UNKNOWN: "UNK",
4814
- DATA_NOT_COLLECTED: "DNC",
4815
- ANONYMOUS: "ANON"
4816
- };
4817
- var CVC_191_LABELS = {
4818
- [CVC_191_LOCATION_TYPE.CURRENT_RESIDENCE]: "Current residence",
4819
- [CVC_191_LOCATION_TYPE.CURRENT_LOCATION]: "Current client/victim location",
4820
- [CVC_191_LOCATION_TYPE.PRIOR_RESIDENCE]: "Prior residence",
4821
- [CVC_191_LOCATION_TYPE.SERVICE_DELIVERY]: "Service delivery location",
4822
- [CVC_191_LOCATION_TYPE.MEET_CONTACT]: "Meet / contact location",
4823
- [CVC_191_LOCATION_TYPE.JURISDICTION_ROUTING]: "Jurisdiction / routing location",
4824
- [CVC_191_LOCATION_TYPE.WORK_SCHOOL_BUSINESS]: "Work / school / business",
4825
- [CVC_191_LOCATION_TYPE.TRAVEL_STOP]: "Travel stop / visit",
4826
- [CVC_191_LOCATION_TYPE.INCIDENT]: "Incident",
4827
- [CVC_191_LOCATION_TYPE.PROGRAM_PROJECT]: "Program / project location (reporting)",
4828
- [CVC_191_LOCATION_TYPE.AD_LOCATION_DERIVED]: "Ad location (derived)",
4829
- [CVC_191_LOCATION_TYPE.IP_LOCATION_DERIVED]: "IP-derived location (derived)",
4830
- [CVC_191_LOCATION_TYPE.OTHER]: "Other",
4831
- [CVC_191_LOCATION_TYPE.UNKNOWN]: "Unknown",
4832
- [CVC_191_LOCATION_TYPE.DATA_NOT_COLLECTED]: "Data not collected",
4833
- [CVC_191_LOCATION_TYPE.ANONYMOUS]: "Anonymous"
4834
- };
4835
- var CVC_191_VALUES = Object.values(CVC_191_LOCATION_TYPE);
4836
- var CVC_191_SELECTABLE_VALUES = [
4837
- CVC_191_LOCATION_TYPE.CURRENT_RESIDENCE,
4838
- CVC_191_LOCATION_TYPE.CURRENT_LOCATION,
4839
- CVC_191_LOCATION_TYPE.PRIOR_RESIDENCE,
4840
- CVC_191_LOCATION_TYPE.SERVICE_DELIVERY,
4841
- CVC_191_LOCATION_TYPE.MEET_CONTACT,
4842
- CVC_191_LOCATION_TYPE.JURISDICTION_ROUTING,
4843
- CVC_191_LOCATION_TYPE.WORK_SCHOOL_BUSINESS,
4844
- CVC_191_LOCATION_TYPE.TRAVEL_STOP,
4845
- CVC_191_LOCATION_TYPE.INCIDENT,
4846
- CVC_191_LOCATION_TYPE.PROGRAM_PROJECT,
4847
- CVC_191_LOCATION_TYPE.AD_LOCATION_DERIVED,
4848
- CVC_191_LOCATION_TYPE.IP_LOCATION_DERIVED,
4849
- CVC_191_LOCATION_TYPE.OTHER
4850
- ];
4851
- var CVC_191_MISSINGNESS_VALUES = [
4852
- CVC_191_LOCATION_TYPE.UNKNOWN,
4853
- CVC_191_LOCATION_TYPE.DATA_NOT_COLLECTED,
4854
- CVC_191_LOCATION_TYPE.ANONYMOUS
4855
- ];
4856
- var CVC_192_LIVING_SITUATION = {
4857
- // Stable housing
4858
- OWN_RENT: "OWN_RENT",
4859
- WITH_FAMILY_FRIENDS: "WITH_FAMILY_FRIENDS",
4860
- // Transitional/temporary
4861
- TRANSITIONAL_HOUSING: "TRANSITIONAL_HOUSING_PROGRAM",
4862
- TEMP_HOUSING_PROGRAM: "TEMP_HOUSING_PROGRAM",
4863
- HOTEL_MOTEL: "HOTEL_MOTEL_NON_SHELTER",
4864
- // Emergency/shelter
4865
- EMERGENCY_SHELTER: "EMERGENCY_SHELTER",
4866
- DV_SHELTER: "DV_SHELTER_SAFE_HOUSE",
4867
- SAFE_HAVEN: "SAFE_HAVEN",
4868
- // Homeless
4869
- UNSHELTERED: "UNSHELTERED",
4870
- HOMELESS_UNSPECIFIED: "HOMELESS_UNSPECIFIED",
4871
- // Institutional
4872
- HOSPITAL_MEDICAL: "HOSPITAL_MEDICAL",
4873
- PSYCHIATRIC_FACILITY: "PSYCHIATRIC_RESIDENTIAL_FACILITY",
4874
- SUBSTANCE_USE_TREATMENT: "SUBSTANCE_USE_TREATMENT_RESIDENTIAL",
4875
- LONG_TERM_CARE: "LONG_TERM_CARE",
4876
- INCARCERATED: "INCARCERATED",
4877
- // Child welfare
4878
- FOSTER_CARE: "CW_FOSTER_CARE",
4879
- KINSHIP_PLACEMENT: "CW_KINSHIP",
4880
- // Other and missingness
4881
- OTHER: "OTHER",
4882
- UNKNOWN: "UNK",
4883
- DATA_NOT_COLLECTED: "DNC",
4884
- ANONYMOUS: "ANON"
4885
- };
4886
- var CVC_192_LABELS = {
4887
- [CVC_192_LIVING_SITUATION.OWN_RENT]: "Own or rent home / apartment",
4888
- [CVC_192_LIVING_SITUATION.WITH_FAMILY_FRIENDS]: "Staying with family or friends",
4889
- [CVC_192_LIVING_SITUATION.TRANSITIONAL_HOUSING]: "Transitional housing program",
4890
- [CVC_192_LIVING_SITUATION.TEMP_HOUSING_PROGRAM]: "Temporary housing program (other / short-term / bridge)",
4891
- [CVC_192_LIVING_SITUATION.HOTEL_MOTEL]: "Hotel / motel (not shelter)",
4892
- [CVC_192_LIVING_SITUATION.EMERGENCY_SHELTER]: "Emergency shelter",
4893
- [CVC_192_LIVING_SITUATION.DV_SHELTER]: "Domestic violence shelter / safe house",
4894
- [CVC_192_LIVING_SITUATION.SAFE_HAVEN]: "Safe Haven",
4895
- [CVC_192_LIVING_SITUATION.UNSHELTERED]: "Unsheltered / place not meant for habitation",
4896
- [CVC_192_LIVING_SITUATION.HOMELESS_UNSPECIFIED]: "Homeless (not sure where staying)",
4897
- [CVC_192_LIVING_SITUATION.HOSPITAL_MEDICAL]: "Hospital / medical facility",
4898
- [CVC_192_LIVING_SITUATION.PSYCHIATRIC_FACILITY]: "Psychiatric facility",
4899
- [CVC_192_LIVING_SITUATION.SUBSTANCE_USE_TREATMENT]: "Substance use treatment detox",
4900
- [CVC_192_LIVING_SITUATION.LONG_TERM_CARE]: "Long-term care facility or nursing home",
4901
- [CVC_192_LIVING_SITUATION.INCARCERATED]: "Jail, prison, or detention facility",
4902
- [CVC_192_LIVING_SITUATION.FOSTER_CARE]: "Foster care or foster care group home",
4903
- [CVC_192_LIVING_SITUATION.KINSHIP_PLACEMENT]: "Kinship placement under child welfare",
4904
- [CVC_192_LIVING_SITUATION.OTHER]: "Other",
4905
- [CVC_192_LIVING_SITUATION.UNKNOWN]: "Unknown",
4906
- [CVC_192_LIVING_SITUATION.DATA_NOT_COLLECTED]: "Data not collected",
4907
- [CVC_192_LIVING_SITUATION.ANONYMOUS]: "Anonymous"
4908
- };
4909
- var CVC_192_VALUES = Object.values(
4910
- CVC_192_LIVING_SITUATION
4911
- );
4912
- var CVC_192_SELECTABLE_VALUES = [
4913
- CVC_192_LIVING_SITUATION.OWN_RENT,
4914
- CVC_192_LIVING_SITUATION.WITH_FAMILY_FRIENDS,
4915
- CVC_192_LIVING_SITUATION.TRANSITIONAL_HOUSING,
4916
- CVC_192_LIVING_SITUATION.TEMP_HOUSING_PROGRAM,
4917
- CVC_192_LIVING_SITUATION.HOTEL_MOTEL,
4918
- CVC_192_LIVING_SITUATION.EMERGENCY_SHELTER,
4919
- CVC_192_LIVING_SITUATION.DV_SHELTER,
4920
- CVC_192_LIVING_SITUATION.SAFE_HAVEN,
4921
- CVC_192_LIVING_SITUATION.UNSHELTERED,
4922
- CVC_192_LIVING_SITUATION.HOMELESS_UNSPECIFIED,
4923
- CVC_192_LIVING_SITUATION.HOSPITAL_MEDICAL,
4924
- CVC_192_LIVING_SITUATION.PSYCHIATRIC_FACILITY,
4925
- CVC_192_LIVING_SITUATION.SUBSTANCE_USE_TREATMENT,
4926
- CVC_192_LIVING_SITUATION.LONG_TERM_CARE,
4927
- CVC_192_LIVING_SITUATION.INCARCERATED,
4928
- CVC_192_LIVING_SITUATION.FOSTER_CARE,
4929
- CVC_192_LIVING_SITUATION.KINSHIP_PLACEMENT,
4930
- CVC_192_LIVING_SITUATION.OTHER
4931
- ];
4932
- var CVC_192_MISSINGNESS_VALUES = [
4933
- CVC_192_LIVING_SITUATION.UNKNOWN,
4934
- CVC_192_LIVING_SITUATION.DATA_NOT_COLLECTED,
4935
- CVC_192_LIVING_SITUATION.ANONYMOUS
4936
- ];
4937
- var CVC_193_HMIS_LIVING_SITUATION = {
4938
- // Homeless situations (100-199)
4939
- EMERGENCY_SHELTER: "101",
4940
- PLACE_NOT_MEANT_FOR_HABITATION: "116",
4941
- SAFE_HAVEN: "118",
4942
- // Institutional situations (200-299)
4943
- PSYCHIATRIC_HOSPITAL: "204",
4944
- SUBSTANCE_ABUSE_TREATMENT: "205",
4945
- HOSPITAL_NON_PSYCHIATRIC: "206",
4946
- JAIL_PRISON_JUVENILE_DETENTION: "207",
4947
- FOSTER_CARE: "215",
4948
- LONG_TERM_CARE_NURSING_HOME: "225",
4949
- // Temporary housing situations (300-399)
4950
- TRANSITIONAL_HOUSING: "302",
4951
- STAYING_WITH_FAMILY_TEMPORARY: "312",
4952
- STAYING_WITH_FRIENDS_TEMPORARY: "313",
4953
- HOTEL_MOTEL_NO_VOUCHER: "314",
4954
- HOPWA_TH: "327",
4955
- RESIDENTIAL_PROJECT_NO_HOMELESS_CRITERIA: "329",
4956
- HOST_HOME_NON_CRISIS: "332",
4957
- STAYING_WITH_FAMILY_ROOM: "335",
4958
- STAYING_WITH_FRIENDS_ROOM: "336",
4959
- // Permanent housing situations (400-499)
4960
- RENTAL_NO_SUBSIDY: "410",
4961
- OWNED_NO_SUBSIDY: "411",
4962
- OWNED_WITH_SUBSIDY: "421",
4963
- STAYING_WITH_FAMILY_PERMANENT: "422",
4964
- STAYING_WITH_FRIENDS_PERMANENT: "423",
4965
- HOPWA_PH: "426",
4966
- RENTAL_WITH_SUBSIDY: "435",
4967
- // Other/missingness
4968
- OTHER: "17",
4969
- WORKER_UNABLE_TO_DETERMINE: "37",
4970
- CLIENT_DOESNT_KNOW: "8",
4971
- CLIENT_PREFERS_NOT_TO_ANSWER: "9",
4972
- DATA_NOT_COLLECTED: "99",
4973
- NO_EXIT_INTERVIEW: "30",
4974
- DECEASED: "24"
4975
- };
4976
- var CVC_193_LABELS = {
4977
- [CVC_193_HMIS_LIVING_SITUATION.EMERGENCY_SHELTER]: "Emergency shelter (incl. hotel/motel voucher, host home shelter)",
4978
- [CVC_193_HMIS_LIVING_SITUATION.PLACE_NOT_MEANT_FOR_HABITATION]: "Place not meant for habitation",
4979
- [CVC_193_HMIS_LIVING_SITUATION.SAFE_HAVEN]: "Safe Haven",
4980
- [CVC_193_HMIS_LIVING_SITUATION.PSYCHIATRIC_HOSPITAL]: "Psychiatric hospital or other psychiatric facility",
4981
- [CVC_193_HMIS_LIVING_SITUATION.SUBSTANCE_ABUSE_TREATMENT]: "Substance abuse treatment facility or detox center",
4982
- [CVC_193_HMIS_LIVING_SITUATION.HOSPITAL_NON_PSYCHIATRIC]: "Hospital or other residential non-psychiatric medical facility",
4983
- [CVC_193_HMIS_LIVING_SITUATION.JAIL_PRISON_JUVENILE_DETENTION]: "Jail, prison, or juvenile detention facility",
4984
- [CVC_193_HMIS_LIVING_SITUATION.FOSTER_CARE]: "Foster care home or foster care group home",
4985
- [CVC_193_HMIS_LIVING_SITUATION.LONG_TERM_CARE_NURSING_HOME]: "Long-term care facility or nursing home",
4986
- [CVC_193_HMIS_LIVING_SITUATION.TRANSITIONAL_HOUSING]: "Transitional housing for homeless persons (including homeless youth)",
4987
- [CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FAMILY_TEMPORARY]: "Staying or living with family, temporary tenure (e.g., room, apartment, or house)",
4988
- [CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FRIENDS_TEMPORARY]: "Staying or living with friends, temporary tenure (e.g., room, apartment, or house)",
4989
- [CVC_193_HMIS_LIVING_SITUATION.HOTEL_MOTEL_NO_VOUCHER]: "Hotel or motel paid for without emergency shelter voucher",
4990
- [CVC_193_HMIS_LIVING_SITUATION.HOPWA_TH]: "Moved from one HOPWA funded project to HOPWA TH",
4991
- [CVC_193_HMIS_LIVING_SITUATION.RESIDENTIAL_PROJECT_NO_HOMELESS_CRITERIA]: "Residential project or halfway house with no homeless criteria",
4992
- [CVC_193_HMIS_LIVING_SITUATION.HOST_HOME_NON_CRISIS]: "Host Home (non-crisis)",
4993
- [CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FAMILY_ROOM]: "Staying or living in a family member's room, apartment, or house",
4994
- [CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FRIENDS_ROOM]: "Staying or living in a friend's room, apartment, or house",
4995
- [CVC_193_HMIS_LIVING_SITUATION.RENTAL_NO_SUBSIDY]: "Rental by client, no ongoing housing subsidy",
4996
- [CVC_193_HMIS_LIVING_SITUATION.OWNED_NO_SUBSIDY]: "Owned by client, no ongoing housing subsidy",
4997
- [CVC_193_HMIS_LIVING_SITUATION.OWNED_WITH_SUBSIDY]: "Owned by client, with ongoing housing subsidy",
4998
- [CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FAMILY_PERMANENT]: "Staying or living with family, permanent tenure",
4999
- [CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FRIENDS_PERMANENT]: "Staying or living with friends, permanent tenure",
5000
- [CVC_193_HMIS_LIVING_SITUATION.HOPWA_PH]: "Moved from one HOPWA funded project to HOPWA PH",
5001
- [CVC_193_HMIS_LIVING_SITUATION.RENTAL_WITH_SUBSIDY]: "Rental by client, with ongoing housing subsidy",
5002
- [CVC_193_HMIS_LIVING_SITUATION.OTHER]: "Other",
5003
- [CVC_193_HMIS_LIVING_SITUATION.WORKER_UNABLE_TO_DETERMINE]: "Worker unable to determine",
5004
- [CVC_193_HMIS_LIVING_SITUATION.CLIENT_DOESNT_KNOW]: "Client doesn't know",
5005
- [CVC_193_HMIS_LIVING_SITUATION.CLIENT_PREFERS_NOT_TO_ANSWER]: "Client prefers not to answer",
5006
- [CVC_193_HMIS_LIVING_SITUATION.DATA_NOT_COLLECTED]: "Data not collected",
5007
- [CVC_193_HMIS_LIVING_SITUATION.NO_EXIT_INTERVIEW]: "No exit interview completed",
5008
- [CVC_193_HMIS_LIVING_SITUATION.DECEASED]: "Deceased"
5009
- };
5010
- var CVC_193_VALUES = Object.values(
5011
- CVC_193_HMIS_LIVING_SITUATION
5012
- );
5013
- var CVC_193_HOMELESS_VALUES = [
5014
- CVC_193_HMIS_LIVING_SITUATION.EMERGENCY_SHELTER,
5015
- CVC_193_HMIS_LIVING_SITUATION.PLACE_NOT_MEANT_FOR_HABITATION,
5016
- CVC_193_HMIS_LIVING_SITUATION.SAFE_HAVEN
5017
- ];
5018
- var CVC_193_INSTITUTIONAL_VALUES = [
5019
- CVC_193_HMIS_LIVING_SITUATION.PSYCHIATRIC_HOSPITAL,
5020
- CVC_193_HMIS_LIVING_SITUATION.SUBSTANCE_ABUSE_TREATMENT,
5021
- CVC_193_HMIS_LIVING_SITUATION.HOSPITAL_NON_PSYCHIATRIC,
5022
- CVC_193_HMIS_LIVING_SITUATION.JAIL_PRISON_JUVENILE_DETENTION,
5023
- CVC_193_HMIS_LIVING_SITUATION.FOSTER_CARE,
5024
- CVC_193_HMIS_LIVING_SITUATION.LONG_TERM_CARE_NURSING_HOME
5025
- ];
5026
- var CVC_193_TEMPORARY_VALUES = [
5027
- CVC_193_HMIS_LIVING_SITUATION.TRANSITIONAL_HOUSING,
5028
- CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FAMILY_TEMPORARY,
5029
- CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FRIENDS_TEMPORARY,
5030
- CVC_193_HMIS_LIVING_SITUATION.HOTEL_MOTEL_NO_VOUCHER,
5031
- CVC_193_HMIS_LIVING_SITUATION.HOPWA_TH,
5032
- CVC_193_HMIS_LIVING_SITUATION.RESIDENTIAL_PROJECT_NO_HOMELESS_CRITERIA,
5033
- CVC_193_HMIS_LIVING_SITUATION.HOST_HOME_NON_CRISIS,
5034
- CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FAMILY_ROOM,
5035
- CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FRIENDS_ROOM
5036
- ];
5037
- var CVC_193_PERMANENT_VALUES = [
5038
- CVC_193_HMIS_LIVING_SITUATION.RENTAL_NO_SUBSIDY,
5039
- CVC_193_HMIS_LIVING_SITUATION.OWNED_NO_SUBSIDY,
5040
- CVC_193_HMIS_LIVING_SITUATION.OWNED_WITH_SUBSIDY,
5041
- CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FAMILY_PERMANENT,
5042
- CVC_193_HMIS_LIVING_SITUATION.STAYING_WITH_FRIENDS_PERMANENT,
5043
- CVC_193_HMIS_LIVING_SITUATION.HOPWA_PH,
5044
- CVC_193_HMIS_LIVING_SITUATION.RENTAL_WITH_SUBSIDY
5045
- ];
5046
- var CVC_193_MISSINGNESS_VALUES = [
5047
- CVC_193_HMIS_LIVING_SITUATION.CLIENT_DOESNT_KNOW,
5048
- CVC_193_HMIS_LIVING_SITUATION.CLIENT_PREFERS_NOT_TO_ANSWER,
5049
- CVC_193_HMIS_LIVING_SITUATION.DATA_NOT_COLLECTED,
5050
- CVC_193_HMIS_LIVING_SITUATION.NO_EXIT_INTERVIEW,
5051
- CVC_193_HMIS_LIVING_SITUATION.DECEASED
5052
- ];
5053
- var CVC_194_HOUSING_SUBSIDY_TYPE = {
5054
- VASH: "VASH",
5055
- GPD_TIP: "GPD_TIP",
5056
- RRH: "RRH",
5057
- PSH: "PSH",
5058
- HCV: "HCV",
5059
- PUBLIC_HOUSING: "PUBLIC_HOUSING",
5060
- FUP: "FUP",
5061
- FYI: "FYI",
5062
- HOUSING_STABILITY_VOUCHER: "HSV",
5063
- OTHER_PH_FORMERLY_HOMELESS: "OTHER_PH_FORMERLY_HOMELESS",
5064
- OTHER_SUBSIDY: "OTHER_SUBSIDY",
5065
- // Missingness
5066
- UNKNOWN: "UNK",
5067
- DATA_NOT_COLLECTED: "DNC",
5068
- ANONYMOUS: "ANON"
5069
- };
5070
- var CVC_194_LABELS = {
5071
- [CVC_194_HOUSING_SUBSIDY_TYPE.VASH]: "VASH housing subsidy",
5072
- [CVC_194_HOUSING_SUBSIDY_TYPE.GPD_TIP]: "GPD TIP housing subsidy",
5073
- [CVC_194_HOUSING_SUBSIDY_TYPE.RRH]: "RRH or equivalent subsidy",
5074
- [CVC_194_HOUSING_SUBSIDY_TYPE.PSH]: "Permanent Supportive Housing",
5075
- [CVC_194_HOUSING_SUBSIDY_TYPE.HCV]: "HCV voucher (tenant or project based) (not dedicated)",
5076
- [CVC_194_HOUSING_SUBSIDY_TYPE.PUBLIC_HOUSING]: "Public housing unit",
5077
- [CVC_194_HOUSING_SUBSIDY_TYPE.FUP]: "Family Unification Program Voucher (FUP)",
5078
- [CVC_194_HOUSING_SUBSIDY_TYPE.FYI]: "Foster Youth to Independence Initiative (FYI)",
5079
- [CVC_194_HOUSING_SUBSIDY_TYPE.HOUSING_STABILITY_VOUCHER]: "Housing Stability Voucher",
5080
- [CVC_194_HOUSING_SUBSIDY_TYPE.OTHER_PH_FORMERLY_HOMELESS]: "Other permanent housing dedicated for formerly homeless persons",
5081
- [CVC_194_HOUSING_SUBSIDY_TYPE.OTHER_SUBSIDY]: "Rental by client, with other ongoing housing subsidy",
5082
- [CVC_194_HOUSING_SUBSIDY_TYPE.UNKNOWN]: "Unknown",
5083
- [CVC_194_HOUSING_SUBSIDY_TYPE.DATA_NOT_COLLECTED]: "Data not collected",
5084
- [CVC_194_HOUSING_SUBSIDY_TYPE.ANONYMOUS]: "Anonymous"
5085
- };
5086
- var CVC_194_VALUES = Object.values(
5087
- CVC_194_HOUSING_SUBSIDY_TYPE
5088
- );
5089
- var CVC_194_SELECTABLE_VALUES = [
5090
- CVC_194_HOUSING_SUBSIDY_TYPE.VASH,
5091
- CVC_194_HOUSING_SUBSIDY_TYPE.GPD_TIP,
5092
- CVC_194_HOUSING_SUBSIDY_TYPE.RRH,
5093
- CVC_194_HOUSING_SUBSIDY_TYPE.PSH,
5094
- CVC_194_HOUSING_SUBSIDY_TYPE.HCV,
5095
- CVC_194_HOUSING_SUBSIDY_TYPE.PUBLIC_HOUSING,
5096
- CVC_194_HOUSING_SUBSIDY_TYPE.FUP,
5097
- CVC_194_HOUSING_SUBSIDY_TYPE.FYI,
5098
- CVC_194_HOUSING_SUBSIDY_TYPE.HOUSING_STABILITY_VOUCHER,
5099
- CVC_194_HOUSING_SUBSIDY_TYPE.OTHER_PH_FORMERLY_HOMELESS,
5100
- CVC_194_HOUSING_SUBSIDY_TYPE.OTHER_SUBSIDY
5101
- ];
5102
- var CVC_194_MISSINGNESS_VALUES = [
5103
- CVC_194_HOUSING_SUBSIDY_TYPE.UNKNOWN,
5104
- CVC_194_HOUSING_SUBSIDY_TYPE.DATA_NOT_COLLECTED,
5105
- CVC_194_HOUSING_SUBSIDY_TYPE.ANONYMOUS
5106
- ];
5107
4347
 
5108
4348
  // src/constants/service-catalog.json
5109
4349
  var service_catalog_default = {
@@ -7468,6 +6708,190 @@ function buildPlatformRoleSchema() {
7468
6708
  }
7469
6709
  var _platformRoleSchema = buildPlatformRoleSchema();
7470
6710
 
6711
+ // src/schemas/cvcRegistry.ts
6712
+ var import_mongoose8 = require("mongoose");
6713
+ var cvcRegistrySchemaDefinition = {
6714
+ // Versioning — semantic version of this registry bundle
6715
+ version: {
6716
+ type: String,
6717
+ required: true,
6718
+ match: /^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/
6719
+ },
6720
+ // Human-readable name (e.g. "PAVE production registry")
6721
+ name: {
6722
+ type: String,
6723
+ required: true
6724
+ },
6725
+ // Scope keys. `null` widens scope: a null `application` means platform-wide;
6726
+ // a null `agencyId` means all agencies within `application`.
6727
+ application: {
6728
+ type: String,
6729
+ default: null
6730
+ },
6731
+ agencyId: {
6732
+ type: import_mongoose8.Schema.Types.ObjectId,
6733
+ default: null
6734
+ },
6735
+ // Lifecycle
6736
+ status: {
6737
+ type: String,
6738
+ required: true,
6739
+ enum: ["draft", "active", "deprecated"],
6740
+ default: "draft",
6741
+ index: true
6742
+ },
6743
+ dateActivated: {
6744
+ type: Date
6745
+ },
6746
+ dateDeactivated: {
6747
+ type: Date
6748
+ },
6749
+ // Pinned domain versions: { service_categories: "1.0.0", ... }
6750
+ // Stored as a Map<string, string> so individual domains can be added or
6751
+ // bumped without re-validating the whole document shape.
6752
+ cvcVersions: {
6753
+ type: Map,
6754
+ of: String,
6755
+ required: true,
6756
+ default: () => /* @__PURE__ */ new Map()
6757
+ },
6758
+ // Selective inclusion/exclusion lists. Both contain CVC entry codes
6759
+ // (positional 7-segment, format v2: e.g. "022-002-000-000-000-000-000").
6760
+ // The runtime applies excludes after includes when resolving the effective
6761
+ // set.
6762
+ excludedEntries: {
6763
+ type: [String],
6764
+ default: []
6765
+ },
6766
+ includedEntries: {
6767
+ type: [String],
6768
+ default: []
6769
+ },
6770
+ // Inheritance pointer — when set, this registry inherits cvcVersions /
6771
+ // include / exclude lists from its base before applying its own overrides.
6772
+ // Indexed below so a base-version bump can find every dependent registry.
6773
+ basedOn: {
6774
+ type: import_mongoose8.Schema.Types.ObjectId,
6775
+ default: null
6776
+ }
6777
+ };
6778
+ var cvcRegistrySchemaOptions = {
6779
+ timestamps: true,
6780
+ collection: "cvc_registries"
6781
+ };
6782
+ function buildCvcRegistrySchema() {
6783
+ const schema = new import_mongoose8.Schema(
6784
+ cvcRegistrySchemaDefinition,
6785
+ cvcRegistrySchemaOptions
6786
+ );
6787
+ schema.index(
6788
+ { application: 1, agencyId: 1, version: 1 },
6789
+ { unique: true }
6790
+ );
6791
+ schema.index(
6792
+ { application: 1, agencyId: 1, status: 1 },
6793
+ {
6794
+ unique: true,
6795
+ partialFilterExpression: { status: "active" }
6796
+ }
6797
+ );
6798
+ schema.index({ basedOn: 1 });
6799
+ return schema;
6800
+ }
6801
+ var _cvcRegistrySchema = buildCvcRegistrySchema();
6802
+
6803
+ // src/schemas/cvcEntry.ts
6804
+ var import_mongoose9 = require("mongoose");
6805
+ var CVC_CODE_PATTERN = /^\d{3}(-\d{3}){6}$/;
6806
+ var CVC_KEY_PATTERN = /^[a-z][a-z0-9_]*$/;
6807
+ var cvcEntrySchemaDefinition = {
6808
+ // Compound identity: (domain, version, code) uniquely identifies an entry.
6809
+ // `domain` is the SOT family (e.g. "service_categories"); `version` is the
6810
+ // semantic version of the SOT JSON file the entry was loaded from.
6811
+ domain: {
6812
+ type: String,
6813
+ required: true
6814
+ },
6815
+ version: {
6816
+ type: String,
6817
+ required: true
6818
+ },
6819
+ code: {
6820
+ type: String,
6821
+ required: true,
6822
+ match: CVC_CODE_PATTERN
6823
+ },
6824
+ // Stable machine key for cross-CVC references (e.g. `relevantMechanisms`
6825
+ // in service_categories points at service_mechanisms entries by `key`).
6826
+ key: {
6827
+ type: String,
6828
+ required: true,
6829
+ match: CVC_KEY_PATTERN
6830
+ },
6831
+ // Display fields
6832
+ title: {
6833
+ type: String,
6834
+ required: true
6835
+ },
6836
+ // `selectable` distinguishes leaf entries (selectable) from structural
6837
+ // grouping rows (not selectable). Required because the seed CLI must
6838
+ // populate it explicitly — there is no sane default.
6839
+ selectable: {
6840
+ type: Boolean,
6841
+ required: true
6842
+ },
6843
+ // Tree structure. `parentCode` is `null` for root rows; `childCodes` is
6844
+ // empty for leaves. We give `parentCode` a `default: null` (rather than
6845
+ // marking it required) because Mongoose's `required` validator rejects
6846
+ // `null` outright — the default ensures the field is always present on
6847
+ // disk while still allowing the documented `string | null` shape. The
6848
+ // `match` validator is skipped by Mongoose when the value is null.
6849
+ parentCode: {
6850
+ type: String,
6851
+ default: null,
6852
+ match: CVC_CODE_PATTERN
6853
+ },
6854
+ childCodes: {
6855
+ type: [String],
6856
+ required: true,
6857
+ default: []
6858
+ },
6859
+ // Long-form definition. Same `default: null` treatment as `parentCode`
6860
+ // above — every row reaches disk with `definition` set to either a
6861
+ // string or an explicit null.
6862
+ definition: {
6863
+ type: String,
6864
+ default: null
6865
+ },
6866
+ // Domain-specific extension bag. Used for fields that only apply to a
6867
+ // particular CVC family — e.g. `relevantMechanisms` on service_categories
6868
+ // entries (a cross-CVC reference into service_mechanisms by key).
6869
+ meta: {
6870
+ type: import_mongoose9.Schema.Types.Mixed
6871
+ }
6872
+ };
6873
+ var cvcEntrySchemaOptions = {
6874
+ timestamps: true,
6875
+ collection: "cvc_entities",
6876
+ // `parentCode` defaults to null but Mongoose strips required-with-default
6877
+ // null assignments unless we keep minimize off.
6878
+ minimize: false
6879
+ };
6880
+ function buildCvcEntrySchema() {
6881
+ const schema = new import_mongoose9.Schema(cvcEntrySchemaDefinition, cvcEntrySchemaOptions);
6882
+ schema.index(
6883
+ { domain: 1, version: 1, code: 1 },
6884
+ { unique: true }
6885
+ );
6886
+ schema.index(
6887
+ { domain: 1, version: 1, key: 1 },
6888
+ { unique: true }
6889
+ );
6890
+ schema.index({ domain: 1, version: 1, parentCode: 1 });
6891
+ return schema;
6892
+ }
6893
+ var _cvcEntrySchema = buildCvcEntrySchema();
6894
+
7471
6895
  // src/models/formModel.ts
7472
6896
  var formModel_exports = {};
7473
6897
  __export(formModel_exports, {
@@ -7528,6 +6952,26 @@ function compileModel6(connection, schema = buildPlatformRoleSchema()) {
7528
6952
  return connection.model("PlatformRole", schema);
7529
6953
  }
7530
6954
 
6955
+ // src/models/cvcRegistryModel.ts
6956
+ var cvcRegistryModel_exports = {};
6957
+ __export(cvcRegistryModel_exports, {
6958
+ buildSchema: () => buildCvcRegistrySchema,
6959
+ compileModel: () => compileModel7
6960
+ });
6961
+ function compileModel7(connection, schema = buildCvcRegistrySchema()) {
6962
+ return connection.models.CvcRegistry ?? connection.model("CvcRegistry", schema);
6963
+ }
6964
+
6965
+ // src/models/cvcEntryModel.ts
6966
+ var cvcEntryModel_exports = {};
6967
+ __export(cvcEntryModel_exports, {
6968
+ buildSchema: () => buildCvcEntrySchema,
6969
+ compileModel: () => compileModel8
6970
+ });
6971
+ function compileModel8(connection, schema = buildCvcEntrySchema()) {
6972
+ return connection.models.CvcEntry ?? connection.model("CvcEntry", schema);
6973
+ }
6974
+
7531
6975
  // src/models/index.ts
7532
6976
  function createPlatformModels(connection) {
7533
6977
  return {
@@ -7539,6 +6983,2882 @@ function createPlatformModels(connection) {
7539
6983
  PlatformRoleModel: compileModel6(connection)
7540
6984
  };
7541
6985
  }
6986
+
6987
+ // src/generated/cvc-enums.ts
6988
+ var ServiceCategoryKeys = {
6989
+ missingness_root: "022-000-000-000-000-000-000",
6990
+ unknown: "022-000-000-000-000-000-001",
6991
+ anonymous: "022-000-000-000-000-000-002",
6992
+ data_not_collected: "022-000-000-000-000-000-003",
6993
+ social_support_community_engagement: "022-002-000-000-000-000-000",
6994
+ cultural_needs_support: "022-002-001-000-000-000-000",
6995
+ gift_holiday_resources: "022-002-002-000-000-000-000",
6996
+ peer_facilitated_supportive_group: "022-002-003-000-000-000-000",
6997
+ community_service_learning: "022-002-004-000-000-000-000",
6998
+ survivor_support_psychoeducation: "022-002-005-000-000-000-000",
6999
+ financial_and_employment: "022-003-000-000-000-000-000",
7000
+ financial_support: "022-003-001-000-000-000-000",
7001
+ emergency_financial_assistance: "022-003-001-001-000-000-000",
7002
+ employment_support: "022-003-002-000-000-000-000",
7003
+ supported_employment: "022-003-002-001-000-000-000",
7004
+ employment_assistance_job_search: "022-003-002-002-000-000-000",
7005
+ job_vocation_training: "022-003-002-003-000-000-000",
7006
+ healthcare: "022-004-000-000-000-000-000",
7007
+ medical: "022-004-001-000-000-000-000",
7008
+ emergency_medical_care: "022-004-001-001-000-000-000",
7009
+ forensic_exam_interview: "022-004-001-002-000-000-000",
7010
+ dv_exam: "022-004-001-002-001-000-000",
7011
+ sane_exam: "022-004-001-002-002-000-000",
7012
+ std_testing: "022-004-001-002-003-000-000",
7013
+ specialized_assessments: "022-004-001-002-004-000-000",
7014
+ counseling_evaluation_assessment: "022-004-001-002-004-001-000",
7015
+ stalking_assessment: "022-004-001-002-004-002-000",
7016
+ danger_assessment: "022-004-001-002-004-003-000",
7017
+ indepth_assessment: "022-004-001-002-004-004-000",
7018
+ outpatient_medical: "022-004-001-003-000-000-000",
7019
+ dental: "022-004-001-003-001-000-000",
7020
+ vision: "022-004-001-003-002-000-000",
7021
+ tattoo_removal: "022-004-001-003-003-000-000",
7022
+ pet_medical: "022-004-001-003-004-000-000",
7023
+ pregnancy_care: "022-004-001-004-000-000-000",
7024
+ prenatal_care: "022-004-001-004-001-000-000",
7025
+ postnatal_care_client: "022-004-001-004-002-000-000",
7026
+ postnatal_care_newborn: "022-004-001-004-003-000-000",
7027
+ emotional_support_mental_health: "022-004-002-000-000-000-000",
7028
+ individual_counseling: "022-004-002-001-000-000-000",
7029
+ group_counseling: "022-004-002-002-000-000-000",
7030
+ family_counseling: "022-004-002-003-000-000-000",
7031
+ counseling_treatment_planning: "022-004-002-004-000-000-000",
7032
+ counseling_treatment_plan_review: "022-004-002-005-000-000-000",
7033
+ behavioral_occupational_support: "022-004-002-006-000-000-000",
7034
+ substance_abuse_treatment: "022-004-002-006-001-000-000",
7035
+ coping_strategy_support: "022-004-002-006-002-000-000",
7036
+ other_therapy: "022-004-002-007-000-000-000",
7037
+ housing_services: "022-005-000-000-000-000-000",
7038
+ emergency_shelter: "022-005-001-000-000-000-000",
7039
+ day_shelter_dropin: "022-005-001-001-000-000-000",
7040
+ host_homes_safe_homes: "022-005-001-002-000-000-000",
7041
+ congregate_shelter_bednight: "022-005-001-003-000-000-000",
7042
+ emergency_hotel_motel: "022-005-001-004-000-000-000",
7043
+ night_by_night_shelter: "022-005-001-005-000-000-000",
7044
+ transitional_housing: "022-005-002-000-000-000-000",
7045
+ housing_renovation_modification: "022-005-003-000-000-000-000",
7046
+ household_setup_goods: "022-005-003-001-000-000-000",
7047
+ housing_navigation_placement: "022-005-004-000-000-000-000",
7048
+ housing_financial_assistance: "022-005-004-001-000-000-000",
7049
+ rental_payment_assistance: "022-005-004-001-001-000-000",
7050
+ security_deposit_allowance: "022-005-004-001-001-001-000",
7051
+ utility_assistance: "022-005-004-001-001-002-000",
7052
+ relocation_moving_assistance: "022-005-004-002-000-000-000",
7053
+ housing_stabilization_eviction_prevention: "022-005-005-000-000-000-000",
7054
+ tenant_based_scattered_site: "022-005-006-000-000-000-000",
7055
+ legal_services: "022-006-000-000-000-000-000",
7056
+ immigration_relief: "022-006-001-000-000-000-000",
7057
+ repatriation: "022-006-001-001-000-000-000",
7058
+ family_law: "022-006-002-000-000-000-000",
7059
+ criminal_support: "022-006-003-000-000-000-000",
7060
+ victim_impact_statement: "022-006-003-001-000-000-000",
7061
+ perpetrator_accountability: "022-006-003-002-000-000-000",
7062
+ victim_compensation: "022-006-003-003-000-000-000",
7063
+ victims_rights_representation: "022-006-003-004-000-000-000",
7064
+ criminal_record_relief: "022-006-003-005-000-000-000",
7065
+ civil_support: "022-006-004-000-000-000-000",
7066
+ protection_restraining_orders: "022-006-004-001-000-000-000",
7067
+ public_benefits_law: "022-006-004-002-000-000-000",
7068
+ emergency_safety_assistance: "022-006-005-000-000-000-000",
7069
+ basic_needs: "022-007-000-000-000-000-000",
7070
+ clothing_shoes_accessories: "022-007-001-000-000-000-000",
7071
+ elder_assistance: "022-007-001-001-000-000-000",
7072
+ food: "022-007-002-000-000-000-000",
7073
+ over_the_counter_medications: "022-007-003-000-000-000-000",
7074
+ immediate_safety_planning: "022-007-004-000-000-000-000",
7075
+ emergency_crisis_safety_support: "022-007-004-001-000-000-000",
7076
+ hygiene_items_personal_care: "022-007-005-000-000-000-000",
7077
+ communications_connectivity: "022-007-006-000-000-000-000",
7078
+ interpreter_services: "022-007-007-000-000-000-000",
7079
+ informal_education_life_skills: "022-008-000-000-000-000-000",
7080
+ basic_life_skills_self_care: "022-008-001-000-000-000-000",
7081
+ accessibility_disability_support: "022-008-002-000-000-000-000",
7082
+ parenting_education: "022-008-003-000-000-000-000",
7083
+ learning_language_classes: "022-008-004-000-000-000-000",
7084
+ transportation: "022-009-000-000-000-000-000",
7085
+ transportation_assistance_direct: "022-009-001-000-000-000-000",
7086
+ transportation_direct_emergency: "022-009-001-001-000-000-000",
7087
+ taxi_rideshare_voucher: "022-009-002-000-000-000-000",
7088
+ taxi_rideshare_emergency: "022-009-002-001-000-000-000",
7089
+ bus_fare_pass: "022-009-003-000-000-000-000",
7090
+ bus_fare_pass_emergency: "022-009-003-001-000-000-000",
7091
+ gift_card_gas_card: "022-009-004-000-000-000-000",
7092
+ gift_card_gas_card_emergency: "022-009-004-001-000-000-000",
7093
+ airline_tickets: "022-009-005-000-000-000-000",
7094
+ airline_tickets_emergency: "022-009-005-001-000-000-000",
7095
+ dependents: "022-010-000-000-000-000-000",
7096
+ pet_care: "022-010-001-000-000-000-000",
7097
+ child_care: "022-010-002-000-000-000-000",
7098
+ childrens_activities: "022-010-002-001-000-000-000",
7099
+ children_youth_baby_supplies: "022-010-002-001-001-000-000",
7100
+ case_coordination: "022-011-000-000-000-000-000",
7101
+ advocacy: "022-011-001-000-000-000-000",
7102
+ medical_advocacy: "022-011-001-001-000-000-000",
7103
+ advocacy_emergency_medical: "022-011-001-001-001-000-000",
7104
+ advocacy_forensic_exam: "022-011-001-001-002-000-000",
7105
+ court_advocacy: "022-011-001-002-000-000-000",
7106
+ crime_scene_clean_up: "022-011-001-002-001-000-000",
7107
+ family_reunification: "022-011-001-002-002-000-000",
7108
+ law_enforcement_interview_support: "022-011-001-002-003-000-000",
7109
+ prosecution_interview_advocacy: "022-011-001-002-004-000-000",
7110
+ immigration_advocacy_support: "022-011-001-002-005-000-000",
7111
+ documentation_records_retrieval: "022-011-001-003-000-000-000",
7112
+ obtaining_insurance: "022-011-001-003-001-000-000",
7113
+ drivers_car_insurance: "022-011-001-003-001-001-000",
7114
+ medical_insurance: "022-011-001-003-001-002-000",
7115
+ obtaining_drivers_license: "022-011-001-003-002-000-000",
7116
+ faith_resource: "022-011-001-004-000-000-000",
7117
+ banking_notary: "022-011-001-005-000-000-000",
7118
+ income_benefits_navigation: "022-011-001-006-000-000-000",
7119
+ government_services_special_programs: "022-011-001-006-001-000-000",
7120
+ intervention_employer_creditor_academic: "022-011-001-007-000-000-000",
7121
+ formal_education_academic_support: "022-011-001-007-001-000-000",
7122
+ adult_school_ged: "022-011-001-007-001-001-000",
7123
+ child_school_enrollment: "022-011-001-007-001-002-000",
7124
+ intake: "022-011-002-000-000-000-000",
7125
+ screening: "022-011-002-001-000-000-000",
7126
+ housing_eligibility_determination: "022-011-002-001-001-000-000",
7127
+ coordinated_entry: "022-011-002-001-001-001-000",
7128
+ behavioral_issues_screen: "022-011-002-001-002-000-000",
7129
+ initial_screen: "022-011-002-001-003-000-000",
7130
+ needs_assessment: "022-011-002-001-004-000-000",
7131
+ tvap: "022-011-002-001-005-000-000",
7132
+ case_management_supportive_services: "022-011-003-000-000-000-000",
7133
+ intra_agency_provider_coordination: "022-011-003-001-000-000-000",
7134
+ inter_agency_consultation: "022-011-003-002-000-000-000",
7135
+ service_plan: "022-011-003-003-000-000-000",
7136
+ hope_scale_and_plan: "022-011-003-003-001-000-000",
7137
+ post_exit_plan: "022-011-003-004-000-000-000",
7138
+ advanced_directives: "022-011-003-005-000-000-000",
7139
+ other_services: "022-012-000-000-000-000-000"
7140
+ };
7141
+ var ServiceStateKeys = {
7142
+ missingness_root: "049-000-000-000-000-000-000",
7143
+ unknown: "049-000-000-000-000-000-001",
7144
+ anonymous: "049-000-000-000-000-000-002",
7145
+ data_not_collected: "049-000-000-000-000-000-003",
7146
+ need_identified: "049-001-000-000-000-000-000",
7147
+ offered: "049-002-000-000-000-000-000",
7148
+ scheduled_in_progress: "049-003-000-000-000-000-000",
7149
+ delivered: "049-004-000-000-000-000-000",
7150
+ completed: "049-005-000-000-000-000-000",
7151
+ declined_by_client: "049-006-000-000-000-000-000",
7152
+ unable_to_provide: "049-007-000-000-000-000-000",
7153
+ unable_to_provide_eligibility: "049-007-001-000-000-000-000",
7154
+ unable_to_provide_capacity: "049-007-002-000-000-000-000",
7155
+ unable_to_provide_resources: "049-007-003-000-000-000-000"
7156
+ };
7157
+ var ServiceMechanismKeys = {
7158
+ missingness_root: "025-000-000-000-000-000-000",
7159
+ unknown: "025-000-000-000-000-000-001",
7160
+ anonymous: "025-000-000-000-000-000-002",
7161
+ data_not_collected: "025-000-000-000-000-000-003",
7162
+ support_via_referral: "025-001-000-000-000-000-000",
7163
+ informational_support: "025-002-000-000-000-000-000",
7164
+ direct_staff_contractor: "025-003-000-000-000-000-000",
7165
+ financial_material_assistance: "025-004-000-000-000-000-000"
7166
+ };
7167
+
7168
+ // src/services/cvcRegistryService.ts
7169
+ var import_mongoose10 = require("mongoose");
7170
+ function cvcVersionsToRecord(versions) {
7171
+ if (!versions) return {};
7172
+ if (versions instanceof Map) {
7173
+ return Object.fromEntries(versions.entries());
7174
+ }
7175
+ return { ...versions };
7176
+ }
7177
+ function cascadeExclusions(excludedCodes, entries) {
7178
+ const result = new Set(excludedCodes);
7179
+ const childMap = /* @__PURE__ */ new Map();
7180
+ for (const entry of entries) {
7181
+ if (entry.parentCode) {
7182
+ const siblings = childMap.get(entry.parentCode);
7183
+ if (siblings) {
7184
+ siblings.push(entry.code);
7185
+ } else {
7186
+ childMap.set(entry.parentCode, [entry.code]);
7187
+ }
7188
+ }
7189
+ }
7190
+ const queue = [...excludedCodes];
7191
+ while (queue.length > 0) {
7192
+ const code = queue.shift();
7193
+ const children = childMap.get(code);
7194
+ if (!children) continue;
7195
+ for (const childCode of children) {
7196
+ if (!result.has(childCode)) {
7197
+ result.add(childCode);
7198
+ queue.push(childCode);
7199
+ }
7200
+ }
7201
+ }
7202
+ return result;
7203
+ }
7204
+ function applyEntryOverrides(excludedEntries, includedEntries, entries) {
7205
+ const excluded = new Set(excludedEntries ?? []);
7206
+ const included = new Set(includedEntries ?? []);
7207
+ const hasExclusions = excluded.size > 0;
7208
+ const hasInclusions = included.size > 0;
7209
+ if (!hasExclusions && !hasInclusions) {
7210
+ return [...entries];
7211
+ }
7212
+ if (!hasExclusions && hasInclusions) {
7213
+ return entries.filter((entry) => included.has(entry.code));
7214
+ }
7215
+ const cascadedExclusions = cascadeExclusions(excluded, entries);
7216
+ return entries.filter((entry) => {
7217
+ if (included.has(entry.code)) return true;
7218
+ if (cascadedExclusions.has(entry.code)) return false;
7219
+ return true;
7220
+ });
7221
+ }
7222
+ async function resolveRegistryWithInheritance(registry, loadRegistry, loadEntries) {
7223
+ const childVersions = cvcVersionsToRecord(registry.cvcVersions);
7224
+ let mergedVersions = { ...childVersions };
7225
+ if (registry.basedOn) {
7226
+ const base = await loadRegistry(registry.basedOn);
7227
+ if (!base) {
7228
+ throw new Error(
7229
+ `CvcRegistryService: basedOn registry not found: ${registry.basedOn.toString()}`
7230
+ );
7231
+ }
7232
+ mergedVersions = {
7233
+ ...cvcVersionsToRecord(base.cvcVersions),
7234
+ ...childVersions
7235
+ };
7236
+ }
7237
+ const pool = [];
7238
+ for (const [domain, version] of Object.entries(mergedVersions)) {
7239
+ const domainEntries = await loadEntries(domain, version);
7240
+ pool.push(...domainEntries);
7241
+ }
7242
+ const entries = applyEntryOverrides(
7243
+ registry.excludedEntries,
7244
+ registry.includedEntries,
7245
+ pool
7246
+ );
7247
+ return { mergedVersions, entries };
7248
+ }
7249
+ function scopeFilter(scope) {
7250
+ return {
7251
+ application: scope.application ?? null,
7252
+ agencyId: scope.agencyId ?? null
7253
+ };
7254
+ }
7255
+ function cacheKeyFor(registryId) {
7256
+ return registryId.toString();
7257
+ }
7258
+ var CvcRegistryService = class {
7259
+ registryModel;
7260
+ entryModel;
7261
+ scopeFallback;
7262
+ /**
7263
+ * Cached resolved entry set per registry id. The value is the full
7264
+ * post-override entry list — domain filtering is done on read so the
7265
+ * cache stays domain-agnostic. Cleared on activate/deprecate of any
7266
+ * registry that overlaps the cached scope.
7267
+ */
7268
+ resolvedCache = /* @__PURE__ */ new Map();
7269
+ /**
7270
+ * @param connection - Mongoose connection that owns `cvc_registries` and `cvc_entries`
7271
+ * @param options - Optional behavior toggles (see {@link CvcRegistryServiceOptions})
7272
+ */
7273
+ constructor(connection, options = {}) {
7274
+ this.registryModel = cvcRegistryModel_exports.compileModel(
7275
+ connection
7276
+ );
7277
+ this.entryModel = cvcEntryModel_exports.compileModel(
7278
+ connection
7279
+ );
7280
+ this.scopeFallback = options.scopeFallback ?? true;
7281
+ }
7282
+ // ──────────────────────────────────────────────────────────────────────────
7283
+ // Registry lifecycle
7284
+ // ──────────────────────────────────────────────────────────────────────────
7285
+ /**
7286
+ * Find the active registry for a scope, walking the fallback chain
7287
+ * (agency-specific → app-specific → platform-default) when enabled. Returns
7288
+ * `null` if no active registry exists at any level of the chain.
7289
+ */
7290
+ async getActiveRegistry(scope) {
7291
+ const candidates = [scope];
7292
+ if (this.scopeFallback) {
7293
+ if (scope.agencyId != null && scope.application != null) {
7294
+ candidates.push({ application: scope.application, agencyId: null });
7295
+ }
7296
+ if (scope.application != null) {
7297
+ candidates.push({ application: null, agencyId: null });
7298
+ }
7299
+ }
7300
+ for (const candidate of candidates) {
7301
+ const found = await this.registryModel.findOne({ ...scopeFilter(candidate), status: "active" }).lean().exec();
7302
+ if (found) return found;
7303
+ }
7304
+ return null;
7305
+ }
7306
+ /**
7307
+ * Look up a registry by its `(scope, version)` tuple. The scope must be
7308
+ * exact — there is no fallback chain here, since version pins are scope-
7309
+ * specific by definition.
7310
+ */
7311
+ async getRegistry(scope, version) {
7312
+ return this.registryModel.findOne({ ...scopeFilter(scope), version }).lean().exec();
7313
+ }
7314
+ /**
7315
+ * List every registry version for an exact scope, regardless of status.
7316
+ * Sorted by version so callers get a deterministic ordering for change
7317
+ * logs / version pickers. The version field is a semver string, so the
7318
+ * sort is lexicographic — good enough for the typical 1.0.0 / 1.1.0 case.
7319
+ */
7320
+ async listVersions(scope) {
7321
+ return this.registryModel.find(scopeFilter(scope)).sort({ version: 1 }).lean().exec();
7322
+ }
7323
+ /**
7324
+ * Promote a draft registry to `active`. Atomically demotes the previous
7325
+ * active registry in the same scope to `deprecated` so the
7326
+ * one-active-per-scope invariant holds even under concurrent activations
7327
+ * (the partial unique index on `cvc_registries` enforces this at the DB
7328
+ * layer; we mirror it here for clarity).
7329
+ *
7330
+ * @throws Error if the target registry doesn't exist or isn't in `draft`
7331
+ */
7332
+ async activate(registryId) {
7333
+ const target = await this.registryModel.findById(registryId).lean().exec();
7334
+ if (!target) {
7335
+ throw new Error(
7336
+ `CvcRegistryService.activate: registry not found: ${registryId.toString()}`
7337
+ );
7338
+ }
7339
+ if (target.status !== "draft") {
7340
+ throw new Error(
7341
+ `CvcRegistryService.activate: registry ${registryId.toString()} is '${target.status}', expected 'draft'`
7342
+ );
7343
+ }
7344
+ const now = /* @__PURE__ */ new Date();
7345
+ await this.registryModel.updateOne(
7346
+ {
7347
+ application: target.application ?? null,
7348
+ agencyId: target.agencyId ?? null,
7349
+ status: "active"
7350
+ },
7351
+ { $set: { status: "deprecated", dateDeactivated: now } }
7352
+ ).exec();
7353
+ const activated = await this.registryModel.findByIdAndUpdate(
7354
+ registryId,
7355
+ { $set: { status: "active", dateActivated: now } },
7356
+ { new: true }
7357
+ ).lean().exec();
7358
+ if (!activated) {
7359
+ throw new Error(
7360
+ `CvcRegistryService.activate: registry vanished mid-update: ${registryId.toString()}`
7361
+ );
7362
+ }
7363
+ this.resolvedCache.clear();
7364
+ return activated;
7365
+ }
7366
+ /**
7367
+ * Demote an active registry to `deprecated`. Idempotent only in the sense
7368
+ * that calling it twice on the same registry will fail the second time —
7369
+ * we don't allow re-deprecating something that's already deprecated, so
7370
+ * the lifecycle stays a strict state machine.
7371
+ *
7372
+ * @throws Error if the target registry doesn't exist or isn't `active`
7373
+ */
7374
+ async deprecate(registryId) {
7375
+ const target = await this.registryModel.findById(registryId).lean().exec();
7376
+ if (!target) {
7377
+ throw new Error(
7378
+ `CvcRegistryService.deprecate: registry not found: ${registryId.toString()}`
7379
+ );
7380
+ }
7381
+ if (target.status !== "active") {
7382
+ throw new Error(
7383
+ `CvcRegistryService.deprecate: registry ${registryId.toString()} is '${target.status}', expected 'active'`
7384
+ );
7385
+ }
7386
+ const updated = await this.registryModel.findByIdAndUpdate(
7387
+ registryId,
7388
+ { $set: { status: "deprecated", dateDeactivated: /* @__PURE__ */ new Date() } },
7389
+ { new: true }
7390
+ ).lean().exec();
7391
+ if (!updated) {
7392
+ throw new Error(
7393
+ `CvcRegistryService.deprecate: registry vanished mid-update: ${registryId.toString()}`
7394
+ );
7395
+ }
7396
+ this.resolvedCache.clear();
7397
+ return updated;
7398
+ }
7399
+ // ──────────────────────────────────────────────────────────────────────────
7400
+ // Entry resolution (core — all convenience methods funnel through here)
7401
+ // ──────────────────────────────────────────────────────────────────────────
7402
+ /**
7403
+ * Resolve a registry into its effective entry list, applying inheritance
7404
+ * and overrides. Results are memoised by registry id; the cache is
7405
+ * invalidated on `activate()` / `deprecate()`.
7406
+ */
7407
+ async resolveEntries(registryId) {
7408
+ const cacheKey = cacheKeyFor(registryId);
7409
+ const cached = this.resolvedCache.get(cacheKey);
7410
+ if (cached) return cached;
7411
+ const registry = await this.registryModel.findById(registryId).lean().exec();
7412
+ if (!registry) {
7413
+ throw new Error(
7414
+ `CvcRegistryService.resolveEntries: registry not found: ${registryId.toString()}`
7415
+ );
7416
+ }
7417
+ const { entries } = await resolveRegistryWithInheritance(
7418
+ registry,
7419
+ (id) => this.registryModel.findById(id).lean().exec(),
7420
+ (domain, version) => this.entryModel.find({ domain, version }).lean().exec()
7421
+ );
7422
+ this.resolvedCache.set(cacheKey, entries);
7423
+ return entries;
7424
+ }
7425
+ /**
7426
+ * Same as {@link resolveEntries} but filtered to a single CVC domain.
7427
+ * Filtering is done on the cached set so repeated calls for different
7428
+ * domains share the same underlying load.
7429
+ */
7430
+ async resolveEntriesForDomain(registryId, domain) {
7431
+ const all = await this.resolveEntries(registryId);
7432
+ return all.filter((entry) => entry.domain === domain);
7433
+ }
7434
+ // ──────────────────────────────────────────────────────────────────────────
7435
+ // Entry lookups (convenience — resolve through the active registry)
7436
+ // ──────────────────────────────────────────────────────────────────────────
7437
+ /**
7438
+ * Find an entry by its 7-segment positional code within the active
7439
+ * registry for `scope`. Returns `null` if no active registry exists or
7440
+ * the code isn't present in the resolved entry set.
7441
+ */
7442
+ async getEntryByCode(scope, code) {
7443
+ const registry = await this.getActiveRegistry(scope);
7444
+ if (!registry) return null;
7445
+ const entries = await this.resolveEntries(registry._id);
7446
+ return entries.find((entry) => entry.code === code) ?? null;
7447
+ }
7448
+ /**
7449
+ * Find an entry by its stable machine key within a specific domain in the
7450
+ * active registry. Keys are unique per `(domain, version)` so the lookup
7451
+ * always returns at most one entry.
7452
+ */
7453
+ async getEntryByKey(scope, domain, key) {
7454
+ const registry = await this.getActiveRegistry(scope);
7455
+ if (!registry) return null;
7456
+ const entries = await this.resolveEntriesForDomain(registry._id, domain);
7457
+ return entries.find((entry) => entry.key === key) ?? null;
7458
+ }
7459
+ /**
7460
+ * Get every resolved entry for a given domain in the active registry.
7461
+ */
7462
+ async getEntries(scope, domain) {
7463
+ const registry = await this.getActiveRegistry(scope);
7464
+ if (!registry) return [];
7465
+ return this.resolveEntriesForDomain(registry._id, domain);
7466
+ }
7467
+ /**
7468
+ * Get only the selectable (leaf) entries for a domain — useful for form
7469
+ * dropdowns where structural grouping rows must be hidden.
7470
+ */
7471
+ async getSelectableEntries(scope, domain) {
7472
+ const entries = await this.getEntries(scope, domain);
7473
+ return entries.filter((entry) => entry.selectable);
7474
+ }
7475
+ /**
7476
+ * Get the direct children of a parent code within the active registry.
7477
+ * Returns `[]` for leaves and for codes not present in the resolved set.
7478
+ */
7479
+ async getChildren(scope, code) {
7480
+ const registry = await this.getActiveRegistry(scope);
7481
+ if (!registry) return [];
7482
+ const entries = await this.resolveEntries(registry._id);
7483
+ return entries.filter((entry) => entry.parentCode === code);
7484
+ }
7485
+ /**
7486
+ * Walk the parent chain from `code` up to the tree root, returning the
7487
+ * ancestors in **root → entry** order (the entry itself is not included).
7488
+ * Stops early if a parent code references an entry that isn't present in
7489
+ * the resolved set — that's a corrupt-tree signal but we'd rather return
7490
+ * a partial chain than throw inside a UI breadcrumb call.
7491
+ */
7492
+ async getAncestors(scope, code) {
7493
+ const registry = await this.getActiveRegistry(scope);
7494
+ if (!registry) return [];
7495
+ const entries = await this.resolveEntries(registry._id);
7496
+ const byCode = new Map(entries.map((entry) => [entry.code, entry]));
7497
+ const chain = [];
7498
+ let current = byCode.get(code);
7499
+ const seen = /* @__PURE__ */ new Set();
7500
+ while (current?.parentCode && !seen.has(current.parentCode)) {
7501
+ seen.add(current.parentCode);
7502
+ const parent = byCode.get(current.parentCode);
7503
+ if (!parent) break;
7504
+ chain.push(parent);
7505
+ current = parent;
7506
+ }
7507
+ return chain.reverse();
7508
+ }
7509
+ // ──────────────────────────────────────────────────────────────────────────
7510
+ // Test seam: cache introspection
7511
+ // ──────────────────────────────────────────────────────────────────────────
7512
+ /**
7513
+ * Test-only accessor for the resolved-entry cache. Exposed so service
7514
+ * tests can assert that `activate()` / `deprecate()` actually flush the
7515
+ * cache, and so consumers diagnosing stale-data bugs can dump the live
7516
+ * keyset. Not part of the locked spec API surface — treat as internal.
7517
+ */
7518
+ get __cacheKeysForTests() {
7519
+ return [...this.resolvedCache.keys()];
7520
+ }
7521
+ };
7522
+
7523
+ // src/validation/cvc.ts
7524
+ var import_zod = require("zod");
7525
+ var CvcCodeSchema = import_zod.z.string().regex(/^\d{3}(-\d{3}){6}$/);
7526
+ var CvcKeySchema = import_zod.z.string().regex(/^[a-z][a-z0-9_]*$/);
7527
+ var CvcEntrySchema = import_zod.z.object({
7528
+ code: CvcCodeSchema,
7529
+ key: CvcKeySchema,
7530
+ title: import_zod.z.string().min(1),
7531
+ selectable: import_zod.z.boolean(),
7532
+ parentCode: CvcCodeSchema.nullable(),
7533
+ childCodes: import_zod.z.array(CvcCodeSchema),
7534
+ definition: import_zod.z.string().nullable()
7535
+ }).passthrough();
7536
+ var ServiceCategoryEntrySchema = CvcEntrySchema.extend({
7537
+ relevantMechanisms: import_zod.z.array(CvcKeySchema).nullable()
7538
+ });
7539
+ var CvcEnvelopeSchema = import_zod.z.object({
7540
+ domain: import_zod.z.string().min(1),
7541
+ name: import_zod.z.string().min(1),
7542
+ version: import_zod.z.string().min(1),
7543
+ levels: import_zod.z.record(import_zod.z.string(), import_zod.z.string()),
7544
+ entries: import_zod.z.array(CvcEntrySchema)
7545
+ });
7546
+
7547
+ // src/cvcs/serviceCategories.v1.0.0.json
7548
+ var serviceCategories_v1_0_0_default = {
7549
+ domain: "service_categories",
7550
+ name: "Core Victim Service Categories",
7551
+ version: "1.0.0",
7552
+ levels: {
7553
+ "0": "Unknown or Missing",
7554
+ "1": "Service Topics",
7555
+ "2": "Primary Service",
7556
+ "3": "Sub-Category",
7557
+ "4": "Sub-Sub Category",
7558
+ "5": "Sub-Sub-Sub Category"
7559
+ },
7560
+ entries: [
7561
+ {
7562
+ code: "022-002-000-000-000-000-000",
7563
+ key: "social_support_community_engagement",
7564
+ title: "Social Support & Community Engagement Services",
7565
+ selectable: false,
7566
+ parentCode: null,
7567
+ childCodes: [
7568
+ "022-002-001-000-000-000-000",
7569
+ "022-002-002-000-000-000-000",
7570
+ "022-002-003-000-000-000-000",
7571
+ "022-002-004-000-000-000-000",
7572
+ "022-002-005-000-000-000-000"
7573
+ ],
7574
+ definition: "Services and activities that foster social connection, emotional support, cultural belonging, and positive community engagement for survivors.",
7575
+ relevantMechanisms: null
7576
+ },
7577
+ {
7578
+ code: "022-002-001-000-000-000-000",
7579
+ key: "cultural_needs_support",
7580
+ title: "Cultural needs support",
7581
+ selectable: true,
7582
+ parentCode: "022-002-000-000-000-000-000",
7583
+ childCodes: [],
7584
+ definition: "Support that helps survivors maintain cultural identity, traditions, or practices.",
7585
+ relevantMechanisms: [
7586
+ "direct_staff_contractor",
7587
+ "financial_material_assistance",
7588
+ "support_via_referral",
7589
+ "informational_support"
7590
+ ]
7591
+ },
7592
+ {
7593
+ code: "022-002-002-000-000-000-000",
7594
+ key: "gift_holiday_resources",
7595
+ title: "Gift/Holiday Resources Support",
7596
+ selectable: true,
7597
+ parentCode: "022-002-000-000-000-000-000",
7598
+ childCodes: [],
7599
+ definition: "Support that helps survivors observe holidays or celebrations that promote belonging and well-being.",
7600
+ relevantMechanisms: [
7601
+ "direct_staff_contractor",
7602
+ "financial_material_assistance",
7603
+ "support_via_referral",
7604
+ "informational_support"
7605
+ ]
7606
+ },
7607
+ {
7608
+ code: "022-002-003-000-000-000-000",
7609
+ key: "peer_facilitated_supportive_group",
7610
+ title: "Peer/facilitated supportive group",
7611
+ selectable: true,
7612
+ parentCode: "022-002-000-000-000-000-000",
7613
+ childCodes: [],
7614
+ definition: "Interactive group sessions for adult/child victims/survivors that may be topic oriented and educational.",
7615
+ relevantMechanisms: [
7616
+ "direct_staff_contractor",
7617
+ "support_via_referral",
7618
+ "informational_support"
7619
+ ]
7620
+ },
7621
+ {
7622
+ code: "022-002-004-000-000-000-000",
7623
+ key: "community_service_learning",
7624
+ title: "Community service learning",
7625
+ selectable: true,
7626
+ parentCode: "022-002-000-000-000-000-000",
7627
+ childCodes: [],
7628
+ definition: "The opportunity to participate in structured community service or program-required service hours.",
7629
+ relevantMechanisms: [
7630
+ "direct_staff_contractor",
7631
+ "financial_material_assistance",
7632
+ "support_via_referral",
7633
+ "informational_support"
7634
+ ]
7635
+ },
7636
+ {
7637
+ code: "022-002-005-000-000-000-000",
7638
+ key: "survivor_support_psychoeducation",
7639
+ title: "Survivor Support Psychoeducation",
7640
+ selectable: true,
7641
+ parentCode: "022-002-000-000-000-000-000",
7642
+ childCodes: [],
7643
+ definition: "Supportive services provided to a survivor and/or their social support system to help them understand trafficking and address challenges.",
7644
+ relevantMechanisms: null
7645
+ },
7646
+ {
7647
+ code: "022-003-000-000-000-000-000",
7648
+ key: "financial_and_employment",
7649
+ title: "Financial and Employment",
7650
+ selectable: false,
7651
+ parentCode: null,
7652
+ childCodes: [
7653
+ "022-003-001-000-000-000-000",
7654
+ "022-003-002-000-000-000-000"
7655
+ ],
7656
+ definition: "Services, resources, and supports that address a survivor's financial stability and employment pathways.",
7657
+ relevantMechanisms: [
7658
+ "direct_staff_contractor",
7659
+ "financial_material_assistance",
7660
+ "support_via_referral",
7661
+ "informational_support"
7662
+ ]
7663
+ },
7664
+ {
7665
+ code: "022-003-001-000-000-000-000",
7666
+ key: "financial_support",
7667
+ title: "Financial Support (Budgeting & Financial Capability)",
7668
+ selectable: true,
7669
+ parentCode: "022-003-000-000-000-000-000",
7670
+ childCodes: [
7671
+ "022-003-001-001-000-000-000"
7672
+ ],
7673
+ definition: "Support focused on improving a survivor's financial stability through financial coaching/education.",
7674
+ relevantMechanisms: [
7675
+ "direct_staff_contractor",
7676
+ "financial_material_assistance",
7677
+ "support_via_referral",
7678
+ "informational_support"
7679
+ ]
7680
+ },
7681
+ {
7682
+ code: "022-003-001-001-000-000-000",
7683
+ key: "emergency_financial_assistance",
7684
+ title: "Emergency financial assistance",
7685
+ selectable: true,
7686
+ parentCode: "022-003-001-000-000-000-000",
7687
+ childCodes: [],
7688
+ definition: "Direct financial support provided to address an immediate, time-sensitive financial barrier to safety or stability.",
7689
+ relevantMechanisms: [
7690
+ "financial_material_assistance",
7691
+ "support_via_referral"
7692
+ ]
7693
+ },
7694
+ {
7695
+ code: "022-003-002-000-000-000-000",
7696
+ key: "employment_support",
7697
+ title: "Employment Support",
7698
+ selectable: true,
7699
+ parentCode: "022-003-000-000-000-000-000",
7700
+ childCodes: [
7701
+ "022-003-002-001-000-000-000",
7702
+ "022-003-002-002-000-000-000",
7703
+ "022-003-002-003-000-000-000"
7704
+ ],
7705
+ definition: "Support that helps survivors obtain, retain, or improve employment.",
7706
+ relevantMechanisms: [
7707
+ "direct_staff_contractor",
7708
+ "financial_material_assistance",
7709
+ "support_via_referral",
7710
+ "informational_support"
7711
+ ]
7712
+ },
7713
+ {
7714
+ code: "022-003-002-001-000-000-000",
7715
+ key: "supported_employment",
7716
+ title: "Supported Employment (e.g., paid employment, internship)",
7717
+ selectable: true,
7718
+ parentCode: "022-003-002-000-000-000-000",
7719
+ childCodes: [],
7720
+ definition: "Program-supported placement into paid employment, internship, or subsidized employment.",
7721
+ relevantMechanisms: [
7722
+ "direct_staff_contractor",
7723
+ "informational_support"
7724
+ ]
7725
+ },
7726
+ {
7727
+ code: "022-003-002-002-000-000-000",
7728
+ key: "employment_assistance_job_search",
7729
+ title: "Employment Assistance / Job Search & Readiness",
7730
+ selectable: true,
7731
+ parentCode: "022-003-002-000-000-000-000",
7732
+ childCodes: [],
7733
+ definition: "Hands-on assistance to help survivors seek and secure employment.",
7734
+ relevantMechanisms: [
7735
+ "direct_staff_contractor",
7736
+ "financial_material_assistance",
7737
+ "support_via_referral",
7738
+ "informational_support"
7739
+ ]
7740
+ },
7741
+ {
7742
+ code: "022-003-002-003-000-000-000",
7743
+ key: "job_vocation_training",
7744
+ title: "Job/Vocation Training",
7745
+ selectable: true,
7746
+ parentCode: "022-003-002-000-000-000-000",
7747
+ childCodes: [],
7748
+ definition: "Structured workforce preparation through job readiness programming and/or vocational training.",
7749
+ relevantMechanisms: [
7750
+ "direct_staff_contractor",
7751
+ "informational_support",
7752
+ "financial_material_assistance",
7753
+ "support_via_referral"
7754
+ ]
7755
+ },
7756
+ {
7757
+ code: "022-004-000-000-000-000-000",
7758
+ key: "healthcare",
7759
+ title: "Healthcare",
7760
+ selectable: false,
7761
+ parentCode: null,
7762
+ childCodes: [
7763
+ "022-004-001-000-000-000-000",
7764
+ "022-004-002-000-000-000-000"
7765
+ ],
7766
+ definition: "Services provided to address a survivor's physical, mental, and emotional health needs through medical, behavioral health, or related health services.",
7767
+ relevantMechanisms: null
7768
+ },
7769
+ {
7770
+ code: "022-004-001-000-000-000-000",
7771
+ key: "medical",
7772
+ title: "Medical",
7773
+ selectable: true,
7774
+ parentCode: "022-004-000-000-000-000-000",
7775
+ childCodes: [
7776
+ "022-004-001-001-000-000-000",
7777
+ "022-004-001-002-000-000-000",
7778
+ "022-004-001-003-000-000-000",
7779
+ "022-004-001-004-000-000-000"
7780
+ ],
7781
+ definition: "Clinical services provided by licensed healthcare professionals to address a survivor's physical health needs.",
7782
+ relevantMechanisms: [
7783
+ "direct_staff_contractor",
7784
+ "financial_material_assistance",
7785
+ "support_via_referral",
7786
+ "informational_support"
7787
+ ]
7788
+ },
7789
+ {
7790
+ code: "022-004-001-001-000-000-000",
7791
+ key: "emergency_medical_care",
7792
+ title: "Emergency Medical Care",
7793
+ selectable: true,
7794
+ parentCode: "022-004-001-000-000-000-000",
7795
+ childCodes: [],
7796
+ definition: "Services related to emergency medical care for overall health (including vision and dental).",
7797
+ relevantMechanisms: [
7798
+ "direct_staff_contractor",
7799
+ "financial_material_assistance",
7800
+ "support_via_referral",
7801
+ "informational_support"
7802
+ ]
7803
+ },
7804
+ {
7805
+ code: "022-004-001-002-000-000-000",
7806
+ key: "forensic_exam_interview",
7807
+ title: "Performance of medical or non-medical forensic exam or interview",
7808
+ selectable: true,
7809
+ parentCode: "022-004-001-000-000-000-000",
7810
+ childCodes: [
7811
+ "022-004-001-002-001-000-000",
7812
+ "022-004-001-002-002-000-000",
7813
+ "022-004-001-002-003-000-000",
7814
+ "022-004-001-002-004-000-000"
7815
+ ],
7816
+ definition: "Conducting/performing a forensic exam/interview/medical evidence collection consistent with jurisdiction requirements.",
7817
+ relevantMechanisms: [
7818
+ "direct_staff_contractor",
7819
+ "financial_material_assistance",
7820
+ "support_via_referral",
7821
+ "informational_support"
7822
+ ]
7823
+ },
7824
+ {
7825
+ code: "022-004-001-002-001-000-000",
7826
+ key: "dv_exam",
7827
+ title: "DV Exam",
7828
+ selectable: true,
7829
+ parentCode: "022-004-001-002-000-000-000",
7830
+ childCodes: [],
7831
+ definition: null,
7832
+ relevantMechanisms: [
7833
+ "direct_staff_contractor",
7834
+ "financial_material_assistance",
7835
+ "support_via_referral",
7836
+ "informational_support"
7837
+ ]
7838
+ },
7839
+ {
7840
+ code: "022-004-001-002-002-000-000",
7841
+ key: "sane_exam",
7842
+ title: "SANE Exam",
7843
+ selectable: true,
7844
+ parentCode: "022-004-001-002-000-000-000",
7845
+ childCodes: [],
7846
+ definition: null,
7847
+ relevantMechanisms: [
7848
+ "direct_staff_contractor",
7849
+ "financial_material_assistance",
7850
+ "support_via_referral",
7851
+ "informational_support"
7852
+ ]
7853
+ },
7854
+ {
7855
+ code: "022-004-001-002-003-000-000",
7856
+ key: "std_testing",
7857
+ title: "STD Testing",
7858
+ selectable: true,
7859
+ parentCode: "022-004-001-002-000-000-000",
7860
+ childCodes: [],
7861
+ definition: null,
7862
+ relevantMechanisms: [
7863
+ "direct_staff_contractor",
7864
+ "financial_material_assistance",
7865
+ "support_via_referral",
7866
+ "informational_support"
7867
+ ]
7868
+ },
7869
+ {
7870
+ code: "022-004-001-002-004-000-000",
7871
+ key: "specialized_assessments",
7872
+ title: "Specialized Assessments",
7873
+ selectable: true,
7874
+ parentCode: "022-004-001-002-000-000-000",
7875
+ childCodes: [
7876
+ "022-004-001-002-004-001-000",
7877
+ "022-004-001-002-004-002-000",
7878
+ "022-004-001-002-004-003-000",
7879
+ "022-004-001-002-004-004-000"
7880
+ ],
7881
+ definition: "Assessment means an appropriate course of assistance based on a face-to-face formal screening (must be performed by a clinician).",
7882
+ relevantMechanisms: [
7883
+ "direct_staff_contractor",
7884
+ "support_via_referral",
7885
+ "informational_support"
7886
+ ]
7887
+ },
7888
+ {
7889
+ code: "022-004-001-002-004-001-000",
7890
+ key: "counseling_evaluation_assessment",
7891
+ title: "Counseling Evaluation and Assessment",
7892
+ selectable: true,
7893
+ parentCode: "022-004-001-002-004-000-000",
7894
+ childCodes: [],
7895
+ definition: null,
7896
+ relevantMechanisms: null
7897
+ },
7898
+ {
7899
+ code: "022-004-001-002-004-002-000",
7900
+ key: "stalking_assessment",
7901
+ title: "Stalking Assessment",
7902
+ selectable: true,
7903
+ parentCode: "022-004-001-002-004-000-000",
7904
+ childCodes: [],
7905
+ definition: null,
7906
+ relevantMechanisms: null
7907
+ },
7908
+ {
7909
+ code: "022-004-001-002-004-003-000",
7910
+ key: "danger_assessment",
7911
+ title: "Danger Assessment",
7912
+ selectable: true,
7913
+ parentCode: "022-004-001-002-004-000-000",
7914
+ childCodes: [],
7915
+ definition: null,
7916
+ relevantMechanisms: null
7917
+ },
7918
+ {
7919
+ code: "022-004-001-002-004-004-000",
7920
+ key: "indepth_assessment",
7921
+ title: "In-depth Assessment",
7922
+ selectable: true,
7923
+ parentCode: "022-004-001-002-004-000-000",
7924
+ childCodes: [],
7925
+ definition: null,
7926
+ relevantMechanisms: null
7927
+ },
7928
+ {
7929
+ code: "022-004-001-003-000-000-000",
7930
+ key: "outpatient_medical",
7931
+ title: "Outpatient Medical (Medication Assistance; Long-Term, Non-Therapeutic Medical Care)",
7932
+ selectable: true,
7933
+ parentCode: "022-004-001-000-000-000-000",
7934
+ childCodes: [
7935
+ "022-004-001-003-001-000-000",
7936
+ "022-004-001-003-002-000-000",
7937
+ "022-004-001-003-003-000-000",
7938
+ "022-004-001-003-004-000-000"
7939
+ ],
7940
+ definition: "Services provided by a licensed health provider including overall physical health.",
7941
+ relevantMechanisms: [
7942
+ "direct_staff_contractor",
7943
+ "financial_material_assistance",
7944
+ "support_via_referral",
7945
+ "informational_support"
7946
+ ]
7947
+ },
7948
+ {
7949
+ code: "022-004-001-003-001-000-000",
7950
+ key: "dental",
7951
+ title: "Dental",
7952
+ selectable: true,
7953
+ parentCode: "022-004-001-003-000-000-000",
7954
+ childCodes: [],
7955
+ definition: null,
7956
+ relevantMechanisms: [
7957
+ "direct_staff_contractor",
7958
+ "financial_material_assistance",
7959
+ "support_via_referral",
7960
+ "informational_support"
7961
+ ]
7962
+ },
7963
+ {
7964
+ code: "022-004-001-003-002-000-000",
7965
+ key: "vision",
7966
+ title: "Vision",
7967
+ selectable: true,
7968
+ parentCode: "022-004-001-003-000-000-000",
7969
+ childCodes: [],
7970
+ definition: null,
7971
+ relevantMechanisms: [
7972
+ "direct_staff_contractor",
7973
+ "financial_material_assistance",
7974
+ "support_via_referral",
7975
+ "informational_support"
7976
+ ]
7977
+ },
7978
+ {
7979
+ code: "022-004-001-003-003-000-000",
7980
+ key: "tattoo_removal",
7981
+ title: "Tattoo Removal",
7982
+ selectable: true,
7983
+ parentCode: "022-004-001-003-000-000-000",
7984
+ childCodes: [],
7985
+ definition: null,
7986
+ relevantMechanisms: [
7987
+ "direct_staff_contractor",
7988
+ "financial_material_assistance",
7989
+ "support_via_referral",
7990
+ "informational_support"
7991
+ ]
7992
+ },
7993
+ {
7994
+ code: "022-004-001-003-004-000-000",
7995
+ key: "pet_medical",
7996
+ title: "Pet Medical",
7997
+ selectable: true,
7998
+ parentCode: "022-004-001-003-000-000-000",
7999
+ childCodes: [],
8000
+ definition: null,
8001
+ relevantMechanisms: [
8002
+ "direct_staff_contractor",
8003
+ "financial_material_assistance",
8004
+ "support_via_referral",
8005
+ "informational_support"
8006
+ ]
8007
+ },
8008
+ {
8009
+ code: "022-004-001-004-000-000-000",
8010
+ key: "pregnancy_care",
8011
+ title: "Pregnancy Care",
8012
+ selectable: true,
8013
+ parentCode: "022-004-001-000-000-000-000",
8014
+ childCodes: [
8015
+ "022-004-001-004-001-000-000",
8016
+ "022-004-001-004-002-000-000",
8017
+ "022-004-001-004-003-000-000"
8018
+ ],
8019
+ definition: "Medical services provided to support health during pregnancy, childbirth, and the post-partum period.",
8020
+ relevantMechanisms: null
8021
+ },
8022
+ {
8023
+ code: "022-004-001-004-001-000-000",
8024
+ key: "prenatal_care",
8025
+ title: "Prenatal Care",
8026
+ selectable: true,
8027
+ parentCode: "022-004-001-004-000-000-000",
8028
+ childCodes: [],
8029
+ definition: "Medical care provided during pregnancy to monitor maternal and fetal health.",
8030
+ relevantMechanisms: [
8031
+ "direct_staff_contractor",
8032
+ "financial_material_assistance",
8033
+ "support_via_referral",
8034
+ "informational_support"
8035
+ ]
8036
+ },
8037
+ {
8038
+ code: "022-004-001-004-002-000-000",
8039
+ key: "postnatal_care_client",
8040
+ title: "Post-natal care for clients post-birth",
8041
+ selectable: true,
8042
+ parentCode: "022-004-001-004-000-000-000",
8043
+ childCodes: [],
8044
+ definition: "Medical services provided to a client after childbirth.",
8045
+ relevantMechanisms: [
8046
+ "direct_staff_contractor",
8047
+ "financial_material_assistance",
8048
+ "support_via_referral",
8049
+ "informational_support"
8050
+ ]
8051
+ },
8052
+ {
8053
+ code: "022-004-001-004-003-000-000",
8054
+ key: "postnatal_care_newborn",
8055
+ title: "Post-natal care for newborn care (exams / immunizations)",
8056
+ selectable: true,
8057
+ parentCode: "022-004-001-004-000-000-000",
8058
+ childCodes: [],
8059
+ definition: "Medical services provided to newborns following birth.",
8060
+ relevantMechanisms: [
8061
+ "direct_staff_contractor",
8062
+ "financial_material_assistance",
8063
+ "support_via_referral",
8064
+ "informational_support"
8065
+ ]
8066
+ },
8067
+ {
8068
+ code: "022-004-002-000-000-000-000",
8069
+ key: "emotional_support_mental_health",
8070
+ title: "Emotional Support, Mental Health, & Safety",
8071
+ selectable: true,
8072
+ parentCode: "022-004-000-000-000-000-000",
8073
+ childCodes: [
8074
+ "022-004-002-001-000-000-000",
8075
+ "022-004-002-002-000-000-000",
8076
+ "022-004-002-003-000-000-000",
8077
+ "022-004-002-004-000-000-000",
8078
+ "022-004-002-005-000-000-000",
8079
+ "022-004-002-006-000-000-000",
8080
+ "022-004-002-007-000-000-000"
8081
+ ],
8082
+ definition: "Evaluate and assess the victim/survivor's current situation. Provide appropriate therapy services.",
8083
+ relevantMechanisms: [
8084
+ "direct_staff_contractor",
8085
+ "financial_material_assistance",
8086
+ "support_via_referral",
8087
+ "informational_support"
8088
+ ]
8089
+ },
8090
+ {
8091
+ code: "022-004-002-001-000-000-000",
8092
+ key: "individual_counseling",
8093
+ title: "Individual Counseling (licensed behavioral health professional)",
8094
+ selectable: true,
8095
+ parentCode: "022-004-002-000-000-000-000",
8096
+ childCodes: [],
8097
+ definition: "A face-to-face therapeutic session with one-on-one interaction between a licensed professional and an individual.",
8098
+ relevantMechanisms: [
8099
+ "direct_staff_contractor",
8100
+ "financial_material_assistance",
8101
+ "support_via_referral",
8102
+ "informational_support"
8103
+ ]
8104
+ },
8105
+ {
8106
+ code: "022-004-002-002-000-000-000",
8107
+ key: "group_counseling",
8108
+ title: "Group Counseling (licensed behavioral health professional)",
8109
+ selectable: true,
8110
+ parentCode: "022-004-002-000-000-000-000",
8111
+ childCodes: [],
8112
+ definition: "A face-to-face therapeutic session with a group of adult/child victims/survivors.",
8113
+ relevantMechanisms: [
8114
+ "direct_staff_contractor",
8115
+ "support_via_referral",
8116
+ "informational_support"
8117
+ ]
8118
+ },
8119
+ {
8120
+ code: "022-004-002-003-000-000-000",
8121
+ key: "family_counseling",
8122
+ title: "Family Counseling",
8123
+ selectable: true,
8124
+ parentCode: "022-004-002-000-000-000-000",
8125
+ childCodes: [],
8126
+ definition: "Therapeutic services provided to a family or family unit by a licensed behavioral health professional.",
8127
+ relevantMechanisms: [
8128
+ "direct_staff_contractor",
8129
+ "financial_material_assistance",
8130
+ "support_via_referral",
8131
+ "informational_support"
8132
+ ]
8133
+ },
8134
+ {
8135
+ code: "022-004-002-004-000-000-000",
8136
+ key: "counseling_treatment_planning",
8137
+ title: "Counseling Treatment Planning",
8138
+ selectable: true,
8139
+ parentCode: "022-004-002-000-000-000-000",
8140
+ childCodes: [],
8141
+ definition: "The process of developing a written plan based on assessments that identify abuse issues necessitating treatment.",
8142
+ relevantMechanisms: [
8143
+ "direct_staff_contractor",
8144
+ "financial_material_assistance",
8145
+ "support_via_referral",
8146
+ "informational_support"
8147
+ ]
8148
+ },
8149
+ {
8150
+ code: "022-004-002-005-000-000-000",
8151
+ key: "counseling_treatment_plan_review",
8152
+ title: "Counseling Treatment Plan Review",
8153
+ selectable: true,
8154
+ parentCode: "022-004-002-000-000-000-000",
8155
+ childCodes: [],
8156
+ definition: "The evaluation or updating of the treatment plan based on documented progress.",
8157
+ relevantMechanisms: [
8158
+ "direct_staff_contractor",
8159
+ "financial_material_assistance",
8160
+ "support_via_referral",
8161
+ "informational_support"
8162
+ ]
8163
+ },
8164
+ {
8165
+ code: "022-004-002-006-000-000-000",
8166
+ key: "behavioral_occupational_support",
8167
+ title: "Behavioral, Occupational, & Support",
8168
+ selectable: true,
8169
+ parentCode: "022-004-002-000-000-000-000",
8170
+ childCodes: [
8171
+ "022-004-002-006-001-000-000",
8172
+ "022-004-002-006-002-000-000"
8173
+ ],
8174
+ definition: "Clinical or therapeutic services that support a survivor's mental, emotional, or functional well-being.",
8175
+ relevantMechanisms: [
8176
+ "direct_staff_contractor",
8177
+ "financial_material_assistance",
8178
+ "support_via_referral",
8179
+ "informational_support"
8180
+ ]
8181
+ },
8182
+ {
8183
+ code: "022-004-002-006-001-000-000",
8184
+ key: "substance_abuse_treatment",
8185
+ title: "Substance Abuse Treatment",
8186
+ selectable: true,
8187
+ parentCode: "022-004-002-006-000-000-000",
8188
+ childCodes: [],
8189
+ definition: "Assessment and treatment of diagnosable substance abuse and dependence disorders by qualified professionals.",
8190
+ relevantMechanisms: [
8191
+ "direct_staff_contractor",
8192
+ "financial_material_assistance",
8193
+ "support_via_referral",
8194
+ "informational_support"
8195
+ ]
8196
+ },
8197
+ {
8198
+ code: "022-004-002-006-002-000-000",
8199
+ key: "coping_strategy_support",
8200
+ title: "Coping strategy support",
8201
+ selectable: true,
8202
+ parentCode: "022-004-002-006-000-000-000",
8203
+ childCodes: [],
8204
+ definition: "Therapeutic support focused on helping survivors develop and strengthen healthy coping skills.",
8205
+ relevantMechanisms: [
8206
+ "direct_staff_contractor",
8207
+ "financial_material_assistance",
8208
+ "support_via_referral",
8209
+ "informational_support"
8210
+ ]
8211
+ },
8212
+ {
8213
+ code: "022-004-002-007-000-000-000",
8214
+ key: "other_therapy",
8215
+ title: "Other Therapy",
8216
+ selectable: true,
8217
+ parentCode: "022-004-002-000-000-000-000",
8218
+ childCodes: [],
8219
+ definition: "Any other form of therapeutic support, including traditional, cultural, or alternative healing.",
8220
+ relevantMechanisms: [
8221
+ "direct_staff_contractor",
8222
+ "financial_material_assistance",
8223
+ "support_via_referral",
8224
+ "informational_support"
8225
+ ]
8226
+ },
8227
+ {
8228
+ code: "022-005-000-000-000-000-000",
8229
+ key: "housing_services",
8230
+ title: "Housing Services",
8231
+ selectable: false,
8232
+ parentCode: null,
8233
+ childCodes: [
8234
+ "022-005-001-000-000-000-000",
8235
+ "022-005-002-000-000-000-000",
8236
+ "022-005-003-000-000-000-000",
8237
+ "022-005-004-000-000-000-000",
8238
+ "022-005-005-000-000-000-000",
8239
+ "022-005-006-000-000-000-000"
8240
+ ],
8241
+ definition: "Services, resources, and supports that address a survivor's immediate shelter needs, longer-term housing access/placement, housing stability/eviction prevention, and safe habitability.",
8242
+ relevantMechanisms: null
8243
+ },
8244
+ {
8245
+ code: "022-005-001-000-000-000-000",
8246
+ key: "emergency_shelter",
8247
+ title: "Emergency Shelter & Immediate Safety Housing",
8248
+ selectable: true,
8249
+ parentCode: "022-005-000-000-000-000-000",
8250
+ childCodes: [
8251
+ "022-005-001-001-000-000-000",
8252
+ "022-005-001-002-000-000-000",
8253
+ "022-005-001-003-000-000-000",
8254
+ "022-005-001-004-000-000-000",
8255
+ "022-005-001-005-000-000-000"
8256
+ ],
8257
+ definition: "Immediate, short-term shelter or safe temporary housing provided to remove a survivor from danger.",
8258
+ relevantMechanisms: [
8259
+ "financial_material_assistance",
8260
+ "support_via_referral",
8261
+ "direct_staff_contractor",
8262
+ "informational_support"
8263
+ ]
8264
+ },
8265
+ {
8266
+ code: "022-005-001-001-000-000-000",
8267
+ key: "day_shelter_dropin",
8268
+ title: "Day Shelter / Drop-In",
8269
+ selectable: true,
8270
+ parentCode: "022-005-001-000-000-000-000",
8271
+ childCodes: [],
8272
+ definition: "A daytime-only shelter/safe space (no overnight lodging).",
8273
+ relevantMechanisms: [
8274
+ "financial_material_assistance",
8275
+ "support_via_referral"
8276
+ ]
8277
+ },
8278
+ {
8279
+ code: "022-005-001-002-000-000-000",
8280
+ key: "host_homes_safe_homes",
8281
+ title: "Host Homes / Safe Homes (Private Dwellings)",
8282
+ selectable: true,
8283
+ parentCode: "022-005-001-000-000-000-000",
8284
+ childCodes: [],
8285
+ definition: "Private dwellings used for temporary housing of survivors to ensure safety.",
8286
+ relevantMechanisms: [
8287
+ "support_via_referral",
8288
+ "informational_support"
8289
+ ]
8290
+ },
8291
+ {
8292
+ code: "022-005-001-003-000-000-000",
8293
+ key: "congregate_shelter_bednight",
8294
+ title: "Congregate Emergency Shelter Bednight",
8295
+ selectable: true,
8296
+ parentCode: "022-005-001-000-000-000-000",
8297
+ childCodes: [],
8298
+ definition: "Overnight emergency shelter placement through congregate shelter bed(s).",
8299
+ relevantMechanisms: [
8300
+ "direct_staff_contractor",
8301
+ "support_via_referral",
8302
+ "financial_material_assistance"
8303
+ ]
8304
+ },
8305
+ {
8306
+ code: "022-005-001-004-000-000-000",
8307
+ key: "emergency_hotel_motel",
8308
+ title: "Emergency Hotel/Motel Placement",
8309
+ selectable: true,
8310
+ parentCode: "022-005-001-000-000-000-000",
8311
+ childCodes: [],
8312
+ definition: "Overnight emergency shelter placement through hotel/motel placement/voucher.",
8313
+ relevantMechanisms: [
8314
+ "financial_material_assistance"
8315
+ ]
8316
+ },
8317
+ {
8318
+ code: "022-005-001-005-000-000-000",
8319
+ key: "night_by_night_shelter",
8320
+ title: "Night by Night Shelter",
8321
+ selectable: true,
8322
+ parentCode: "022-005-001-000-000-000-000",
8323
+ childCodes: [],
8324
+ definition: "Emergency shelter type used by high-volume shelters where clients spend a night as needed on an irregular basis.",
8325
+ relevantMechanisms: null
8326
+ },
8327
+ {
8328
+ code: "022-005-002-000-000-000-000",
8329
+ key: "transitional_housing",
8330
+ title: "Transitional & Longer-Term Temporary Housing",
8331
+ selectable: true,
8332
+ parentCode: "022-005-000-000-000-000-000",
8333
+ childCodes: [],
8334
+ definition: "Temporary housing programs (generally 6-24 months) with supportive services.",
8335
+ relevantMechanisms: [
8336
+ "support_via_referral",
8337
+ "financial_material_assistance",
8338
+ "direct_staff_contractor",
8339
+ "informational_support"
8340
+ ]
8341
+ },
8342
+ {
8343
+ code: "022-005-003-000-000-000-000",
8344
+ key: "housing_renovation_modification",
8345
+ title: "Housing Renovation / Modification",
8346
+ selectable: true,
8347
+ parentCode: "022-005-000-000-000-000-000",
8348
+ childCodes: [
8349
+ "022-005-003-001-000-000-000"
8350
+ ],
8351
+ definition: "Minor home repairs, safety improvements, or accessibility modifications.",
8352
+ relevantMechanisms: [
8353
+ "direct_staff_contractor",
8354
+ "financial_material_assistance",
8355
+ "support_via_referral",
8356
+ "informational_support"
8357
+ ]
8358
+ },
8359
+ {
8360
+ code: "022-005-003-001-000-000-000",
8361
+ key: "household_setup_goods",
8362
+ title: "Household Setup & Housing-Related Goods & Supplies Assistance",
8363
+ selectable: true,
8364
+ parentCode: "022-005-003-000-000-000-000",
8365
+ childCodes: [],
8366
+ definition: "Provision of household goods or equipment needed to establish or maintain safe, functional housing.",
8367
+ relevantMechanisms: [
8368
+ "financial_material_assistance",
8369
+ "support_via_referral"
8370
+ ]
8371
+ },
8372
+ {
8373
+ code: "022-005-004-000-000-000-000",
8374
+ key: "housing_navigation_placement",
8375
+ title: "Housing Navigation & Placement (Permanent Housing Access)",
8376
+ selectable: true,
8377
+ parentCode: "022-005-000-000-000-000-000",
8378
+ childCodes: [
8379
+ "022-005-004-001-000-000-000",
8380
+ "022-005-004-002-000-000-000"
8381
+ ],
8382
+ definition: "Support that helps survivors obtain permanent housing.",
8383
+ relevantMechanisms: [
8384
+ "direct_staff_contractor",
8385
+ "financial_material_assistance",
8386
+ "support_via_referral",
8387
+ "informational_support"
8388
+ ]
8389
+ },
8390
+ {
8391
+ code: "022-005-004-001-000-000-000",
8392
+ key: "housing_financial_assistance",
8393
+ title: "Housing Financial Assistance",
8394
+ selectable: true,
8395
+ parentCode: "022-005-004-000-000-000-000",
8396
+ childCodes: [
8397
+ "022-005-004-001-001-000-000"
8398
+ ],
8399
+ definition: "Direct financial support to cover housing-related costs.",
8400
+ relevantMechanisms: [
8401
+ "financial_material_assistance",
8402
+ "support_via_referral"
8403
+ ]
8404
+ },
8405
+ {
8406
+ code: "022-005-004-001-001-000-000",
8407
+ key: "rental_payment_assistance",
8408
+ title: "Rental Payment Assistance",
8409
+ selectable: true,
8410
+ parentCode: "022-005-004-001-000-000-000",
8411
+ childCodes: [
8412
+ "022-005-004-001-001-001-000",
8413
+ "022-005-004-001-001-002-000"
8414
+ ],
8415
+ definition: "Direct payment or subsidy for rent or rent arrears.",
8416
+ relevantMechanisms: [
8417
+ "financial_material_assistance",
8418
+ "support_via_referral"
8419
+ ]
8420
+ },
8421
+ {
8422
+ code: "022-005-004-001-001-001-000",
8423
+ key: "security_deposit_allowance",
8424
+ title: "Security Deposit Allowance",
8425
+ selectable: true,
8426
+ parentCode: "022-005-004-001-001-000-000",
8427
+ childCodes: [],
8428
+ definition: "Direct payment for a security deposit required to obtain housing.",
8429
+ relevantMechanisms: [
8430
+ "financial_material_assistance",
8431
+ "support_via_referral"
8432
+ ]
8433
+ },
8434
+ {
8435
+ code: "022-005-004-001-001-002-000",
8436
+ key: "utility_assistance",
8437
+ title: "Utility Assistance",
8438
+ selectable: true,
8439
+ parentCode: "022-005-004-001-001-000-000",
8440
+ childCodes: [],
8441
+ definition: "Direct payment for utility costs to obtain or maintain housing.",
8442
+ relevantMechanisms: [
8443
+ "financial_material_assistance",
8444
+ "support_via_referral"
8445
+ ]
8446
+ },
8447
+ {
8448
+ code: "022-005-004-002-000-000-000",
8449
+ key: "relocation_moving_assistance",
8450
+ title: "Relocation & Moving Assistance",
8451
+ selectable: true,
8452
+ parentCode: "022-005-004-000-000-000-000",
8453
+ childCodes: [],
8454
+ definition: "Support that enables a survivor to relocate and complete a move to safer/more stable housing.",
8455
+ relevantMechanisms: [
8456
+ "direct_staff_contractor",
8457
+ "financial_material_assistance",
8458
+ "support_via_referral"
8459
+ ]
8460
+ },
8461
+ {
8462
+ code: "022-005-005-000-000-000-000",
8463
+ key: "housing_stabilization_eviction_prevention",
8464
+ title: "Housing Stabilization & Eviction Prevention",
8465
+ selectable: true,
8466
+ parentCode: "022-005-000-000-000-000-000",
8467
+ childCodes: [],
8468
+ definition: "Services aimed at helping survivors remain safely housed and prevent homelessness.",
8469
+ relevantMechanisms: [
8470
+ "direct_staff_contractor",
8471
+ "financial_material_assistance",
8472
+ "support_via_referral",
8473
+ "informational_support"
8474
+ ]
8475
+ },
8476
+ {
8477
+ code: "022-005-006-000-000-000-000",
8478
+ key: "tenant_based_scattered_site",
8479
+ title: "Tenant-based scattered site",
8480
+ selectable: true,
8481
+ parentCode: "022-005-000-000-000-000-000",
8482
+ childCodes: [],
8483
+ definition: "Clients have leases in residences not owned or managed by the project/VSP agency.",
8484
+ relevantMechanisms: null
8485
+ },
8486
+ {
8487
+ code: "022-006-000-000-000-000-000",
8488
+ key: "legal_services",
8489
+ title: "Legal Services",
8490
+ selectable: false,
8491
+ parentCode: null,
8492
+ childCodes: [
8493
+ "022-006-001-000-000-000-000",
8494
+ "022-006-002-000-000-000-000",
8495
+ "022-006-003-000-000-000-000",
8496
+ "022-006-004-000-000-000-000",
8497
+ "022-006-005-000-000-000-000"
8498
+ ],
8499
+ definition: "Legal assistance and representation provided to support survivors in understanding, asserting, and protecting their legal rights.",
8500
+ relevantMechanisms: null
8501
+ },
8502
+ {
8503
+ code: "022-006-001-000-000-000-000",
8504
+ key: "immigration_relief",
8505
+ title: "Immigration Relief",
8506
+ selectable: true,
8507
+ parentCode: "022-006-000-000-000-000-000",
8508
+ childCodes: [
8509
+ "022-006-001-001-000-000-000"
8510
+ ],
8511
+ definition: "Immigration assistance (e.g., special visas, continued presence applications).",
8512
+ relevantMechanisms: [
8513
+ "direct_staff_contractor",
8514
+ "financial_material_assistance",
8515
+ "support_via_referral",
8516
+ "informational_support"
8517
+ ]
8518
+ },
8519
+ {
8520
+ code: "022-006-001-001-000-000-000",
8521
+ key: "repatriation",
8522
+ title: "Repatriation",
8523
+ selectable: true,
8524
+ parentCode: "022-006-001-000-000-000-000",
8525
+ childCodes: [],
8526
+ definition: "Services/activities related to the client's intention to return to their country of citizenship.",
8527
+ relevantMechanisms: null
8528
+ },
8529
+ {
8530
+ code: "022-006-002-000-000-000-000",
8531
+ key: "family_law",
8532
+ title: "Family law",
8533
+ selectable: true,
8534
+ parentCode: "022-006-000-000-000-000-000",
8535
+ childCodes: [],
8536
+ definition: "Assisting with custody/visitation/support and other family law issues.",
8537
+ relevantMechanisms: [
8538
+ "direct_staff_contractor",
8539
+ "financial_material_assistance",
8540
+ "support_via_referral",
8541
+ "informational_support"
8542
+ ]
8543
+ },
8544
+ {
8545
+ code: "022-006-003-000-000-000-000",
8546
+ key: "criminal_support",
8547
+ title: "Criminal support",
8548
+ selectable: true,
8549
+ parentCode: "022-006-000-000-000-000-000",
8550
+ childCodes: [
8551
+ "022-006-003-001-000-000-000",
8552
+ "022-006-003-002-000-000-000",
8553
+ "022-006-003-003-000-000-000",
8554
+ "022-006-003-004-000-000-000",
8555
+ "022-006-003-005-000-000-000"
8556
+ ],
8557
+ definition: "Notifying victims about hearings, defendant release, case status, and related criminal justice support.",
8558
+ relevantMechanisms: null
8559
+ },
8560
+ {
8561
+ code: "022-006-003-001-000-000-000",
8562
+ key: "victim_impact_statement",
8563
+ title: "Victim Impact Statement Assistance",
8564
+ selectable: true,
8565
+ parentCode: "022-006-003-000-000-000-000",
8566
+ childCodes: [],
8567
+ definition: "Assisting the victim with preparing/submitting an impact statement.",
8568
+ relevantMechanisms: null
8569
+ },
8570
+ {
8571
+ code: "022-006-003-002-000-000-000",
8572
+ key: "perpetrator_accountability",
8573
+ title: "Perpetrator Accountability | Batterer's Intervention Program",
8574
+ selectable: true,
8575
+ parentCode: "022-006-003-000-000-000-000",
8576
+ childCodes: [],
8577
+ definition: "Providing the client/survivor with information on perpetrator accountability programs.",
8578
+ relevantMechanisms: null
8579
+ },
8580
+ {
8581
+ code: "022-006-003-003-000-000-000",
8582
+ key: "victim_compensation",
8583
+ title: "Victim Compensation (Restitution)",
8584
+ selectable: true,
8585
+ parentCode: "022-006-003-000-000-000-000",
8586
+ childCodes: [],
8587
+ definition: "Assisting victims in requesting restitution.",
8588
+ relevantMechanisms: null
8589
+ },
8590
+ {
8591
+ code: "022-006-003-004-000-000-000",
8592
+ key: "victims_rights_representation",
8593
+ title: "Victim's Rights Representation",
8594
+ selectable: true,
8595
+ parentCode: "022-006-003-000-000-000-000",
8596
+ childCodes: [],
8597
+ definition: "Informing victims about victim-rights frameworks, compensation programs, and notification systems.",
8598
+ relevantMechanisms: null
8599
+ },
8600
+ {
8601
+ code: "022-006-003-005-000-000-000",
8602
+ key: "criminal_record_relief",
8603
+ title: "Criminal Record Relief",
8604
+ selectable: true,
8605
+ parentCode: "022-006-003-000-000-000-000",
8606
+ childCodes: [],
8607
+ definition: "Assistance addressing criminal record history resulting from the trafficking situation.",
8608
+ relevantMechanisms: null
8609
+ },
8610
+ {
8611
+ code: "022-006-004-000-000-000-000",
8612
+ key: "civil_support",
8613
+ title: "Civil Support",
8614
+ selectable: true,
8615
+ parentCode: "022-006-000-000-000-000-000",
8616
+ childCodes: [
8617
+ "022-006-004-001-000-000-000",
8618
+ "022-006-004-002-000-000-000"
8619
+ ],
8620
+ definition: "Legal assistance for non-criminal legal issues affecting a survivor's rights, safety, or stability.",
8621
+ relevantMechanisms: null
8622
+ },
8623
+ {
8624
+ code: "022-006-004-001-000-000-000",
8625
+ key: "protection_restraining_orders",
8626
+ title: "Protection or Restraining Orders",
8627
+ selectable: true,
8628
+ parentCode: "022-006-004-000-000-000-000",
8629
+ childCodes: [],
8630
+ definition: "Advising/assisting in obtaining orders and related follow-up hearings.",
8631
+ relevantMechanisms: null
8632
+ },
8633
+ {
8634
+ code: "022-006-004-002-000-000-000",
8635
+ key: "public_benefits_law",
8636
+ title: "Public Benefits Law",
8637
+ selectable: true,
8638
+ parentCode: "022-006-004-000-000-000-000",
8639
+ childCodes: [],
8640
+ definition: "Services to address social-service needs by informing clients of available benefits.",
8641
+ relevantMechanisms: null
8642
+ },
8643
+ {
8644
+ code: "022-006-005-000-000-000-000",
8645
+ key: "emergency_safety_assistance",
8646
+ title: "Emergency Safety Assistance",
8647
+ selectable: true,
8648
+ parentCode: "022-006-000-000-000-000-000",
8649
+ childCodes: [],
8650
+ definition: "Legal assistance that does not fit another subcategory.",
8651
+ relevantMechanisms: null
8652
+ },
8653
+ {
8654
+ code: "022-007-000-000-000-000-000",
8655
+ key: "basic_needs",
8656
+ title: "Basic Needs",
8657
+ selectable: false,
8658
+ parentCode: null,
8659
+ childCodes: [
8660
+ "022-007-001-000-000-000-000",
8661
+ "022-007-002-000-000-000-000",
8662
+ "022-007-003-000-000-000-000",
8663
+ "022-007-004-000-000-000-000",
8664
+ "022-007-005-000-000-000-000",
8665
+ "022-007-006-000-000-000-000",
8666
+ "022-007-007-000-000-000-000"
8667
+ ],
8668
+ definition: "Core supports provided to meet a survivor's essential daily living requirements.",
8669
+ relevantMechanisms: null
8670
+ },
8671
+ {
8672
+ code: "022-007-001-000-000-000-000",
8673
+ key: "clothing_shoes_accessories",
8674
+ title: "Clothing / Shoes / Accessories / Suitcases",
8675
+ selectable: true,
8676
+ parentCode: "022-007-000-000-000-000-000",
8677
+ childCodes: [
8678
+ "022-007-001-001-000-000-000"
8679
+ ],
8680
+ definition: "Essential clothing and personal items provided to support basic comfort, dignity, and immediate needs.",
8681
+ relevantMechanisms: [
8682
+ "financial_material_assistance",
8683
+ "support_via_referral"
8684
+ ]
8685
+ },
8686
+ {
8687
+ code: "022-007-001-001-000-000-000",
8688
+ key: "elder_assistance",
8689
+ title: "Elder Assistance",
8690
+ selectable: true,
8691
+ parentCode: "022-007-001-000-000-000-000",
8692
+ childCodes: [],
8693
+ definition: null,
8694
+ relevantMechanisms: null
8695
+ },
8696
+ {
8697
+ code: "022-007-002-000-000-000-000",
8698
+ key: "food",
8699
+ title: "Food",
8700
+ selectable: true,
8701
+ parentCode: "022-007-000-000-000-000-000",
8702
+ childCodes: [],
8703
+ definition: "Provision of food, meals, or related basic items to meet a survivor's immediate nutritional needs.",
8704
+ relevantMechanisms: [
8705
+ "financial_material_assistance",
8706
+ "support_via_referral"
8707
+ ]
8708
+ },
8709
+ {
8710
+ code: "022-007-003-000-000-000-000",
8711
+ key: "over_the_counter_medications",
8712
+ title: "Over the Counter Medications",
8713
+ selectable: true,
8714
+ parentCode: "022-007-000-000-000-000-000",
8715
+ childCodes: [],
8716
+ definition: "Non-prescription medications provided to address common, immediate health needs.",
8717
+ relevantMechanisms: [
8718
+ "financial_material_assistance",
8719
+ "support_via_referral"
8720
+ ]
8721
+ },
8722
+ {
8723
+ code: "022-007-004-000-000-000-000",
8724
+ key: "immediate_safety_planning",
8725
+ title: "Immediate Safety/Safety Planning",
8726
+ selectable: true,
8727
+ parentCode: "022-007-000-000-000-000-000",
8728
+ childCodes: [
8729
+ "022-007-004-001-000-000-000"
8730
+ ],
8731
+ definition: "A collaborative process of working with the survivor to develop or update practical safety tools and strategies.",
8732
+ relevantMechanisms: [
8733
+ "direct_staff_contractor",
8734
+ "support_via_referral",
8735
+ "informational_support"
8736
+ ]
8737
+ },
8738
+ {
8739
+ code: "022-007-004-001-000-000-000",
8740
+ key: "emergency_crisis_safety_support",
8741
+ title: "Emergency/Crisis & Safety Support (Non-Clinical)",
8742
+ selectable: true,
8743
+ parentCode: "022-007-004-000-000-000-000",
8744
+ childCodes: [],
8745
+ definition: "Services based upon a problem-solving model to provide information and referrals that assist a DV/SA or stalking victim/survivor in crisis.",
8746
+ relevantMechanisms: [
8747
+ "direct_staff_contractor",
8748
+ "support_via_referral",
8749
+ "informational_support"
8750
+ ]
8751
+ },
8752
+ {
8753
+ code: "022-007-005-000-000-000-000",
8754
+ key: "hygiene_items_personal_care",
8755
+ title: "Hygiene Items, Self-Care Resources, Toiletry, Personal Care",
8756
+ selectable: true,
8757
+ parentCode: "022-007-000-000-000-000-000",
8758
+ childCodes: [],
8759
+ definition: "Provision of basic hygiene and personal care items needed to support cleanliness, health, comfort, and dignity.",
8760
+ relevantMechanisms: [
8761
+ "financial_material_assistance",
8762
+ "support_via_referral"
8763
+ ]
8764
+ },
8765
+ {
8766
+ code: "022-007-006-000-000-000-000",
8767
+ key: "communications_connectivity",
8768
+ title: "Communications / Connectivity",
8769
+ selectable: true,
8770
+ parentCode: "022-007-000-000-000-000-000",
8771
+ childCodes: [],
8772
+ definition: "Support to ensure a survivor can communicate via access to phones, minutes, data, internet, devices, or related tools.",
8773
+ relevantMechanisms: [
8774
+ "financial_material_assistance",
8775
+ "support_via_referral"
8776
+ ]
8777
+ },
8778
+ {
8779
+ code: "022-007-007-000-000-000-000",
8780
+ key: "interpreter_services",
8781
+ title: "Interpreter Services",
8782
+ selectable: true,
8783
+ parentCode: "022-007-000-000-000-000-000",
8784
+ childCodes: [],
8785
+ definition: "Providing communication supports for victims with limited English proficiency or communication-related disabilities.",
8786
+ relevantMechanisms: null
8787
+ },
8788
+ {
8789
+ code: "022-008-000-000-000-000-000",
8790
+ key: "informal_education_life_skills",
8791
+ title: "Informal Education & Life Skills",
8792
+ selectable: false,
8793
+ parentCode: null,
8794
+ childCodes: [
8795
+ "022-008-001-000-000-000-000",
8796
+ "022-008-002-000-000-000-000",
8797
+ "022-008-003-000-000-000-000",
8798
+ "022-008-004-000-000-000-000"
8799
+ ],
8800
+ definition: "Services that support a survivor in accessing or succeeding in formal education and/or building practical life skills.",
8801
+ relevantMechanisms: [
8802
+ "direct_staff_contractor",
8803
+ "financial_material_assistance",
8804
+ "informational_support"
8805
+ ]
8806
+ },
8807
+ {
8808
+ code: "022-008-001-000-000-000-000",
8809
+ key: "basic_life_skills_self_care",
8810
+ title: "Basic Life Skills & Self-Care",
8811
+ selectable: true,
8812
+ parentCode: "022-008-000-000-000-000-000",
8813
+ childCodes: [],
8814
+ definition: "Non-clinical supports that build survivors' day-to-day functioning and independence skills.",
8815
+ relevantMechanisms: [
8816
+ "direct_staff_contractor",
8817
+ "financial_material_assistance",
8818
+ "informational_support"
8819
+ ]
8820
+ },
8821
+ {
8822
+ code: "022-008-002-000-000-000-000",
8823
+ key: "accessibility_disability_support",
8824
+ title: "Accessibility & Disability Independence Support",
8825
+ selectable: true,
8826
+ parentCode: "022-008-000-000-000-000-000",
8827
+ childCodes: [],
8828
+ definition: "Non-clinical support that helps a survivor obtain or use accessibility accommodations and disability-related resources.",
8829
+ relevantMechanisms: [
8830
+ "direct_staff_contractor",
8831
+ "financial_material_assistance",
8832
+ "informational_support"
8833
+ ]
8834
+ },
8835
+ {
8836
+ code: "022-008-003-000-000-000-000",
8837
+ key: "parenting_education",
8838
+ title: "Parenting Education & Family Skill-Building",
8839
+ selectable: true,
8840
+ parentCode: "022-008-000-000-000-000-000",
8841
+ childCodes: [],
8842
+ definition: "Structured parenting education or coaching intended to build parenting knowledge and skills (non-therapeutic).",
8843
+ relevantMechanisms: [
8844
+ "direct_staff_contractor",
8845
+ "financial_material_assistance",
8846
+ "informational_support",
8847
+ "support_via_referral"
8848
+ ]
8849
+ },
8850
+ {
8851
+ code: "022-008-004-000-000-000-000",
8852
+ key: "learning_language_classes",
8853
+ title: "Learning Language Classes",
8854
+ selectable: true,
8855
+ parentCode: "022-008-000-000-000-000-000",
8856
+ childCodes: [],
8857
+ definition: "Supporting survivors in learning language skills foundational to navigating their environment.",
8858
+ relevantMechanisms: null
8859
+ },
8860
+ {
8861
+ code: "022-009-000-000-000-000-000",
8862
+ key: "transportation",
8863
+ title: "Transportation",
8864
+ selectable: false,
8865
+ parentCode: null,
8866
+ childCodes: [
8867
+ "022-009-001-000-000-000-000",
8868
+ "022-009-002-000-000-000-000",
8869
+ "022-009-003-000-000-000-000",
8870
+ "022-009-004-000-000-000-000",
8871
+ "022-009-005-000-000-000-000"
8872
+ ],
8873
+ definition: "Services, resources, and supports that enable survivors to travel to access services or safety.",
8874
+ relevantMechanisms: [
8875
+ "direct_staff_contractor",
8876
+ "financial_material_assistance",
8877
+ "support_via_referral"
8878
+ ]
8879
+ },
8880
+ {
8881
+ code: "022-009-001-000-000-000-000",
8882
+ key: "transportation_assistance_direct",
8883
+ title: "Transportation Assistance (Direct from agency)",
8884
+ selectable: true,
8885
+ parentCode: "022-009-000-000-000-000-000",
8886
+ childCodes: [
8887
+ "022-009-001-001-000-000-000"
8888
+ ],
8889
+ definition: "Transportation provided directly by staff/agency, including mileage-based transport.",
8890
+ relevantMechanisms: null
8891
+ },
8892
+ {
8893
+ code: "022-009-001-001-000-000-000",
8894
+ key: "transportation_direct_emergency",
8895
+ title: "Transportation direct from agency (Emergency Status)",
8896
+ selectable: true,
8897
+ parentCode: "022-009-001-000-000-000-000",
8898
+ childCodes: [],
8899
+ definition: null,
8900
+ relevantMechanisms: null
8901
+ },
8902
+ {
8903
+ code: "022-009-002-000-000-000-000",
8904
+ key: "taxi_rideshare_voucher",
8905
+ title: "Taxi / RideShare Voucher",
8906
+ selectable: true,
8907
+ parentCode: "022-009-000-000-000-000-000",
8908
+ childCodes: [
8909
+ "022-009-002-001-000-000-000"
8910
+ ],
8911
+ definition: "Provision of taxi/rideshare rides via voucher, account credit, or direct booking.",
8912
+ relevantMechanisms: [
8913
+ "financial_material_assistance"
8914
+ ]
8915
+ },
8916
+ {
8917
+ code: "022-009-002-001-000-000-000",
8918
+ key: "taxi_rideshare_emergency",
8919
+ title: "Taxi / RideShare Voucher (Emergency Status)",
8920
+ selectable: true,
8921
+ parentCode: "022-009-002-000-000-000-000",
8922
+ childCodes: [],
8923
+ definition: null,
8924
+ relevantMechanisms: null
8925
+ },
8926
+ {
8927
+ code: "022-009-003-000-000-000-000",
8928
+ key: "bus_fare_pass",
8929
+ title: "Bus Fare / Pass",
8930
+ selectable: true,
8931
+ parentCode: "022-009-000-000-000-000-000",
8932
+ childCodes: [
8933
+ "022-009-003-001-000-000-000"
8934
+ ],
8935
+ definition: "Provision of bus tickets, transit passes, transit cards, or tokens.",
8936
+ relevantMechanisms: [
8937
+ "financial_material_assistance"
8938
+ ]
8939
+ },
8940
+ {
8941
+ code: "022-009-003-001-000-000-000",
8942
+ key: "bus_fare_pass_emergency",
8943
+ title: "Bus Fare / Pass (Emergency Status)",
8944
+ selectable: true,
8945
+ parentCode: "022-009-003-000-000-000-000",
8946
+ childCodes: [],
8947
+ definition: null,
8948
+ relevantMechanisms: null
8949
+ },
8950
+ {
8951
+ code: "022-009-004-000-000-000-000",
8952
+ key: "gift_card_gas_card",
8953
+ title: "Gift Card / Gas Card",
8954
+ selectable: true,
8955
+ parentCode: "022-009-000-000-000-000-000",
8956
+ childCodes: [
8957
+ "022-009-004-001-000-000-000"
8958
+ ],
8959
+ definition: "Provision of fuel support via gas cards or equivalent fuel purchase support.",
8960
+ relevantMechanisms: [
8961
+ "financial_material_assistance"
8962
+ ]
8963
+ },
8964
+ {
8965
+ code: "022-009-004-001-000-000-000",
8966
+ key: "gift_card_gas_card_emergency",
8967
+ title: "Gift Card / Gas Card (Emergency Status)",
8968
+ selectable: true,
8969
+ parentCode: "022-009-004-000-000-000-000",
8970
+ childCodes: [],
8971
+ definition: null,
8972
+ relevantMechanisms: null
8973
+ },
8974
+ {
8975
+ code: "022-009-005-000-000-000-000",
8976
+ key: "airline_tickets",
8977
+ title: "Airline tickets",
8978
+ selectable: true,
8979
+ parentCode: "022-009-000-000-000-000-000",
8980
+ childCodes: [
8981
+ "022-009-005-001-000-000-000"
8982
+ ],
8983
+ definition: "Purchase/provision of commercial air travel to access safety, housing, or critical services.",
8984
+ relevantMechanisms: [
8985
+ "direct_staff_contractor",
8986
+ "financial_material_assistance"
8987
+ ]
8988
+ },
8989
+ {
8990
+ code: "022-009-005-001-000-000-000",
8991
+ key: "airline_tickets_emergency",
8992
+ title: "Airline tickets (Emergency Status)",
8993
+ selectable: true,
8994
+ parentCode: "022-009-005-000-000-000-000",
8995
+ childCodes: [],
8996
+ definition: null,
8997
+ relevantMechanisms: null
8998
+ },
8999
+ {
9000
+ code: "022-010-000-000-000-000-000",
9001
+ key: "dependents",
9002
+ title: "Dependents",
9003
+ selectable: false,
9004
+ parentCode: null,
9005
+ childCodes: [
9006
+ "022-010-001-000-000-000-000",
9007
+ "022-010-002-000-000-000-000"
9008
+ ],
9009
+ definition: "Services, resources, and supports that help a survivor access or maintain services by ensuring safe, appropriate care or structured supervision for children/dependents.",
9010
+ relevantMechanisms: [
9011
+ "direct_staff_contractor",
9012
+ "financial_material_assistance",
9013
+ "support_via_referral",
9014
+ "informational_support"
9015
+ ]
9016
+ },
9017
+ {
9018
+ code: "022-010-001-000-000-000-000",
9019
+ key: "pet_care",
9020
+ title: "Pet care",
9021
+ selectable: true,
9022
+ parentCode: "022-010-000-000-000-000-000",
9023
+ childCodes: [],
9024
+ definition: "Assistance caring/housing or providing basic needs for pets of clients/client households.",
9025
+ relevantMechanisms: null
9026
+ },
9027
+ {
9028
+ code: "022-010-002-000-000-000-000",
9029
+ key: "child_care",
9030
+ title: "Child care",
9031
+ selectable: true,
9032
+ parentCode: "022-010-000-000-000-000-000",
9033
+ childCodes: [
9034
+ "022-010-002-001-000-000-000"
9035
+ ],
9036
+ definition: "Direct provision of care/supervision for a survivor's child/dependent or support that secures such care.",
9037
+ relevantMechanisms: [
9038
+ "direct_staff_contractor",
9039
+ "financial_material_assistance",
9040
+ "support_via_referral",
9041
+ "informational_support"
9042
+ ]
9043
+ },
9044
+ {
9045
+ code: "022-010-002-001-000-000-000",
9046
+ key: "childrens_activities",
9047
+ title: "Children's activities",
9048
+ selectable: true,
9049
+ parentCode: "022-010-002-000-000-000-000",
9050
+ childCodes: [
9051
+ "022-010-002-001-001-000-000"
9052
+ ],
9053
+ definition: "Supervised, non-clinical activities provided to children/dependents that support safety, stabilization, engagement, or caregiver service access.",
9054
+ relevantMechanisms: [
9055
+ "direct_staff_contractor",
9056
+ "financial_material_assistance"
9057
+ ]
9058
+ },
9059
+ {
9060
+ code: "022-010-002-001-001-000-000",
9061
+ key: "children_youth_baby_supplies",
9062
+ title: "Children / youth / baby supplies",
9063
+ selectable: true,
9064
+ parentCode: "022-010-002-001-000-000-000",
9065
+ childCodes: [],
9066
+ definition: "Provision of materials that are specific to children/babies.",
9067
+ relevantMechanisms: [
9068
+ "financial_material_assistance",
9069
+ "support_via_referral"
9070
+ ]
9071
+ },
9072
+ {
9073
+ code: "022-011-000-000-000-000-000",
9074
+ key: "case_coordination",
9075
+ title: "Case Coordination",
9076
+ selectable: false,
9077
+ parentCode: null,
9078
+ childCodes: [
9079
+ "022-011-001-000-000-000-000",
9080
+ "022-011-002-000-000-000-000",
9081
+ "022-011-003-000-000-000-000"
9082
+ ],
9083
+ definition: "Ongoing support + coordination to help survivor cope/overcome effects, through a service plan, skills-building, and linking to resources.",
9084
+ relevantMechanisms: null
9085
+ },
9086
+ {
9087
+ code: "022-011-001-000-000-000-000",
9088
+ key: "advocacy",
9089
+ title: "Advocacy",
9090
+ selectable: true,
9091
+ parentCode: "022-011-000-000-000-000-000",
9092
+ childCodes: [
9093
+ "022-011-001-001-000-000-000",
9094
+ "022-011-001-002-000-000-000",
9095
+ "022-011-001-003-000-000-000",
9096
+ "022-011-001-004-000-000-000",
9097
+ "022-011-001-005-000-000-000",
9098
+ "022-011-001-006-000-000-000",
9099
+ "022-011-001-007-000-000-000"
9100
+ ],
9101
+ definition: "Assistance within external systems to reduce barriers, increase access, and support survivor self-reliance.",
9102
+ relevantMechanisms: [
9103
+ "direct_staff_contractor",
9104
+ "informational_support"
9105
+ ]
9106
+ },
9107
+ {
9108
+ code: "022-011-001-001-000-000-000",
9109
+ key: "medical_advocacy",
9110
+ title: "Medical Advocacy (Victim Advocacy Accompany for Medical)",
9111
+ selectable: true,
9112
+ parentCode: "022-011-001-000-000-000-000",
9113
+ childCodes: [
9114
+ "022-011-001-001-001-000-000",
9115
+ "022-011-001-001-002-000-000"
9116
+ ],
9117
+ definition: "Includes: Victim Advocacy/Accompaniment to Emergency Medical Care and to Medical Forensic Exam.",
9118
+ relevantMechanisms: [
9119
+ "direct_staff_contractor",
9120
+ "informational_support"
9121
+ ]
9122
+ },
9123
+ {
9124
+ code: "022-011-001-001-001-000-000",
9125
+ key: "advocacy_emergency_medical",
9126
+ title: "Victim Advocacy/Accompaniment to Emergency Medical Care",
9127
+ selectable: true,
9128
+ parentCode: "022-011-001-001-000-000-000",
9129
+ childCodes: [],
9130
+ definition: "Coordinating and/or helping a victim obtain emergency medical care, including emotional and/or physical support.",
9131
+ relevantMechanisms: null
9132
+ },
9133
+ {
9134
+ code: "022-011-001-001-002-000-000",
9135
+ key: "advocacy_forensic_exam",
9136
+ title: "Victim Advocacy/Accompaniment to Medical Forensic Exam",
9137
+ selectable: true,
9138
+ parentCode: "022-011-001-001-000-000-000",
9139
+ childCodes: [],
9140
+ definition: "Coordinating and/or helping a victim obtain a forensic interview or medical forensic exam.",
9141
+ relevantMechanisms: null
9142
+ },
9143
+ {
9144
+ code: "022-011-001-002-000-000-000",
9145
+ key: "court_advocacy",
9146
+ title: "Court Advocacy (Victim Advocacy Accompany for Legal)",
9147
+ selectable: true,
9148
+ parentCode: "022-011-001-000-000-000-000",
9149
+ childCodes: [
9150
+ "022-011-001-002-001-000-000",
9151
+ "022-011-001-002-002-000-000",
9152
+ "022-011-001-002-003-000-000",
9153
+ "022-011-001-002-004-000-000",
9154
+ "022-011-001-002-005-000-000"
9155
+ ],
9156
+ definition: "Advocacy where the system = civil/criminal legal system.",
9157
+ relevantMechanisms: [
9158
+ "direct_staff_contractor",
9159
+ "informational_support"
9160
+ ]
9161
+ },
9162
+ {
9163
+ code: "022-011-001-002-001-000-000",
9164
+ key: "crime_scene_clean_up",
9165
+ title: "Crime Scene Clean Up",
9166
+ selectable: true,
9167
+ parentCode: "022-011-001-002-000-000-000",
9168
+ childCodes: [],
9169
+ definition: "Expenses related to cleaning a crime scene.",
9170
+ relevantMechanisms: null
9171
+ },
9172
+ {
9173
+ code: "022-011-001-002-002-000-000",
9174
+ key: "family_reunification",
9175
+ title: "Family Reunification",
9176
+ selectable: true,
9177
+ parentCode: "022-011-001-002-000-000-000",
9178
+ childCodes: [],
9179
+ definition: "Activities/services supporting reunification with family members in the U.S.",
9180
+ relevantMechanisms: null
9181
+ },
9182
+ {
9183
+ code: "022-011-001-002-003-000-000",
9184
+ key: "law_enforcement_interview_support",
9185
+ title: "Law Enforcement Interview Support",
9186
+ selectable: true,
9187
+ parentCode: "022-011-001-002-000-000-000",
9188
+ childCodes: [],
9189
+ definition: "Emotional support and/or physical accompaniment during law enforcement interviews.",
9190
+ relevantMechanisms: null
9191
+ },
9192
+ {
9193
+ code: "022-011-001-002-004-000-000",
9194
+ key: "prosecution_interview_advocacy",
9195
+ title: "Prosecution interview advocacy/accompaniment",
9196
+ selectable: true,
9197
+ parentCode: "022-011-001-002-000-000-000",
9198
+ childCodes: [],
9199
+ definition: "Emotional support and/or physical accompaniment during interviews with prosecutors.",
9200
+ relevantMechanisms: null
9201
+ },
9202
+ {
9203
+ code: "022-011-001-002-005-000-000",
9204
+ key: "immigration_advocacy_support",
9205
+ title: "Immigration Advocacy Support",
9206
+ selectable: true,
9207
+ parentCode: "022-011-001-002-000-000-000",
9208
+ childCodes: [],
9209
+ definition: "Assisting refugee/immigrant/nonimmigrant victims with immigration issues.",
9210
+ relevantMechanisms: null
9211
+ },
9212
+ {
9213
+ code: "022-011-001-003-000-000-000",
9214
+ key: "documentation_records_retrieval",
9215
+ title: "Documentation & Records Retrieval (Survivor Documents / Records Assistance)",
9216
+ selectable: true,
9217
+ parentCode: "022-011-001-000-000-000-000",
9218
+ childCodes: [
9219
+ "022-011-001-003-001-000-000",
9220
+ "022-011-001-003-002-000-000"
9221
+ ],
9222
+ definition: "Support provided to help a survivor obtain, replace, organize, certify, or submit essential documents and records.",
9223
+ relevantMechanisms: [
9224
+ "direct_staff_contractor",
9225
+ "informational_support",
9226
+ "financial_material_assistance"
9227
+ ]
9228
+ },
9229
+ {
9230
+ code: "022-011-001-003-001-000-000",
9231
+ key: "obtaining_insurance",
9232
+ title: "Obtaining Insurance",
9233
+ selectable: true,
9234
+ parentCode: "022-011-001-003-000-000-000",
9235
+ childCodes: [
9236
+ "022-011-001-003-001-001-000",
9237
+ "022-011-001-003-001-002-000"
9238
+ ],
9239
+ definition: "Assistance provided to help a survivor understand, apply for, or access insurance coverage.",
9240
+ relevantMechanisms: null
9241
+ },
9242
+ {
9243
+ code: "022-011-001-003-001-001-000",
9244
+ key: "drivers_car_insurance",
9245
+ title: "Driver's/Car Insurance",
9246
+ selectable: true,
9247
+ parentCode: "022-011-001-003-001-000-000",
9248
+ childCodes: [],
9249
+ definition: "Support to help a survivor obtain or reinstate auto insurance coverage.",
9250
+ relevantMechanisms: null
9251
+ },
9252
+ {
9253
+ code: "022-011-001-003-001-002-000",
9254
+ key: "medical_insurance",
9255
+ title: "Medical Insurance",
9256
+ selectable: true,
9257
+ parentCode: "022-011-001-003-001-000-000",
9258
+ childCodes: [],
9259
+ definition: "Support to help a survivor apply for, enroll in, or maintain medical insurance coverage.",
9260
+ relevantMechanisms: null
9261
+ },
9262
+ {
9263
+ code: "022-011-001-003-002-000-000",
9264
+ key: "obtaining_drivers_license",
9265
+ title: "Obtaining Driver's License",
9266
+ selectable: true,
9267
+ parentCode: "022-011-001-003-000-000-000",
9268
+ childCodes: [],
9269
+ definition: "Advocacy and practical assistance to help a survivor obtain, replace, or reinstate a driver's license.",
9270
+ relevantMechanisms: [
9271
+ "direct_staff_contractor",
9272
+ "financial_material_assistance",
9273
+ "informational_support"
9274
+ ]
9275
+ },
9276
+ {
9277
+ code: "022-011-001-004-000-000-000",
9278
+ key: "faith_resource",
9279
+ title: "Faith Resource (church/religious leader; faith resource)",
9280
+ selectable: true,
9281
+ parentCode: "022-011-001-000-000-000-000",
9282
+ childCodes: [],
9283
+ definition: "Connection to faith-based or spiritual resources at the survivor's request.",
9284
+ relevantMechanisms: [
9285
+ "direct_staff_contractor",
9286
+ "financial_material_assistance",
9287
+ "support_via_referral",
9288
+ "informational_support"
9289
+ ]
9290
+ },
9291
+ {
9292
+ code: "022-011-001-005-000-000-000",
9293
+ key: "banking_notary",
9294
+ title: "Banking/Notary",
9295
+ selectable: true,
9296
+ parentCode: "022-011-001-000-000-000-000",
9297
+ childCodes: [],
9298
+ definition: "Assistance to help survivors access basic financial or administrative services.",
9299
+ relevantMechanisms: null
9300
+ },
9301
+ {
9302
+ code: "022-011-001-006-000-000-000",
9303
+ key: "income_benefits_navigation",
9304
+ title: "Income / Benefits Navigation (Non-legal)",
9305
+ selectable: true,
9306
+ parentCode: "022-011-001-000-000-000-000",
9307
+ childCodes: [
9308
+ "022-011-001-006-001-000-000"
9309
+ ],
9310
+ definition: "Non-legal support to help survivors identify, apply for, and navigate income supports or public benefits.",
9311
+ relevantMechanisms: [
9312
+ "direct_staff_contractor",
9313
+ "financial_material_assistance",
9314
+ "support_via_referral",
9315
+ "informational_support"
9316
+ ]
9317
+ },
9318
+ {
9319
+ code: "022-011-001-006-001-000-000",
9320
+ key: "government_services_special_programs",
9321
+ title: "Government Services/Systems or Special Programs (EBT/WIC)",
9322
+ selectable: true,
9323
+ parentCode: "022-011-001-006-000-000-000",
9324
+ childCodes: [],
9325
+ definition: "Helping the victim access needed services, accompanying to social services appointments.",
9326
+ relevantMechanisms: null
9327
+ },
9328
+ {
9329
+ code: "022-011-001-007-000-000-000",
9330
+ key: "intervention_employer_creditor_academic",
9331
+ title: "Intervention with Employer, Creditor, or Academic Institution",
9332
+ selectable: true,
9333
+ parentCode: "022-011-001-000-000-000-000",
9334
+ childCodes: [
9335
+ "022-011-001-007-001-000-000"
9336
+ ],
9337
+ definition: "Advocating with non-criminal-justice entities on the victim's behalf.",
9338
+ relevantMechanisms: null
9339
+ },
9340
+ {
9341
+ code: "022-011-001-007-001-000-000",
9342
+ key: "formal_education_academic_support",
9343
+ title: "Formal Education & Academic Support",
9344
+ selectable: true,
9345
+ parentCode: "022-011-001-007-000-000-000",
9346
+ childCodes: [
9347
+ "022-011-001-007-001-001-000",
9348
+ "022-011-001-007-001-002-000"
9349
+ ],
9350
+ definition: "Support that helps a survivor and/or dependents enroll in, remain engaged in, or complete formal education.",
9351
+ relevantMechanisms: [
9352
+ "direct_staff_contractor",
9353
+ "financial_material_assistance",
9354
+ "informational_support"
9355
+ ]
9356
+ },
9357
+ {
9358
+ code: "022-011-001-007-001-001-000",
9359
+ key: "adult_school_ged",
9360
+ title: "Adult School / GED / Enrollment / Educational Support",
9361
+ selectable: true,
9362
+ parentCode: "022-011-001-007-001-000-000",
9363
+ childCodes: [],
9364
+ definition: "Education supports primarily focused on adult survivors' formal education.",
9365
+ relevantMechanisms: [
9366
+ "direct_staff_contractor",
9367
+ "financial_material_assistance",
9368
+ "informational_support"
9369
+ ]
9370
+ },
9371
+ {
9372
+ code: "022-011-001-007-001-002-000",
9373
+ key: "child_school_enrollment",
9374
+ title: "Child School Enrollment / Educational Support",
9375
+ selectable: true,
9376
+ parentCode: "022-011-001-007-001-000-000",
9377
+ childCodes: [],
9378
+ definition: "Education supports focused on a child/dependent's school access and participation.",
9379
+ relevantMechanisms: [
9380
+ "direct_staff_contractor",
9381
+ "financial_material_assistance",
9382
+ "informational_support"
9383
+ ]
9384
+ },
9385
+ {
9386
+ code: "022-011-002-000-000-000-000",
9387
+ key: "intake",
9388
+ title: "Intake",
9389
+ selectable: true,
9390
+ parentCode: "022-011-000-000-000-000-000",
9391
+ childCodes: [
9392
+ "022-011-002-001-000-000-000"
9393
+ ],
9394
+ definition: "An interaction intended to discover what has happened, determine the crisis, assess dangerousness indicators, do safety planning, and establish immediate needs.",
9395
+ relevantMechanisms: [
9396
+ "direct_staff_contractor",
9397
+ "support_via_referral",
9398
+ "informational_support"
9399
+ ]
9400
+ },
9401
+ {
9402
+ code: "022-011-002-001-000-000-000",
9403
+ key: "screening",
9404
+ title: "Screening (can be ongoing)",
9405
+ selectable: true,
9406
+ parentCode: "022-011-002-000-000-000-000",
9407
+ childCodes: [
9408
+ "022-011-002-001-001-000-000",
9409
+ "022-011-002-001-002-000-000",
9410
+ "022-011-002-001-003-000-000",
9411
+ "022-011-002-001-004-000-000",
9412
+ "022-011-002-001-005-000-000"
9413
+ ],
9414
+ definition: "The process of determining the nature and extent of an individual's problem in order to establish service needs.",
9415
+ relevantMechanisms: [
9416
+ "direct_staff_contractor",
9417
+ "support_via_referral",
9418
+ "informational_support"
9419
+ ]
9420
+ },
9421
+ {
9422
+ code: "022-011-002-001-001-000-000",
9423
+ key: "housing_eligibility_determination",
9424
+ title: "Housing Eligibility Determination",
9425
+ selectable: true,
9426
+ parentCode: "022-011-002-001-000-000-000",
9427
+ childCodes: [
9428
+ "022-011-002-001-001-001-000"
9429
+ ],
9430
+ definition: "The process of collecting and reviewing information to determine a survivor's eligibility for housing programs.",
9431
+ relevantMechanisms: null
9432
+ },
9433
+ {
9434
+ code: "022-011-002-001-001-001-000",
9435
+ key: "coordinated_entry",
9436
+ title: "Coordinated Entry",
9437
+ selectable: true,
9438
+ parentCode: "022-011-002-001-001-000-000",
9439
+ childCodes: [],
9440
+ definition: "A project that administers the CoC's centralized or coordinated process for assessment and referral.",
9441
+ relevantMechanisms: null
9442
+ },
9443
+ {
9444
+ code: "022-011-002-001-002-000-000",
9445
+ key: "behavioral_issues_screen",
9446
+ title: "Behavioral Issues Screen",
9447
+ selectable: true,
9448
+ parentCode: "022-011-002-001-000-000-000",
9449
+ childCodes: [],
9450
+ definition: "A brief, non-diagnostic screening used to identify potential behavioral or mental health concerns.",
9451
+ relevantMechanisms: null
9452
+ },
9453
+ {
9454
+ code: "022-011-002-001-003-000-000",
9455
+ key: "initial_screen",
9456
+ title: "Initial Screen",
9457
+ selectable: true,
9458
+ parentCode: "022-011-002-001-000-000-000",
9459
+ childCodes: [],
9460
+ definition: "A first-point screening conducted at intake to gather basic information about a survivor's situation.",
9461
+ relevantMechanisms: null
9462
+ },
9463
+ {
9464
+ code: "022-011-002-001-004-000-000",
9465
+ key: "needs_assessment",
9466
+ title: "Needs Assessment",
9467
+ selectable: true,
9468
+ parentCode: "022-011-002-001-000-000-000",
9469
+ childCodes: [],
9470
+ definition: "A structured process used to identify and document a survivor's short- and longer-term needs.",
9471
+ relevantMechanisms: null
9472
+ },
9473
+ {
9474
+ code: "022-011-002-001-005-000-000",
9475
+ key: "tvap",
9476
+ title: "TVAP",
9477
+ selectable: true,
9478
+ parentCode: "022-011-002-001-000-000-000",
9479
+ childCodes: [],
9480
+ definition: "Screening for Federal Financial Assistance program for Foreign National survivors of human trafficking.",
9481
+ relevantMechanisms: null
9482
+ },
9483
+ {
9484
+ code: "022-011-003-000-000-000-000",
9485
+ key: "case_management_supportive_services",
9486
+ title: "Case Management / Supportive Services",
9487
+ selectable: true,
9488
+ parentCode: "022-011-000-000-000-000-000",
9489
+ childCodes: [
9490
+ "022-011-003-001-000-000-000",
9491
+ "022-011-003-002-000-000-000",
9492
+ "022-011-003-003-000-000-000",
9493
+ "022-011-003-004-000-000-000",
9494
+ "022-011-003-005-000-000-000"
9495
+ ],
9496
+ definition: "Work within the VSP sector to promote structured, ongoing relationship to set goals, develop/review/update a service plan, and coordinate.",
9497
+ relevantMechanisms: [
9498
+ "direct_staff_contractor",
9499
+ "support_via_referral",
9500
+ "informational_support"
9501
+ ]
9502
+ },
9503
+ {
9504
+ code: "022-011-003-001-000-000-000",
9505
+ key: "intra_agency_provider_coordination",
9506
+ title: "Intra-agency Provider Coordination | Intervention Team Meeting",
9507
+ selectable: true,
9508
+ parentCode: "022-011-003-000-000-000-000",
9509
+ childCodes: [],
9510
+ definition: "A formal, structured meeting among staff from the same agency to evaluate a survivor's progress.",
9511
+ relevantMechanisms: [
9512
+ "direct_staff_contractor"
9513
+ ]
9514
+ },
9515
+ {
9516
+ code: "022-011-003-002-000-000-000",
9517
+ key: "inter_agency_consultation",
9518
+ title: "Inter-agency/Consultation",
9519
+ selectable: true,
9520
+ parentCode: "022-011-003-000-000-000-000",
9521
+ childCodes: [],
9522
+ definition: "A formal, structured interaction between staff and unrelated agencies to problem-solve and/or enhance services.",
9523
+ relevantMechanisms: [
9524
+ "direct_staff_contractor"
9525
+ ]
9526
+ },
9527
+ {
9528
+ code: "022-011-003-003-000-000-000",
9529
+ key: "service_plan",
9530
+ title: "Service Plan",
9531
+ selectable: true,
9532
+ parentCode: "022-011-003-000-000-000-000",
9533
+ childCodes: [
9534
+ "022-011-003-003-001-000-000"
9535
+ ],
9536
+ definition: "A documented, survivor-centered plan developed collaboratively to outline goals, priorities, services, and action steps.",
9537
+ relevantMechanisms: null
9538
+ },
9539
+ {
9540
+ code: "022-011-003-003-001-000-000",
9541
+ key: "hope_scale_and_plan",
9542
+ title: "Hope Scale and Plan",
9543
+ selectable: true,
9544
+ parentCode: "022-011-003-003-000-000-000",
9545
+ childCodes: [],
9546
+ definition: "A structured tool or process used to assess a survivor's sense of hope, readiness, or progress.",
9547
+ relevantMechanisms: null
9548
+ },
9549
+ {
9550
+ code: "022-011-003-004-000-000-000",
9551
+ key: "post_exit_plan",
9552
+ title: "Post-exit Plan",
9553
+ selectable: true,
9554
+ parentCode: "022-011-003-000-000-000-000",
9555
+ childCodes: [],
9556
+ definition: "A plan developed prior to the conclusion of services that outlines ongoing supports and next steps.",
9557
+ relevantMechanisms: null
9558
+ },
9559
+ {
9560
+ code: "022-011-003-005-000-000-000",
9561
+ key: "advanced_directives",
9562
+ title: "Advanced Directives/Post-mortem wishes",
9563
+ selectable: true,
9564
+ parentCode: "022-011-003-000-000-000-000",
9565
+ childCodes: [],
9566
+ definition: "Support to help a survivor document preferences regarding medical decision-making, end-of-life care, and post-mortem wishes.",
9567
+ relevantMechanisms: null
9568
+ },
9569
+ {
9570
+ code: "022-012-000-000-000-000-000",
9571
+ key: "other_services",
9572
+ title: "Other Services",
9573
+ selectable: false,
9574
+ parentCode: null,
9575
+ childCodes: [],
9576
+ definition: "Does not fit any other category; acts as write-in.",
9577
+ relevantMechanisms: null
9578
+ },
9579
+ {
9580
+ code: "022-000-000-000-000-000-000",
9581
+ key: "missingness_root",
9582
+ title: "Unknown, Redacted, or Missing",
9583
+ selectable: false,
9584
+ parentCode: null,
9585
+ childCodes: [
9586
+ "022-000-000-000-000-000-001",
9587
+ "022-000-000-000-000-000-002",
9588
+ "022-000-000-000-000-000-003"
9589
+ ],
9590
+ definition: "Root group for values indicating absent, withheld, or uncollected data.",
9591
+ relevantMechanisms: null
9592
+ },
9593
+ {
9594
+ code: "022-000-000-000-000-000-001",
9595
+ key: "unknown",
9596
+ title: "Unknown",
9597
+ selectable: true,
9598
+ parentCode: "022-000-000-000-000-000-000",
9599
+ childCodes: [],
9600
+ definition: "Value is unknown at time of entry.",
9601
+ relevantMechanisms: null
9602
+ },
9603
+ {
9604
+ code: "022-000-000-000-000-000-002",
9605
+ key: "anonymous",
9606
+ title: "Anonymous",
9607
+ selectable: true,
9608
+ parentCode: "022-000-000-000-000-000-000",
9609
+ childCodes: [],
9610
+ definition: "Value is intentionally withheld or redacted.",
9611
+ relevantMechanisms: null
9612
+ },
9613
+ {
9614
+ code: "022-000-000-000-000-000-003",
9615
+ key: "data_not_collected",
9616
+ title: "Data not collected",
9617
+ selectable: true,
9618
+ parentCode: "022-000-000-000-000-000-000",
9619
+ childCodes: [],
9620
+ definition: "No attempt was made to collect the value.",
9621
+ relevantMechanisms: null
9622
+ }
9623
+ ]
9624
+ };
9625
+
9626
+ // src/cvcs/serviceStates.v1.0.0.json
9627
+ var serviceStates_v1_0_0_default = {
9628
+ domain: "service_state",
9629
+ name: "Core Service State",
9630
+ version: "1.0.0",
9631
+ levels: {
9632
+ "0": "Unknown or Missing",
9633
+ "1": "Primary State",
9634
+ "2": "Sub-State"
9635
+ },
9636
+ entries: [
9637
+ {
9638
+ code: "049-001-000-000-000-000-000",
9639
+ key: "need_identified",
9640
+ title: "Need identified",
9641
+ selectable: true,
9642
+ parentCode: null,
9643
+ childCodes: [],
9644
+ definition: "A service need was identified/recorded; no commitment to deliver has been made yet."
9645
+ },
9646
+ {
9647
+ code: "049-002-000-000-000-000-000",
9648
+ key: "offered",
9649
+ title: "Offered",
9650
+ selectable: true,
9651
+ parentCode: null,
9652
+ childCodes: [],
9653
+ definition: "A service option was offered, but not yet delivered."
9654
+ },
9655
+ {
9656
+ code: "049-003-000-000-000-000-000",
9657
+ key: "scheduled_in_progress",
9658
+ title: "Scheduled / in progress",
9659
+ selectable: true,
9660
+ parentCode: null,
9661
+ childCodes: [],
9662
+ definition: "Service is scheduled or actively underway as a multi-step process."
9663
+ },
9664
+ {
9665
+ code: "049-004-000-000-000-000-000",
9666
+ key: "delivered",
9667
+ title: "Delivered",
9668
+ selectable: true,
9669
+ parentCode: null,
9670
+ childCodes: [],
9671
+ definition: "A unit of service was delivered/provided or confirmed received."
9672
+ },
9673
+ {
9674
+ code: "049-005-000-000-000-000-000",
9675
+ key: "completed",
9676
+ title: "Completed",
9677
+ selectable: true,
9678
+ parentCode: null,
9679
+ childCodes: [],
9680
+ definition: "Service episode/plan is finished and closed."
9681
+ },
9682
+ {
9683
+ code: "049-006-000-000-000-000-000",
9684
+ key: "declined_by_client",
9685
+ title: "Declined by client",
9686
+ selectable: true,
9687
+ parentCode: null,
9688
+ childCodes: [],
9689
+ definition: "Client declined the offered service."
9690
+ },
9691
+ {
9692
+ code: "049-007-000-000-000-000-000",
9693
+ key: "unable_to_provide",
9694
+ title: "Unable to provide",
9695
+ selectable: true,
9696
+ parentCode: null,
9697
+ childCodes: [
9698
+ "049-007-001-000-000-000-000",
9699
+ "049-007-002-000-000-000-000",
9700
+ "049-007-003-000-000-000-000"
9701
+ ],
9702
+ definition: "Program could not provide the service."
9703
+ },
9704
+ {
9705
+ code: "049-007-001-000-000-000-000",
9706
+ key: "unable_to_provide_eligibility",
9707
+ title: "Unable due to eligibility",
9708
+ selectable: true,
9709
+ parentCode: "049-007-000-000-000-000-000",
9710
+ childCodes: [],
9711
+ definition: "Client did not have eligibility for the Service."
9712
+ },
9713
+ {
9714
+ code: "049-007-002-000-000-000-000",
9715
+ key: "unable_to_provide_capacity",
9716
+ title: "Unable due to capacity",
9717
+ selectable: true,
9718
+ parentCode: "049-007-000-000-000-000-000",
9719
+ childCodes: [],
9720
+ definition: "Program did not have capacity to provide the Service."
9721
+ },
9722
+ {
9723
+ code: "049-007-003-000-000-000-000",
9724
+ key: "unable_to_provide_resources",
9725
+ title: "Unable due to resource",
9726
+ selectable: true,
9727
+ parentCode: "049-007-000-000-000-000-000",
9728
+ childCodes: [],
9729
+ definition: "Program did not have sufficient resources to provide the Service."
9730
+ },
9731
+ {
9732
+ code: "049-000-000-000-000-000-000",
9733
+ key: "missingness_root",
9734
+ title: "Unknown, Redacted, or Missing",
9735
+ selectable: false,
9736
+ parentCode: null,
9737
+ childCodes: [
9738
+ "049-000-000-000-000-000-001",
9739
+ "049-000-000-000-000-000-002",
9740
+ "049-000-000-000-000-000-003"
9741
+ ],
9742
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
9743
+ },
9744
+ {
9745
+ code: "049-000-000-000-000-000-001",
9746
+ key: "unknown",
9747
+ title: "Unknown",
9748
+ selectable: true,
9749
+ parentCode: "049-000-000-000-000-000-000",
9750
+ childCodes: [],
9751
+ definition: "Value is unknown at time of entry."
9752
+ },
9753
+ {
9754
+ code: "049-000-000-000-000-000-002",
9755
+ key: "anonymous",
9756
+ title: "Anonymous",
9757
+ selectable: true,
9758
+ parentCode: "049-000-000-000-000-000-000",
9759
+ childCodes: [],
9760
+ definition: "Value is intentionally withheld or redacted."
9761
+ },
9762
+ {
9763
+ code: "049-000-000-000-000-000-003",
9764
+ key: "data_not_collected",
9765
+ title: "Data not collected",
9766
+ selectable: true,
9767
+ parentCode: "049-000-000-000-000-000-000",
9768
+ childCodes: [],
9769
+ definition: "No attempt was made to collect the value."
9770
+ }
9771
+ ]
9772
+ };
9773
+
9774
+ // src/cvcs/serviceMechanisms.v1.0.0.json
9775
+ var serviceMechanisms_v1_0_0_default = {
9776
+ domain: "service_mechanisms",
9777
+ name: "Core Service Mechanisms",
9778
+ version: "1.0.0",
9779
+ levels: {
9780
+ "0": "Unknown or Missing",
9781
+ "1": "Service Mechanism"
9782
+ },
9783
+ entries: [
9784
+ {
9785
+ code: "025-001-000-000-000-000-000",
9786
+ key: "support_via_referral",
9787
+ title: "Support via Referral",
9788
+ selectable: true,
9789
+ parentCode: null,
9790
+ childCodes: [],
9791
+ definition: "Connecting the client to an external provider or resource, and documenting the referral action and follow-up if applicable."
9792
+ },
9793
+ {
9794
+ code: "025-002-000-000-000-000-000",
9795
+ key: "informational_support",
9796
+ title: "Informational Support",
9797
+ selectable: true,
9798
+ parentCode: null,
9799
+ childCodes: [],
9800
+ definition: "Education, informational materials, guidance, navigation, instructions, or resource lists where the primary delivery is information."
9801
+ },
9802
+ {
9803
+ code: "025-003-000-000-000-000-000",
9804
+ key: "direct_staff_contractor",
9805
+ title: "Direct Staff/Contractor Service",
9806
+ selectable: true,
9807
+ parentCode: null,
9808
+ childCodes: [],
9809
+ definition: "Support delivered via personnel time and effort (advocacy, case management, counseling/clinician services, accompaniment, coordination, etc.)."
9810
+ },
9811
+ {
9812
+ code: "025-004-000-000-000-000-000",
9813
+ key: "financial_material_assistance",
9814
+ title: "Financial/Material Assistance",
9815
+ selectable: true,
9816
+ parentCode: null,
9817
+ childCodes: [],
9818
+ definition: "Cash, vouchers, goods, payments, or anything with monetary value transferred or provided on behalf of the client."
9819
+ },
9820
+ {
9821
+ code: "025-000-000-000-000-000-000",
9822
+ key: "missingness_root",
9823
+ title: "Unknown, Redacted, or Missing",
9824
+ selectable: false,
9825
+ parentCode: null,
9826
+ childCodes: [
9827
+ "025-000-000-000-000-000-001",
9828
+ "025-000-000-000-000-000-002",
9829
+ "025-000-000-000-000-000-003"
9830
+ ],
9831
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
9832
+ },
9833
+ {
9834
+ code: "025-000-000-000-000-000-001",
9835
+ key: "unknown",
9836
+ title: "Unknown",
9837
+ selectable: true,
9838
+ parentCode: "025-000-000-000-000-000-000",
9839
+ childCodes: [],
9840
+ definition: "Value is unknown at time of entry."
9841
+ },
9842
+ {
9843
+ code: "025-000-000-000-000-000-002",
9844
+ key: "anonymous",
9845
+ title: "Anonymous",
9846
+ selectable: true,
9847
+ parentCode: "025-000-000-000-000-000-000",
9848
+ childCodes: [],
9849
+ definition: "Value is intentionally withheld or redacted."
9850
+ },
9851
+ {
9852
+ code: "025-000-000-000-000-000-003",
9853
+ key: "data_not_collected",
9854
+ title: "Data not collected",
9855
+ selectable: true,
9856
+ parentCode: "025-000-000-000-000-000-000",
9857
+ childCodes: [],
9858
+ definition: "No attempt was made to collect the value."
9859
+ }
9860
+ ]
9861
+ };
7542
9862
  // Annotate the CommonJS export names for ESM import in node:
7543
9863
  0 && (module.exports = {
7544
9864
  ACCOMMODATION_LABELS,
@@ -7583,11 +9903,6 @@ function createPlatformModels(connection) {
7583
9903
  CVC_136_OPTIONS,
7584
9904
  CVC_136_TYPE_TO_CATEGORY,
7585
9905
  CVC_136_VALUES,
7586
- CVC_137_LABELS,
7587
- CVC_137_MISSINGNESS_VALUES,
7588
- CVC_137_RECENCY_BAND,
7589
- CVC_137_SELECTABLE_VALUES,
7590
- CVC_137_VALUES,
7591
9906
  CVC_145_CATEGORY,
7592
9907
  CVC_145_CATEGORY_LABELS,
7593
9908
  CVC_145_CATEGORY_ORDER,
@@ -7603,12 +9918,6 @@ function createPlatformModels(connection) {
7603
9918
  CVC_148_LABELS,
7604
9919
  CVC_148_TRIBES,
7605
9920
  CVC_148_VALUES,
7606
- CVC_149_APP_DOMAINS,
7607
- CVC_149_CONTACT_INFO_TYPE,
7608
- CVC_149_LABELS,
7609
- CVC_149_PRIMARY_TYPES,
7610
- CVC_149_SOCIAL_DOMAINS,
7611
- CVC_149_VALUES,
7612
9921
  CVC_150_EYE_COLOR,
7613
9922
  CVC_150_LABELS,
7614
9923
  CVC_150_VALUES,
@@ -7621,11 +9930,6 @@ function createPlatformModels(connection) {
7621
9930
  CVC_153_LABELS,
7622
9931
  CVC_153_SMT_TYPE,
7623
9932
  CVC_153_VALUES,
7624
- CVC_155_CONTACT_SAFETY_STATUS,
7625
- CVC_155_LABELS,
7626
- CVC_155_MISSINGNESS_VALUES,
7627
- CVC_155_SELECTABLE_VALUES,
7628
- CVC_155_VALUES,
7629
9933
  CVC_156_LABELS,
7630
9934
  CVC_156_MARITAL_STATUS,
7631
9935
  CVC_156_VALUES,
@@ -7678,55 +9982,15 @@ function createPlatformModels(connection) {
7678
9982
  CVC_17_LEVEL_1_OPTIONS,
7679
9983
  CVC_17_LEVEL_2_TRANSGENDER_OPTIONS,
7680
9984
  CVC_17_TRANSGENDER_VALUES,
7681
- CVC_17_VALUES,
7682
9985
  CVC_180_EDUCATION_LEVEL,
7683
9986
  CVC_180_LABELS,
7684
9987
  CVC_180_ORDINAL,
7685
9988
  CVC_180_VALUES,
7686
9989
  CVC_181_COUNTRIES,
7687
9990
  CVC_181_LABELS,
7688
- CVC_185_LABELS,
7689
- CVC_185_PREFERRED_CONTACT_METHOD,
7690
- CVC_185_VALUES,
7691
- CVC_186_CENSUS_DIVISIONS,
7692
- CVC_186_CENSUS_REGIONS,
7693
- CVC_186_LABELS,
7694
- CVC_186_US_REGION,
7695
- CVC_186_VALUES,
7696
- CVC_188_LABELS,
7697
- CVC_188_US_STATE,
7698
- CVC_188_VALUES,
7699
- CVC_191_LABELS,
7700
- CVC_191_LOCATION_TYPE,
7701
- CVC_191_MISSINGNESS_VALUES,
7702
- CVC_191_SELECTABLE_VALUES,
7703
- CVC_191_VALUES,
7704
- CVC_192_LABELS,
7705
- CVC_192_LIVING_SITUATION,
7706
- CVC_192_MISSINGNESS_VALUES,
7707
- CVC_192_SELECTABLE_VALUES,
7708
- CVC_192_VALUES,
7709
- CVC_193_HMIS_LIVING_SITUATION,
7710
- CVC_193_HOMELESS_VALUES,
7711
- CVC_193_INSTITUTIONAL_VALUES,
7712
- CVC_193_LABELS,
7713
- CVC_193_MISSINGNESS_VALUES,
7714
- CVC_193_PERMANENT_VALUES,
7715
- CVC_193_TEMPORARY_VALUES,
7716
- CVC_193_VALUES,
7717
- CVC_194_HOUSING_SUBSIDY_TYPE,
7718
- CVC_194_LABELS,
7719
- CVC_194_MISSINGNESS_VALUES,
7720
- CVC_194_SELECTABLE_VALUES,
7721
- CVC_194_VALUES,
7722
9991
  CVC_196_CHILD_WELFARE_EPISODE_TYPE,
7723
9992
  CVC_196_LABELS,
7724
9993
  CVC_196_VALUES,
7725
- CVC_197_JUVENILE_JUSTICE_EPISODE,
7726
- CVC_197_LABELS,
7727
- CVC_197_MISSINGNESS_VALUES,
7728
- CVC_197_SELECTABLE_VALUES,
7729
- CVC_197_VALUES,
7730
9994
  CVC_1_LABELS,
7731
9995
  CVC_1_NAME_TYPE,
7732
9996
  CVC_1_STRUCTURED_NAME_TYPES,
@@ -7736,7 +10000,6 @@ function createPlatformModels(connection) {
7736
10000
  CVC_67_LABELS,
7737
10001
  CVC_67_MISSINGNESS_VALUES,
7738
10002
  CVC_67_SELECTABLE_VALUES,
7739
- CVC_67_VALUES,
7740
10003
  CVC_72_HT_TYPE,
7741
10004
  CVC_72_LABELS,
7742
10005
  CVC_72_VALUES,
@@ -7761,6 +10024,11 @@ function createPlatformModels(connection) {
7761
10024
  CVC_99_ENGLISH_PROFICIENCY,
7762
10025
  CVC_99_LABELS,
7763
10026
  CVC_99_VALUES,
10027
+ CvcCodeSchema,
10028
+ CvcEntrySchema,
10029
+ CvcEnvelopeSchema,
10030
+ CvcKeySchema,
10031
+ CvcRegistryService,
7764
10032
  DATA_QUALITY,
7765
10033
  DATA_QUALITY_DESCRIPTIONS,
7766
10034
  DATA_QUALITY_LABELS,
@@ -7867,20 +10135,37 @@ function createPlatformModels(connection) {
7867
10135
  SHARE_VIEW_VALUES,
7868
10136
  SUBMISSION_STATES,
7869
10137
  SUBMISSION_STATE_LABELS,
10138
+ ServiceCategoryEntrySchema,
10139
+ ServiceCategoryKeys,
10140
+ ServiceMechanismKeys,
10141
+ ServiceStateKeys,
7870
10142
  THREAD_INVOLVEMENT_ROLES,
7871
10143
  USER_STATUS,
7872
10144
  USER_STATUS_LABELS,
7873
10145
  VALID_INTERACTION_TYPES,
7874
10146
  VALID_RECORD_STATES,
7875
10147
  addressSchema,
10148
+ applyEntryOverrides,
10149
+ buildCvcEntrySchema,
10150
+ buildCvcRegistrySchema,
7876
10151
  buildFormSchema,
7877
10152
  buildPlatformFunctionSchema,
7878
10153
  buildPlatformRoleSchema,
7879
10154
  buildQuestionSchema,
7880
10155
  buildScoringRuleSchema,
7881
10156
  buildSectionSchema,
10157
+ cascadeExclusions,
7882
10158
  choiceSchema,
10159
+ compileCvcEntryModel,
10160
+ compileCvcRegistryModel,
7883
10161
  createPlatformModels,
10162
+ cvcEntryModel,
10163
+ cvcEntrySchemaDefinition,
10164
+ cvcEntrySchemaOptions,
10165
+ cvcRegistryModel,
10166
+ cvcRegistrySchemaDefinition,
10167
+ cvcRegistrySchemaOptions,
10168
+ cvcVersionsToRecord,
7884
10169
  demographicsSchema,
7885
10170
  deriveAgeBinFromAge,
7886
10171
  emailSchema,
@@ -7919,6 +10204,7 @@ function createPlatformModels(connection) {
7919
10204
  questionModel,
7920
10205
  questionSchemaDefinition,
7921
10206
  questionSchemaOptions,
10207
+ resolveRegistryWithInheritance,
7922
10208
  scoringConditionSchema,
7923
10209
  scoringRecommendationSchema,
7924
10210
  scoringRuleModel,
@@ -7929,6 +10215,9 @@ function createPlatformModels(connection) {
7929
10215
  sectionQuestionRefSchema,
7930
10216
  sectionSchemaDefinition,
7931
10217
  sectionSchemaOptions,
10218
+ serviceCategoriesSot,
10219
+ serviceMechanismsSot,
10220
+ serviceStatesSot,
7932
10221
  sortRelationshipsByPriority,
7933
10222
  visibilityRuleSchema
7934
10223
  });