@htilabs/platform-common-models 0.2.0-beta.4 → 0.3.0-beta.5

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 (75) 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 +2184 -0
  11. package/dist/cvcs/index.cjs.map +1 -0
  12. package/dist/cvcs/index.d.cts +2384 -0
  13. package/dist/cvcs/index.d.ts +2384 -0
  14. package/dist/cvcs/index.js +2154 -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 +2962 -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 +2934 -786
  23. package/dist/index.js.map +1 -1
  24. package/dist/models/index.cjs +211 -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 +209 -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 +195 -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 +189 -729
  37. package/dist/schemas/index.js.map +1 -1
  38. package/dist/services/index.cjs +1442 -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 +1417 -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 +261 -0
  47. package/dist/validation/index.cjs.map +1 -0
  48. package/dist/validation/index.d.cts +251 -0
  49. package/dist/validation/index.d.ts +251 -0
  50. package/dist/validation/index.js +228 -0
  51. package/dist/validation/index.js.map +1 -0
  52. package/package.json +36 -12
  53. package/src/__tests__/__snapshots__/cvc-sot.snap +22 -0
  54. package/src/__tests__/cvc-sot-snapshot.test.ts +184 -0
  55. package/src/__tests__/cvc-structural.test.ts +130 -0
  56. package/src/constants/ic.ts +0 -925
  57. package/src/constants/service-catalog.ts +146 -4
  58. package/src/cvcs/index.ts +31 -0
  59. package/src/cvcs/missingness.v1.0.0.json +50 -0
  60. package/src/cvcs/serviceCategories.v1.0.0.json +1947 -0
  61. package/src/cvcs/serviceMechanisms.v1.0.0.json +47 -0
  62. package/src/cvcs/serviceStates.v1.0.0.json +106 -0
  63. package/src/generated/cvc-enums.ts +215 -0
  64. package/src/index.ts +61 -1
  65. package/src/models/cvcEntryModel.ts +32 -0
  66. package/src/models/cvcRegistryModel.ts +35 -0
  67. package/src/models/index.ts +8 -0
  68. package/src/schemas/cvcEntry.ts +158 -0
  69. package/src/schemas/cvcRegistry.ts +149 -0
  70. package/src/schemas/index.ts +16 -0
  71. package/src/services/__tests__/cvcRegistryService.test.ts +614 -0
  72. package/src/services/cvcRegistryService.ts +729 -0
  73. package/src/services/index.ts +21 -0
  74. package/src/validation/cvc.ts +414 -0
  75. 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,
@@ -310,6 +258,7 @@ __export(src_exports, {
310
258
  INVOLVEMENT_ROLE_TO_PERSON_TYPE: () => INVOLVEMENT_ROLE_TO_PERSON_TYPE,
311
259
  MINOR_ADULT_STATUS: () => MINOR_ADULT_STATUS,
312
260
  MINOR_ADULT_STATUS_LABELS: () => MINOR_ADULT_STATUS_LABELS,
261
+ MissingnessKeys: () => MissingnessKeys,
313
262
  PARTICIPATION_ROLE_CATEGORIES: () => PARTICIPATION_ROLE_CATEGORIES,
314
263
  PERMISSION_STATE: () => PERMISSION_STATE,
315
264
  PERMISSION_STATE_DISPLAY: () => PERMISSION_STATE_DISPLAY,
@@ -346,20 +295,37 @@ __export(src_exports, {
346
295
  SHARE_VIEW_VALUES: () => SHARE_VIEW_VALUES,
347
296
  SUBMISSION_STATES: () => SUBMISSION_STATES,
348
297
  SUBMISSION_STATE_LABELS: () => SUBMISSION_STATE_LABELS,
298
+ ServiceCategoryEntrySchema: () => ServiceCategoryEntrySchema,
299
+ ServiceCategoryKeys: () => ServiceCategoryKeys,
300
+ ServiceMechanismKeys: () => ServiceMechanismKeys,
301
+ ServiceStateKeys: () => ServiceStateKeys,
349
302
  THREAD_INVOLVEMENT_ROLES: () => THREAD_INVOLVEMENT_ROLES,
350
303
  USER_STATUS: () => USER_STATUS,
351
304
  USER_STATUS_LABELS: () => USER_STATUS_LABELS,
352
305
  VALID_INTERACTION_TYPES: () => VALID_INTERACTION_TYPES,
353
306
  VALID_RECORD_STATES: () => VALID_RECORD_STATES,
354
307
  addressSchema: () => addressSchema,
308
+ applyEntryOverrides: () => applyEntryOverrides,
309
+ buildCvcEntrySchema: () => buildCvcEntrySchema,
310
+ buildCvcRegistrySchema: () => buildCvcRegistrySchema,
355
311
  buildFormSchema: () => buildFormSchema,
356
312
  buildPlatformFunctionSchema: () => buildPlatformFunctionSchema,
357
313
  buildPlatformRoleSchema: () => buildPlatformRoleSchema,
358
314
  buildQuestionSchema: () => buildQuestionSchema,
359
315
  buildScoringRuleSchema: () => buildScoringRuleSchema,
360
316
  buildSectionSchema: () => buildSectionSchema,
317
+ cascadeExclusions: () => cascadeExclusions,
361
318
  choiceSchema: () => choiceSchema,
319
+ compileCvcEntryModel: () => compileModel8,
320
+ compileCvcRegistryModel: () => compileModel7,
362
321
  createPlatformModels: () => createPlatformModels,
322
+ cvcEntryModel: () => cvcEntryModel_exports,
323
+ cvcEntrySchemaDefinition: () => cvcEntrySchemaDefinition,
324
+ cvcEntrySchemaOptions: () => cvcEntrySchemaOptions,
325
+ cvcRegistryModel: () => cvcRegistryModel_exports,
326
+ cvcRegistrySchemaDefinition: () => cvcRegistrySchemaDefinition,
327
+ cvcRegistrySchemaOptions: () => cvcRegistrySchemaOptions,
328
+ cvcVersionsToRecord: () => cvcVersionsToRecord,
363
329
  demographicsSchema: () => demographicsSchema,
364
330
  deriveAgeBinFromAge: () => deriveAgeBinFromAge,
365
331
  emailSchema: () => emailSchema,
@@ -387,6 +353,7 @@ __export(src_exports, {
387
353
  isStructuredNameType: () => isStructuredNameType,
388
354
  isTransgenderGenderIdentity: () => isTransgenderGenderIdentity,
389
355
  layoutSchema: () => layoutSchema,
356
+ missingnessSot: () => missingness_v1_0_0_default,
390
357
  personNameSchema: () => personNameSchema,
391
358
  phoneSchema: () => phoneSchema,
392
359
  platformFunctionModel: () => platformFunctionModel_exports,
@@ -398,6 +365,7 @@ __export(src_exports, {
398
365
  questionModel: () => questionModel_exports,
399
366
  questionSchemaDefinition: () => questionSchemaDefinition,
400
367
  questionSchemaOptions: () => questionSchemaOptions,
368
+ resolveRegistryWithInheritance: () => resolveRegistryWithInheritance,
401
369
  scoringConditionSchema: () => scoringConditionSchema,
402
370
  scoringRecommendationSchema: () => scoringRecommendationSchema,
403
371
  scoringRuleModel: () => scoringRuleModel_exports,
@@ -408,6 +376,9 @@ __export(src_exports, {
408
376
  sectionQuestionRefSchema: () => sectionQuestionRefSchema,
409
377
  sectionSchemaDefinition: () => sectionSchemaDefinition,
410
378
  sectionSchemaOptions: () => sectionSchemaOptions,
379
+ serviceCategoriesSot: () => serviceCategories_v1_0_0_default,
380
+ serviceMechanismsSot: () => serviceMechanisms_v1_0_0_default,
381
+ serviceStatesSot: () => serviceStates_v1_0_0_default,
411
382
  sortRelationshipsByPriority: () => sortRelationshipsByPriority,
412
383
  visibilityRuleSchema: () => visibilityRuleSchema
413
384
  });
@@ -1459,16 +1430,6 @@ function isTransgenderGenderIdentity(value) {
1459
1430
  if (!value) return false;
1460
1431
  return CVC_17_TRANSGENDER_VALUES.includes(value);
1461
1432
  }
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
1433
  var IC_24_RACE = {
1473
1434
  AMERICAN_INDIAN_ALASKA_NATIVE: 1,
1474
1435
  ASIAN: 2,
@@ -4385,725 +4346,6 @@ var CVC_67_SELECTABLE_VALUES = [
4385
4346
  var CVC_67_MISSINGNESS_VALUES = [
4386
4347
  CVC_67_HMIS_SEX.DATA_NOT_COLLECTED
4387
4348
  ];
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
4349
 
5108
4350
  // src/constants/service-catalog.json
5109
4351
  var service_catalog_default = {
@@ -7468,6 +6710,189 @@ function buildPlatformRoleSchema() {
7468
6710
  }
7469
6711
  var _platformRoleSchema = buildPlatformRoleSchema();
7470
6712
 
6713
+ // src/schemas/cvcRegistry.ts
6714
+ var import_mongoose8 = require("mongoose");
6715
+ var cvcRegistrySchemaDefinition = {
6716
+ // Versioning — semantic version of this registry bundle
6717
+ version: {
6718
+ type: String,
6719
+ required: true,
6720
+ match: /^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/
6721
+ },
6722
+ // Human-readable name (e.g. "PAVE production registry")
6723
+ name: {
6724
+ type: String,
6725
+ required: true
6726
+ },
6727
+ // Scope keys. `null` widens scope: a null `application` means platform-wide;
6728
+ // a null `agencyId` means all agencies within `application`.
6729
+ application: {
6730
+ type: String,
6731
+ default: null
6732
+ },
6733
+ agencyId: {
6734
+ type: import_mongoose8.Schema.Types.ObjectId,
6735
+ default: null
6736
+ },
6737
+ // Lifecycle
6738
+ status: {
6739
+ type: String,
6740
+ required: true,
6741
+ enum: ["draft", "active", "deprecated"],
6742
+ default: "draft",
6743
+ index: true
6744
+ },
6745
+ dateActivated: {
6746
+ type: Date
6747
+ },
6748
+ dateDeactivated: {
6749
+ type: Date
6750
+ },
6751
+ // Pinned domain versions: { service_categories: "1.0.0", ... }
6752
+ // Stored as a Map<string, string> so individual domains can be added or
6753
+ // bumped without re-validating the whole document shape.
6754
+ cvcVersions: {
6755
+ type: Map,
6756
+ of: String,
6757
+ required: true,
6758
+ default: () => /* @__PURE__ */ new Map()
6759
+ },
6760
+ // Selective inclusion/exclusion lists. Both contain CVC entry codes
6761
+ // (positional 7-segment, e.g. "01-02-00-00-00-00-00"). The runtime
6762
+ // applies excludes after includes when resolving the effective set.
6763
+ excludedEntries: {
6764
+ type: [String],
6765
+ default: []
6766
+ },
6767
+ includedEntries: {
6768
+ type: [String],
6769
+ default: []
6770
+ },
6771
+ // Inheritance pointer — when set, this registry inherits cvcVersions /
6772
+ // include / exclude lists from its base before applying its own overrides.
6773
+ // Indexed below so a base-version bump can find every dependent registry.
6774
+ basedOn: {
6775
+ type: import_mongoose8.Schema.Types.ObjectId,
6776
+ default: null
6777
+ }
6778
+ };
6779
+ var cvcRegistrySchemaOptions = {
6780
+ timestamps: true,
6781
+ collection: "cvc_registries"
6782
+ };
6783
+ function buildCvcRegistrySchema() {
6784
+ const schema = new import_mongoose8.Schema(
6785
+ cvcRegistrySchemaDefinition,
6786
+ cvcRegistrySchemaOptions
6787
+ );
6788
+ schema.index(
6789
+ { application: 1, agencyId: 1, version: 1 },
6790
+ { unique: true }
6791
+ );
6792
+ schema.index(
6793
+ { application: 1, agencyId: 1, status: 1 },
6794
+ {
6795
+ unique: true,
6796
+ partialFilterExpression: { status: "active" }
6797
+ }
6798
+ );
6799
+ schema.index({ basedOn: 1 });
6800
+ return schema;
6801
+ }
6802
+ var _cvcRegistrySchema = buildCvcRegistrySchema();
6803
+
6804
+ // src/schemas/cvcEntry.ts
6805
+ var import_mongoose9 = require("mongoose");
6806
+ var CVC_CODE_PATTERN = /^\d{2}(-\d{2}){6}$/;
6807
+ var CVC_KEY_PATTERN = /^[a-z][a-z0-9_]*$/;
6808
+ var cvcEntrySchemaDefinition = {
6809
+ // Compound identity: (domain, version, code) uniquely identifies an entry.
6810
+ // `domain` is the SOT family (e.g. "service_categories"); `version` is the
6811
+ // semantic version of the SOT JSON file the entry was loaded from.
6812
+ domain: {
6813
+ type: String,
6814
+ required: true
6815
+ },
6816
+ version: {
6817
+ type: String,
6818
+ required: true
6819
+ },
6820
+ code: {
6821
+ type: String,
6822
+ required: true,
6823
+ match: CVC_CODE_PATTERN
6824
+ },
6825
+ // Stable machine key for cross-CVC references (e.g. `relevantMechanisms`
6826
+ // in service_categories points at service_mechanisms entries by `key`).
6827
+ key: {
6828
+ type: String,
6829
+ required: true,
6830
+ match: CVC_KEY_PATTERN
6831
+ },
6832
+ // Display fields
6833
+ title: {
6834
+ type: String,
6835
+ required: true
6836
+ },
6837
+ // `selectable` distinguishes leaf entries (selectable) from structural
6838
+ // grouping rows (not selectable). Required because the seed CLI must
6839
+ // populate it explicitly — there is no sane default.
6840
+ selectable: {
6841
+ type: Boolean,
6842
+ required: true
6843
+ },
6844
+ // Tree structure. `parentCode` is `null` for root rows; `childCodes` is
6845
+ // empty for leaves. We give `parentCode` a `default: null` (rather than
6846
+ // marking it required) because Mongoose's `required` validator rejects
6847
+ // `null` outright — the default ensures the field is always present on
6848
+ // disk while still allowing the documented `string | null` shape. The
6849
+ // `match` validator is skipped by Mongoose when the value is null.
6850
+ parentCode: {
6851
+ type: String,
6852
+ default: null,
6853
+ match: CVC_CODE_PATTERN
6854
+ },
6855
+ childCodes: {
6856
+ type: [String],
6857
+ required: true,
6858
+ default: []
6859
+ },
6860
+ // Long-form definition. Same `default: null` treatment as `parentCode`
6861
+ // above — every row reaches disk with `definition` set to either a
6862
+ // string or an explicit null.
6863
+ definition: {
6864
+ type: String,
6865
+ default: null
6866
+ },
6867
+ // Domain-specific extension bag. Used for fields that only apply to a
6868
+ // particular CVC family — e.g. `relevantMechanisms` on service_categories
6869
+ // entries (a cross-CVC reference into service_mechanisms by key).
6870
+ meta: {
6871
+ type: import_mongoose9.Schema.Types.Mixed
6872
+ }
6873
+ };
6874
+ var cvcEntrySchemaOptions = {
6875
+ timestamps: true,
6876
+ collection: "cvc_entities",
6877
+ // `parentCode` defaults to null but Mongoose strips required-with-default
6878
+ // null assignments unless we keep minimize off.
6879
+ minimize: false
6880
+ };
6881
+ function buildCvcEntrySchema() {
6882
+ const schema = new import_mongoose9.Schema(cvcEntrySchemaDefinition, cvcEntrySchemaOptions);
6883
+ schema.index(
6884
+ { domain: 1, version: 1, code: 1 },
6885
+ { unique: true }
6886
+ );
6887
+ schema.index(
6888
+ { domain: 1, version: 1, key: 1 },
6889
+ { unique: true }
6890
+ );
6891
+ schema.index({ domain: 1, version: 1, parentCode: 1 });
6892
+ return schema;
6893
+ }
6894
+ var _cvcEntrySchema = buildCvcEntrySchema();
6895
+
7471
6896
  // src/models/formModel.ts
7472
6897
  var formModel_exports = {};
7473
6898
  __export(formModel_exports, {
@@ -7528,6 +6953,26 @@ function compileModel6(connection, schema = buildPlatformRoleSchema()) {
7528
6953
  return connection.model("PlatformRole", schema);
7529
6954
  }
7530
6955
 
6956
+ // src/models/cvcRegistryModel.ts
6957
+ var cvcRegistryModel_exports = {};
6958
+ __export(cvcRegistryModel_exports, {
6959
+ buildSchema: () => buildCvcRegistrySchema,
6960
+ compileModel: () => compileModel7
6961
+ });
6962
+ function compileModel7(connection, schema = buildCvcRegistrySchema()) {
6963
+ return connection.models?.CvcRegistry ?? connection.model("CvcRegistry", schema);
6964
+ }
6965
+
6966
+ // src/models/cvcEntryModel.ts
6967
+ var cvcEntryModel_exports = {};
6968
+ __export(cvcEntryModel_exports, {
6969
+ buildSchema: () => buildCvcEntrySchema,
6970
+ compileModel: () => compileModel8
6971
+ });
6972
+ function compileModel8(connection, schema = buildCvcEntrySchema()) {
6973
+ return connection.models?.CvcEntry ?? connection.model("CvcEntry", schema);
6974
+ }
6975
+
7531
6976
  // src/models/index.ts
7532
6977
  function createPlatformModels(connection) {
7533
6978
  return {
@@ -7539,6 +6984,2709 @@ function createPlatformModels(connection) {
7539
6984
  PlatformRoleModel: compileModel6(connection)
7540
6985
  };
7541
6986
  }
6987
+
6988
+ // src/generated/cvc-enums.ts
6989
+ var ServiceCategoryKeys = {
6990
+ social_support_community_engagement: "01-02-00-00-00-00-00",
6991
+ cultural_needs_support: "01-02-01-00-00-00-00",
6992
+ gift_holiday_resources: "01-02-02-00-00-00-00",
6993
+ peer_facilitated_supportive_group: "01-02-03-00-00-00-00",
6994
+ community_service_learning: "01-02-04-00-00-00-00",
6995
+ survivor_support_psychoeducation: "01-02-05-00-00-00-00",
6996
+ financial_and_employment: "01-03-00-00-00-00-00",
6997
+ financial_support: "01-03-01-00-00-00-00",
6998
+ emergency_financial_assistance: "01-03-01-01-00-00-00",
6999
+ employment_support: "01-03-02-00-00-00-00",
7000
+ supported_employment: "01-03-02-01-00-00-00",
7001
+ employment_assistance_job_search: "01-03-02-02-00-00-00",
7002
+ job_vocation_training: "01-03-02-03-00-00-00",
7003
+ healthcare: "01-04-00-00-00-00-00",
7004
+ medical: "01-04-01-00-00-00-00",
7005
+ emergency_medical_care: "01-04-01-01-00-00-00",
7006
+ forensic_exam_interview: "01-04-01-02-00-00-00",
7007
+ dv_exam: "01-04-01-02-01-00-00",
7008
+ sane_exam: "01-04-01-02-02-00-00",
7009
+ std_testing: "01-04-01-02-03-00-00",
7010
+ specialized_assessments: "01-04-01-02-04-00-00",
7011
+ counseling_evaluation_assessment: "01-04-01-02-04-01-00",
7012
+ stalking_assessment: "01-04-01-02-04-02-00",
7013
+ danger_assessment: "01-04-01-02-04-03-00",
7014
+ indepth_assessment: "01-04-01-02-04-04-00",
7015
+ outpatient_medical: "01-04-01-03-00-00-00",
7016
+ dental: "01-04-01-03-01-00-00",
7017
+ vision: "01-04-01-03-02-00-00",
7018
+ tattoo_removal: "01-04-01-03-03-00-00",
7019
+ pet_medical: "01-04-01-03-04-00-00",
7020
+ pregnancy_care: "01-04-01-04-00-00-00",
7021
+ prenatal_care: "01-04-01-04-01-00-00",
7022
+ postnatal_care_client: "01-04-01-04-02-00-00",
7023
+ postnatal_care_newborn: "01-04-01-04-03-00-00",
7024
+ emotional_support_mental_health: "01-04-02-00-00-00-00",
7025
+ individual_counseling: "01-04-02-01-00-00-00",
7026
+ group_counseling: "01-04-02-02-00-00-00",
7027
+ family_counseling: "01-04-02-03-00-00-00",
7028
+ counseling_treatment_planning: "01-04-02-04-00-00-00",
7029
+ counseling_treatment_plan_review: "01-04-02-05-00-00-00",
7030
+ behavioral_occupational_support: "01-04-02-06-00-00-00",
7031
+ substance_abuse_treatment: "01-04-02-06-01-00-00",
7032
+ coping_strategy_support: "01-04-02-06-02-00-00",
7033
+ other_therapy: "01-04-02-07-00-00-00",
7034
+ housing_services: "01-05-00-00-00-00-00",
7035
+ emergency_shelter: "01-05-01-00-00-00-00",
7036
+ day_shelter_dropin: "01-05-01-01-00-00-00",
7037
+ host_homes_safe_homes: "01-05-01-02-00-00-00",
7038
+ congregate_shelter_bednight: "01-05-01-03-00-00-00",
7039
+ emergency_hotel_motel: "01-05-01-04-00-00-00",
7040
+ night_by_night_shelter: "01-05-01-05-00-00-00",
7041
+ transitional_housing: "01-05-02-00-00-00-00",
7042
+ housing_renovation_modification: "01-05-03-00-00-00-00",
7043
+ household_setup_goods: "01-05-03-01-00-00-00",
7044
+ housing_navigation_placement: "01-05-04-00-00-00-00",
7045
+ housing_financial_assistance: "01-05-04-01-00-00-00",
7046
+ rental_payment_assistance: "01-05-04-01-01-00-00",
7047
+ security_deposit_allowance: "01-05-04-01-01-01-00",
7048
+ utility_assistance: "01-05-04-01-01-02-00",
7049
+ relocation_moving_assistance: "01-05-04-02-00-00-00",
7050
+ housing_stabilization_eviction_prevention: "01-05-05-00-00-00-00",
7051
+ tenant_based_scattered_site: "01-05-06-00-00-00-00",
7052
+ legal_services: "01-06-00-00-00-00-00",
7053
+ immigration_relief: "01-06-01-00-00-00-00",
7054
+ repatriation: "01-06-01-01-00-00-00",
7055
+ family_law: "01-06-02-00-00-00-00",
7056
+ criminal_support: "01-06-03-00-00-00-00",
7057
+ victim_impact_statement: "01-06-03-01-00-00-00",
7058
+ perpetrator_accountability: "01-06-03-02-00-00-00",
7059
+ victim_compensation: "01-06-03-03-00-00-00",
7060
+ victims_rights_representation: "01-06-03-04-00-00-00",
7061
+ criminal_record_relief: "01-06-03-05-00-00-00",
7062
+ civil_support: "01-06-04-00-00-00-00",
7063
+ protection_restraining_orders: "01-06-04-01-00-00-00",
7064
+ public_benefits_law: "01-06-04-02-00-00-00",
7065
+ emergency_safety_assistance: "01-06-05-00-00-00-00",
7066
+ basic_needs: "01-07-00-00-00-00-00",
7067
+ clothing_shoes_accessories: "01-07-01-00-00-00-00",
7068
+ elder_assistance: "01-07-01-01-00-00-00",
7069
+ food: "01-07-02-00-00-00-00",
7070
+ over_the_counter_medications: "01-07-03-00-00-00-00",
7071
+ immediate_safety_planning: "01-07-04-00-00-00-00",
7072
+ emergency_crisis_safety_support: "01-07-04-01-00-00-00",
7073
+ hygiene_items_personal_care: "01-07-05-00-00-00-00",
7074
+ communications_connectivity: "01-07-06-00-00-00-00",
7075
+ interpreter_services: "01-07-07-00-00-00-00",
7076
+ informal_education_life_skills: "01-08-00-00-00-00-00",
7077
+ basic_life_skills_self_care: "01-08-01-00-00-00-00",
7078
+ accessibility_disability_support: "01-08-02-00-00-00-00",
7079
+ parenting_education: "01-08-03-00-00-00-00",
7080
+ learning_language_classes: "01-08-04-00-00-00-00",
7081
+ transportation: "01-09-00-00-00-00-00",
7082
+ transportation_assistance_direct: "01-09-01-00-00-00-00",
7083
+ transportation_direct_emergency: "01-09-01-01-00-00-00",
7084
+ taxi_rideshare_voucher: "01-09-02-00-00-00-00",
7085
+ taxi_rideshare_emergency: "01-09-02-01-00-00-00",
7086
+ bus_fare_pass: "01-09-03-00-00-00-00",
7087
+ bus_fare_pass_emergency: "01-09-03-01-00-00-00",
7088
+ gift_card_gas_card: "01-09-04-00-00-00-00",
7089
+ gift_card_gas_card_emergency: "01-09-04-01-00-00-00",
7090
+ airline_tickets: "01-09-05-00-00-00-00",
7091
+ airline_tickets_emergency: "01-09-05-01-00-00-00",
7092
+ dependents: "01-10-00-00-00-00-00",
7093
+ pet_care: "01-10-01-00-00-00-00",
7094
+ child_care: "01-10-02-00-00-00-00",
7095
+ childrens_activities: "01-10-02-01-00-00-00",
7096
+ children_youth_baby_supplies: "01-10-02-01-01-00-00",
7097
+ case_coordination: "01-11-00-00-00-00-00",
7098
+ advocacy: "01-11-01-00-00-00-00",
7099
+ medical_advocacy: "01-11-01-01-00-00-00",
7100
+ advocacy_emergency_medical: "01-11-01-01-01-00-00",
7101
+ advocacy_forensic_exam: "01-11-01-01-02-00-00",
7102
+ court_advocacy: "01-11-01-02-00-00-00",
7103
+ crime_scene_clean_up: "01-11-01-02-01-00-00",
7104
+ family_reunification: "01-11-01-02-02-00-00",
7105
+ law_enforcement_interview_support: "01-11-01-02-03-00-00",
7106
+ prosecution_interview_advocacy: "01-11-01-02-04-00-00",
7107
+ immigration_advocacy_support: "01-11-01-02-05-00-00",
7108
+ documentation_records_retrieval: "01-11-01-03-00-00-00",
7109
+ obtaining_insurance: "01-11-01-03-01-00-00",
7110
+ drivers_car_insurance: "01-11-01-03-01-01-00",
7111
+ medical_insurance: "01-11-01-03-01-02-00",
7112
+ obtaining_drivers_license: "01-11-01-03-02-00-00",
7113
+ faith_resource: "01-11-01-04-00-00-00",
7114
+ banking_notary: "01-11-01-05-00-00-00",
7115
+ income_benefits_navigation: "01-11-01-06-00-00-00",
7116
+ government_services_special_programs: "01-11-01-06-01-00-00",
7117
+ intervention_employer_creditor_academic: "01-11-01-07-00-00-00",
7118
+ formal_education_academic_support: "01-11-01-07-01-00-00",
7119
+ adult_school_ged: "01-11-01-07-01-01-00",
7120
+ child_school_enrollment: "01-11-01-07-01-02-00",
7121
+ intake: "01-11-02-00-00-00-00",
7122
+ screening: "01-11-02-01-00-00-00",
7123
+ housing_eligibility_determination: "01-11-02-01-01-00-00",
7124
+ coordinated_entry: "01-11-02-01-01-01-00",
7125
+ behavioral_issues_screen: "01-11-02-01-02-00-00",
7126
+ initial_screen: "01-11-02-01-03-00-00",
7127
+ needs_assessment: "01-11-02-01-04-00-00",
7128
+ tvap: "01-11-02-01-05-00-00",
7129
+ case_management_supportive_services: "01-11-03-00-00-00-00",
7130
+ intra_agency_provider_coordination: "01-11-03-01-00-00-00",
7131
+ inter_agency_consultation: "01-11-03-02-00-00-00",
7132
+ service_plan: "01-11-03-03-00-00-00",
7133
+ hope_scale_and_plan: "01-11-03-03-01-00-00",
7134
+ post_exit_plan: "01-11-03-04-00-00-00",
7135
+ advanced_directives: "01-11-03-05-00-00-00",
7136
+ other_services: "01-12-00-00-00-00-00"
7137
+ };
7138
+ var ServiceStateKeys = {
7139
+ need_identified: "02-01-00-00-00-00-00",
7140
+ offered: "02-02-00-00-00-00-00",
7141
+ scheduled_in_progress: "02-03-00-00-00-00-00",
7142
+ delivered: "02-04-00-00-00-00-00",
7143
+ completed: "02-05-00-00-00-00-00",
7144
+ declined_by_client: "02-06-00-00-00-00-00",
7145
+ unable_to_provide: "02-07-00-00-00-00-00",
7146
+ unable_to_provide_eligibility: "02-07-01-00-00-00-00",
7147
+ unable_to_provide_capacity: "02-07-02-00-00-00-00",
7148
+ unable_to_provide_resources: "02-07-03-00-00-00-00"
7149
+ };
7150
+ var ServiceMechanismKeys = {
7151
+ support_via_referral: "03-01-00-00-00-00-00",
7152
+ informational_support: "03-02-00-00-00-00-00",
7153
+ direct_staff_contractor: "03-03-00-00-00-00-00",
7154
+ financial_material_assistance: "03-04-00-00-00-00-00"
7155
+ };
7156
+ var MissingnessKeys = {
7157
+ missingness_root: "00-00-00-00-00-00-00",
7158
+ unknown: "00-00-00-00-00-00-01",
7159
+ anonymous: "00-00-00-00-00-00-02",
7160
+ data_not_collected: "00-00-00-00-00-00-03"
7161
+ };
7162
+
7163
+ // src/services/cvcRegistryService.ts
7164
+ var import_mongoose10 = require("mongoose");
7165
+ function cvcVersionsToRecord(versions) {
7166
+ if (!versions) return {};
7167
+ if (versions instanceof Map) {
7168
+ return Object.fromEntries(versions.entries());
7169
+ }
7170
+ return { ...versions };
7171
+ }
7172
+ function cascadeExclusions(excludedCodes, entries) {
7173
+ const result = new Set(excludedCodes);
7174
+ const childMap = /* @__PURE__ */ new Map();
7175
+ for (const entry of entries) {
7176
+ if (entry.parentCode) {
7177
+ const siblings = childMap.get(entry.parentCode);
7178
+ if (siblings) {
7179
+ siblings.push(entry.code);
7180
+ } else {
7181
+ childMap.set(entry.parentCode, [entry.code]);
7182
+ }
7183
+ }
7184
+ }
7185
+ const queue = [...excludedCodes];
7186
+ while (queue.length > 0) {
7187
+ const code = queue.shift();
7188
+ const children = childMap.get(code);
7189
+ if (!children) continue;
7190
+ for (const childCode of children) {
7191
+ if (!result.has(childCode)) {
7192
+ result.add(childCode);
7193
+ queue.push(childCode);
7194
+ }
7195
+ }
7196
+ }
7197
+ return result;
7198
+ }
7199
+ function applyEntryOverrides(excludedEntries, includedEntries, entries) {
7200
+ const excluded = new Set(excludedEntries ?? []);
7201
+ const included = new Set(includedEntries ?? []);
7202
+ const hasExclusions = excluded.size > 0;
7203
+ const hasInclusions = included.size > 0;
7204
+ if (!hasExclusions && !hasInclusions) {
7205
+ return [...entries];
7206
+ }
7207
+ if (!hasExclusions && hasInclusions) {
7208
+ return entries.filter((entry) => included.has(entry.code));
7209
+ }
7210
+ const cascadedExclusions = cascadeExclusions(excluded, entries);
7211
+ return entries.filter((entry) => {
7212
+ if (included.has(entry.code)) return true;
7213
+ if (cascadedExclusions.has(entry.code)) return false;
7214
+ return true;
7215
+ });
7216
+ }
7217
+ async function resolveRegistryWithInheritance(registry, loadRegistry, loadEntries) {
7218
+ const childVersions = cvcVersionsToRecord(registry.cvcVersions);
7219
+ let mergedVersions = { ...childVersions };
7220
+ if (registry.basedOn) {
7221
+ const base = await loadRegistry(registry.basedOn);
7222
+ if (!base) {
7223
+ throw new Error(
7224
+ `CvcRegistryService: basedOn registry not found: ${registry.basedOn.toString()}`
7225
+ );
7226
+ }
7227
+ mergedVersions = {
7228
+ ...cvcVersionsToRecord(base.cvcVersions),
7229
+ ...childVersions
7230
+ };
7231
+ }
7232
+ const pool = [];
7233
+ for (const [domain, version] of Object.entries(mergedVersions)) {
7234
+ const domainEntries = await loadEntries(domain, version);
7235
+ pool.push(...domainEntries);
7236
+ }
7237
+ const entries = applyEntryOverrides(
7238
+ registry.excludedEntries,
7239
+ registry.includedEntries,
7240
+ pool
7241
+ );
7242
+ return { mergedVersions, entries };
7243
+ }
7244
+ function scopeFilter(scope) {
7245
+ return {
7246
+ application: scope.application ?? null,
7247
+ agencyId: scope.agencyId ?? null
7248
+ };
7249
+ }
7250
+ function cacheKeyFor(registryId) {
7251
+ return registryId.toString();
7252
+ }
7253
+ var CvcRegistryService = class {
7254
+ registryModel;
7255
+ entryModel;
7256
+ scopeFallback;
7257
+ /**
7258
+ * Cached resolved entry set per registry id. The value is the full
7259
+ * post-override entry list — domain filtering is done on read so the
7260
+ * cache stays domain-agnostic. Cleared on activate/deprecate of any
7261
+ * registry that overlaps the cached scope.
7262
+ */
7263
+ resolvedCache = /* @__PURE__ */ new Map();
7264
+ /**
7265
+ * @param connection - Mongoose connection that owns `cvc_registries` and `cvc_entries`
7266
+ * @param options - Optional behavior toggles (see {@link CvcRegistryServiceOptions})
7267
+ */
7268
+ constructor(connection, options = {}) {
7269
+ this.registryModel = cvcRegistryModel_exports.compileModel(
7270
+ connection
7271
+ );
7272
+ this.entryModel = cvcEntryModel_exports.compileModel(
7273
+ connection
7274
+ );
7275
+ this.scopeFallback = options.scopeFallback ?? true;
7276
+ }
7277
+ // ──────────────────────────────────────────────────────────────────────────
7278
+ // Registry lifecycle
7279
+ // ──────────────────────────────────────────────────────────────────────────
7280
+ /**
7281
+ * Find the active registry for a scope, walking the fallback chain
7282
+ * (agency-specific → app-specific → platform-default) when enabled. Returns
7283
+ * `null` if no active registry exists at any level of the chain.
7284
+ */
7285
+ async getActiveRegistry(scope) {
7286
+ const candidates = [scope];
7287
+ if (this.scopeFallback) {
7288
+ if (scope.agencyId != null && scope.application != null) {
7289
+ candidates.push({ application: scope.application, agencyId: null });
7290
+ }
7291
+ if (scope.application != null) {
7292
+ candidates.push({ application: null, agencyId: null });
7293
+ }
7294
+ }
7295
+ for (const candidate of candidates) {
7296
+ const found = await this.registryModel.findOne({ ...scopeFilter(candidate), status: "active" }).lean().exec();
7297
+ if (found) return found;
7298
+ }
7299
+ return null;
7300
+ }
7301
+ /**
7302
+ * Look up a registry by its `(scope, version)` tuple. The scope must be
7303
+ * exact — there is no fallback chain here, since version pins are scope-
7304
+ * specific by definition.
7305
+ */
7306
+ async getRegistry(scope, version) {
7307
+ return this.registryModel.findOne({ ...scopeFilter(scope), version }).lean().exec();
7308
+ }
7309
+ /**
7310
+ * List every registry version for an exact scope, regardless of status.
7311
+ * Sorted by version so callers get a deterministic ordering for change
7312
+ * logs / version pickers. The version field is a semver string, so the
7313
+ * sort is lexicographic — good enough for the typical 1.0.0 / 1.1.0 case.
7314
+ */
7315
+ async listVersions(scope) {
7316
+ return this.registryModel.find(scopeFilter(scope)).sort({ version: 1 }).lean().exec();
7317
+ }
7318
+ /**
7319
+ * Promote a draft registry to `active`. Atomically demotes the previous
7320
+ * active registry in the same scope to `deprecated` so the
7321
+ * one-active-per-scope invariant holds even under concurrent activations
7322
+ * (the partial unique index on `cvc_registries` enforces this at the DB
7323
+ * layer; we mirror it here for clarity).
7324
+ *
7325
+ * @throws Error if the target registry doesn't exist or isn't in `draft`
7326
+ */
7327
+ async activate(registryId) {
7328
+ const target = await this.registryModel.findById(registryId).lean().exec();
7329
+ if (!target) {
7330
+ throw new Error(
7331
+ `CvcRegistryService.activate: registry not found: ${registryId.toString()}`
7332
+ );
7333
+ }
7334
+ if (target.status !== "draft") {
7335
+ throw new Error(
7336
+ `CvcRegistryService.activate: registry ${registryId.toString()} is '${target.status}', expected 'draft'`
7337
+ );
7338
+ }
7339
+ const now = /* @__PURE__ */ new Date();
7340
+ await this.registryModel.updateOne(
7341
+ {
7342
+ application: target.application ?? null,
7343
+ agencyId: target.agencyId ?? null,
7344
+ status: "active"
7345
+ },
7346
+ { $set: { status: "deprecated", dateDeactivated: now } }
7347
+ ).exec();
7348
+ const activated = await this.registryModel.findByIdAndUpdate(
7349
+ registryId,
7350
+ { $set: { status: "active", dateActivated: now } },
7351
+ { new: true }
7352
+ ).lean().exec();
7353
+ if (!activated) {
7354
+ throw new Error(
7355
+ `CvcRegistryService.activate: registry vanished mid-update: ${registryId.toString()}`
7356
+ );
7357
+ }
7358
+ this.resolvedCache.clear();
7359
+ return activated;
7360
+ }
7361
+ /**
7362
+ * Demote an active registry to `deprecated`. Idempotent only in the sense
7363
+ * that calling it twice on the same registry will fail the second time —
7364
+ * we don't allow re-deprecating something that's already deprecated, so
7365
+ * the lifecycle stays a strict state machine.
7366
+ *
7367
+ * @throws Error if the target registry doesn't exist or isn't `active`
7368
+ */
7369
+ async deprecate(registryId) {
7370
+ const target = await this.registryModel.findById(registryId).lean().exec();
7371
+ if (!target) {
7372
+ throw new Error(
7373
+ `CvcRegistryService.deprecate: registry not found: ${registryId.toString()}`
7374
+ );
7375
+ }
7376
+ if (target.status !== "active") {
7377
+ throw new Error(
7378
+ `CvcRegistryService.deprecate: registry ${registryId.toString()} is '${target.status}', expected 'active'`
7379
+ );
7380
+ }
7381
+ const updated = await this.registryModel.findByIdAndUpdate(
7382
+ registryId,
7383
+ { $set: { status: "deprecated", dateDeactivated: /* @__PURE__ */ new Date() } },
7384
+ { new: true }
7385
+ ).lean().exec();
7386
+ if (!updated) {
7387
+ throw new Error(
7388
+ `CvcRegistryService.deprecate: registry vanished mid-update: ${registryId.toString()}`
7389
+ );
7390
+ }
7391
+ this.resolvedCache.clear();
7392
+ return updated;
7393
+ }
7394
+ // ──────────────────────────────────────────────────────────────────────────
7395
+ // Entry resolution (core — all convenience methods funnel through here)
7396
+ // ──────────────────────────────────────────────────────────────────────────
7397
+ /**
7398
+ * Resolve a registry into its effective entry list, applying inheritance
7399
+ * and overrides. Results are memoised by registry id; the cache is
7400
+ * invalidated on `activate()` / `deprecate()`.
7401
+ */
7402
+ async resolveEntries(registryId) {
7403
+ const cacheKey = cacheKeyFor(registryId);
7404
+ const cached = this.resolvedCache.get(cacheKey);
7405
+ if (cached) return cached;
7406
+ const registry = await this.registryModel.findById(registryId).lean().exec();
7407
+ if (!registry) {
7408
+ throw new Error(
7409
+ `CvcRegistryService.resolveEntries: registry not found: ${registryId.toString()}`
7410
+ );
7411
+ }
7412
+ const { entries } = await resolveRegistryWithInheritance(
7413
+ registry,
7414
+ (id) => this.registryModel.findById(id).lean().exec(),
7415
+ (domain, version) => this.entryModel.find({ domain, version }).lean().exec()
7416
+ );
7417
+ this.resolvedCache.set(cacheKey, entries);
7418
+ return entries;
7419
+ }
7420
+ /**
7421
+ * Same as {@link resolveEntries} but filtered to a single CVC domain.
7422
+ * Filtering is done on the cached set so repeated calls for different
7423
+ * domains share the same underlying load.
7424
+ */
7425
+ async resolveEntriesForDomain(registryId, domain) {
7426
+ const all = await this.resolveEntries(registryId);
7427
+ return all.filter((entry) => entry.domain === domain);
7428
+ }
7429
+ // ──────────────────────────────────────────────────────────────────────────
7430
+ // Entry lookups (convenience — resolve through the active registry)
7431
+ // ──────────────────────────────────────────────────────────────────────────
7432
+ /**
7433
+ * Find an entry by its 7-segment positional code within the active
7434
+ * registry for `scope`. Returns `null` if no active registry exists or
7435
+ * the code isn't present in the resolved entry set.
7436
+ */
7437
+ async getEntryByCode(scope, code) {
7438
+ const registry = await this.getActiveRegistry(scope);
7439
+ if (!registry) return null;
7440
+ const entries = await this.resolveEntries(registry._id);
7441
+ return entries.find((entry) => entry.code === code) ?? null;
7442
+ }
7443
+ /**
7444
+ * Find an entry by its stable machine key within a specific domain in the
7445
+ * active registry. Keys are unique per `(domain, version)` so the lookup
7446
+ * always returns at most one entry.
7447
+ */
7448
+ async getEntryByKey(scope, domain, key) {
7449
+ const registry = await this.getActiveRegistry(scope);
7450
+ if (!registry) return null;
7451
+ const entries = await this.resolveEntriesForDomain(registry._id, domain);
7452
+ return entries.find((entry) => entry.key === key) ?? null;
7453
+ }
7454
+ /**
7455
+ * Get every resolved entry for a given domain in the active registry.
7456
+ */
7457
+ async getEntries(scope, domain) {
7458
+ const registry = await this.getActiveRegistry(scope);
7459
+ if (!registry) return [];
7460
+ return this.resolveEntriesForDomain(registry._id, domain);
7461
+ }
7462
+ /**
7463
+ * Get only the selectable (leaf) entries for a domain — useful for form
7464
+ * dropdowns where structural grouping rows must be hidden.
7465
+ */
7466
+ async getSelectableEntries(scope, domain) {
7467
+ const entries = await this.getEntries(scope, domain);
7468
+ return entries.filter((entry) => entry.selectable);
7469
+ }
7470
+ /**
7471
+ * Get the direct children of a parent code within the active registry.
7472
+ * Returns `[]` for leaves and for codes not present in the resolved set.
7473
+ */
7474
+ async getChildren(scope, code) {
7475
+ const registry = await this.getActiveRegistry(scope);
7476
+ if (!registry) return [];
7477
+ const entries = await this.resolveEntries(registry._id);
7478
+ return entries.filter((entry) => entry.parentCode === code);
7479
+ }
7480
+ /**
7481
+ * Walk the parent chain from `code` up to the tree root, returning the
7482
+ * ancestors in **root → entry** order (the entry itself is not included).
7483
+ * Stops early if a parent code references an entry that isn't present in
7484
+ * the resolved set — that's a corrupt-tree signal but we'd rather return
7485
+ * a partial chain than throw inside a UI breadcrumb call.
7486
+ */
7487
+ async getAncestors(scope, code) {
7488
+ const registry = await this.getActiveRegistry(scope);
7489
+ if (!registry) return [];
7490
+ const entries = await this.resolveEntries(registry._id);
7491
+ const byCode = new Map(entries.map((entry) => [entry.code, entry]));
7492
+ const chain = [];
7493
+ let current = byCode.get(code);
7494
+ const seen = /* @__PURE__ */ new Set();
7495
+ while (current?.parentCode && !seen.has(current.parentCode)) {
7496
+ seen.add(current.parentCode);
7497
+ const parent = byCode.get(current.parentCode);
7498
+ if (!parent) break;
7499
+ chain.push(parent);
7500
+ current = parent;
7501
+ }
7502
+ return chain.reverse();
7503
+ }
7504
+ // ──────────────────────────────────────────────────────────────────────────
7505
+ // Test seam: cache introspection
7506
+ // ──────────────────────────────────────────────────────────────────────────
7507
+ /**
7508
+ * Test-only accessor for the resolved-entry cache. Exposed so service
7509
+ * tests can assert that `activate()` / `deprecate()` actually flush the
7510
+ * cache, and so consumers diagnosing stale-data bugs can dump the live
7511
+ * keyset. Not part of the locked spec API surface — treat as internal.
7512
+ */
7513
+ get __cacheKeysForTests() {
7514
+ return [...this.resolvedCache.keys()];
7515
+ }
7516
+ };
7517
+
7518
+ // src/validation/cvc.ts
7519
+ var import_zod = require("zod");
7520
+ var CvcCodeSchema = import_zod.z.string().regex(/^\d{2}(-\d{2}){6}$/);
7521
+ var CvcKeySchema = import_zod.z.string().regex(/^[a-z][a-z0-9_]*$/);
7522
+ var CvcEntrySchema = import_zod.z.object({
7523
+ code: CvcCodeSchema,
7524
+ key: CvcKeySchema,
7525
+ title: import_zod.z.string().min(1),
7526
+ selectable: import_zod.z.boolean(),
7527
+ parentCode: CvcCodeSchema.nullable(),
7528
+ childCodes: import_zod.z.array(CvcCodeSchema),
7529
+ definition: import_zod.z.string().nullable()
7530
+ }).passthrough();
7531
+ var ServiceCategoryEntrySchema = CvcEntrySchema.extend({
7532
+ relevantMechanisms: import_zod.z.array(CvcKeySchema).nullable()
7533
+ });
7534
+ var CvcEnvelopeSchema = import_zod.z.object({
7535
+ domain: import_zod.z.string().min(1),
7536
+ name: import_zod.z.string().min(1),
7537
+ version: import_zod.z.string().min(1),
7538
+ missingness: import_zod.z.array(import_zod.z.string()).optional(),
7539
+ levels: import_zod.z.record(import_zod.z.string(), import_zod.z.string()),
7540
+ entries: import_zod.z.array(CvcEntrySchema)
7541
+ });
7542
+
7543
+ // src/cvcs/serviceCategories.v1.0.0.json
7544
+ var serviceCategories_v1_0_0_default = {
7545
+ domain: "service_categories",
7546
+ name: "Core Victim Service Categories",
7547
+ version: "1.0.0",
7548
+ missingness: ["all"],
7549
+ levels: {
7550
+ "1": "Service Topics",
7551
+ "2": "Primary Service",
7552
+ "3": "Sub-Category",
7553
+ "4": "Sub-Sub Category",
7554
+ "5": "Sub-Sub-Sub Category"
7555
+ },
7556
+ entries: [
7557
+ {
7558
+ code: "01-02-00-00-00-00-00",
7559
+ key: "social_support_community_engagement",
7560
+ title: "Social Support & Community Engagement Services",
7561
+ selectable: false,
7562
+ parentCode: null,
7563
+ childCodes: [
7564
+ "01-02-01-00-00-00-00",
7565
+ "01-02-02-00-00-00-00",
7566
+ "01-02-03-00-00-00-00",
7567
+ "01-02-04-00-00-00-00",
7568
+ "01-02-05-00-00-00-00"
7569
+ ],
7570
+ definition: "Services and activities that foster social connection, emotional support, cultural belonging, and positive community engagement for survivors.",
7571
+ relevantMechanisms: null
7572
+ },
7573
+ {
7574
+ code: "01-02-01-00-00-00-00",
7575
+ key: "cultural_needs_support",
7576
+ title: "Cultural needs support",
7577
+ selectable: true,
7578
+ parentCode: "01-02-00-00-00-00-00",
7579
+ childCodes: [],
7580
+ definition: "Support that helps survivors maintain cultural identity, traditions, or practices.",
7581
+ relevantMechanisms: [
7582
+ "direct_staff_contractor",
7583
+ "financial_material_assistance",
7584
+ "support_via_referral",
7585
+ "informational_support"
7586
+ ]
7587
+ },
7588
+ {
7589
+ code: "01-02-02-00-00-00-00",
7590
+ key: "gift_holiday_resources",
7591
+ title: "Gift/Holiday Resources Support",
7592
+ selectable: true,
7593
+ parentCode: "01-02-00-00-00-00-00",
7594
+ childCodes: [],
7595
+ definition: "Support that helps survivors observe holidays or celebrations that promote belonging and well-being.",
7596
+ relevantMechanisms: [
7597
+ "direct_staff_contractor",
7598
+ "financial_material_assistance",
7599
+ "support_via_referral",
7600
+ "informational_support"
7601
+ ]
7602
+ },
7603
+ {
7604
+ code: "01-02-03-00-00-00-00",
7605
+ key: "peer_facilitated_supportive_group",
7606
+ title: "Peer/facilitated supportive group",
7607
+ selectable: true,
7608
+ parentCode: "01-02-00-00-00-00-00",
7609
+ childCodes: [],
7610
+ definition: "Interactive group sessions for adult/child victims/survivors that may be topic oriented and educational.",
7611
+ relevantMechanisms: [
7612
+ "direct_staff_contractor",
7613
+ "support_via_referral",
7614
+ "informational_support"
7615
+ ]
7616
+ },
7617
+ {
7618
+ code: "01-02-04-00-00-00-00",
7619
+ key: "community_service_learning",
7620
+ title: "Community service learning",
7621
+ selectable: true,
7622
+ parentCode: "01-02-00-00-00-00-00",
7623
+ childCodes: [],
7624
+ definition: "The opportunity to participate in structured community service or program-required service hours.",
7625
+ relevantMechanisms: [
7626
+ "direct_staff_contractor",
7627
+ "financial_material_assistance",
7628
+ "support_via_referral",
7629
+ "informational_support"
7630
+ ]
7631
+ },
7632
+ {
7633
+ code: "01-02-05-00-00-00-00",
7634
+ key: "survivor_support_psychoeducation",
7635
+ title: "Survivor Support Psychoeducation",
7636
+ selectable: true,
7637
+ parentCode: "01-02-00-00-00-00-00",
7638
+ childCodes: [],
7639
+ definition: "Supportive services provided to a survivor and/or their social support system to help them understand trafficking and address challenges.",
7640
+ relevantMechanisms: null
7641
+ },
7642
+ {
7643
+ code: "01-03-00-00-00-00-00",
7644
+ key: "financial_and_employment",
7645
+ title: "Financial and Employment",
7646
+ selectable: false,
7647
+ parentCode: null,
7648
+ childCodes: ["01-03-01-00-00-00-00", "01-03-02-00-00-00-00"],
7649
+ definition: "Services, resources, and supports that address a survivor's financial stability and employment pathways.",
7650
+ relevantMechanisms: [
7651
+ "direct_staff_contractor",
7652
+ "financial_material_assistance",
7653
+ "support_via_referral",
7654
+ "informational_support"
7655
+ ]
7656
+ },
7657
+ {
7658
+ code: "01-03-01-00-00-00-00",
7659
+ key: "financial_support",
7660
+ title: "Financial Support (Budgeting & Financial Capability)",
7661
+ selectable: true,
7662
+ parentCode: "01-03-00-00-00-00-00",
7663
+ childCodes: ["01-03-01-01-00-00-00"],
7664
+ definition: "Support focused on improving a survivor's financial stability through financial coaching/education.",
7665
+ relevantMechanisms: [
7666
+ "direct_staff_contractor",
7667
+ "financial_material_assistance",
7668
+ "support_via_referral",
7669
+ "informational_support"
7670
+ ]
7671
+ },
7672
+ {
7673
+ code: "01-03-01-01-00-00-00",
7674
+ key: "emergency_financial_assistance",
7675
+ title: "Emergency financial assistance",
7676
+ selectable: true,
7677
+ parentCode: "01-03-01-00-00-00-00",
7678
+ childCodes: [],
7679
+ definition: "Direct financial support provided to address an immediate, time-sensitive financial barrier to safety or stability.",
7680
+ relevantMechanisms: [
7681
+ "financial_material_assistance",
7682
+ "support_via_referral"
7683
+ ]
7684
+ },
7685
+ {
7686
+ code: "01-03-02-00-00-00-00",
7687
+ key: "employment_support",
7688
+ title: "Employment Support",
7689
+ selectable: true,
7690
+ parentCode: "01-03-00-00-00-00-00",
7691
+ childCodes: [
7692
+ "01-03-02-01-00-00-00",
7693
+ "01-03-02-02-00-00-00",
7694
+ "01-03-02-03-00-00-00"
7695
+ ],
7696
+ definition: "Support that helps survivors obtain, retain, or improve employment.",
7697
+ relevantMechanisms: [
7698
+ "direct_staff_contractor",
7699
+ "financial_material_assistance",
7700
+ "support_via_referral",
7701
+ "informational_support"
7702
+ ]
7703
+ },
7704
+ {
7705
+ code: "01-03-02-01-00-00-00",
7706
+ key: "supported_employment",
7707
+ title: "Supported Employment (e.g., paid employment, internship)",
7708
+ selectable: true,
7709
+ parentCode: "01-03-02-00-00-00-00",
7710
+ childCodes: [],
7711
+ definition: "Program-supported placement into paid employment, internship, or subsidized employment.",
7712
+ relevantMechanisms: ["direct_staff_contractor", "informational_support"]
7713
+ },
7714
+ {
7715
+ code: "01-03-02-02-00-00-00",
7716
+ key: "employment_assistance_job_search",
7717
+ title: "Employment Assistance / Job Search & Readiness",
7718
+ selectable: true,
7719
+ parentCode: "01-03-02-00-00-00-00",
7720
+ childCodes: [],
7721
+ definition: "Hands-on assistance to help survivors seek and secure employment.",
7722
+ relevantMechanisms: [
7723
+ "direct_staff_contractor",
7724
+ "financial_material_assistance",
7725
+ "support_via_referral",
7726
+ "informational_support"
7727
+ ]
7728
+ },
7729
+ {
7730
+ code: "01-03-02-03-00-00-00",
7731
+ key: "job_vocation_training",
7732
+ title: "Job/Vocation Training",
7733
+ selectable: true,
7734
+ parentCode: "01-03-02-00-00-00-00",
7735
+ childCodes: [],
7736
+ definition: "Structured workforce preparation through job readiness programming and/or vocational training.",
7737
+ relevantMechanisms: [
7738
+ "direct_staff_contractor",
7739
+ "informational_support",
7740
+ "financial_material_assistance",
7741
+ "support_via_referral"
7742
+ ]
7743
+ },
7744
+ {
7745
+ code: "01-04-00-00-00-00-00",
7746
+ key: "healthcare",
7747
+ title: "Healthcare",
7748
+ selectable: false,
7749
+ parentCode: null,
7750
+ childCodes: ["01-04-01-00-00-00-00", "01-04-02-00-00-00-00"],
7751
+ definition: "Services provided to address a survivor's physical, mental, and emotional health needs through medical, behavioral health, or related health services.",
7752
+ relevantMechanisms: null
7753
+ },
7754
+ {
7755
+ code: "01-04-01-00-00-00-00",
7756
+ key: "medical",
7757
+ title: "Medical",
7758
+ selectable: true,
7759
+ parentCode: "01-04-00-00-00-00-00",
7760
+ childCodes: [
7761
+ "01-04-01-01-00-00-00",
7762
+ "01-04-01-02-00-00-00",
7763
+ "01-04-01-03-00-00-00",
7764
+ "01-04-01-04-00-00-00"
7765
+ ],
7766
+ definition: "Clinical services provided by licensed healthcare professionals to address a survivor's physical health needs.",
7767
+ relevantMechanisms: [
7768
+ "direct_staff_contractor",
7769
+ "financial_material_assistance",
7770
+ "support_via_referral",
7771
+ "informational_support"
7772
+ ]
7773
+ },
7774
+ {
7775
+ code: "01-04-01-01-00-00-00",
7776
+ key: "emergency_medical_care",
7777
+ title: "Emergency Medical Care",
7778
+ selectable: true,
7779
+ parentCode: "01-04-01-00-00-00-00",
7780
+ childCodes: [],
7781
+ definition: "Services related to emergency medical care for overall health (including vision and dental).",
7782
+ relevantMechanisms: [
7783
+ "direct_staff_contractor",
7784
+ "financial_material_assistance",
7785
+ "support_via_referral",
7786
+ "informational_support"
7787
+ ]
7788
+ },
7789
+ {
7790
+ code: "01-04-01-02-00-00-00",
7791
+ key: "forensic_exam_interview",
7792
+ title: "Performance of medical or non-medical forensic exam or interview",
7793
+ selectable: true,
7794
+ parentCode: "01-04-01-00-00-00-00",
7795
+ childCodes: [
7796
+ "01-04-01-02-01-00-00",
7797
+ "01-04-01-02-02-00-00",
7798
+ "01-04-01-02-03-00-00",
7799
+ "01-04-01-02-04-00-00"
7800
+ ],
7801
+ definition: "Conducting/performing a forensic exam/interview/medical evidence collection consistent with jurisdiction requirements.",
7802
+ relevantMechanisms: [
7803
+ "direct_staff_contractor",
7804
+ "financial_material_assistance",
7805
+ "support_via_referral",
7806
+ "informational_support"
7807
+ ]
7808
+ },
7809
+ {
7810
+ code: "01-04-01-02-01-00-00",
7811
+ key: "dv_exam",
7812
+ title: "DV Exam",
7813
+ selectable: true,
7814
+ parentCode: "01-04-01-02-00-00-00",
7815
+ childCodes: [],
7816
+ definition: null,
7817
+ relevantMechanisms: [
7818
+ "direct_staff_contractor",
7819
+ "financial_material_assistance",
7820
+ "support_via_referral",
7821
+ "informational_support"
7822
+ ]
7823
+ },
7824
+ {
7825
+ code: "01-04-01-02-02-00-00",
7826
+ key: "sane_exam",
7827
+ title: "SANE Exam",
7828
+ selectable: true,
7829
+ parentCode: "01-04-01-02-00-00-00",
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: "01-04-01-02-03-00-00",
7841
+ key: "std_testing",
7842
+ title: "STD Testing",
7843
+ selectable: true,
7844
+ parentCode: "01-04-01-02-00-00-00",
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: "01-04-01-02-04-00-00",
7856
+ key: "specialized_assessments",
7857
+ title: "Specialized Assessments",
7858
+ selectable: true,
7859
+ parentCode: "01-04-01-02-00-00-00",
7860
+ childCodes: [
7861
+ "01-04-01-02-04-01-00",
7862
+ "01-04-01-02-04-02-00",
7863
+ "01-04-01-02-04-03-00",
7864
+ "01-04-01-02-04-04-00"
7865
+ ],
7866
+ definition: "Assessment means an appropriate course of assistance based on a face-to-face formal screening (must be performed by a clinician).",
7867
+ relevantMechanisms: [
7868
+ "direct_staff_contractor",
7869
+ "support_via_referral",
7870
+ "informational_support"
7871
+ ]
7872
+ },
7873
+ {
7874
+ code: "01-04-01-02-04-01-00",
7875
+ key: "counseling_evaluation_assessment",
7876
+ title: "Counseling Evaluation and Assessment",
7877
+ selectable: true,
7878
+ parentCode: "01-04-01-02-04-00-00",
7879
+ childCodes: [],
7880
+ definition: null,
7881
+ relevantMechanisms: null
7882
+ },
7883
+ {
7884
+ code: "01-04-01-02-04-02-00",
7885
+ key: "stalking_assessment",
7886
+ title: "Stalking Assessment",
7887
+ selectable: true,
7888
+ parentCode: "01-04-01-02-04-00-00",
7889
+ childCodes: [],
7890
+ definition: null,
7891
+ relevantMechanisms: null
7892
+ },
7893
+ {
7894
+ code: "01-04-01-02-04-03-00",
7895
+ key: "danger_assessment",
7896
+ title: "Danger Assessment",
7897
+ selectable: true,
7898
+ parentCode: "01-04-01-02-04-00-00",
7899
+ childCodes: [],
7900
+ definition: null,
7901
+ relevantMechanisms: null
7902
+ },
7903
+ {
7904
+ code: "01-04-01-02-04-04-00",
7905
+ key: "indepth_assessment",
7906
+ title: "In-depth Assessment",
7907
+ selectable: true,
7908
+ parentCode: "01-04-01-02-04-00-00",
7909
+ childCodes: [],
7910
+ definition: null,
7911
+ relevantMechanisms: null
7912
+ },
7913
+ {
7914
+ code: "01-04-01-03-00-00-00",
7915
+ key: "outpatient_medical",
7916
+ title: "Outpatient Medical (Medication Assistance; Long-Term, Non-Therapeutic Medical Care)",
7917
+ selectable: true,
7918
+ parentCode: "01-04-01-00-00-00-00",
7919
+ childCodes: [
7920
+ "01-04-01-03-01-00-00",
7921
+ "01-04-01-03-02-00-00",
7922
+ "01-04-01-03-03-00-00",
7923
+ "01-04-01-03-04-00-00"
7924
+ ],
7925
+ definition: "Services provided by a licensed health provider including overall physical health.",
7926
+ relevantMechanisms: [
7927
+ "direct_staff_contractor",
7928
+ "financial_material_assistance",
7929
+ "support_via_referral",
7930
+ "informational_support"
7931
+ ]
7932
+ },
7933
+ {
7934
+ code: "01-04-01-03-01-00-00",
7935
+ key: "dental",
7936
+ title: "Dental",
7937
+ selectable: true,
7938
+ parentCode: "01-04-01-03-00-00-00",
7939
+ childCodes: [],
7940
+ definition: null,
7941
+ relevantMechanisms: [
7942
+ "direct_staff_contractor",
7943
+ "financial_material_assistance",
7944
+ "support_via_referral",
7945
+ "informational_support"
7946
+ ]
7947
+ },
7948
+ {
7949
+ code: "01-04-01-03-02-00-00",
7950
+ key: "vision",
7951
+ title: "Vision",
7952
+ selectable: true,
7953
+ parentCode: "01-04-01-03-00-00-00",
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: "01-04-01-03-03-00-00",
7965
+ key: "tattoo_removal",
7966
+ title: "Tattoo Removal",
7967
+ selectable: true,
7968
+ parentCode: "01-04-01-03-00-00-00",
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: "01-04-01-03-04-00-00",
7980
+ key: "pet_medical",
7981
+ title: "Pet Medical",
7982
+ selectable: true,
7983
+ parentCode: "01-04-01-03-00-00-00",
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: "01-04-01-04-00-00-00",
7995
+ key: "pregnancy_care",
7996
+ title: "Pregnancy Care",
7997
+ selectable: true,
7998
+ parentCode: "01-04-01-00-00-00-00",
7999
+ childCodes: [
8000
+ "01-04-01-04-01-00-00",
8001
+ "01-04-01-04-02-00-00",
8002
+ "01-04-01-04-03-00-00"
8003
+ ],
8004
+ definition: "Medical services provided to support health during pregnancy, childbirth, and the post-partum period.",
8005
+ relevantMechanisms: null
8006
+ },
8007
+ {
8008
+ code: "01-04-01-04-01-00-00",
8009
+ key: "prenatal_care",
8010
+ title: "Prenatal Care",
8011
+ selectable: true,
8012
+ parentCode: "01-04-01-04-00-00-00",
8013
+ childCodes: [],
8014
+ definition: "Medical care provided during pregnancy to monitor maternal and fetal health.",
8015
+ relevantMechanisms: [
8016
+ "direct_staff_contractor",
8017
+ "financial_material_assistance",
8018
+ "support_via_referral",
8019
+ "informational_support"
8020
+ ]
8021
+ },
8022
+ {
8023
+ code: "01-04-01-04-02-00-00",
8024
+ key: "postnatal_care_client",
8025
+ title: "Post-natal care for clients post-birth",
8026
+ selectable: true,
8027
+ parentCode: "01-04-01-04-00-00-00",
8028
+ childCodes: [],
8029
+ definition: "Medical services provided to a client after childbirth.",
8030
+ relevantMechanisms: [
8031
+ "direct_staff_contractor",
8032
+ "financial_material_assistance",
8033
+ "support_via_referral",
8034
+ "informational_support"
8035
+ ]
8036
+ },
8037
+ {
8038
+ code: "01-04-01-04-03-00-00",
8039
+ key: "postnatal_care_newborn",
8040
+ title: "Post-natal care for newborn care (exams / immunizations)",
8041
+ selectable: true,
8042
+ parentCode: "01-04-01-04-00-00-00",
8043
+ childCodes: [],
8044
+ definition: "Medical services provided to newborns following birth.",
8045
+ relevantMechanisms: [
8046
+ "direct_staff_contractor",
8047
+ "financial_material_assistance",
8048
+ "support_via_referral",
8049
+ "informational_support"
8050
+ ]
8051
+ },
8052
+ {
8053
+ code: "01-04-02-00-00-00-00",
8054
+ key: "emotional_support_mental_health",
8055
+ title: "Emotional Support, Mental Health, & Safety",
8056
+ selectable: true,
8057
+ parentCode: "01-04-00-00-00-00-00",
8058
+ childCodes: [
8059
+ "01-04-02-01-00-00-00",
8060
+ "01-04-02-02-00-00-00",
8061
+ "01-04-02-03-00-00-00",
8062
+ "01-04-02-04-00-00-00",
8063
+ "01-04-02-05-00-00-00",
8064
+ "01-04-02-06-00-00-00",
8065
+ "01-04-02-07-00-00-00"
8066
+ ],
8067
+ definition: "Evaluate and assess the victim/survivor's current situation. Provide appropriate therapy services.",
8068
+ relevantMechanisms: [
8069
+ "direct_staff_contractor",
8070
+ "financial_material_assistance",
8071
+ "support_via_referral",
8072
+ "informational_support"
8073
+ ]
8074
+ },
8075
+ {
8076
+ code: "01-04-02-01-00-00-00",
8077
+ key: "individual_counseling",
8078
+ title: "Individual Counseling (licensed behavioral health professional)",
8079
+ selectable: true,
8080
+ parentCode: "01-04-02-00-00-00-00",
8081
+ childCodes: [],
8082
+ definition: "A face-to-face therapeutic session with one-on-one interaction between a licensed professional and an individual.",
8083
+ relevantMechanisms: [
8084
+ "direct_staff_contractor",
8085
+ "financial_material_assistance",
8086
+ "support_via_referral",
8087
+ "informational_support"
8088
+ ]
8089
+ },
8090
+ {
8091
+ code: "01-04-02-02-00-00-00",
8092
+ key: "group_counseling",
8093
+ title: "Group Counseling (licensed behavioral health professional)",
8094
+ selectable: true,
8095
+ parentCode: "01-04-02-00-00-00-00",
8096
+ childCodes: [],
8097
+ definition: "A face-to-face therapeutic session with a group of adult/child victims/survivors.",
8098
+ relevantMechanisms: [
8099
+ "direct_staff_contractor",
8100
+ "support_via_referral",
8101
+ "informational_support"
8102
+ ]
8103
+ },
8104
+ {
8105
+ code: "01-04-02-03-00-00-00",
8106
+ key: "family_counseling",
8107
+ title: "Family Counseling",
8108
+ selectable: true,
8109
+ parentCode: "01-04-02-00-00-00-00",
8110
+ childCodes: [],
8111
+ definition: "Therapeutic services provided to a family or family unit by a licensed behavioral health professional.",
8112
+ relevantMechanisms: [
8113
+ "direct_staff_contractor",
8114
+ "financial_material_assistance",
8115
+ "support_via_referral",
8116
+ "informational_support"
8117
+ ]
8118
+ },
8119
+ {
8120
+ code: "01-04-02-04-00-00-00",
8121
+ key: "counseling_treatment_planning",
8122
+ title: "Counseling Treatment Planning",
8123
+ selectable: true,
8124
+ parentCode: "01-04-02-00-00-00-00",
8125
+ childCodes: [],
8126
+ definition: "The process of developing a written plan based on assessments that identify abuse issues necessitating treatment.",
8127
+ relevantMechanisms: [
8128
+ "direct_staff_contractor",
8129
+ "financial_material_assistance",
8130
+ "support_via_referral",
8131
+ "informational_support"
8132
+ ]
8133
+ },
8134
+ {
8135
+ code: "01-04-02-05-00-00-00",
8136
+ key: "counseling_treatment_plan_review",
8137
+ title: "Counseling Treatment Plan Review",
8138
+ selectable: true,
8139
+ parentCode: "01-04-02-00-00-00-00",
8140
+ childCodes: [],
8141
+ definition: "The evaluation or updating of the treatment plan based on documented progress.",
8142
+ relevantMechanisms: [
8143
+ "direct_staff_contractor",
8144
+ "financial_material_assistance",
8145
+ "support_via_referral",
8146
+ "informational_support"
8147
+ ]
8148
+ },
8149
+ {
8150
+ code: "01-04-02-06-00-00-00",
8151
+ key: "behavioral_occupational_support",
8152
+ title: "Behavioral, Occupational, & Support",
8153
+ selectable: true,
8154
+ parentCode: "01-04-02-00-00-00-00",
8155
+ childCodes: ["01-04-02-06-01-00-00", "01-04-02-06-02-00-00"],
8156
+ definition: "Clinical or therapeutic services that support a survivor's mental, emotional, or functional well-being.",
8157
+ relevantMechanisms: [
8158
+ "direct_staff_contractor",
8159
+ "financial_material_assistance",
8160
+ "support_via_referral",
8161
+ "informational_support"
8162
+ ]
8163
+ },
8164
+ {
8165
+ code: "01-04-02-06-01-00-00",
8166
+ key: "substance_abuse_treatment",
8167
+ title: "Substance Abuse Treatment",
8168
+ selectable: true,
8169
+ parentCode: "01-04-02-06-00-00-00",
8170
+ childCodes: [],
8171
+ definition: "Assessment and treatment of diagnosable substance abuse and dependence disorders by qualified professionals.",
8172
+ relevantMechanisms: [
8173
+ "direct_staff_contractor",
8174
+ "financial_material_assistance",
8175
+ "support_via_referral",
8176
+ "informational_support"
8177
+ ]
8178
+ },
8179
+ {
8180
+ code: "01-04-02-06-02-00-00",
8181
+ key: "coping_strategy_support",
8182
+ title: "Coping strategy support",
8183
+ selectable: true,
8184
+ parentCode: "01-04-02-06-00-00-00",
8185
+ childCodes: [],
8186
+ definition: "Therapeutic support focused on helping survivors develop and strengthen healthy coping skills.",
8187
+ relevantMechanisms: [
8188
+ "direct_staff_contractor",
8189
+ "financial_material_assistance",
8190
+ "support_via_referral",
8191
+ "informational_support"
8192
+ ]
8193
+ },
8194
+ {
8195
+ code: "01-04-02-07-00-00-00",
8196
+ key: "other_therapy",
8197
+ title: "Other Therapy",
8198
+ selectable: true,
8199
+ parentCode: "01-04-02-00-00-00-00",
8200
+ childCodes: [],
8201
+ definition: "Any other form of therapeutic support, including traditional, cultural, or alternative healing.",
8202
+ relevantMechanisms: [
8203
+ "direct_staff_contractor",
8204
+ "financial_material_assistance",
8205
+ "support_via_referral",
8206
+ "informational_support"
8207
+ ]
8208
+ },
8209
+ {
8210
+ code: "01-05-00-00-00-00-00",
8211
+ key: "housing_services",
8212
+ title: "Housing Services",
8213
+ selectable: false,
8214
+ parentCode: null,
8215
+ childCodes: [
8216
+ "01-05-01-00-00-00-00",
8217
+ "01-05-02-00-00-00-00",
8218
+ "01-05-03-00-00-00-00",
8219
+ "01-05-04-00-00-00-00",
8220
+ "01-05-05-00-00-00-00",
8221
+ "01-05-06-00-00-00-00"
8222
+ ],
8223
+ 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.",
8224
+ relevantMechanisms: null
8225
+ },
8226
+ {
8227
+ code: "01-05-01-00-00-00-00",
8228
+ key: "emergency_shelter",
8229
+ title: "Emergency Shelter & Immediate Safety Housing",
8230
+ selectable: true,
8231
+ parentCode: "01-05-00-00-00-00-00",
8232
+ childCodes: [
8233
+ "01-05-01-01-00-00-00",
8234
+ "01-05-01-02-00-00-00",
8235
+ "01-05-01-03-00-00-00",
8236
+ "01-05-01-04-00-00-00",
8237
+ "01-05-01-05-00-00-00"
8238
+ ],
8239
+ definition: "Immediate, short-term shelter or safe temporary housing provided to remove a survivor from danger.",
8240
+ relevantMechanisms: [
8241
+ "financial_material_assistance",
8242
+ "support_via_referral",
8243
+ "direct_staff_contractor",
8244
+ "informational_support"
8245
+ ]
8246
+ },
8247
+ {
8248
+ code: "01-05-01-01-00-00-00",
8249
+ key: "day_shelter_dropin",
8250
+ title: "Day Shelter / Drop-In",
8251
+ selectable: true,
8252
+ parentCode: "01-05-01-00-00-00-00",
8253
+ childCodes: [],
8254
+ definition: "A daytime-only shelter/safe space (no overnight lodging).",
8255
+ relevantMechanisms: [
8256
+ "financial_material_assistance",
8257
+ "support_via_referral"
8258
+ ]
8259
+ },
8260
+ {
8261
+ code: "01-05-01-02-00-00-00",
8262
+ key: "host_homes_safe_homes",
8263
+ title: "Host Homes / Safe Homes (Private Dwellings)",
8264
+ selectable: true,
8265
+ parentCode: "01-05-01-00-00-00-00",
8266
+ childCodes: [],
8267
+ definition: "Private dwellings used for temporary housing of survivors to ensure safety.",
8268
+ relevantMechanisms: ["support_via_referral", "informational_support"]
8269
+ },
8270
+ {
8271
+ code: "01-05-01-03-00-00-00",
8272
+ key: "congregate_shelter_bednight",
8273
+ title: "Congregate Emergency Shelter Bednight",
8274
+ selectable: true,
8275
+ parentCode: "01-05-01-00-00-00-00",
8276
+ childCodes: [],
8277
+ definition: "Overnight emergency shelter placement through congregate shelter bed(s).",
8278
+ relevantMechanisms: [
8279
+ "direct_staff_contractor",
8280
+ "support_via_referral",
8281
+ "financial_material_assistance"
8282
+ ]
8283
+ },
8284
+ {
8285
+ code: "01-05-01-04-00-00-00",
8286
+ key: "emergency_hotel_motel",
8287
+ title: "Emergency Hotel/Motel Placement",
8288
+ selectable: true,
8289
+ parentCode: "01-05-01-00-00-00-00",
8290
+ childCodes: [],
8291
+ definition: "Overnight emergency shelter placement through hotel/motel placement/voucher.",
8292
+ relevantMechanisms: ["financial_material_assistance"]
8293
+ },
8294
+ {
8295
+ code: "01-05-01-05-00-00-00",
8296
+ key: "night_by_night_shelter",
8297
+ title: "Night by Night Shelter",
8298
+ selectable: true,
8299
+ parentCode: "01-05-01-00-00-00-00",
8300
+ childCodes: [],
8301
+ definition: "Emergency shelter type used by high-volume shelters where clients spend a night as needed on an irregular basis.",
8302
+ relevantMechanisms: null
8303
+ },
8304
+ {
8305
+ code: "01-05-02-00-00-00-00",
8306
+ key: "transitional_housing",
8307
+ title: "Transitional & Longer-Term Temporary Housing",
8308
+ selectable: true,
8309
+ parentCode: "01-05-00-00-00-00-00",
8310
+ childCodes: [],
8311
+ definition: "Temporary housing programs (generally 6-24 months) with supportive services.",
8312
+ relevantMechanisms: [
8313
+ "support_via_referral",
8314
+ "financial_material_assistance",
8315
+ "direct_staff_contractor",
8316
+ "informational_support"
8317
+ ]
8318
+ },
8319
+ {
8320
+ code: "01-05-03-00-00-00-00",
8321
+ key: "housing_renovation_modification",
8322
+ title: "Housing Renovation / Modification",
8323
+ selectable: true,
8324
+ parentCode: "01-05-00-00-00-00-00",
8325
+ childCodes: ["01-05-03-01-00-00-00"],
8326
+ definition: "Minor home repairs, safety improvements, or accessibility modifications.",
8327
+ relevantMechanisms: [
8328
+ "direct_staff_contractor",
8329
+ "financial_material_assistance",
8330
+ "support_via_referral",
8331
+ "informational_support"
8332
+ ]
8333
+ },
8334
+ {
8335
+ code: "01-05-03-01-00-00-00",
8336
+ key: "household_setup_goods",
8337
+ title: "Household Setup & Housing-Related Goods & Supplies Assistance",
8338
+ selectable: true,
8339
+ parentCode: "01-05-03-00-00-00-00",
8340
+ childCodes: [],
8341
+ definition: "Provision of household goods or equipment needed to establish or maintain safe, functional housing.",
8342
+ relevantMechanisms: [
8343
+ "financial_material_assistance",
8344
+ "support_via_referral"
8345
+ ]
8346
+ },
8347
+ {
8348
+ code: "01-05-04-00-00-00-00",
8349
+ key: "housing_navigation_placement",
8350
+ title: "Housing Navigation & Placement (Permanent Housing Access)",
8351
+ selectable: true,
8352
+ parentCode: "01-05-00-00-00-00-00",
8353
+ childCodes: ["01-05-04-01-00-00-00", "01-05-04-02-00-00-00"],
8354
+ definition: "Support that helps survivors obtain permanent housing.",
8355
+ relevantMechanisms: [
8356
+ "direct_staff_contractor",
8357
+ "financial_material_assistance",
8358
+ "support_via_referral",
8359
+ "informational_support"
8360
+ ]
8361
+ },
8362
+ {
8363
+ code: "01-05-04-01-00-00-00",
8364
+ key: "housing_financial_assistance",
8365
+ title: "Housing Financial Assistance",
8366
+ selectable: true,
8367
+ parentCode: "01-05-04-00-00-00-00",
8368
+ childCodes: ["01-05-04-01-01-00-00"],
8369
+ definition: "Direct financial support to cover housing-related costs.",
8370
+ relevantMechanisms: [
8371
+ "financial_material_assistance",
8372
+ "support_via_referral"
8373
+ ]
8374
+ },
8375
+ {
8376
+ code: "01-05-04-01-01-00-00",
8377
+ key: "rental_payment_assistance",
8378
+ title: "Rental Payment Assistance",
8379
+ selectable: true,
8380
+ parentCode: "01-05-04-01-00-00-00",
8381
+ childCodes: ["01-05-04-01-01-01-00", "01-05-04-01-01-02-00"],
8382
+ definition: "Direct payment or subsidy for rent or rent arrears.",
8383
+ relevantMechanisms: [
8384
+ "financial_material_assistance",
8385
+ "support_via_referral"
8386
+ ]
8387
+ },
8388
+ {
8389
+ code: "01-05-04-01-01-01-00",
8390
+ key: "security_deposit_allowance",
8391
+ title: "Security Deposit Allowance",
8392
+ selectable: true,
8393
+ parentCode: "01-05-04-01-01-00-00",
8394
+ childCodes: [],
8395
+ definition: "Direct payment for a security deposit required to obtain housing.",
8396
+ relevantMechanisms: [
8397
+ "financial_material_assistance",
8398
+ "support_via_referral"
8399
+ ]
8400
+ },
8401
+ {
8402
+ code: "01-05-04-01-01-02-00",
8403
+ key: "utility_assistance",
8404
+ title: "Utility Assistance",
8405
+ selectable: true,
8406
+ parentCode: "01-05-04-01-01-00-00",
8407
+ childCodes: [],
8408
+ definition: "Direct payment for utility costs to obtain or maintain housing.",
8409
+ relevantMechanisms: [
8410
+ "financial_material_assistance",
8411
+ "support_via_referral"
8412
+ ]
8413
+ },
8414
+ {
8415
+ code: "01-05-04-02-00-00-00",
8416
+ key: "relocation_moving_assistance",
8417
+ title: "Relocation & Moving Assistance",
8418
+ selectable: true,
8419
+ parentCode: "01-05-04-00-00-00-00",
8420
+ childCodes: [],
8421
+ definition: "Support that enables a survivor to relocate and complete a move to safer/more stable housing.",
8422
+ relevantMechanisms: [
8423
+ "direct_staff_contractor",
8424
+ "financial_material_assistance",
8425
+ "support_via_referral"
8426
+ ]
8427
+ },
8428
+ {
8429
+ code: "01-05-05-00-00-00-00",
8430
+ key: "housing_stabilization_eviction_prevention",
8431
+ title: "Housing Stabilization & Eviction Prevention",
8432
+ selectable: true,
8433
+ parentCode: "01-05-00-00-00-00-00",
8434
+ childCodes: [],
8435
+ definition: "Services aimed at helping survivors remain safely housed and prevent homelessness.",
8436
+ relevantMechanisms: [
8437
+ "direct_staff_contractor",
8438
+ "financial_material_assistance",
8439
+ "support_via_referral",
8440
+ "informational_support"
8441
+ ]
8442
+ },
8443
+ {
8444
+ code: "01-05-06-00-00-00-00",
8445
+ key: "tenant_based_scattered_site",
8446
+ title: "Tenant-based scattered site",
8447
+ selectable: true,
8448
+ parentCode: "01-05-00-00-00-00-00",
8449
+ childCodes: [],
8450
+ definition: "Clients have leases in residences not owned or managed by the project/VSP agency.",
8451
+ relevantMechanisms: null
8452
+ },
8453
+ {
8454
+ code: "01-06-00-00-00-00-00",
8455
+ key: "legal_services",
8456
+ title: "Legal Services",
8457
+ selectable: false,
8458
+ parentCode: null,
8459
+ childCodes: [
8460
+ "01-06-01-00-00-00-00",
8461
+ "01-06-02-00-00-00-00",
8462
+ "01-06-03-00-00-00-00",
8463
+ "01-06-04-00-00-00-00",
8464
+ "01-06-05-00-00-00-00"
8465
+ ],
8466
+ definition: "Legal assistance and representation provided to support survivors in understanding, asserting, and protecting their legal rights.",
8467
+ relevantMechanisms: null
8468
+ },
8469
+ {
8470
+ code: "01-06-01-00-00-00-00",
8471
+ key: "immigration_relief",
8472
+ title: "Immigration Relief",
8473
+ selectable: true,
8474
+ parentCode: "01-06-00-00-00-00-00",
8475
+ childCodes: ["01-06-01-01-00-00-00"],
8476
+ definition: "Immigration assistance (e.g., special visas, continued presence applications).",
8477
+ relevantMechanisms: [
8478
+ "direct_staff_contractor",
8479
+ "financial_material_assistance",
8480
+ "support_via_referral",
8481
+ "informational_support"
8482
+ ]
8483
+ },
8484
+ {
8485
+ code: "01-06-01-01-00-00-00",
8486
+ key: "repatriation",
8487
+ title: "Repatriation",
8488
+ selectable: true,
8489
+ parentCode: "01-06-01-00-00-00-00",
8490
+ childCodes: [],
8491
+ definition: "Services/activities related to the client's intention to return to their country of citizenship.",
8492
+ relevantMechanisms: null
8493
+ },
8494
+ {
8495
+ code: "01-06-02-00-00-00-00",
8496
+ key: "family_law",
8497
+ title: "Family law",
8498
+ selectable: true,
8499
+ parentCode: "01-06-00-00-00-00-00",
8500
+ childCodes: [],
8501
+ definition: "Assisting with custody/visitation/support and other family law issues.",
8502
+ relevantMechanisms: [
8503
+ "direct_staff_contractor",
8504
+ "financial_material_assistance",
8505
+ "support_via_referral",
8506
+ "informational_support"
8507
+ ]
8508
+ },
8509
+ {
8510
+ code: "01-06-03-00-00-00-00",
8511
+ key: "criminal_support",
8512
+ title: "Criminal support",
8513
+ selectable: true,
8514
+ parentCode: "01-06-00-00-00-00-00",
8515
+ childCodes: [
8516
+ "01-06-03-01-00-00-00",
8517
+ "01-06-03-02-00-00-00",
8518
+ "01-06-03-03-00-00-00",
8519
+ "01-06-03-04-00-00-00",
8520
+ "01-06-03-05-00-00-00"
8521
+ ],
8522
+ definition: "Notifying victims about hearings, defendant release, case status, and related criminal justice support.",
8523
+ relevantMechanisms: null
8524
+ },
8525
+ {
8526
+ code: "01-06-03-01-00-00-00",
8527
+ key: "victim_impact_statement",
8528
+ title: "Victim Impact Statement Assistance",
8529
+ selectable: true,
8530
+ parentCode: "01-06-03-00-00-00-00",
8531
+ childCodes: [],
8532
+ definition: "Assisting the victim with preparing/submitting an impact statement.",
8533
+ relevantMechanisms: null
8534
+ },
8535
+ {
8536
+ code: "01-06-03-02-00-00-00",
8537
+ key: "perpetrator_accountability",
8538
+ title: "Perpetrator Accountability | Batterer's Intervention Program",
8539
+ selectable: true,
8540
+ parentCode: "01-06-03-00-00-00-00",
8541
+ childCodes: [],
8542
+ definition: "Providing the client/survivor with information on perpetrator accountability programs.",
8543
+ relevantMechanisms: null
8544
+ },
8545
+ {
8546
+ code: "01-06-03-03-00-00-00",
8547
+ key: "victim_compensation",
8548
+ title: "Victim Compensation (Restitution)",
8549
+ selectable: true,
8550
+ parentCode: "01-06-03-00-00-00-00",
8551
+ childCodes: [],
8552
+ definition: "Assisting victims in requesting restitution.",
8553
+ relevantMechanisms: null
8554
+ },
8555
+ {
8556
+ code: "01-06-03-04-00-00-00",
8557
+ key: "victims_rights_representation",
8558
+ title: "Victim's Rights Representation",
8559
+ selectable: true,
8560
+ parentCode: "01-06-03-00-00-00-00",
8561
+ childCodes: [],
8562
+ definition: "Informing victims about victim-rights frameworks, compensation programs, and notification systems.",
8563
+ relevantMechanisms: null
8564
+ },
8565
+ {
8566
+ code: "01-06-03-05-00-00-00",
8567
+ key: "criminal_record_relief",
8568
+ title: "Criminal Record Relief",
8569
+ selectable: true,
8570
+ parentCode: "01-06-03-00-00-00-00",
8571
+ childCodes: [],
8572
+ definition: "Assistance addressing criminal record history resulting from the trafficking situation.",
8573
+ relevantMechanisms: null
8574
+ },
8575
+ {
8576
+ code: "01-06-04-00-00-00-00",
8577
+ key: "civil_support",
8578
+ title: "Civil Support",
8579
+ selectable: true,
8580
+ parentCode: "01-06-00-00-00-00-00",
8581
+ childCodes: ["01-06-04-01-00-00-00", "01-06-04-02-00-00-00"],
8582
+ definition: "Legal assistance for non-criminal legal issues affecting a survivor's rights, safety, or stability.",
8583
+ relevantMechanisms: null
8584
+ },
8585
+ {
8586
+ code: "01-06-04-01-00-00-00",
8587
+ key: "protection_restraining_orders",
8588
+ title: "Protection or Restraining Orders",
8589
+ selectable: true,
8590
+ parentCode: "01-06-04-00-00-00-00",
8591
+ childCodes: [],
8592
+ definition: "Advising/assisting in obtaining orders and related follow-up hearings.",
8593
+ relevantMechanisms: null
8594
+ },
8595
+ {
8596
+ code: "01-06-04-02-00-00-00",
8597
+ key: "public_benefits_law",
8598
+ title: "Public Benefits Law",
8599
+ selectable: true,
8600
+ parentCode: "01-06-04-00-00-00-00",
8601
+ childCodes: [],
8602
+ definition: "Services to address social-service needs by informing clients of available benefits.",
8603
+ relevantMechanisms: null
8604
+ },
8605
+ {
8606
+ code: "01-06-05-00-00-00-00",
8607
+ key: "emergency_safety_assistance",
8608
+ title: "Emergency Safety Assistance",
8609
+ selectable: true,
8610
+ parentCode: "01-06-00-00-00-00-00",
8611
+ childCodes: [],
8612
+ definition: "Legal assistance that does not fit another subcategory.",
8613
+ relevantMechanisms: null
8614
+ },
8615
+ {
8616
+ code: "01-07-00-00-00-00-00",
8617
+ key: "basic_needs",
8618
+ title: "Basic Needs",
8619
+ selectable: false,
8620
+ parentCode: null,
8621
+ childCodes: [
8622
+ "01-07-01-00-00-00-00",
8623
+ "01-07-02-00-00-00-00",
8624
+ "01-07-03-00-00-00-00",
8625
+ "01-07-04-00-00-00-00",
8626
+ "01-07-05-00-00-00-00",
8627
+ "01-07-06-00-00-00-00",
8628
+ "01-07-07-00-00-00-00"
8629
+ ],
8630
+ definition: "Core supports provided to meet a survivor's essential daily living requirements.",
8631
+ relevantMechanisms: null
8632
+ },
8633
+ {
8634
+ code: "01-07-01-00-00-00-00",
8635
+ key: "clothing_shoes_accessories",
8636
+ title: "Clothing / Shoes / Accessories / Suitcases",
8637
+ selectable: true,
8638
+ parentCode: "01-07-00-00-00-00-00",
8639
+ childCodes: ["01-07-01-01-00-00-00"],
8640
+ definition: "Essential clothing and personal items provided to support basic comfort, dignity, and immediate needs.",
8641
+ relevantMechanisms: [
8642
+ "financial_material_assistance",
8643
+ "support_via_referral"
8644
+ ]
8645
+ },
8646
+ {
8647
+ code: "01-07-01-01-00-00-00",
8648
+ key: "elder_assistance",
8649
+ title: "Elder Assistance",
8650
+ selectable: true,
8651
+ parentCode: "01-07-01-00-00-00-00",
8652
+ childCodes: [],
8653
+ definition: null,
8654
+ relevantMechanisms: null
8655
+ },
8656
+ {
8657
+ code: "01-07-02-00-00-00-00",
8658
+ key: "food",
8659
+ title: "Food",
8660
+ selectable: true,
8661
+ parentCode: "01-07-00-00-00-00-00",
8662
+ childCodes: [],
8663
+ definition: "Provision of food, meals, or related basic items to meet a survivor's immediate nutritional needs.",
8664
+ relevantMechanisms: [
8665
+ "financial_material_assistance",
8666
+ "support_via_referral"
8667
+ ]
8668
+ },
8669
+ {
8670
+ code: "01-07-03-00-00-00-00",
8671
+ key: "over_the_counter_medications",
8672
+ title: "Over the Counter Medications",
8673
+ selectable: true,
8674
+ parentCode: "01-07-00-00-00-00-00",
8675
+ childCodes: [],
8676
+ definition: "Non-prescription medications provided to address common, immediate health needs.",
8677
+ relevantMechanisms: [
8678
+ "financial_material_assistance",
8679
+ "support_via_referral"
8680
+ ]
8681
+ },
8682
+ {
8683
+ code: "01-07-04-00-00-00-00",
8684
+ key: "immediate_safety_planning",
8685
+ title: "Immediate Safety/Safety Planning",
8686
+ selectable: true,
8687
+ parentCode: "01-07-00-00-00-00-00",
8688
+ childCodes: ["01-07-04-01-00-00-00"],
8689
+ definition: "A collaborative process of working with the survivor to develop or update practical safety tools and strategies.",
8690
+ relevantMechanisms: [
8691
+ "direct_staff_contractor",
8692
+ "support_via_referral",
8693
+ "informational_support"
8694
+ ]
8695
+ },
8696
+ {
8697
+ code: "01-07-04-01-00-00-00",
8698
+ key: "emergency_crisis_safety_support",
8699
+ title: "Emergency/Crisis & Safety Support (Non-Clinical)",
8700
+ selectable: true,
8701
+ parentCode: "01-07-04-00-00-00-00",
8702
+ childCodes: [],
8703
+ definition: "Services based upon a problem-solving model to provide information and referrals that assist a DV/SA or stalking victim/survivor in crisis.",
8704
+ relevantMechanisms: [
8705
+ "direct_staff_contractor",
8706
+ "support_via_referral",
8707
+ "informational_support"
8708
+ ]
8709
+ },
8710
+ {
8711
+ code: "01-07-05-00-00-00-00",
8712
+ key: "hygiene_items_personal_care",
8713
+ title: "Hygiene Items, Self-Care Resources, Toiletry, Personal Care",
8714
+ selectable: true,
8715
+ parentCode: "01-07-00-00-00-00-00",
8716
+ childCodes: [],
8717
+ definition: "Provision of basic hygiene and personal care items needed to support cleanliness, health, comfort, and dignity.",
8718
+ relevantMechanisms: [
8719
+ "financial_material_assistance",
8720
+ "support_via_referral"
8721
+ ]
8722
+ },
8723
+ {
8724
+ code: "01-07-06-00-00-00-00",
8725
+ key: "communications_connectivity",
8726
+ title: "Communications / Connectivity",
8727
+ selectable: true,
8728
+ parentCode: "01-07-00-00-00-00-00",
8729
+ childCodes: [],
8730
+ definition: "Support to ensure a survivor can communicate via access to phones, minutes, data, internet, devices, or related tools.",
8731
+ relevantMechanisms: [
8732
+ "financial_material_assistance",
8733
+ "support_via_referral"
8734
+ ]
8735
+ },
8736
+ {
8737
+ code: "01-07-07-00-00-00-00",
8738
+ key: "interpreter_services",
8739
+ title: "Interpreter Services",
8740
+ selectable: true,
8741
+ parentCode: "01-07-00-00-00-00-00",
8742
+ childCodes: [],
8743
+ definition: "Providing communication supports for victims with limited English proficiency or communication-related disabilities.",
8744
+ relevantMechanisms: null
8745
+ },
8746
+ {
8747
+ code: "01-08-00-00-00-00-00",
8748
+ key: "informal_education_life_skills",
8749
+ title: "Informal Education & Life Skills",
8750
+ selectable: false,
8751
+ parentCode: null,
8752
+ childCodes: [
8753
+ "01-08-01-00-00-00-00",
8754
+ "01-08-02-00-00-00-00",
8755
+ "01-08-03-00-00-00-00",
8756
+ "01-08-04-00-00-00-00"
8757
+ ],
8758
+ definition: "Services that support a survivor in accessing or succeeding in formal education and/or building practical life skills.",
8759
+ relevantMechanisms: [
8760
+ "direct_staff_contractor",
8761
+ "financial_material_assistance",
8762
+ "informational_support"
8763
+ ]
8764
+ },
8765
+ {
8766
+ code: "01-08-01-00-00-00-00",
8767
+ key: "basic_life_skills_self_care",
8768
+ title: "Basic Life Skills & Self-Care",
8769
+ selectable: true,
8770
+ parentCode: "01-08-00-00-00-00-00",
8771
+ childCodes: [],
8772
+ definition: "Non-clinical supports that build survivors' day-to-day functioning and independence skills.",
8773
+ relevantMechanisms: [
8774
+ "direct_staff_contractor",
8775
+ "financial_material_assistance",
8776
+ "informational_support"
8777
+ ]
8778
+ },
8779
+ {
8780
+ code: "01-08-02-00-00-00-00",
8781
+ key: "accessibility_disability_support",
8782
+ title: "Accessibility & Disability Independence Support",
8783
+ selectable: true,
8784
+ parentCode: "01-08-00-00-00-00-00",
8785
+ childCodes: [],
8786
+ definition: "Non-clinical support that helps a survivor obtain or use accessibility accommodations and disability-related resources.",
8787
+ relevantMechanisms: [
8788
+ "direct_staff_contractor",
8789
+ "financial_material_assistance",
8790
+ "informational_support"
8791
+ ]
8792
+ },
8793
+ {
8794
+ code: "01-08-03-00-00-00-00",
8795
+ key: "parenting_education",
8796
+ title: "Parenting Education & Family Skill-Building",
8797
+ selectable: true,
8798
+ parentCode: "01-08-00-00-00-00-00",
8799
+ childCodes: [],
8800
+ definition: "Structured parenting education or coaching intended to build parenting knowledge and skills (non-therapeutic).",
8801
+ relevantMechanisms: [
8802
+ "direct_staff_contractor",
8803
+ "financial_material_assistance",
8804
+ "informational_support",
8805
+ "support_via_referral"
8806
+ ]
8807
+ },
8808
+ {
8809
+ code: "01-08-04-00-00-00-00",
8810
+ key: "learning_language_classes",
8811
+ title: "Learning Language Classes",
8812
+ selectable: true,
8813
+ parentCode: "01-08-00-00-00-00-00",
8814
+ childCodes: [],
8815
+ definition: "Supporting survivors in learning language skills foundational to navigating their environment.",
8816
+ relevantMechanisms: null
8817
+ },
8818
+ {
8819
+ code: "01-09-00-00-00-00-00",
8820
+ key: "transportation",
8821
+ title: "Transportation",
8822
+ selectable: false,
8823
+ parentCode: null,
8824
+ childCodes: [
8825
+ "01-09-01-00-00-00-00",
8826
+ "01-09-02-00-00-00-00",
8827
+ "01-09-03-00-00-00-00",
8828
+ "01-09-04-00-00-00-00",
8829
+ "01-09-05-00-00-00-00"
8830
+ ],
8831
+ definition: "Services, resources, and supports that enable survivors to travel to access services or safety.",
8832
+ relevantMechanisms: [
8833
+ "direct_staff_contractor",
8834
+ "financial_material_assistance",
8835
+ "support_via_referral"
8836
+ ]
8837
+ },
8838
+ {
8839
+ code: "01-09-01-00-00-00-00",
8840
+ key: "transportation_assistance_direct",
8841
+ title: "Transportation Assistance (Direct from agency)",
8842
+ selectable: true,
8843
+ parentCode: "01-09-00-00-00-00-00",
8844
+ childCodes: ["01-09-01-01-00-00-00"],
8845
+ definition: "Transportation provided directly by staff/agency, including mileage-based transport.",
8846
+ relevantMechanisms: null
8847
+ },
8848
+ {
8849
+ code: "01-09-01-01-00-00-00",
8850
+ key: "transportation_direct_emergency",
8851
+ title: "Transportation direct from agency (Emergency Status)",
8852
+ selectable: true,
8853
+ parentCode: "01-09-01-00-00-00-00",
8854
+ childCodes: [],
8855
+ definition: null,
8856
+ relevantMechanisms: null
8857
+ },
8858
+ {
8859
+ code: "01-09-02-00-00-00-00",
8860
+ key: "taxi_rideshare_voucher",
8861
+ title: "Taxi / RideShare Voucher",
8862
+ selectable: true,
8863
+ parentCode: "01-09-00-00-00-00-00",
8864
+ childCodes: ["01-09-02-01-00-00-00"],
8865
+ definition: "Provision of taxi/rideshare rides via voucher, account credit, or direct booking.",
8866
+ relevantMechanisms: ["financial_material_assistance"]
8867
+ },
8868
+ {
8869
+ code: "01-09-02-01-00-00-00",
8870
+ key: "taxi_rideshare_emergency",
8871
+ title: "Taxi / RideShare Voucher (Emergency Status)",
8872
+ selectable: true,
8873
+ parentCode: "01-09-02-00-00-00-00",
8874
+ childCodes: [],
8875
+ definition: null,
8876
+ relevantMechanisms: null
8877
+ },
8878
+ {
8879
+ code: "01-09-03-00-00-00-00",
8880
+ key: "bus_fare_pass",
8881
+ title: "Bus Fare / Pass",
8882
+ selectable: true,
8883
+ parentCode: "01-09-00-00-00-00-00",
8884
+ childCodes: ["01-09-03-01-00-00-00"],
8885
+ definition: "Provision of bus tickets, transit passes, transit cards, or tokens.",
8886
+ relevantMechanisms: ["financial_material_assistance"]
8887
+ },
8888
+ {
8889
+ code: "01-09-03-01-00-00-00",
8890
+ key: "bus_fare_pass_emergency",
8891
+ title: "Bus Fare / Pass (Emergency Status)",
8892
+ selectable: true,
8893
+ parentCode: "01-09-03-00-00-00-00",
8894
+ childCodes: [],
8895
+ definition: null,
8896
+ relevantMechanisms: null
8897
+ },
8898
+ {
8899
+ code: "01-09-04-00-00-00-00",
8900
+ key: "gift_card_gas_card",
8901
+ title: "Gift Card / Gas Card",
8902
+ selectable: true,
8903
+ parentCode: "01-09-00-00-00-00-00",
8904
+ childCodes: ["01-09-04-01-00-00-00"],
8905
+ definition: "Provision of fuel support via gas cards or equivalent fuel purchase support.",
8906
+ relevantMechanisms: ["financial_material_assistance"]
8907
+ },
8908
+ {
8909
+ code: "01-09-04-01-00-00-00",
8910
+ key: "gift_card_gas_card_emergency",
8911
+ title: "Gift Card / Gas Card (Emergency Status)",
8912
+ selectable: true,
8913
+ parentCode: "01-09-04-00-00-00-00",
8914
+ childCodes: [],
8915
+ definition: null,
8916
+ relevantMechanisms: null
8917
+ },
8918
+ {
8919
+ code: "01-09-05-00-00-00-00",
8920
+ key: "airline_tickets",
8921
+ title: "Airline tickets",
8922
+ selectable: true,
8923
+ parentCode: "01-09-00-00-00-00-00",
8924
+ childCodes: ["01-09-05-01-00-00-00"],
8925
+ definition: "Purchase/provision of commercial air travel to access safety, housing, or critical services.",
8926
+ relevantMechanisms: [
8927
+ "direct_staff_contractor",
8928
+ "financial_material_assistance"
8929
+ ]
8930
+ },
8931
+ {
8932
+ code: "01-09-05-01-00-00-00",
8933
+ key: "airline_tickets_emergency",
8934
+ title: "Airline tickets (Emergency Status)",
8935
+ selectable: true,
8936
+ parentCode: "01-09-05-00-00-00-00",
8937
+ childCodes: [],
8938
+ definition: null,
8939
+ relevantMechanisms: null
8940
+ },
8941
+ {
8942
+ code: "01-10-00-00-00-00-00",
8943
+ key: "dependents",
8944
+ title: "Dependents",
8945
+ selectable: false,
8946
+ parentCode: null,
8947
+ childCodes: ["01-10-01-00-00-00-00", "01-10-02-00-00-00-00"],
8948
+ definition: "Services, resources, and supports that help a survivor access or maintain services by ensuring safe, appropriate care or structured supervision for children/dependents.",
8949
+ relevantMechanisms: [
8950
+ "direct_staff_contractor",
8951
+ "financial_material_assistance",
8952
+ "support_via_referral",
8953
+ "informational_support"
8954
+ ]
8955
+ },
8956
+ {
8957
+ code: "01-10-01-00-00-00-00",
8958
+ key: "pet_care",
8959
+ title: "Pet care",
8960
+ selectable: true,
8961
+ parentCode: "01-10-00-00-00-00-00",
8962
+ childCodes: [],
8963
+ definition: "Assistance caring/housing or providing basic needs for pets of clients/client households.",
8964
+ relevantMechanisms: null
8965
+ },
8966
+ {
8967
+ code: "01-10-02-00-00-00-00",
8968
+ key: "child_care",
8969
+ title: "Child care",
8970
+ selectable: true,
8971
+ parentCode: "01-10-00-00-00-00-00",
8972
+ childCodes: ["01-10-02-01-00-00-00"],
8973
+ definition: "Direct provision of care/supervision for a survivor's child/dependent or support that secures such care.",
8974
+ relevantMechanisms: [
8975
+ "direct_staff_contractor",
8976
+ "financial_material_assistance",
8977
+ "support_via_referral",
8978
+ "informational_support"
8979
+ ]
8980
+ },
8981
+ {
8982
+ code: "01-10-02-01-00-00-00",
8983
+ key: "childrens_activities",
8984
+ title: "Children's activities",
8985
+ selectable: true,
8986
+ parentCode: "01-10-02-00-00-00-00",
8987
+ childCodes: ["01-10-02-01-01-00-00"],
8988
+ definition: "Supervised, non-clinical activities provided to children/dependents that support safety, stabilization, engagement, or caregiver service access.",
8989
+ relevantMechanisms: [
8990
+ "direct_staff_contractor",
8991
+ "financial_material_assistance"
8992
+ ]
8993
+ },
8994
+ {
8995
+ code: "01-10-02-01-01-00-00",
8996
+ key: "children_youth_baby_supplies",
8997
+ title: "Children / youth / baby supplies",
8998
+ selectable: true,
8999
+ parentCode: "01-10-02-01-00-00-00",
9000
+ childCodes: [],
9001
+ definition: "Provision of materials that are specific to children/babies.",
9002
+ relevantMechanisms: [
9003
+ "financial_material_assistance",
9004
+ "support_via_referral"
9005
+ ]
9006
+ },
9007
+ {
9008
+ code: "01-11-00-00-00-00-00",
9009
+ key: "case_coordination",
9010
+ title: "Case Coordination",
9011
+ selectable: false,
9012
+ parentCode: null,
9013
+ childCodes: [
9014
+ "01-11-01-00-00-00-00",
9015
+ "01-11-02-00-00-00-00",
9016
+ "01-11-03-00-00-00-00"
9017
+ ],
9018
+ definition: "Ongoing support + coordination to help survivor cope/overcome effects, through a service plan, skills-building, and linking to resources.",
9019
+ relevantMechanisms: null
9020
+ },
9021
+ {
9022
+ code: "01-11-01-00-00-00-00",
9023
+ key: "advocacy",
9024
+ title: "Advocacy",
9025
+ selectable: true,
9026
+ parentCode: "01-11-00-00-00-00-00",
9027
+ childCodes: [
9028
+ "01-11-01-01-00-00-00",
9029
+ "01-11-01-02-00-00-00",
9030
+ "01-11-01-03-00-00-00",
9031
+ "01-11-01-04-00-00-00",
9032
+ "01-11-01-05-00-00-00",
9033
+ "01-11-01-06-00-00-00",
9034
+ "01-11-01-07-00-00-00"
9035
+ ],
9036
+ definition: "Assistance within external systems to reduce barriers, increase access, and support survivor self-reliance.",
9037
+ relevantMechanisms: ["direct_staff_contractor", "informational_support"]
9038
+ },
9039
+ {
9040
+ code: "01-11-01-01-00-00-00",
9041
+ key: "medical_advocacy",
9042
+ title: "Medical Advocacy (Victim Advocacy Accompany for Medical)",
9043
+ selectable: true,
9044
+ parentCode: "01-11-01-00-00-00-00",
9045
+ childCodes: ["01-11-01-01-01-00-00", "01-11-01-01-02-00-00"],
9046
+ definition: "Includes: Victim Advocacy/Accompaniment to Emergency Medical Care and to Medical Forensic Exam.",
9047
+ relevantMechanisms: ["direct_staff_contractor", "informational_support"]
9048
+ },
9049
+ {
9050
+ code: "01-11-01-01-01-00-00",
9051
+ key: "advocacy_emergency_medical",
9052
+ title: "Victim Advocacy/Accompaniment to Emergency Medical Care",
9053
+ selectable: true,
9054
+ parentCode: "01-11-01-01-00-00-00",
9055
+ childCodes: [],
9056
+ definition: "Coordinating and/or helping a victim obtain emergency medical care, including emotional and/or physical support.",
9057
+ relevantMechanisms: null
9058
+ },
9059
+ {
9060
+ code: "01-11-01-01-02-00-00",
9061
+ key: "advocacy_forensic_exam",
9062
+ title: "Victim Advocacy/Accompaniment to Medical Forensic Exam",
9063
+ selectable: true,
9064
+ parentCode: "01-11-01-01-00-00-00",
9065
+ childCodes: [],
9066
+ definition: "Coordinating and/or helping a victim obtain a forensic interview or medical forensic exam.",
9067
+ relevantMechanisms: null
9068
+ },
9069
+ {
9070
+ code: "01-11-01-02-00-00-00",
9071
+ key: "court_advocacy",
9072
+ title: "Court Advocacy (Victim Advocacy Accompany for Legal)",
9073
+ selectable: true,
9074
+ parentCode: "01-11-01-00-00-00-00",
9075
+ childCodes: [
9076
+ "01-11-01-02-01-00-00",
9077
+ "01-11-01-02-02-00-00",
9078
+ "01-11-01-02-03-00-00",
9079
+ "01-11-01-02-04-00-00",
9080
+ "01-11-01-02-05-00-00"
9081
+ ],
9082
+ definition: "Advocacy where the system = civil/criminal legal system.",
9083
+ relevantMechanisms: ["direct_staff_contractor", "informational_support"]
9084
+ },
9085
+ {
9086
+ code: "01-11-01-02-01-00-00",
9087
+ key: "crime_scene_clean_up",
9088
+ title: "Crime Scene Clean Up",
9089
+ selectable: true,
9090
+ parentCode: "01-11-01-02-00-00-00",
9091
+ childCodes: [],
9092
+ definition: "Expenses related to cleaning a crime scene.",
9093
+ relevantMechanisms: null
9094
+ },
9095
+ {
9096
+ code: "01-11-01-02-02-00-00",
9097
+ key: "family_reunification",
9098
+ title: "Family Reunification",
9099
+ selectable: true,
9100
+ parentCode: "01-11-01-02-00-00-00",
9101
+ childCodes: [],
9102
+ definition: "Activities/services supporting reunification with family members in the U.S.",
9103
+ relevantMechanisms: null
9104
+ },
9105
+ {
9106
+ code: "01-11-01-02-03-00-00",
9107
+ key: "law_enforcement_interview_support",
9108
+ title: "Law Enforcement Interview Support",
9109
+ selectable: true,
9110
+ parentCode: "01-11-01-02-00-00-00",
9111
+ childCodes: [],
9112
+ definition: "Emotional support and/or physical accompaniment during law enforcement interviews.",
9113
+ relevantMechanisms: null
9114
+ },
9115
+ {
9116
+ code: "01-11-01-02-04-00-00",
9117
+ key: "prosecution_interview_advocacy",
9118
+ title: "Prosecution interview advocacy/accompaniment",
9119
+ selectable: true,
9120
+ parentCode: "01-11-01-02-00-00-00",
9121
+ childCodes: [],
9122
+ definition: "Emotional support and/or physical accompaniment during interviews with prosecutors.",
9123
+ relevantMechanisms: null
9124
+ },
9125
+ {
9126
+ code: "01-11-01-02-05-00-00",
9127
+ key: "immigration_advocacy_support",
9128
+ title: "Immigration Advocacy Support",
9129
+ selectable: true,
9130
+ parentCode: "01-11-01-02-00-00-00",
9131
+ childCodes: [],
9132
+ definition: "Assisting refugee/immigrant/nonimmigrant victims with immigration issues.",
9133
+ relevantMechanisms: null
9134
+ },
9135
+ {
9136
+ code: "01-11-01-03-00-00-00",
9137
+ key: "documentation_records_retrieval",
9138
+ title: "Documentation & Records Retrieval (Survivor Documents / Records Assistance)",
9139
+ selectable: true,
9140
+ parentCode: "01-11-01-00-00-00-00",
9141
+ childCodes: ["01-11-01-03-01-00-00", "01-11-01-03-02-00-00"],
9142
+ definition: "Support provided to help a survivor obtain, replace, organize, certify, or submit essential documents and records.",
9143
+ relevantMechanisms: [
9144
+ "direct_staff_contractor",
9145
+ "informational_support",
9146
+ "financial_material_assistance"
9147
+ ]
9148
+ },
9149
+ {
9150
+ code: "01-11-01-03-01-00-00",
9151
+ key: "obtaining_insurance",
9152
+ title: "Obtaining Insurance",
9153
+ selectable: true,
9154
+ parentCode: "01-11-01-03-00-00-00",
9155
+ childCodes: ["01-11-01-03-01-01-00", "01-11-01-03-01-02-00"],
9156
+ definition: "Assistance provided to help a survivor understand, apply for, or access insurance coverage.",
9157
+ relevantMechanisms: null
9158
+ },
9159
+ {
9160
+ code: "01-11-01-03-01-01-00",
9161
+ key: "drivers_car_insurance",
9162
+ title: "Driver's/Car Insurance",
9163
+ selectable: true,
9164
+ parentCode: "01-11-01-03-01-00-00",
9165
+ childCodes: [],
9166
+ definition: "Support to help a survivor obtain or reinstate auto insurance coverage.",
9167
+ relevantMechanisms: null
9168
+ },
9169
+ {
9170
+ code: "01-11-01-03-01-02-00",
9171
+ key: "medical_insurance",
9172
+ title: "Medical Insurance",
9173
+ selectable: true,
9174
+ parentCode: "01-11-01-03-01-00-00",
9175
+ childCodes: [],
9176
+ definition: "Support to help a survivor apply for, enroll in, or maintain medical insurance coverage.",
9177
+ relevantMechanisms: null
9178
+ },
9179
+ {
9180
+ code: "01-11-01-03-02-00-00",
9181
+ key: "obtaining_drivers_license",
9182
+ title: "Obtaining Driver's License",
9183
+ selectable: true,
9184
+ parentCode: "01-11-01-03-00-00-00",
9185
+ childCodes: [],
9186
+ definition: "Advocacy and practical assistance to help a survivor obtain, replace, or reinstate a driver's license.",
9187
+ relevantMechanisms: [
9188
+ "direct_staff_contractor",
9189
+ "financial_material_assistance",
9190
+ "informational_support"
9191
+ ]
9192
+ },
9193
+ {
9194
+ code: "01-11-01-04-00-00-00",
9195
+ key: "faith_resource",
9196
+ title: "Faith Resource (church/religious leader; faith resource)",
9197
+ selectable: true,
9198
+ parentCode: "01-11-01-00-00-00-00",
9199
+ childCodes: [],
9200
+ definition: "Connection to faith-based or spiritual resources at the survivor's request.",
9201
+ relevantMechanisms: [
9202
+ "direct_staff_contractor",
9203
+ "financial_material_assistance",
9204
+ "support_via_referral",
9205
+ "informational_support"
9206
+ ]
9207
+ },
9208
+ {
9209
+ code: "01-11-01-05-00-00-00",
9210
+ key: "banking_notary",
9211
+ title: "Banking/Notary",
9212
+ selectable: true,
9213
+ parentCode: "01-11-01-00-00-00-00",
9214
+ childCodes: [],
9215
+ definition: "Assistance to help survivors access basic financial or administrative services.",
9216
+ relevantMechanisms: null
9217
+ },
9218
+ {
9219
+ code: "01-11-01-06-00-00-00",
9220
+ key: "income_benefits_navigation",
9221
+ title: "Income / Benefits Navigation (Non-legal)",
9222
+ selectable: true,
9223
+ parentCode: "01-11-01-00-00-00-00",
9224
+ childCodes: ["01-11-01-06-01-00-00"],
9225
+ definition: "Non-legal support to help survivors identify, apply for, and navigate income supports or public benefits.",
9226
+ relevantMechanisms: [
9227
+ "direct_staff_contractor",
9228
+ "financial_material_assistance",
9229
+ "support_via_referral",
9230
+ "informational_support"
9231
+ ]
9232
+ },
9233
+ {
9234
+ code: "01-11-01-06-01-00-00",
9235
+ key: "government_services_special_programs",
9236
+ title: "Government Services/Systems or Special Programs (EBT/WIC)",
9237
+ selectable: true,
9238
+ parentCode: "01-11-01-06-00-00-00",
9239
+ childCodes: [],
9240
+ definition: "Helping the victim access needed services, accompanying to social services appointments.",
9241
+ relevantMechanisms: null
9242
+ },
9243
+ {
9244
+ code: "01-11-01-07-00-00-00",
9245
+ key: "intervention_employer_creditor_academic",
9246
+ title: "Intervention with Employer, Creditor, or Academic Institution",
9247
+ selectable: true,
9248
+ parentCode: "01-11-01-00-00-00-00",
9249
+ childCodes: ["01-11-01-07-01-00-00"],
9250
+ definition: "Advocating with non-criminal-justice entities on the victim's behalf.",
9251
+ relevantMechanisms: null
9252
+ },
9253
+ {
9254
+ code: "01-11-01-07-01-00-00",
9255
+ key: "formal_education_academic_support",
9256
+ title: "Formal Education & Academic Support",
9257
+ selectable: true,
9258
+ parentCode: "01-11-01-07-00-00-00",
9259
+ childCodes: ["01-11-01-07-01-01-00", "01-11-01-07-01-02-00"],
9260
+ definition: "Support that helps a survivor and/or dependents enroll in, remain engaged in, or complete formal education.",
9261
+ relevantMechanisms: [
9262
+ "direct_staff_contractor",
9263
+ "financial_material_assistance",
9264
+ "informational_support"
9265
+ ]
9266
+ },
9267
+ {
9268
+ code: "01-11-01-07-01-01-00",
9269
+ key: "adult_school_ged",
9270
+ title: "Adult School / GED / Enrollment / Educational Support",
9271
+ selectable: true,
9272
+ parentCode: "01-11-01-07-01-00-00",
9273
+ childCodes: [],
9274
+ definition: "Education supports primarily focused on adult survivors' formal education.",
9275
+ relevantMechanisms: [
9276
+ "direct_staff_contractor",
9277
+ "financial_material_assistance",
9278
+ "informational_support"
9279
+ ]
9280
+ },
9281
+ {
9282
+ code: "01-11-01-07-01-02-00",
9283
+ key: "child_school_enrollment",
9284
+ title: "Child School Enrollment / Educational Support",
9285
+ selectable: true,
9286
+ parentCode: "01-11-01-07-01-00-00",
9287
+ childCodes: [],
9288
+ definition: "Education supports focused on a child/dependent's school access and participation.",
9289
+ relevantMechanisms: [
9290
+ "direct_staff_contractor",
9291
+ "financial_material_assistance",
9292
+ "informational_support"
9293
+ ]
9294
+ },
9295
+ {
9296
+ code: "01-11-02-00-00-00-00",
9297
+ key: "intake",
9298
+ title: "Intake",
9299
+ selectable: true,
9300
+ parentCode: "01-11-00-00-00-00-00",
9301
+ childCodes: ["01-11-02-01-00-00-00"],
9302
+ definition: "An interaction intended to discover what has happened, determine the crisis, assess dangerousness indicators, do safety planning, and establish immediate needs.",
9303
+ relevantMechanisms: [
9304
+ "direct_staff_contractor",
9305
+ "support_via_referral",
9306
+ "informational_support"
9307
+ ]
9308
+ },
9309
+ {
9310
+ code: "01-11-02-01-00-00-00",
9311
+ key: "screening",
9312
+ title: "Screening (can be ongoing)",
9313
+ selectable: true,
9314
+ parentCode: "01-11-02-00-00-00-00",
9315
+ childCodes: [
9316
+ "01-11-02-01-01-00-00",
9317
+ "01-11-02-01-02-00-00",
9318
+ "01-11-02-01-03-00-00",
9319
+ "01-11-02-01-04-00-00",
9320
+ "01-11-02-01-05-00-00"
9321
+ ],
9322
+ definition: "The process of determining the nature and extent of an individual's problem in order to establish service needs.",
9323
+ relevantMechanisms: [
9324
+ "direct_staff_contractor",
9325
+ "support_via_referral",
9326
+ "informational_support"
9327
+ ]
9328
+ },
9329
+ {
9330
+ code: "01-11-02-01-01-00-00",
9331
+ key: "housing_eligibility_determination",
9332
+ title: "Housing Eligibility Determination",
9333
+ selectable: true,
9334
+ parentCode: "01-11-02-01-00-00-00",
9335
+ childCodes: ["01-11-02-01-01-01-00"],
9336
+ definition: "The process of collecting and reviewing information to determine a survivor's eligibility for housing programs.",
9337
+ relevantMechanisms: null
9338
+ },
9339
+ {
9340
+ code: "01-11-02-01-01-01-00",
9341
+ key: "coordinated_entry",
9342
+ title: "Coordinated Entry",
9343
+ selectable: true,
9344
+ parentCode: "01-11-02-01-01-00-00",
9345
+ childCodes: [],
9346
+ definition: "A project that administers the CoC's centralized or coordinated process for assessment and referral.",
9347
+ relevantMechanisms: null
9348
+ },
9349
+ {
9350
+ code: "01-11-02-01-02-00-00",
9351
+ key: "behavioral_issues_screen",
9352
+ title: "Behavioral Issues Screen",
9353
+ selectable: true,
9354
+ parentCode: "01-11-02-01-00-00-00",
9355
+ childCodes: [],
9356
+ definition: "A brief, non-diagnostic screening used to identify potential behavioral or mental health concerns.",
9357
+ relevantMechanisms: null
9358
+ },
9359
+ {
9360
+ code: "01-11-02-01-03-00-00",
9361
+ key: "initial_screen",
9362
+ title: "Initial Screen",
9363
+ selectable: true,
9364
+ parentCode: "01-11-02-01-00-00-00",
9365
+ childCodes: [],
9366
+ definition: "A first-point screening conducted at intake to gather basic information about a survivor's situation.",
9367
+ relevantMechanisms: null
9368
+ },
9369
+ {
9370
+ code: "01-11-02-01-04-00-00",
9371
+ key: "needs_assessment",
9372
+ title: "Needs Assessment",
9373
+ selectable: true,
9374
+ parentCode: "01-11-02-01-00-00-00",
9375
+ childCodes: [],
9376
+ definition: "A structured process used to identify and document a survivor's short- and longer-term needs.",
9377
+ relevantMechanisms: null
9378
+ },
9379
+ {
9380
+ code: "01-11-02-01-05-00-00",
9381
+ key: "tvap",
9382
+ title: "TVAP",
9383
+ selectable: true,
9384
+ parentCode: "01-11-02-01-00-00-00",
9385
+ childCodes: [],
9386
+ definition: "Screening for Federal Financial Assistance program for Foreign National survivors of human trafficking.",
9387
+ relevantMechanisms: null
9388
+ },
9389
+ {
9390
+ code: "01-11-03-00-00-00-00",
9391
+ key: "case_management_supportive_services",
9392
+ title: "Case Management / Supportive Services",
9393
+ selectable: true,
9394
+ parentCode: "01-11-00-00-00-00-00",
9395
+ childCodes: [
9396
+ "01-11-03-01-00-00-00",
9397
+ "01-11-03-02-00-00-00",
9398
+ "01-11-03-03-00-00-00",
9399
+ "01-11-03-04-00-00-00",
9400
+ "01-11-03-05-00-00-00"
9401
+ ],
9402
+ definition: "Work within the VSP sector to promote structured, ongoing relationship to set goals, develop/review/update a service plan, and coordinate.",
9403
+ relevantMechanisms: [
9404
+ "direct_staff_contractor",
9405
+ "support_via_referral",
9406
+ "informational_support"
9407
+ ]
9408
+ },
9409
+ {
9410
+ code: "01-11-03-01-00-00-00",
9411
+ key: "intra_agency_provider_coordination",
9412
+ title: "Intra-agency Provider Coordination | Intervention Team Meeting",
9413
+ selectable: true,
9414
+ parentCode: "01-11-03-00-00-00-00",
9415
+ childCodes: [],
9416
+ definition: "A formal, structured meeting among staff from the same agency to evaluate a survivor's progress.",
9417
+ relevantMechanisms: ["direct_staff_contractor"]
9418
+ },
9419
+ {
9420
+ code: "01-11-03-02-00-00-00",
9421
+ key: "inter_agency_consultation",
9422
+ title: "Inter-agency/Consultation",
9423
+ selectable: true,
9424
+ parentCode: "01-11-03-00-00-00-00",
9425
+ childCodes: [],
9426
+ definition: "A formal, structured interaction between staff and unrelated agencies to problem-solve and/or enhance services.",
9427
+ relevantMechanisms: ["direct_staff_contractor"]
9428
+ },
9429
+ {
9430
+ code: "01-11-03-03-00-00-00",
9431
+ key: "service_plan",
9432
+ title: "Service Plan",
9433
+ selectable: true,
9434
+ parentCode: "01-11-03-00-00-00-00",
9435
+ childCodes: ["01-11-03-03-01-00-00"],
9436
+ definition: "A documented, survivor-centered plan developed collaboratively to outline goals, priorities, services, and action steps.",
9437
+ relevantMechanisms: null
9438
+ },
9439
+ {
9440
+ code: "01-11-03-03-01-00-00",
9441
+ key: "hope_scale_and_plan",
9442
+ title: "Hope Scale and Plan",
9443
+ selectable: true,
9444
+ parentCode: "01-11-03-03-00-00-00",
9445
+ childCodes: [],
9446
+ definition: "A structured tool or process used to assess a survivor's sense of hope, readiness, or progress.",
9447
+ relevantMechanisms: null
9448
+ },
9449
+ {
9450
+ code: "01-11-03-04-00-00-00",
9451
+ key: "post_exit_plan",
9452
+ title: "Post-exit Plan",
9453
+ selectable: true,
9454
+ parentCode: "01-11-03-00-00-00-00",
9455
+ childCodes: [],
9456
+ definition: "A plan developed prior to the conclusion of services that outlines ongoing supports and next steps.",
9457
+ relevantMechanisms: null
9458
+ },
9459
+ {
9460
+ code: "01-11-03-05-00-00-00",
9461
+ key: "advanced_directives",
9462
+ title: "Advanced Directives/Post-mortem wishes",
9463
+ selectable: true,
9464
+ parentCode: "01-11-03-00-00-00-00",
9465
+ childCodes: [],
9466
+ definition: "Support to help a survivor document preferences regarding medical decision-making, end-of-life care, and post-mortem wishes.",
9467
+ relevantMechanisms: null
9468
+ },
9469
+ {
9470
+ code: "01-12-00-00-00-00-00",
9471
+ key: "other_services",
9472
+ title: "Other Services",
9473
+ selectable: false,
9474
+ parentCode: null,
9475
+ childCodes: [],
9476
+ definition: "Does not fit any other category; acts as write-in.",
9477
+ relevantMechanisms: null
9478
+ }
9479
+ ]
9480
+ };
9481
+
9482
+ // src/cvcs/serviceStates.v1.0.0.json
9483
+ var serviceStates_v1_0_0_default = {
9484
+ domain: "service_states",
9485
+ name: "Core Service State",
9486
+ version: "1.0.0",
9487
+ missingness: ["all"],
9488
+ levels: {
9489
+ "1": "Primary State",
9490
+ "2": "Sub-State"
9491
+ },
9492
+ entries: [
9493
+ {
9494
+ code: "02-01-00-00-00-00-00",
9495
+ key: "need_identified",
9496
+ title: "Need identified",
9497
+ selectable: true,
9498
+ parentCode: null,
9499
+ childCodes: [],
9500
+ definition: "A service need was identified/recorded; no commitment to deliver has been made yet."
9501
+ },
9502
+ {
9503
+ code: "02-02-00-00-00-00-00",
9504
+ key: "offered",
9505
+ title: "Offered",
9506
+ selectable: true,
9507
+ parentCode: null,
9508
+ childCodes: [],
9509
+ definition: "A service option was offered, but not yet delivered."
9510
+ },
9511
+ {
9512
+ code: "02-03-00-00-00-00-00",
9513
+ key: "scheduled_in_progress",
9514
+ title: "Scheduled / in progress",
9515
+ selectable: true,
9516
+ parentCode: null,
9517
+ childCodes: [],
9518
+ definition: "Service is scheduled or actively underway as a multi-step process."
9519
+ },
9520
+ {
9521
+ code: "02-04-00-00-00-00-00",
9522
+ key: "delivered",
9523
+ title: "Delivered",
9524
+ selectable: true,
9525
+ parentCode: null,
9526
+ childCodes: [],
9527
+ definition: "A unit of service was delivered/provided or confirmed received."
9528
+ },
9529
+ {
9530
+ code: "02-05-00-00-00-00-00",
9531
+ key: "completed",
9532
+ title: "Completed",
9533
+ selectable: true,
9534
+ parentCode: null,
9535
+ childCodes: [],
9536
+ definition: "Service episode/plan is finished and closed."
9537
+ },
9538
+ {
9539
+ code: "02-06-00-00-00-00-00",
9540
+ key: "declined_by_client",
9541
+ title: "Declined by client",
9542
+ selectable: true,
9543
+ parentCode: null,
9544
+ childCodes: [],
9545
+ definition: "Client declined the offered service."
9546
+ },
9547
+ {
9548
+ code: "02-07-00-00-00-00-00",
9549
+ key: "unable_to_provide",
9550
+ title: "Unable to provide",
9551
+ selectable: true,
9552
+ parentCode: null,
9553
+ childCodes: [
9554
+ "02-07-01-00-00-00-00",
9555
+ "02-07-02-00-00-00-00",
9556
+ "02-07-03-00-00-00-00"
9557
+ ],
9558
+ definition: "Program could not provide the service."
9559
+ },
9560
+ {
9561
+ code: "02-07-01-00-00-00-00",
9562
+ key: "unable_to_provide_eligibility",
9563
+ title: "Unable due to eligibility",
9564
+ selectable: true,
9565
+ parentCode: "02-07-00-00-00-00-00",
9566
+ childCodes: [],
9567
+ definition: "Client did not have eligibility for the Service."
9568
+ },
9569
+ {
9570
+ code: "02-07-02-00-00-00-00",
9571
+ key: "unable_to_provide_capacity",
9572
+ title: "Unable due to capacity",
9573
+ selectable: true,
9574
+ parentCode: "02-07-00-00-00-00-00",
9575
+ childCodes: [],
9576
+ definition: "Program did not have capacity to provide the Service."
9577
+ },
9578
+ {
9579
+ code: "02-07-03-00-00-00-00",
9580
+ key: "unable_to_provide_resources",
9581
+ title: "Unable due to resource",
9582
+ selectable: true,
9583
+ parentCode: "02-07-00-00-00-00-00",
9584
+ childCodes: [],
9585
+ definition: "Program did not have sufficient resources to provide the Service."
9586
+ }
9587
+ ]
9588
+ };
9589
+
9590
+ // src/cvcs/serviceMechanisms.v1.0.0.json
9591
+ var serviceMechanisms_v1_0_0_default = {
9592
+ domain: "service_mechanisms",
9593
+ name: "Core Service Mechanisms",
9594
+ version: "1.0.0",
9595
+ missingness: ["all"],
9596
+ levels: {
9597
+ "1": "Service Mechanism"
9598
+ },
9599
+ entries: [
9600
+ {
9601
+ code: "03-01-00-00-00-00-00",
9602
+ key: "support_via_referral",
9603
+ title: "Support via Referral",
9604
+ selectable: true,
9605
+ parentCode: null,
9606
+ childCodes: [],
9607
+ definition: "Connecting the client to an external provider or resource, and documenting the referral action and follow-up if applicable."
9608
+ },
9609
+ {
9610
+ code: "03-02-00-00-00-00-00",
9611
+ key: "informational_support",
9612
+ title: "Informational Support",
9613
+ selectable: true,
9614
+ parentCode: null,
9615
+ childCodes: [],
9616
+ definition: "Education, informational materials, guidance, navigation, instructions, or resource lists where the primary delivery is information."
9617
+ },
9618
+ {
9619
+ code: "03-03-00-00-00-00-00",
9620
+ key: "direct_staff_contractor",
9621
+ title: "Direct Staff/Contractor Service",
9622
+ selectable: true,
9623
+ parentCode: null,
9624
+ childCodes: [],
9625
+ definition: "Support delivered via personnel time and effort (advocacy, case management, counseling/clinician services, accompaniment, coordination, etc.)."
9626
+ },
9627
+ {
9628
+ code: "03-04-00-00-00-00-00",
9629
+ key: "financial_material_assistance",
9630
+ title: "Financial/Material Assistance",
9631
+ selectable: true,
9632
+ parentCode: null,
9633
+ childCodes: [],
9634
+ definition: "Cash, vouchers, goods, payments, or anything with monetary value transferred or provided on behalf of the client."
9635
+ }
9636
+ ]
9637
+ };
9638
+
9639
+ // src/cvcs/missingness.v1.0.0.json
9640
+ var missingness_v1_0_0_default = {
9641
+ domain: "missingness",
9642
+ name: "Universal Missingness Values",
9643
+ version: "1.0.0",
9644
+ levels: {
9645
+ "0": "Unknown or Missing"
9646
+ },
9647
+ entries: [
9648
+ {
9649
+ code: "00-00-00-00-00-00-00",
9650
+ key: "missingness_root",
9651
+ title: "Unknown, Redacted, or Missing",
9652
+ selectable: false,
9653
+ parentCode: null,
9654
+ childCodes: [
9655
+ "00-00-00-00-00-00-01",
9656
+ "00-00-00-00-00-00-02",
9657
+ "00-00-00-00-00-00-03"
9658
+ ],
9659
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
9660
+ },
9661
+ {
9662
+ code: "00-00-00-00-00-00-01",
9663
+ key: "unknown",
9664
+ title: "Unknown",
9665
+ selectable: true,
9666
+ parentCode: "00-00-00-00-00-00-00",
9667
+ childCodes: [],
9668
+ definition: "Value is unknown at time of entry."
9669
+ },
9670
+ {
9671
+ code: "00-00-00-00-00-00-02",
9672
+ key: "anonymous",
9673
+ title: "Anonymous",
9674
+ selectable: true,
9675
+ parentCode: "00-00-00-00-00-00-00",
9676
+ childCodes: [],
9677
+ definition: "Value is intentionally withheld or redacted."
9678
+ },
9679
+ {
9680
+ code: "00-00-00-00-00-00-03",
9681
+ key: "data_not_collected",
9682
+ title: "Data not collected",
9683
+ selectable: true,
9684
+ parentCode: "00-00-00-00-00-00-00",
9685
+ childCodes: [],
9686
+ definition: "No attempt was made to collect the value."
9687
+ }
9688
+ ]
9689
+ };
7542
9690
  // Annotate the CommonJS export names for ESM import in node:
7543
9691
  0 && (module.exports = {
7544
9692
  ACCOMMODATION_LABELS,
@@ -7583,11 +9731,6 @@ function createPlatformModels(connection) {
7583
9731
  CVC_136_OPTIONS,
7584
9732
  CVC_136_TYPE_TO_CATEGORY,
7585
9733
  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
9734
  CVC_145_CATEGORY,
7592
9735
  CVC_145_CATEGORY_LABELS,
7593
9736
  CVC_145_CATEGORY_ORDER,
@@ -7603,12 +9746,6 @@ function createPlatformModels(connection) {
7603
9746
  CVC_148_LABELS,
7604
9747
  CVC_148_TRIBES,
7605
9748
  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
9749
  CVC_150_EYE_COLOR,
7613
9750
  CVC_150_LABELS,
7614
9751
  CVC_150_VALUES,
@@ -7621,11 +9758,6 @@ function createPlatformModels(connection) {
7621
9758
  CVC_153_LABELS,
7622
9759
  CVC_153_SMT_TYPE,
7623
9760
  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
9761
  CVC_156_LABELS,
7630
9762
  CVC_156_MARITAL_STATUS,
7631
9763
  CVC_156_VALUES,
@@ -7678,55 +9810,15 @@ function createPlatformModels(connection) {
7678
9810
  CVC_17_LEVEL_1_OPTIONS,
7679
9811
  CVC_17_LEVEL_2_TRANSGENDER_OPTIONS,
7680
9812
  CVC_17_TRANSGENDER_VALUES,
7681
- CVC_17_VALUES,
7682
9813
  CVC_180_EDUCATION_LEVEL,
7683
9814
  CVC_180_LABELS,
7684
9815
  CVC_180_ORDINAL,
7685
9816
  CVC_180_VALUES,
7686
9817
  CVC_181_COUNTRIES,
7687
9818
  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
9819
  CVC_196_CHILD_WELFARE_EPISODE_TYPE,
7723
9820
  CVC_196_LABELS,
7724
9821
  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
9822
  CVC_1_LABELS,
7731
9823
  CVC_1_NAME_TYPE,
7732
9824
  CVC_1_STRUCTURED_NAME_TYPES,
@@ -7736,7 +9828,6 @@ function createPlatformModels(connection) {
7736
9828
  CVC_67_LABELS,
7737
9829
  CVC_67_MISSINGNESS_VALUES,
7738
9830
  CVC_67_SELECTABLE_VALUES,
7739
- CVC_67_VALUES,
7740
9831
  CVC_72_HT_TYPE,
7741
9832
  CVC_72_LABELS,
7742
9833
  CVC_72_VALUES,
@@ -7761,6 +9852,11 @@ function createPlatformModels(connection) {
7761
9852
  CVC_99_ENGLISH_PROFICIENCY,
7762
9853
  CVC_99_LABELS,
7763
9854
  CVC_99_VALUES,
9855
+ CvcCodeSchema,
9856
+ CvcEntrySchema,
9857
+ CvcEnvelopeSchema,
9858
+ CvcKeySchema,
9859
+ CvcRegistryService,
7764
9860
  DATA_QUALITY,
7765
9861
  DATA_QUALITY_DESCRIPTIONS,
7766
9862
  DATA_QUALITY_LABELS,
@@ -7831,6 +9927,7 @@ function createPlatformModels(connection) {
7831
9927
  INVOLVEMENT_ROLE_TO_PERSON_TYPE,
7832
9928
  MINOR_ADULT_STATUS,
7833
9929
  MINOR_ADULT_STATUS_LABELS,
9930
+ MissingnessKeys,
7834
9931
  PARTICIPATION_ROLE_CATEGORIES,
7835
9932
  PERMISSION_STATE,
7836
9933
  PERMISSION_STATE_DISPLAY,
@@ -7867,20 +9964,37 @@ function createPlatformModels(connection) {
7867
9964
  SHARE_VIEW_VALUES,
7868
9965
  SUBMISSION_STATES,
7869
9966
  SUBMISSION_STATE_LABELS,
9967
+ ServiceCategoryEntrySchema,
9968
+ ServiceCategoryKeys,
9969
+ ServiceMechanismKeys,
9970
+ ServiceStateKeys,
7870
9971
  THREAD_INVOLVEMENT_ROLES,
7871
9972
  USER_STATUS,
7872
9973
  USER_STATUS_LABELS,
7873
9974
  VALID_INTERACTION_TYPES,
7874
9975
  VALID_RECORD_STATES,
7875
9976
  addressSchema,
9977
+ applyEntryOverrides,
9978
+ buildCvcEntrySchema,
9979
+ buildCvcRegistrySchema,
7876
9980
  buildFormSchema,
7877
9981
  buildPlatformFunctionSchema,
7878
9982
  buildPlatformRoleSchema,
7879
9983
  buildQuestionSchema,
7880
9984
  buildScoringRuleSchema,
7881
9985
  buildSectionSchema,
9986
+ cascadeExclusions,
7882
9987
  choiceSchema,
9988
+ compileCvcEntryModel,
9989
+ compileCvcRegistryModel,
7883
9990
  createPlatformModels,
9991
+ cvcEntryModel,
9992
+ cvcEntrySchemaDefinition,
9993
+ cvcEntrySchemaOptions,
9994
+ cvcRegistryModel,
9995
+ cvcRegistrySchemaDefinition,
9996
+ cvcRegistrySchemaOptions,
9997
+ cvcVersionsToRecord,
7884
9998
  demographicsSchema,
7885
9999
  deriveAgeBinFromAge,
7886
10000
  emailSchema,
@@ -7908,6 +10022,7 @@ function createPlatformModels(connection) {
7908
10022
  isStructuredNameType,
7909
10023
  isTransgenderGenderIdentity,
7910
10024
  layoutSchema,
10025
+ missingnessSot,
7911
10026
  personNameSchema,
7912
10027
  phoneSchema,
7913
10028
  platformFunctionModel,
@@ -7919,6 +10034,7 @@ function createPlatformModels(connection) {
7919
10034
  questionModel,
7920
10035
  questionSchemaDefinition,
7921
10036
  questionSchemaOptions,
10037
+ resolveRegistryWithInheritance,
7922
10038
  scoringConditionSchema,
7923
10039
  scoringRecommendationSchema,
7924
10040
  scoringRuleModel,
@@ -7929,6 +10045,9 @@ function createPlatformModels(connection) {
7929
10045
  sectionQuestionRefSchema,
7930
10046
  sectionSchemaDefinition,
7931
10047
  sectionSchemaOptions,
10048
+ serviceCategoriesSot,
10049
+ serviceMechanismsSot,
10050
+ serviceStatesSot,
7932
10051
  sortRelationshipsByPriority,
7933
10052
  visibilityRuleSchema
7934
10053
  });