@htilabs/platform-common-models 0.8.7 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +44 -0
  2. package/dist/config/index.cjs +191 -0
  3. package/dist/config/index.cjs.map +1 -0
  4. package/dist/config/index.d.cts +101 -0
  5. package/dist/config/index.d.ts +101 -0
  6. package/dist/config/index.js +165 -0
  7. package/dist/config/index.js.map +1 -0
  8. package/dist/constants/index.cjs +5 -28
  9. package/dist/constants/index.cjs.map +1 -1
  10. package/dist/constants/index.d.cts +1 -1
  11. package/dist/constants/index.d.ts +1 -1
  12. package/dist/constants/index.js +5 -27
  13. package/dist/constants/index.js.map +1 -1
  14. package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-0BIB9sen.d.cts} +44 -44
  15. package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-0BIB9sen.d.ts} +44 -44
  16. package/dist/cvcs/index.cjs +3 -1321
  17. package/dist/cvcs/index.cjs.map +1 -1
  18. package/dist/cvcs/index.d.cts +1195 -2649
  19. package/dist/cvcs/index.d.ts +1195 -2649
  20. package/dist/cvcs/index.js +3 -1313
  21. package/dist/cvcs/index.js.map +1 -1
  22. package/dist/{index-C0J3f169.d.ts → index-CDoqrfc1.d.ts} +1 -1
  23. package/dist/{index-EPjPjR0z.d.cts → index-Zu_mOJRn.d.cts} +1 -1
  24. package/dist/index.cjs +121 -1550
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +48 -401
  27. package/dist/index.d.ts +48 -401
  28. package/dist/index.js +120 -1526
  29. package/dist/index.js.map +1 -1
  30. package/dist/models/index.d.cts +2 -2
  31. package/dist/models/index.d.ts +2 -2
  32. package/dist/{platform-auth-BdnJUisw.d.cts → platform-auth-XVB9aHqR.d.cts} +3 -16
  33. package/dist/{platform-auth-BdnJUisw.d.ts → platform-auth-XVB9aHqR.d.ts} +3 -16
  34. package/dist/schemas/index.cjs +9 -26
  35. package/dist/schemas/index.cjs.map +1 -1
  36. package/dist/schemas/index.d.cts +39 -35
  37. package/dist/schemas/index.d.ts +39 -35
  38. package/dist/schemas/index.js +9 -26
  39. package/dist/schemas/index.js.map +1 -1
  40. package/dist/types/index.d.cts +2 -2
  41. package/dist/types/index.d.ts +2 -2
  42. package/package.json +25 -19
  43. package/src/__tests__/__snapshots__/cvc-sot.snap +12 -76
  44. package/src/__tests__/cvc-sot-snapshot.test.ts +10 -61
  45. package/src/__tests__/cvc-structural.test.ts +0 -9
  46. package/src/__tests__/runtime-contract-validator.test.ts +556 -0
  47. package/src/config/fixtures/valid.yaml +90 -0
  48. package/src/config/index.ts +352 -0
  49. package/src/constants/ic.ts +3 -31
  50. package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +0 -9
  51. package/src/cvcs/hmisSex.v1.0.0.json +89 -0
  52. package/src/cvcs/identificationStatus.v1.0.0.json +0 -18
  53. package/src/cvcs/incomeBenefitsSources.v1.0.0.json +2 -31
  54. package/src/cvcs/index.ts +0 -16
  55. package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +96 -0
  56. package/src/cvcs/recencyBand.v1.0.0.json +57 -38
  57. package/src/cvcs/serviceStates.v1.0.0.json +1 -23
  58. package/src/cvcs/sourceSubtype.v1.1.0.json +0 -36
  59. package/src/cvcs/verificationMethod.v1.0.0.json +0 -18
  60. package/src/generated/cvc-enums.ts +6 -429
  61. package/src/index.ts +20 -0
  62. package/src/schemas/common.ts +4 -0
  63. package/src/cvcs/activityType.v1.0.0.json +0 -143
  64. package/src/cvcs/assertionDomain.v1.0.0.json +0 -629
  65. package/src/cvcs/contactLinkType.v1.0.0.json +0 -89
  66. package/src/cvcs/hmisRelationshipToHoh.v1.0.0.json +0 -104
  67. package/src/cvcs/housingSubsidyTypes.v1.0.0.json +0 -159
  68. package/src/cvcs/htType.v1.0.0.json +0 -87
  69. package/src/cvcs/livingSituation.v1.0.0.json +0 -213
  70. package/src/cvcs/provenanceSourceId.v1.0.0.json +0 -134
  71. package/src/cvcs/radiusBucket.v1.0.0.json +0 -98
  72. package/src/cvcs/relationshipConcern.v1.0.0.json +0 -114
  73. package/src/cvcs/roiMethod.v1.0.0.json +0 -107
  74. package/src/cvcs/serviceAudience.v1.0.0.json +0 -96
  75. package/src/cvcs/sessionNoteVisibility.v1.0.0.json +0 -80
  76. package/src/cvcs/suggestionSource.v1.0.0.json +0 -71
  77. package/src/cvcs/victimAbuseTypes.v1.0.0.json +0 -276
package/dist/index.cjs CHANGED
@@ -31,12 +31,10 @@ __export(src_exports, {
31
31
  AccommodationTypeKeys: () => AccommodationTypeKeys,
32
32
  ActionStepCompletionStatusKeys: () => ActionStepCompletionStatusKeys,
33
33
  ActionStepTypeKeys: () => ActionStepTypeKeys,
34
- ActivityTypeKeys: () => ActivityTypeKeys,
35
34
  AdministeringJurisdictionKeys: () => AdministeringJurisdictionKeys,
36
35
  AgeBinReportingKeys: () => AgeBinReportingKeys,
37
36
  AnnouncementAudienceScopeKeys: () => AnnouncementAudienceScopeKeys,
38
37
  AnnouncementResponseTypeKeys: () => AnnouncementResponseTypeKeys,
39
- AssertionDomainKeys: () => AssertionDomainKeys,
40
38
  BIRTH_LOCATION: () => BIRTH_LOCATION,
41
39
  BIRTH_LOCATION_LABELS: () => BIRTH_LOCATION_LABELS,
42
40
  BIRTH_LOCATION_VALUES: () => BIRTH_LOCATION_VALUES,
@@ -72,6 +70,7 @@ __export(src_exports, {
72
70
  CVC_136_OPTIONS: () => CVC_136_OPTIONS,
73
71
  CVC_136_TYPE_TO_CATEGORY: () => CVC_136_TYPE_TO_CATEGORY,
74
72
  CVC_136_VALUES: () => CVC_136_VALUES,
73
+ CVC_137_VALUES: () => CVC_137_VALUES,
75
74
  CVC_145_CATEGORY: () => CVC_145_CATEGORY,
76
75
  CVC_145_CATEGORY_LABELS: () => CVC_145_CATEGORY_LABELS,
77
76
  CVC_145_CATEGORY_ORDER: () => CVC_145_CATEGORY_ORDER,
@@ -161,6 +160,7 @@ __export(src_exports, {
161
160
  CVC_196_CHILD_WELFARE_EPISODE_TYPE: () => CVC_196_CHILD_WELFARE_EPISODE_TYPE,
162
161
  CVC_196_LABELS: () => CVC_196_LABELS,
163
162
  CVC_196_VALUES: () => CVC_196_VALUES,
163
+ CVC_197_VALUES: () => CVC_197_VALUES,
164
164
  CVC_1_LABELS: () => CVC_1_LABELS,
165
165
  CVC_1_NAME_TYPE: () => CVC_1_NAME_TYPE,
166
166
  CVC_1_STRUCTURED_NAME_TYPES: () => CVC_1_STRUCTURED_NAME_TYPES,
@@ -201,7 +201,6 @@ __export(src_exports, {
201
201
  CollectionContextKeys: () => CollectionContextKeys,
202
202
  ContactInfoTypeKeys: () => ContactInfoTypeKeys,
203
203
  ContactInfoUseTypeKeys: () => ContactInfoUseTypeKeys,
204
- ContactLinkTypeKeys: () => ContactLinkTypeKeys,
205
204
  ContactSafetyStatusKeys: () => ContactSafetyStatusKeys,
206
205
  CvcCodeSchema: () => CvcCodeSchema,
207
206
  CvcEntrySchema: () => CvcEntrySchema,
@@ -250,13 +249,10 @@ __export(src_exports, {
250
249
  HasTattoosKeys: () => HasTattoosKeys,
251
250
  HighestEducationLevelCompletedKeys: () => HighestEducationLevelCompletedKeys,
252
251
  HmisProjectTypeKeys: () => HmisProjectTypeKeys,
253
- HmisRelationshipToHohKeys: () => HmisRelationshipToHohKeys,
254
252
  HomelessStatusKeys: () => HomelessStatusKeys,
255
253
  HopeScaleCaptureContextKeys: () => HopeScaleCaptureContextKeys,
256
254
  HopeScaleResponseOptionsKeys: () => HopeScaleResponseOptionsKeys,
257
255
  HopeScaleTierKeys: () => HopeScaleTierKeys,
258
- HousingSubsidyTypesKeys: () => HousingSubsidyTypesKeys,
259
- HtTypeKeys: () => HtTypeKeys,
260
256
  IC_13_CATEGORIES: () => IC_13_CATEGORIES,
261
257
  IC_13_CATEGORY_ORDER: () => IC_13_CATEGORY_ORDER,
262
258
  IC_13_LABELS: () => IC_13_LABELS,
@@ -291,7 +287,6 @@ __export(src_exports, {
291
287
  IC_56_DESCRIPTIONS: () => IC_56_DESCRIPTIONS,
292
288
  IC_56_LABELS: () => IC_56_LABELS,
293
289
  IC_56_OPTIONS: () => IC_56_OPTIONS,
294
- IC_56_PROVISIONAL_CHANNELS: () => IC_56_PROVISIONAL_CHANNELS,
295
290
  IC_56_SERVICE_DELIVERY_CHANNEL: () => IC_56_SERVICE_DELIVERY_CHANNEL,
296
291
  IC_57_LABELS: () => IC_57_LABELS,
297
292
  IC_57_SERVICE_AUDIENCE: () => IC_57_SERVICE_AUDIENCE,
@@ -324,7 +319,6 @@ __export(src_exports, {
324
319
  LanguagesKeys: () => LanguagesKeys,
325
320
  LeReportStatusKeys: () => LeReportStatusKeys,
326
321
  LegalActionTypeKeys: () => LegalActionTypeKeys,
327
- LivingSituationKeys: () => LivingSituationKeys,
328
322
  LocationTypeKeys: () => LocationTypeKeys,
329
323
  MINOR_ADULT_STATUS: () => MINOR_ADULT_STATUS,
330
324
  MINOR_ADULT_STATUS_LABELS: () => MINOR_ADULT_STATUS_LABELS,
@@ -360,7 +354,6 @@ __export(src_exports, {
360
354
  ProgramSpecificCodeKeys: () => ProgramSpecificCodeKeys,
361
355
  PronounsKeys: () => PronounsKeys,
362
356
  ProofOfIdTypeKeys: () => ProofOfIdTypeKeys,
363
- ProvenanceSourceIdKeys: () => ProvenanceSourceIdKeys,
364
357
  QUESTION_FORMAT: () => QUESTION_FORMAT,
365
358
  QUESTION_FORMAT_LABELS: () => QUESTION_FORMAT_LABELS,
366
359
  QUICK_START_CONFIG: () => QUICK_START_CONFIG,
@@ -379,16 +372,12 @@ __export(src_exports, {
379
372
  ROLE_LEVEL_LABELS: () => ROLE_LEVEL_LABELS,
380
373
  ROLE_LEVEL_VALUES: () => ROLE_LEVEL_VALUES,
381
374
  RaceEthnicityKeys: () => RaceEthnicityKeys,
382
- RadiusBucketKeys: () => RadiusBucketKeys,
383
- RecencyBandKeys: () => RecencyBandKeys,
384
375
  ReferenceLinkTypeKeys: () => ReferenceLinkTypeKeys,
385
376
  ReferralEntityCategoryKeys: () => ReferralEntityCategoryKeys,
386
- RelationshipConcernKeys: () => RelationshipConcernKeys,
387
377
  RelationshipDynamicsKeys: () => RelationshipDynamicsKeys,
388
378
  RelationshipStatusCurrentKeys: () => RelationshipStatusCurrentKeys,
389
379
  RelationshipTiesKeys: () => RelationshipTiesKeys,
390
380
  ReturnedToAbuserStatusKeys: () => ReturnedToAbuserStatusKeys,
391
- RoiMethodKeys: () => RoiMethodKeys,
392
381
  RoleContextKeys: () => RoleContextKeys,
393
382
  RsvpResponseKeys: () => RsvpResponseKeys,
394
383
  SESSION_STATES: () => SESSION_STATES,
@@ -398,7 +387,6 @@ __export(src_exports, {
398
387
  SHARE_VIEW_VALUES: () => SHARE_VIEW_VALUES,
399
388
  SUBMISSION_STATES: () => SUBMISSION_STATES,
400
389
  SUBMISSION_STATE_LABELS: () => SUBMISSION_STATE_LABELS,
401
- ServiceAudienceKeys: () => ServiceAudienceKeys,
402
390
  ServiceCategoryEntrySchema: () => ServiceCategoryEntrySchema,
403
391
  ServiceCategoryKeys: () => ServiceCategoryKeys,
404
392
  ServiceMechanismKeys: () => ServiceMechanismKeys,
@@ -406,7 +394,6 @@ __export(src_exports, {
406
394
  ServicePlanReviewSnoozeReasonKeys: () => ServicePlanReviewSnoozeReasonKeys,
407
395
  ServiceSourceKeys: () => ServiceSourceKeys,
408
396
  ServiceStateKeys: () => ServiceStateKeys,
409
- SessionNoteVisibilityKeys: () => SessionNoteVisibilityKeys,
410
397
  SessionStateKeys: () => SessionStateKeys,
411
398
  SeverityFollowUpKeys: () => SeverityFollowUpKeys,
412
399
  SexProviderSubroleKeys: () => SexProviderSubroleKeys,
@@ -420,7 +407,6 @@ __export(src_exports, {
420
407
  SourceCategoryKeys: () => SourceCategoryKeys,
421
408
  SourceSubtypeKeys: () => SourceSubtypeKeys,
422
409
  SubstanceUseStatusKeys: () => SubstanceUseStatusKeys,
423
- SuggestionSourceKeys: () => SuggestionSourceKeys,
424
410
  SupportStrengthKeys: () => SupportStrengthKeys,
425
411
  SupportTopicKeys: () => SupportTopicKeys,
426
412
  THREAD_INVOLVEMENT_ROLES: () => THREAD_INVOLVEMENT_ROLES,
@@ -434,7 +420,6 @@ __export(src_exports, {
434
420
  VALID_RECORD_STATES: () => VALID_RECORD_STATES,
435
421
  VerificationMethodKeys: () => VerificationMethodKeys,
436
422
  VerificationStatusKeys: () => VerificationStatusKeys,
437
- VictimAbuseTypesKeys: () => VictimAbuseTypesKeys,
438
423
  VictimStatusFamilyKeys: () => VictimStatusFamilyKeys,
439
424
  VisaTypeKeys: () => VisaTypeKeys,
440
425
  accommodationTypeSot: () => accommodationType_v1_0_0_default,
@@ -525,13 +510,10 @@ __export(src_exports, {
525
510
  hasTattoosSot: () => hasTattoos_v1_0_0_default,
526
511
  highestEducationLevelCompletedSot: () => highestEducationLevelCompleted_v1_0_0_default,
527
512
  hmisProjectTypeSot: () => hmisProjectType_v1_0_0_default,
528
- hmisRelationshipToHohSot: () => hmisRelationshipToHoh_v1_0_0_default,
529
513
  homelessStatusSot: () => homelessStatus_v1_0_0_default,
530
514
  hopeScaleCaptureContextSot: () => hopeScaleCaptureContext_v1_0_0_default,
531
515
  hopeScaleResponseOptionsSot: () => hopeScaleResponseOptions_v1_0_0_default,
532
516
  hopeScaleTierSot: () => hopeScaleTier_v1_0_0_default,
533
- housingSubsidyTypesSot: () => housingSubsidyTypes_v1_0_0_default,
534
- htTypeSot: () => htType_v1_0_0_default,
535
517
  identificationStatusSot: () => identificationStatus_v1_0_0_default,
536
518
  incidentInvolvementRolesSot: () => incidentInvolvementRoles_v1_0_0_default,
537
519
  incidentParticipationRolesSot: () => incidentParticipationRoles_v1_0_0_default,
@@ -549,7 +531,6 @@ __export(src_exports, {
549
531
  layoutSchema: () => layoutSchema,
550
532
  leReportStatusSot: () => leReportStatus_v1_0_0_default,
551
533
  legalActionTypeSot: () => legalActionType_v1_0_0_default,
552
- livingSituationSot: () => livingSituation_v1_0_0_default,
553
534
  locationTypeSot: () => locationType_v1_0_0_default,
554
535
  maritalStatusLegalSot: () => maritalStatusLegal_v1_0_0_default,
555
536
  messageReportReasonSot: () => messageReportReason_v1_0_0_default,
@@ -583,10 +564,8 @@ __export(src_exports, {
583
564
  questionSchemaDefinition: () => questionSchemaDefinition,
584
565
  questionSchemaOptions: () => questionSchemaOptions,
585
566
  raceEthnicitySot: () => raceEthnicity_v1_0_0_default,
586
- recencyBandSot: () => recencyBand_v1_0_0_default,
587
567
  referenceLinkTypeSot: () => referenceLinkType_v1_0_0_default,
588
568
  referralEntityCategorySot: () => referralEntityCategory_v1_0_0_default,
589
- relationshipConcernSot: () => relationshipConcern_v1_0_0_default,
590
569
  relationshipDynamicsSot: () => relationshipDynamics_v1_0_0_default,
591
570
  relationshipStatusCurrentSot: () => relationshipStatusCurrent_v1_0_0_default,
592
571
  relationshipTiesSot: () => relationshipTies_v1_0_0_default,
@@ -604,7 +583,6 @@ __export(src_exports, {
604
583
  sectionQuestionRefSchema: () => sectionQuestionRefSchema,
605
584
  sectionSchemaDefinition: () => sectionSchemaDefinition,
606
585
  sectionSchemaOptions: () => sectionSchemaOptions,
607
- serviceAudienceSot: () => serviceAudience_v1_0_0_default,
608
586
  serviceCategoriesSot: () => serviceCategories_v1_0_0_default,
609
587
  serviceMechanismsSot: () => serviceMechanisms_v1_0_0_default,
610
588
  servicePlanClosureReasonSot: () => servicePlanClosureReason_v1_0_0_default,
@@ -633,7 +611,6 @@ __export(src_exports, {
633
611
  tribesSot: () => tribes_v1_0_0_default,
634
612
  verificationMethodSot: () => verificationMethod_v1_0_0_default,
635
613
  verificationStatusSot: () => verificationStatus_v1_0_0_default,
636
- victimAbuseTypesSot: () => victimAbuseTypes_v1_0_0_default,
637
614
  victimStatusFamilySot: () => victimStatusFamily_v1_0_0_default,
638
615
  visaTypeSot: () => visaType_v1_0_0_default,
639
616
  visibilityRuleSchema: () => visibilityRuleSchema
@@ -1128,17 +1105,8 @@ var IC_56_SERVICE_DELIVERY_CHANNEL = {
1128
1105
  ON_SCENE: 2,
1129
1106
  PHONE: 3,
1130
1107
  EMAIL_TEXT_CHAT: 4,
1131
- VIRTUAL: 5,
1132
- // PROVISIONAL — group delivery channels surfaced by the Thread canonical
1133
- // "How was the service delivered?" picker. Authored ahead of codebook /
1134
- // Notion ratification; flagged provisional pending SOT sign-off.
1135
- GROUP_IN_PERSON: 6,
1136
- GROUP_REMOTE: 7
1137
- };
1138
- var IC_56_PROVISIONAL_CHANNELS = /* @__PURE__ */ new Set([
1139
- IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
1140
- IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE
1141
- ]);
1108
+ VIRTUAL: 5
1109
+ };
1142
1110
  var IC_56_LABELS = {
1143
1111
  [IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Data Not Collected",
1144
1112
  [IC_56_SERVICE_DELIVERY_CHANNEL.ANONYMOUS]: "Anonymous",
@@ -1147,9 +1115,7 @@ var IC_56_LABELS = {
1147
1115
  [IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "On-scene",
1148
1116
  [IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone",
1149
1117
  [IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email / Text / Chat",
1150
- [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual",
1151
- [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group (in-person)",
1152
- [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group (remote)"
1118
+ [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual"
1153
1119
  };
1154
1120
  var IC_56_DESCRIPTIONS = {
1155
1121
  [IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Contact method data was not collected",
@@ -1159,15 +1125,13 @@ var IC_56_DESCRIPTIONS = {
1159
1125
  [IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "Field response / crisis response / mobile advocacy",
1160
1126
  [IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone call",
1161
1127
  [IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email, text message, or chat",
1162
- [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call",
1163
- [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group session delivered in person (support group, class, workshop)",
1164
- [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group session delivered remotely (virtual support group, webinar)"
1128
+ [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call"
1165
1129
  };
1166
1130
  function isIC56Missingness(code) {
1167
1131
  return code <= 0;
1168
1132
  }
1169
1133
  function isIC56ValidChannel(code) {
1170
- return code >= 1 && code <= 7;
1134
+ return code >= 1 && code <= 5;
1171
1135
  }
1172
1136
  var IC_56_OPTIONS = [
1173
1137
  {
@@ -1189,14 +1153,6 @@ var IC_56_OPTIONS = [
1189
1153
  {
1190
1154
  value: IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL,
1191
1155
  label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]
1192
- },
1193
- {
1194
- value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
1195
- label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]
1196
- },
1197
- {
1198
- value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE,
1199
- label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]
1200
1156
  }
1201
1157
  ];
1202
1158
  var IC_57_SERVICE_AUDIENCE = {
@@ -6305,7 +6261,11 @@ var personNameSchema = new import_mongoose.Schema(
6305
6261
  isPrimary: Boolean,
6306
6262
  alias: Boolean,
6307
6263
  isUnknown: Boolean,
6308
- isAnonymous: Boolean
6264
+ isAnonymous: Boolean,
6265
+ // Shape flag: this person has only one name (e.g., Madonna). A mononym
6266
+ // can itself be legal, a nickname, a trade name, etc. — it's orthogonal
6267
+ // to nameType, not a value of it.
6268
+ isMononym: Boolean
6309
6269
  },
6310
6270
  { _id: false }
6311
6271
  );
@@ -7504,9 +7464,7 @@ var ServiceStateKeys = {
7504
7464
  unable_to_provide_eligibility: "049-007-001-000-000-000-000",
7505
7465
  unable_to_provide_capacity: "049-007-002-000-000-000-000",
7506
7466
  unable_to_provide_resource: "049-007-003-000-000-000-000",
7507
- unable_other_reason: "049-007-004-000-000-000-000",
7508
- unable_to_provide_service_fit: "049-007-005-000-000-000-000",
7509
- unable_to_provide_access_barrier: "049-007-006-000-000-000-000"
7467
+ unable_other_reason: "049-007-004-000-000-000-000"
7510
7468
  };
7511
7469
  var ServiceMechanismKeys = {
7512
7470
  missingness_root: "025-000-000-000-000-000-000",
@@ -7997,8 +7955,7 @@ var HighestEducationLevelCompletedKeys = {
7997
7955
  some_college: "180-004-000-000-000-000-000",
7998
7956
  associates: "180-005-000-000-000-000-000",
7999
7957
  bachelors: "180-006-000-000-000-000-000",
8000
- graduate_professional: "180-007-000-000-000-000-000",
8001
- trade_vocational: "180-008-000-000-000-000-000"
7958
+ graduate_professional: "180-007-000-000-000-000-000"
8002
7959
  };
8003
7960
  var PreferredContactMethodKeys = {
8004
7961
  call: "185-001-000-000-000-000-000",
@@ -8383,7 +8340,6 @@ var IncomeBenefitsSourcesKeys = {
8383
8340
  prefer_not_to_answer: "171-000-000-000-000-000-004",
8384
8341
  earned_income: "171-001-000-000-000-000-000",
8385
8342
  employment: "171-001-001-000-000-000-000",
8386
- informal_income: "171-001-002-000-000-000-000",
8387
8343
  cash_benefit: "171-002-000-000-000-000-000",
8388
8344
  unemployment_insurance: "171-002-001-000-000-000-000",
8389
8345
  supplemental_security_income: "171-002-002-000-000-000-000",
@@ -8411,12 +8367,10 @@ var IncomeBenefitsSourcesKeys = {
8411
8367
  transfer_support: "171-004-000-000-000-000-000",
8412
8368
  child_support: "171-004-001-000-000-000-000",
8413
8369
  alimony_spousal_support: "171-004-002-000-000-000-000",
8414
- family_friend_support: "171-004-003-000-000-000-000",
8415
8370
  other_unspecified: "171-005-000-000-000-000-000",
8416
8371
  other_income: "171-005-001-000-000-000-000",
8417
8372
  other_benefit: "171-005-002-000-000-000-000",
8418
- education_stipend: "171-005-003-000-000-000-000",
8419
- victim_compensation: "171-006-000-000-000-000-000"
8373
+ education_stipend: "171-005-003-000-000-000-000"
8420
8374
  };
8421
8375
  var EnrollmentApplicationStatusKeys = {
8422
8376
  missingness_root: "175-000-000-000-000-000-000",
@@ -8512,11 +8466,7 @@ var SourceSubtypeKeys = {
8512
8466
  staff_observation: "141-028-000-000-000-000-000",
8513
8467
  system_import: "141-029-000-000-000-000-000",
8514
8468
  third_party_report: "141-030-000-000-000-000-000",
8515
- victim_disclosure: "141-031-000-000-000-000-000",
8516
- advocate_capture: "141-032-000-000-000-000-000",
8517
- advocate_assessment: "141-033-000-000-000-000-000",
8518
- child_welfare_episode_edit: "141-034-000-000-000-000-000",
8519
- juvenile_justice_episode_edit: "141-035-000-000-000-000-000"
8469
+ victim_disclosure: "141-031-000-000-000-000-000"
8520
8470
  };
8521
8471
  var SupportStrengthKeys = {
8522
8472
  missingness_root: "139-000-000-000-000-000-000",
@@ -8568,9 +8518,7 @@ var VerificationMethodKeys = {
8568
8518
  evidence_threshold_met: "143-002-000-000-000-000-000",
8569
8519
  multi_source_corroboration: "143-003-000-000-000-000-000",
8570
8520
  qa_audit_passed: "143-004-000-000-000-000-000",
8571
- supervisor_review: "143-005-000-000-000-000-000",
8572
- rules: "143-006-000-000-000-000-000",
8573
- still_reaches: "143-007-000-000-000-000-000"
8521
+ supervisor_review: "143-005-000-000-000-000-000"
8574
8522
  };
8575
8523
  var VerificationStatusKeys = {
8576
8524
  missingness_root: "962-000-000-000-000-000-000",
@@ -9371,9 +9319,7 @@ var IdentificationStatusKeys = {
9371
9319
  data_not_collected: "929-000-000-000-000-000-003",
9372
9320
  identified: "929-001-000-000-000-000-000",
9373
9321
  unidentified: "929-002-000-000-000-000-000",
9374
- anonymous_posture: "929-003-000-000-000-000-000",
9375
- estimated_persona: "929-004-000-000-000-000-000",
9376
- confirmed: "929-005-000-000-000-000-000"
9322
+ anonymous_posture: "929-003-000-000-000-000-000"
9377
9323
  };
9378
9324
  var InvestigativeRequestTypeKeys = {
9379
9325
  missingness_root: "931-000-000-000-000-000-000",
@@ -9693,287 +9639,6 @@ var ThreadTypeKeys = {
9693
9639
  announcement: "961-004-000-000-000-000-000",
9694
9640
  investigative_request: "961-005-000-000-000-000-000"
9695
9641
  };
9696
- var LivingSituationKeys = {
9697
- missingness_root: "192-000-000-000-000-000-000",
9698
- unknown: "192-000-000-000-000-000-001",
9699
- anonymous: "192-000-000-000-000-000-002",
9700
- data_not_collected: "192-000-000-000-000-000-003",
9701
- unsheltered: "192-001-000-000-000-000-000",
9702
- emergency_shelter: "192-002-000-000-000-000-000",
9703
- safe_haven: "192-003-000-000-000-000-000",
9704
- dv_shelter_safe_house: "192-004-000-000-000-000-000",
9705
- homeless_unspecified: "192-005-000-000-000-000-000",
9706
- hospital_medical: "192-006-000-000-000-000-000",
9707
- psychiatric_residential_facility: "192-007-000-000-000-000-000",
9708
- substance_use_treatment_residential: "192-008-000-000-000-000-000",
9709
- incarcerated: "192-009-000-000-000-000-000",
9710
- cw_foster_care: "192-010-000-000-000-000-000",
9711
- cw_kinship: "192-011-000-000-000-000-000",
9712
- long_term_care: "192-012-000-000-000-000-000",
9713
- transitional_housing_program: "192-013-000-000-000-000-000",
9714
- temp_housing_program: "192-014-000-000-000-000-000",
9715
- hotel_motel_non_shelter: "192-015-000-000-000-000-000",
9716
- own_rent: "192-016-000-000-000-000-000",
9717
- with_family_friends: "192-017-000-000-000-000-000",
9718
- other: "192-018-000-000-000-000-000"
9719
- };
9720
- var ServiceAudienceKeys = {
9721
- missingness_root: "045-000-000-000-000-000-000",
9722
- unknown: "045-000-000-000-000-000-001",
9723
- anonymous: "045-000-000-000-000-000-002",
9724
- data_not_collected: "045-000-000-000-000-000-003",
9725
- primary_victim: "045-001-000-000-000-000-000",
9726
- eligible_family_member: "045-002-000-000-000-000-000",
9727
- third_party: "045-003-000-000-000-000-000",
9728
- offender: "045-004-000-000-000-000-000",
9729
- personnel: "045-005-000-000-000-000-000"
9730
- };
9731
- var HmisRelationshipToHohKeys = {
9732
- missingness_root: "129-000-000-000-000-000-000",
9733
- unknown: "129-000-000-000-000-000-001",
9734
- anonymous: "129-000-000-000-000-000-002",
9735
- data_not_collected: "129-000-000-000-000-000-003",
9736
- self_hoh: "129-001-000-000-000-000-000",
9737
- child_of_hoh: "129-002-000-000-000-000-000",
9738
- spouse_or_partner_of_hoh: "129-003-000-000-000-000-000",
9739
- other_relative_of_hoh: "129-004-000-000-000-000-000",
9740
- non_relation_member: "129-005-000-000-000-000-000"
9741
- };
9742
- var VictimAbuseTypesKeys = {
9743
- missingness_root: "073-000-000-000-000-000-000",
9744
- unknown: "073-000-000-000-000-000-001",
9745
- anonymous: "073-000-000-000-000-000-002",
9746
- data_not_collected: "073-000-000-000-000-000-003",
9747
- adult_physical_assault: "073-001-000-000-000-000-000",
9748
- adult_sexual_assault: "073-002-000-000-000-000-000",
9749
- arson: "073-003-000-000-000-000-000",
9750
- bullying: "073-004-000-000-000-000-000",
9751
- burglary: "073-005-000-000-000-000-000",
9752
- child_physical_abuse_or_neglect: "073-006-000-000-000-000-000",
9753
- child_pornography: "073-007-000-000-000-000-000",
9754
- child_sexual_abuse_assault: "073-008-000-000-000-000-000",
9755
- domestic_and_or_family_violence: "073-009-000-000-000-000-000",
9756
- dui_dwi_incidents: "073-010-000-000-000-000-000",
9757
- elder_abuse: "073-011-000-000-000-000-000",
9758
- gang_violence: "073-012-000-000-000-000-000",
9759
- hate_crime: "073-013-000-000-000-000-000",
9760
- homicide: "073-014-000-000-000-000-000",
9761
- identity_theft: "073-015-000-000-000-000-000",
9762
- kidnapping_custodial: "073-016-000-000-000-000-000",
9763
- kidnapping_noncustodial: "073-017-000-000-000-000-000",
9764
- mass_violence: "073-018-000-000-000-000-000",
9765
- other: "073-019-000-000-000-000-000",
9766
- other_vehicular: "073-020-000-000-000-000-000",
9767
- robbery: "073-021-000-000-000-000-000",
9768
- stalking_harassment: "073-022-000-000-000-000-000",
9769
- survivors_of_homicide_victims: "073-023-000-000-000-000-000",
9770
- teen_dating_victimization: "073-024-000-000-000-000-000",
9771
- terrorism: "073-025-000-000-000-000-000"
9772
- };
9773
- var HtTypeKeys = {
9774
- missingness_root: "072-000-000-000-000-000-000",
9775
- unknown: "072-000-000-000-000-000-001",
9776
- anonymous: "072-000-000-000-000-000-002",
9777
- data_not_collected: "072-000-000-000-000-000-003",
9778
- sex: "072-001-000-000-000-000-000",
9779
- labor: "072-002-000-000-000-000-000",
9780
- sex_and_labor: "072-003-000-000-000-000-000",
9781
- none: "072-004-000-000-000-000-000"
9782
- };
9783
- var RelationshipConcernKeys = {
9784
- missingness_root: "231-000-000-000-000-000-000",
9785
- unknown: "231-000-000-000-000-000-001",
9786
- anonymous: "231-000-000-000-000-000-002",
9787
- data_not_collected: "231-000-000-000-000-000-003",
9788
- appears_controlling: "231-001-000-000-000-000-000",
9789
- is_much_older: "231-002-000-000-000-000-000",
9790
- physically_abusive: "231-003-000-000-000-000-000",
9791
- emotionally_abusive: "231-004-000-000-000-000-000",
9792
- has_legal_involvement: "231-005-000-000-000-000-000",
9793
- is_known_trafficker_or_suspect: "231-006-000-000-000-000-000",
9794
- other_concern: "231-007-000-000-000-000-000"
9795
- };
9796
- var RecencyBandKeys = {
9797
- missingness_root: "232-000-000-000-000-000-000",
9798
- unknown: "232-000-000-000-000-000-001",
9799
- anonymous: "232-000-000-000-000-000-002",
9800
- data_not_collected: "232-000-000-000-000-000-003",
9801
- within_3_months: "232-001-000-000-000-000-000",
9802
- months_3_to_6: "232-002-000-000-000-000-000",
9803
- months_6_to_12: "232-003-000-000-000-000-000",
9804
- one_year_or_more: "232-004-000-000-000-000-000",
9805
- years_3_to_10: "232-005-000-000-000-000-000",
9806
- ten_plus_years: "232-006-000-000-000-000-000"
9807
- };
9808
- var HousingSubsidyTypesKeys = {
9809
- missingness_root: "233-000-000-000-000-000-000",
9810
- unknown: "233-000-000-000-000-000-001",
9811
- anonymous: "233-000-000-000-000-000-002",
9812
- data_not_collected: "233-000-000-000-000-000-003",
9813
- housing_choice_voucher: "233-001-000-000-000-000-000",
9814
- public_housing: "233-002-000-000-000-000-000",
9815
- project_based_rental_assistance: "233-003-000-000-000-000-000",
9816
- permanent_supportive_housing: "233-004-000-000-000-000-000",
9817
- rapid_rehousing_assistance: "233-005-000-000-000-000-000",
9818
- other_housing_subsidy: "233-006-000-000-000-000-000",
9819
- no_subsidy: "233-007-000-000-000-000-000",
9820
- va_supportive_housing: "233-008-000-000-000-000-000",
9821
- grant_per_diem_transition_in_place: "233-009-000-000-000-000-000",
9822
- housing_stability_voucher: "233-010-000-000-000-000-000",
9823
- family_unification_program: "233-011-000-000-000-000-000",
9824
- foster_youth_to_independence: "233-012-000-000-000-000-000"
9825
- };
9826
- var AssertionDomainKeys = {
9827
- missingness_root: "964-000-000-000-000-000-000",
9828
- unknown: "964-000-000-000-000-000-001",
9829
- anonymous: "964-000-000-000-000-000-002",
9830
- data_not_collected: "964-000-000-000-000-000-003",
9831
- indicator: "964-001-000-000-000-000-000",
9832
- risk_signal: "964-002-000-000-000-000-000",
9833
- victim_status: "964-003-000-000-000-000-000",
9834
- offender_status: "964-004-000-000-000-000-000",
9835
- domain_determination: "964-005-000-000-000-000-000",
9836
- victimization_or_abuse_type: "964-006-000-000-000-000-000",
9837
- assessment_scale: "964-007-000-000-000-000-000",
9838
- recommended_followup: "964-008-000-000-000-000-000",
9839
- relationship: "964-009-000-000-000-000-000",
9840
- household_relationships: "964-010-000-000-000-000-000",
9841
- relationship_tie: "964-011-000-000-000-000-000",
9842
- relationship_dynamics: "964-012-000-000-000-000-000",
9843
- relationship_status_current: "964-013-000-000-000-000-000",
9844
- marital_status_legal: "964-014-000-000-000-000-000",
9845
- core_profile: "964-015-000-000-000-000-000",
9846
- person_tile: "964-016-000-000-000-000-000",
9847
- person_relationship: "964-017-000-000-000-000-000",
9848
- relevant_people: "964-018-000-000-000-000-000",
9849
- name: "964-019-000-000-000-000-000",
9850
- contact_info: "964-020-000-000-000-000-000",
9851
- address: "964-021-000-000-000-000-000",
9852
- vehicle: "964-022-000-000-000-000-000",
9853
- income_history: "964-023-000-000-000-000-000",
9854
- physical_description: "964-024-000-000-000-000-000",
9855
- living_situation: "964-025-000-000-000-000-000",
9856
- pet: "964-026-000-000-000-000-000",
9857
- protection_order: "964-027-000-000-000-000-000",
9858
- log_entry: "964-028-000-000-000-000-000",
9859
- session_note: "964-029-000-000-000-000-000",
9860
- referral_source: "964-030-000-000-000-000-000",
9861
- org_directory: "964-031-000-000-000-000-000",
9862
- person_directory: "964-032-000-000-000-000-000",
9863
- service_delivery: "964-033-000-000-000-000-000",
9864
- needs_assessment: "964-034-000-000-000-000-000",
9865
- priorities_and_safety: "964-035-000-000-000-000-000",
9866
- share: "964-036-000-000-000-000-000",
9867
- roi: "964-037-000-000-000-000-000",
9868
- external_recipient: "964-038-000-000-000-000-000",
9869
- access_accommodations: "964-039-000-000-000-000-000",
9870
- danger_assessment: "964-040-000-000-000-000-000",
9871
- hope_scale: "964-041-000-000-000-000-000",
9872
- injury_and_strangulation: "964-042-000-000-000-000-000",
9873
- lethality_assessment_program: "964-043-000-000-000-000-000",
9874
- occupational_background: "964-044-000-000-000-000-000",
9875
- household_tenure: "964-045-000-000-000-000-000",
9876
- program_enrollment: "964-046-000-000-000-000-000",
9877
- program_enrollment_exit_wizard: "964-047-000-000-000-000-000",
9878
- goal: "964-048-000-000-000-000-000",
9879
- action_step: "964-049-000-000-000-000-000",
9880
- milestone: "964-050-000-000-000-000-000",
9881
- check_in: "964-051-000-000-000-000-000",
9882
- goal_signature: "964-052-000-000-000-000-000",
9883
- subject_functional_role: "964-053-000-000-000-000-000",
9884
- worker_subrole: "964-054-000-000-000-000-000",
9885
- offender_status_family: "964-055-000-000-000-000-000",
9886
- assessment_rating: "964-056-000-000-000-000-000",
9887
- immigration_legal_status: "964-057-000-000-000-000-000",
9888
- persons_network: "964-058-000-000-000-000-000",
9889
- lifecycle_services: "964-059-000-000-000-000-000",
9890
- juvenile_justice_involvement: "964-060-000-000-000-000-000",
9891
- child_welfare_involvement: "964-061-000-000-000-000-000",
9892
- facilitator_role: "964-062-000-000-000-000-000",
9893
- facilitator_subrole: "964-063-000-000-000-000-000",
9894
- facilitator_entity_type: "964-064-000-000-000-000-000"
9895
- };
9896
- var ActivityTypeKeys = {
9897
- missingness_root: "965-000-000-000-000-000-000",
9898
- unknown: "965-000-000-000-000-000-001",
9899
- anonymous: "965-000-000-000-000-000-002",
9900
- data_not_collected: "965-000-000-000-000-000-003",
9901
- resided: "965-001-000-000-000-000-000",
9902
- sheltered: "965-002-000-000-000-000-000",
9903
- service_delivered: "965-003-000-000-000-000-000",
9904
- met: "965-004-000-000-000-000-000",
9905
- advertised: "965-005-000-000-000-000-000",
9906
- arrested: "965-006-000-000-000-000-000",
9907
- visited: "965-007-000-000-000-000-000",
9908
- child_welfare_visit: "965-008-000-000-000-000-000",
9909
- incident: "965-009-000-000-000-000-000",
9910
- other: "965-010-000-000-000-000-000"
9911
- };
9912
- var ProvenanceSourceIdKeys = {
9913
- missingness_root: "966-000-000-000-000-000-000",
9914
- unknown: "966-000-000-000-000-000-001",
9915
- anonymous: "966-000-000-000-000-000-002",
9916
- data_not_collected: "966-000-000-000-000-000-003",
9917
- client_self_report: "966-001-000-000-000-000-000",
9918
- system_derived_ads: "966-002-000-000-000-000-000",
9919
- system_derived_geocoder: "966-003-000-000-000-000-000",
9920
- staff_observation: "966-004-000-000-000-000-000",
9921
- intake_form: "966-005-000-000-000-000-000",
9922
- referral_partner: "966-006-000-000-000-000-000",
9923
- law_enforcement: "966-007-000-000-000-000-000",
9924
- id_document: "966-008-000-000-000-000-000",
9925
- social_profile: "966-009-000-000-000-000-000"
9926
- };
9927
- var RadiusBucketKeys = {
9928
- missingness_root: "967-000-000-000-000-000-000",
9929
- unknown: "967-000-000-000-000-000-001",
9930
- anonymous: "967-000-000-000-000-000-002",
9931
- data_not_collected: "967-000-000-000-000-000-003",
9932
- 10: "967-001-000-000-000-000-000",
9933
- 50: "967-002-000-000-000-000-000",
9934
- 100: "967-003-000-000-000-000-000",
9935
- 250: "967-004-000-000-000-000-000",
9936
- 500: "967-005-000-000-000-000-000"
9937
- };
9938
- var ContactLinkTypeKeys = {
9939
- missingness_root: "968-000-000-000-000-000-000",
9940
- unknown: "968-000-000-000-000-000-001",
9941
- anonymous: "968-000-000-000-000-000-002",
9942
- data_not_collected: "968-000-000-000-000-000-003",
9943
- belongs: "968-001-000-000-000-000-000",
9944
- associated: "968-002-000-000-000-000-000",
9945
- advertises: "968-003-000-000-000-000-000",
9946
- contacted: "968-004-000-000-000-000-000"
9947
- };
9948
- var SuggestionSourceKeys = {
9949
- missingness_root: "969-000-000-000-000-000-000",
9950
- unknown: "969-000-000-000-000-000-001",
9951
- anonymous: "969-000-000-000-000-000-002",
9952
- data_not_collected: "969-000-000-000-000-000-003",
9953
- lap: "969-001-000-000-000-000-000",
9954
- ps_step_4: "969-002-000-000-000-000-000"
9955
- };
9956
- var RoiMethodKeys = {
9957
- missingness_root: "970-000-000-000-000-000-000",
9958
- unknown: "970-000-000-000-000-000-001",
9959
- anonymous: "970-000-000-000-000-000-002",
9960
- data_not_collected: "970-000-000-000-000-000-003",
9961
- thread_caseshare: "970-001-000-000-000-000-000",
9962
- thread_magic_link: "970-002-000-000-000-000-000",
9963
- email: "970-003-000-000-000-000-000",
9964
- fax: "970-004-000-000-000-000-000",
9965
- secure_portal: "970-005-000-000-000-000-000",
9966
- in_person: "970-006-000-000-000-000-000"
9967
- };
9968
- var SessionNoteVisibilityKeys = {
9969
- missingness_root: "971-000-000-000-000-000-000",
9970
- unknown: "971-000-000-000-000-000-001",
9971
- anonymous: "971-000-000-000-000-000-002",
9972
- data_not_collected: "971-000-000-000-000-000-003",
9973
- default: "971-001-000-000-000-000-000",
9974
- account: "971-002-000-000-000-000-000",
9975
- private: "971-003-000-000-000-000-000"
9976
- };
9977
9642
 
9978
9643
  // src/services/cvcRegistryService.ts
9979
9644
  var import_mongoose10 = require("mongoose");
@@ -12512,9 +12177,7 @@ var serviceStates_v1_0_0_default = {
12512
12177
  "049-007-001-000-000-000-000",
12513
12178
  "049-007-002-000-000-000-000",
12514
12179
  "049-007-003-000-000-000-000",
12515
- "049-007-004-000-000-000-000",
12516
- "049-007-005-000-000-000-000",
12517
- "049-007-006-000-000-000-000"
12180
+ "049-007-004-000-000-000-000"
12518
12181
  ],
12519
12182
  definition: "Program could not provide the service."
12520
12183
  },
@@ -12554,26 +12217,6 @@ var serviceStates_v1_0_0_default = {
12554
12217
  childCodes: [],
12555
12218
  definition: "Program could not provide the Service for a reason other than eligibility, capacity, or resources."
12556
12219
  },
12557
- {
12558
- code: "049-007-005-000-000-000-000",
12559
- key: "unable_to_provide_service_fit",
12560
- title: "Unable due to service fit",
12561
- selectable: true,
12562
- parentCode: "049-007-000-000-000-000-000",
12563
- childCodes: [],
12564
- definition: "Program's services were not an appropriate fit for the client's presenting needs.",
12565
- provisional: true
12566
- },
12567
- {
12568
- code: "049-007-006-000-000-000-000",
12569
- key: "unable_to_provide_access_barrier",
12570
- title: "Unable due to access barrier",
12571
- selectable: true,
12572
- parentCode: "049-007-000-000-000-000-000",
12573
- childCodes: [],
12574
- definition: "An access barrier (e.g. language, transportation, location, hours, technology) prevented service delivery.",
12575
- provisional: true
12576
- },
12577
12220
  {
12578
12221
  code: "049-000-000-000-000-000-000",
12579
12222
  key: "missingness_root",
@@ -17383,15 +17026,6 @@ var highestEducationLevelCompleted_v1_0_0_default = {
17383
17026
  childCodes: [],
17384
17027
  definition: "Completed a master's, doctoral, or professional degree (MA, MS, MBA, JD, MD, PhD, or equivalent). Aligns with Census/ACS 'Graduate or professional degree'."
17385
17028
  },
17386
- {
17387
- code: "180-008-000-000-000-000-000",
17388
- key: "trade_vocational",
17389
- title: "Trade or vocational credential",
17390
- selectable: true,
17391
- parentCode: null,
17392
- childCodes: [],
17393
- definition: "Completed a trade, vocational, or technical credential (apprenticeship, licensure, or postsecondary non-degree award) rather than an academic degree."
17394
- },
17395
17029
  {
17396
17030
  code: "180-000-000-000-000-000-000",
17397
17031
  key: "missingness_root",
@@ -21091,8 +20725,7 @@ var incomeBenefitsSources_v1_0_0_default = {
21091
20725
  selectable: false,
21092
20726
  parentCode: null,
21093
20727
  childCodes: [
21094
- "171-001-001-000-000-000-000",
21095
- "171-001-002-000-000-000-000"
20728
+ "171-001-001-000-000-000-000"
21096
20729
  ],
21097
20730
  definition: "Income from wages, salary, tips, gig/contract work, or other paid employment."
21098
20731
  },
@@ -21105,15 +20738,6 @@ var incomeBenefitsSources_v1_0_0_default = {
21105
20738
  childCodes: [],
21106
20739
  definition: "Income from wages, salary, tips, gig/contract work, or other paid employment. Includes informal earned income that is not supported by official documentation."
21107
20740
  },
21108
- {
21109
- code: "171-001-002-000-000-000-000",
21110
- key: "informal_income",
21111
- title: "Informal / undocumented income",
21112
- selectable: true,
21113
- parentCode: "171-001-000-000-000-000-000",
21114
- childCodes: [],
21115
- definition: "Informal or undocumented income, e.g. cash work or side activity not captured by formal employment or a benefit program."
21116
- },
21117
20741
  {
21118
20742
  code: "171-002-000-000-000-000-000",
21119
20743
  key: "cash_benefit",
@@ -21362,8 +20986,7 @@ var incomeBenefitsSources_v1_0_0_default = {
21362
20986
  parentCode: null,
21363
20987
  childCodes: [
21364
20988
  "171-004-001-000-000-000-000",
21365
- "171-004-002-000-000-000-000",
21366
- "171-004-003-000-000-000-000"
20989
+ "171-004-002-000-000-000-000"
21367
20990
  ],
21368
20991
  definition: "Income received as interpersonal transfers or support payments (e.g., child support, spousal support)."
21369
20992
  },
@@ -21385,15 +21008,6 @@ var incomeBenefitsSources_v1_0_0_default = {
21385
21008
  childCodes: [],
21386
21009
  definition: "All periodic payments received from an ex-spouse as alimony or spousal support. Excludes one-time property settlements."
21387
21010
  },
21388
- {
21389
- code: "171-004-003-000-000-000-000",
21390
- key: "family_friend_support",
21391
- title: "Family / friend financial support",
21392
- selectable: true,
21393
- parentCode: "171-004-000-000-000-000-000",
21394
- childCodes: [],
21395
- definition: "Informal financial support from family or friends, not a documented benefit program."
21396
- },
21397
21011
  {
21398
21012
  code: "171-005-000-000-000-000-000",
21399
21013
  key: "other_unspecified",
@@ -21433,15 +21047,6 @@ var incomeBenefitsSources_v1_0_0_default = {
21433
21047
  parentCode: "171-005-000-000-000-000-000",
21434
21048
  childCodes: [],
21435
21049
  definition: "Income received as a stipend, scholarship refund, training allowance, or other education-related payment that can function as income for living expenses. Funder-specific exclusions may apply (e.g., SSVF)."
21436
- },
21437
- {
21438
- code: "171-006-000-000-000-000-000",
21439
- key: "victim_compensation",
21440
- title: "Crime victim compensation",
21441
- selectable: true,
21442
- parentCode: null,
21443
- childCodes: [],
21444
- definition: "Income or benefits from a state or federal crime-victim compensation program (e.g. VOCA-funded victim compensation)."
21445
21050
  }
21446
21051
  ]
21447
21052
  };
@@ -22300,42 +21905,6 @@ var sourceSubtype_v1_1_0_default = {
22300
21905
  parentCode: null,
22301
21906
  childCodes: [],
22302
21907
  definition: "The subject directly discloses the information. Source category: human. Use when the primary origin is the subject's own account (interview, intake, assessment)."
22303
- },
22304
- {
22305
- code: "141-032-000-000-000-000-000",
22306
- key: "advocate_capture",
22307
- title: "Advocate capture",
22308
- selectable: true,
22309
- parentCode: null,
22310
- childCodes: [],
22311
- definition: "Value captured or entered directly by an advocate in a PAVE capture surface (default advocate-authored subtype). Source category: human."
22312
- },
22313
- {
22314
- code: "141-033-000-000-000-000-000",
22315
- key: "advocate_assessment",
22316
- title: "Advocate assessment",
22317
- selectable: true,
22318
- parentCode: null,
22319
- childCodes: [],
22320
- definition: "Advocate structured assessment or functional-role judgment recorded in a PAVE surface (distinct from raw advocate_capture). Source category: human."
22321
- },
22322
- {
22323
- code: "141-034-000-000-000-000-000",
22324
- key: "child_welfare_episode_edit",
22325
- title: "Child welfare episode edit",
22326
- selectable: true,
22327
- parentCode: null,
22328
- childCodes: [],
22329
- definition: "Advocate add/update/archive of a child-welfare system-involvement episode log (assertion_domain child_welfare_involvement). Source category: human."
22330
- },
22331
- {
22332
- code: "141-035-000-000-000-000-000",
22333
- key: "juvenile_justice_episode_edit",
22334
- title: "Juvenile justice episode edit",
22335
- selectable: true,
22336
- parentCode: null,
22337
- childCodes: [],
22338
- definition: "Advocate add/update/archive of a juvenile-justice system-involvement episode log (assertion_domain juvenile_justice_involvement). Source category: human."
22339
21908
  }
22340
21909
  ]
22341
21910
  };
@@ -22799,24 +22368,6 @@ var verificationMethod_v1_0_0_default = {
22799
22368
  parentCode: null,
22800
22369
  childCodes: [],
22801
22370
  definition: "A supervisor (or designated reviewer) reviewed the assertion and marked it verified under an operational review process. Use when verification is granted via human review workflow. Pair with verified_by_user_id and verified_at, and capture any required support_strength policy. Not equivalent to legal confirmation; scope is operational."
22802
- },
22803
- {
22804
- code: "143-006-000-000-000-000-000",
22805
- key: "rules",
22806
- title: "Rules / algorithm match",
22807
- selectable: true,
22808
- parentCode: null,
22809
- childCodes: [],
22810
- definition: "Verification via a deterministic rule or algorithm match (GDR \xA75.7 \u2014 system-derived)."
22811
- },
22812
- {
22813
- code: "143-007-000-000-000-000-000",
22814
- key: "still_reaches",
22815
- title: "Still reaches",
22816
- selectable: true,
22817
- parentCode: null,
22818
- childCodes: [],
22819
- definition: "Verification that the contact or relationship still reaches / is live (GDR \xA75.7 liveness confirmation)."
22820
22371
  }
22821
22372
  ]
22822
22373
  };
@@ -29655,24 +29206,6 @@ var identificationStatus_v1_0_0_default = {
29655
29206
  parentCode: null,
29656
29207
  childCodes: [],
29657
29208
  definition: "Advocate's deliberate choice to keep the person's name off the subject's record even when known (privacy / safety / legal-strategy reasons), or when documenting the name would risk the survivor or third party. Pairs with Name kind 'Anonymous'. This is a capture-intent posture, distinct from the missingness 'anonymous' sentinel."
29658
- },
29659
- {
29660
- code: "929-004-000-000-000-000-000",
29661
- key: "estimated_persona",
29662
- title: "Estimated persona",
29663
- selectable: true,
29664
- parentCode: null,
29665
- childCodes: [],
29666
- definition: "A persona that exists in data/systems (resolved _id with linked source records) but has NOT been confirmed to represent a real person. Typically inferred (entity resolution / algorithm-clustered ads); maps 1:1 to the LEADS IDB 'not verified' icon. An estimated_persona record must never render as an identified person. Added 2026-06-12 per ruling M3 (Terry) so the platform-milestone IDENTIFICATION value maps exactly; RENAMED that day from the prototype's working code SYSTEM_ENTITY to avoid collision with facilitator_entity_type. Previously approximated as unidentified."
29667
- },
29668
- {
29669
- code: "929-005-000-000-000-000-000",
29670
- key: "confirmed",
29671
- title: "Confirmed (identity unknown)",
29672
- selectable: true,
29673
- parentCode: null,
29674
- childCodes: [],
29675
- definition: "Confirmed to be a real person, but the specific identity is unknown \u2014 the 'real person, identity unknown' degree that sat between unidentified and identified with no code before 2026-06-12 (ruling M3). Distinct from unidentified (capture intent: known-of via relationship, no name) in that confirmation is an explicit analyst/advocate determination that the entity is real."
29676
29209
  }
29677
29210
  ]
29678
29211
  };
@@ -33027,1175 +32560,236 @@ var visaType_v1_0_0_default = {
33027
32560
  ]
33028
32561
  };
33029
32562
 
33030
- // src/cvcs/livingSituation.v1.0.0.json
33031
- var livingSituation_v1_0_0_default = {
33032
- domain: "living_situation",
33033
- name: "Core Living Situation",
33034
- version: "1.0.0",
33035
- levels: {
33036
- "0": "Unknown or Missing",
33037
- "1": "Living situation"
33038
- },
33039
- entries: [
33040
- {
33041
- code: "192-000-000-000-000-000-000",
33042
- key: "missingness_root",
33043
- title: "Unknown, Redacted, or Missing",
33044
- selectable: false,
33045
- parentCode: null,
33046
- childCodes: [
33047
- "192-000-000-000-000-000-001",
33048
- "192-000-000-000-000-000-002",
33049
- "192-000-000-000-000-000-003"
33050
- ],
33051
- definition: "Root group for values indicating absent, withheld, or uncollected data."
33052
- },
33053
- {
33054
- code: "192-000-000-000-000-000-001",
33055
- key: "unknown",
33056
- title: "Unknown / not captured",
33057
- selectable: true,
33058
- parentCode: "192-000-000-000-000-000-000",
33059
- childCodes: [],
33060
- definition: "Living situation is unknown or cannot be determined from the available information."
33061
- },
33062
- {
33063
- code: "192-000-000-000-000-000-002",
33064
- key: "anonymous",
33065
- title: "Anonymous / declined to answer",
33066
- selectable: true,
33067
- parentCode: "192-000-000-000-000-000-000",
33068
- childCodes: [],
33069
- definition: "Living situation may be withheld by preference or due to redaction; identity is anonymous or redacted."
33070
- },
33071
- {
33072
- code: "192-000-000-000-000-000-003",
33073
- key: "data_not_collected",
33074
- title: "Data not collected",
33075
- selectable: true,
33076
- parentCode: "192-000-000-000-000-000-000",
33077
- childCodes: [],
33078
- definition: "No attempt was made to collect the living situation."
33079
- },
33080
- {
33081
- code: "192-001-000-000-000-000-000",
33082
- key: "unsheltered",
33083
- title: "Unsheltered / place not meant for habitation",
33084
- selectable: true,
33085
- parentCode: null,
33086
- childCodes: [],
33087
- definition: "Place not meant for human habitation (e.g., a vehicle, abandoned building, bus/train/subway station, airport, or anywhere outside). Literally homeless per HUD's homelessness definition."
33088
- },
33089
- {
33090
- code: "192-002-000-000-000-000-000",
33091
- key: "emergency_shelter",
33092
- title: "Emergency shelter",
33093
- selectable: true,
33094
- parentCode: null,
33095
- childCodes: [],
33096
- definition: "Emergency shelter, including hotel or motel paid for with an emergency shelter voucher, or Host Home shelter. Literally homeless per HUD's homelessness definition."
33097
- },
33098
- {
33099
- code: "192-003-000-000-000-000-000",
33100
- key: "safe_haven",
33101
- title: "Safe Haven",
33102
- selectable: true,
33103
- parentCode: null,
33104
- childCodes: [],
33105
- definition: "Safe Haven program for hard-to-serve individuals. Literally homeless per HUD's homelessness definition."
33106
- },
33107
- {
33108
- code: "192-004-000-000-000-000-000",
33109
- key: "dv_shelter_safe_house",
33110
- title: "Domestic violence shelter / safe house",
33111
- selectable: true,
33112
- parentCode: null,
33113
- childCodes: [],
33114
- definition: "Domestic violence shelter, safe house, or other confidential residential program serving survivors of intimate-partner / domestic violence."
33115
- },
33116
- {
33117
- code: "192-005-000-000-000-000-000",
33118
- key: "homeless_unspecified",
33119
- title: "Homeless (not sure where staying)",
33120
- selectable: true,
33121
- parentCode: null,
33122
- childCodes: [],
33123
- definition: "The person is homeless but the specific type of homeless situation is not known or not specified."
33124
- },
33125
- {
33126
- code: "192-006-000-000-000-000-000",
33127
- key: "hospital_medical",
33128
- title: "Hospital / medical facility",
33129
- selectable: true,
33130
- parentCode: null,
33131
- childCodes: [],
33132
- definition: "Hospital or other residential non-psychiatric medical facility. Institutional situation."
33133
- },
33134
- {
33135
- code: "192-007-000-000-000-000-000",
33136
- key: "psychiatric_residential_facility",
33137
- title: "Psychiatric facility",
33138
- selectable: true,
33139
- parentCode: null,
33140
- childCodes: [],
33141
- definition: "Psychiatric hospital or other psychiatric residential facility. Institutional situation."
33142
- },
33143
- {
33144
- code: "192-008-000-000-000-000-000",
33145
- key: "substance_use_treatment_residential",
33146
- title: "Substance use treatment / detox facility",
33147
- selectable: true,
33148
- parentCode: null,
33149
- childCodes: [],
33150
- definition: "Substance use treatment center or detox facility (residential). Institutional situation."
33151
- },
33152
- {
33153
- code: "192-009-000-000-000-000-000",
33154
- key: "incarcerated",
33155
- title: "Jail, prison, or detention facility",
33156
- selectable: true,
33157
- parentCode: null,
33158
- childCodes: [],
33159
- definition: "Jail, prison, or juvenile detention facility. Institutional situation."
33160
- },
33161
- {
33162
- code: "192-010-000-000-000-000-000",
33163
- key: "cw_foster_care",
33164
- title: "Foster care or foster care group home",
33165
- selectable: true,
33166
- parentCode: null,
33167
- childCodes: [],
33168
- definition: "Foster care home or foster care group home under child welfare placement. Institutional situation."
33169
- },
33170
- {
33171
- code: "192-011-000-000-000-000-000",
33172
- key: "cw_kinship",
33173
- title: "Kinship placement under child welfare",
33174
- selectable: true,
33175
- parentCode: null,
33176
- childCodes: [],
33177
- definition: "Kinship care placement under child welfare authority. Institutional situation."
33178
- },
33179
- {
33180
- code: "192-012-000-000-000-000-000",
33181
- key: "long_term_care",
33182
- title: "Long-term care / nursing facility",
33183
- selectable: true,
33184
- parentCode: null,
33185
- childCodes: [],
33186
- definition: "Long-term care facility or nursing home. Institutional situation."
33187
- },
33188
- {
33189
- code: "192-013-000-000-000-000-000",
33190
- key: "transitional_housing_program",
33191
- title: "Transitional housing program",
33192
- selectable: true,
33193
- parentCode: null,
33194
- childCodes: [],
33195
- definition: "Transitional housing program for formerly homeless persons. Temporary housing situation."
33196
- },
33197
- {
33198
- code: "192-014-000-000-000-000-000",
33199
- key: "temp_housing_program",
33200
- title: "Temporary housing program",
33201
- selectable: true,
33202
- parentCode: null,
33203
- childCodes: [],
33204
- definition: "Other temporary housing program (e.g., rapid re-housing, host home, or other time-limited program). Temporary housing situation."
33205
- },
33206
- {
33207
- code: "192-015-000-000-000-000-000",
33208
- key: "hotel_motel_non_shelter",
33209
- title: "Hotel / motel \u2014 non-shelter (no canonical voucher)",
33210
- selectable: true,
33211
- parentCode: null,
33212
- childCodes: [],
33213
- definition: "Hotel or motel paid for without an emergency shelter voucher. Temporary housing situation."
33214
- },
33215
- {
33216
- code: "192-016-000-000-000-000-000",
33217
- key: "own_rent",
33218
- title: "Own or rent home / apartment",
33219
- selectable: true,
33220
- parentCode: null,
33221
- childCodes: [],
33222
- definition: "Rental or owned housing (house, apartment, or room), with or without a subsidy. Permanent housing situation."
33223
- },
33224
- {
33225
- code: "192-017-000-000-000-000-000",
33226
- key: "with_family_friends",
33227
- title: "Staying with family or friends",
33228
- selectable: true,
33229
- parentCode: null,
33230
- childCodes: [],
33231
- definition: "Staying or living in a family member's or friend's room, apartment, or house. Temporary or permanent housing situation depending on tenure."
33232
- },
33233
- {
33234
- code: "192-018-000-000-000-000-000",
33235
- key: "other",
33236
- title: "Other living situation",
33237
- selectable: true,
33238
- parentCode: null,
33239
- childCodes: [],
33240
- definition: "A living situation not covered by the other codes. Requires accompanying free-text explanation; prefer a specific living-situation code whenever one applies."
33241
- }
33242
- ]
33243
- };
33244
-
33245
- // src/cvcs/serviceAudience.v1.0.0.json
33246
- var serviceAudience_v1_0_0_default = {
33247
- domain: "service_audience",
33248
- name: "Core Service Audience",
32563
+ // src/cvcs/recencyBand.v1.0.0.json
32564
+ var recencyBand_v1_0_0_default = {
32565
+ domain: "recency_band",
32566
+ name: "Core Recency Band",
33249
32567
  version: "1.0.0",
33250
32568
  levels: {
33251
32569
  "0": "Unknown or Missing",
33252
- "1": "Service audience"
32570
+ "1": "Recency Band"
33253
32571
  },
33254
32572
  entries: [
33255
32573
  {
33256
- code: "045-000-000-000-000-000-000",
32574
+ code: "137-000-000-000-000-000-000",
33257
32575
  key: "missingness_root",
33258
32576
  title: "Unknown, Redacted, or Missing",
33259
32577
  selectable: false,
33260
32578
  parentCode: null,
33261
32579
  childCodes: [
33262
- "045-000-000-000-000-000-001",
33263
- "045-000-000-000-000-000-002",
33264
- "045-000-000-000-000-000-003"
32580
+ "137-000-000-000-000-000-001",
32581
+ "137-000-000-000-000-000-002",
32582
+ "137-000-000-000-000-000-003",
32583
+ "137-000-000-000-000-000-004"
33265
32584
  ],
33266
32585
  definition: "Root group for values indicating absent, withheld, or uncollected data."
33267
32586
  },
33268
32587
  {
33269
- code: "045-000-000-000-000-000-001",
32588
+ code: "137-000-000-000-000-000-001",
33270
32589
  key: "unknown",
33271
32590
  title: "Unknown",
33272
32591
  selectable: true,
33273
- parentCode: "045-000-000-000-000-000-000",
32592
+ parentCode: "137-000-000-000-000-000-000",
33274
32593
  childCodes: [],
33275
- definition: "The audience for the service is unknown or cannot be determined from the available information."
32594
+ definition: "Value is unknown at time of entry."
33276
32595
  },
33277
32596
  {
33278
- code: "045-000-000-000-000-000-002",
32597
+ code: "137-000-000-000-000-000-002",
33279
32598
  key: "anonymous",
33280
- title: "Anonymous / declined to answer",
32599
+ title: "Anonymous",
33281
32600
  selectable: true,
33282
- parentCode: "045-000-000-000-000-000-000",
32601
+ parentCode: "137-000-000-000-000-000-000",
33283
32602
  childCodes: [],
33284
- definition: "The service audience may be withheld by preference or due to redaction; identity is anonymous or redacted."
32603
+ definition: "Value is intentionally withheld or redacted."
33285
32604
  },
33286
32605
  {
33287
- code: "045-000-000-000-000-000-003",
32606
+ code: "137-000-000-000-000-000-003",
33288
32607
  key: "data_not_collected",
33289
32608
  title: "Data not collected",
33290
32609
  selectable: true,
33291
- parentCode: "045-000-000-000-000-000-000",
33292
- childCodes: [],
33293
- definition: "No attempt was made to collect the service audience."
33294
- },
33295
- {
33296
- code: "045-001-000-000-000-000-000",
33297
- key: "primary_victim",
33298
- title: "Primary victim",
33299
- selectable: true,
33300
- parentCode: null,
32610
+ parentCode: "137-000-000-000-000-000-000",
33301
32611
  childCodes: [],
33302
- definition: "The direct victim / survivor of the crime or victimization who is the primary recipient of the service."
32612
+ definition: "No attempt was made to collect the value."
33303
32613
  },
33304
32614
  {
33305
- code: "045-002-000-000-000-000-000",
33306
- key: "eligible_family_member",
33307
- title: "Eligible family member",
32615
+ code: "137-000-000-000-000-000-004",
32616
+ key: "prefer_not_to_answer",
32617
+ title: "Client prefers not to answer",
33308
32618
  selectable: true,
33309
- parentCode: null,
32619
+ parentCode: "137-000-000-000-000-000-000",
33310
32620
  childCodes: [],
33311
- definition: "A family member of the primary victim who is themselves eligible to receive services (e.g., a secondary victim or dependent)."
32621
+ definition: "Client was offered the opportunity to self-identify and explicitly declined to provide the value."
33312
32622
  },
33313
32623
  {
33314
- code: "045-003-000-000-000-000-000",
33315
- key: "third_party",
33316
- title: "Third party",
32624
+ code: "137-001-000-000-000-000-000",
32625
+ key: "less_than_3_years",
32626
+ title: "Less than 3 years ago",
33317
32627
  selectable: true,
33318
32628
  parentCode: null,
33319
32629
  childCodes: [],
33320
- definition: "A third party who is not the primary victim or an eligible family member but is the recipient of the service (e.g., a witness, bystander, or community contact)."
32630
+ definition: "The asserted event occurred less than 3 years ago."
33321
32631
  },
33322
32632
  {
33323
- code: "045-004-000-000-000-000-000",
33324
- key: "offender",
33325
- title: "Offender",
32633
+ code: "137-002-000-000-000-000-000",
32634
+ key: "months_3_to_6",
32635
+ title: "3-6 months ago",
33326
32636
  selectable: true,
33327
32637
  parentCode: null,
33328
32638
  childCodes: [],
33329
- definition: "A person who is the offender / perpetrator in the relevant context and is the recipient of the service (e.g., diversion or rehabilitative services)."
32639
+ definition: "The asserted event occurred between 3 and 6 months ago."
33330
32640
  },
33331
32641
  {
33332
- code: "045-005-000-000-000-000-000",
33333
- key: "personnel",
33334
- title: "Personnel",
33335
- selectable: true,
33336
- parentCode: null,
33337
- childCodes: [],
33338
- definition: "Agency personnel, staff, volunteers, or other professionals who are the recipients of the service (e.g., training, debriefing, or staff support)."
33339
- }
33340
- ]
33341
- };
33342
-
33343
- // src/cvcs/hmisRelationshipToHoh.v1.0.0.json
33344
- var hmisRelationshipToHoh_v1_0_0_default = {
33345
- domain: "hmis_relationship_to_hoh",
33346
- name: "Core HMIS Relationship to Head of Household",
33347
- version: "1.0.0",
33348
- levels: {
33349
- "0": "Unknown or Missing",
33350
- "1": "Relationship to head of household"
33351
- },
33352
- entries: [
33353
- {
33354
- code: "129-000-000-000-000-000-000",
33355
- key: "missingness_root",
33356
- title: "Unknown, Redacted, or Missing",
33357
- selectable: false,
33358
- parentCode: null,
33359
- childCodes: [
33360
- "129-000-000-000-000-000-001",
33361
- "129-000-000-000-000-000-002",
33362
- "129-000-000-000-000-000-003"
33363
- ],
33364
- definition: "Root group for values indicating absent, withheld, or uncollected data."
33365
- },
33366
- {
33367
- code: "129-000-000-000-000-000-001",
33368
- key: "unknown",
33369
- title: "Unknown / data not collected",
33370
- selectable: true,
33371
- parentCode: "129-000-000-000-000-000-000",
33372
- childCodes: [],
33373
- definition: "Missingness sentinel per HMIS 3.15 (HMIS code 99 is the canonical 'Data not collected'). Used when the relationship-to-anchor does not carry a usable mapping signal or the question has not been asked.",
33374
- hmisCode: 99
33375
- },
33376
- {
33377
- code: "129-000-000-000-000-000-002",
33378
- key: "anonymous",
33379
- title: "Anonymous / declined to answer",
33380
- selectable: true,
33381
- parentCode: "129-000-000-000-000-000-000",
33382
- childCodes: [],
33383
- definition: "The relationship to the head of household may be withheld by preference or due to redaction; identity is anonymous or redacted.",
33384
- hmisCode: null
33385
- },
33386
- {
33387
- code: "129-000-000-000-000-000-003",
33388
- key: "data_not_collected",
33389
- title: "Data not collected",
33390
- selectable: true,
33391
- parentCode: "129-000-000-000-000-000-000",
33392
- childCodes: [],
33393
- definition: "No attempt was made to collect the relationship to the head of household.",
33394
- hmisCode: 99
33395
- },
33396
- {
33397
- code: "129-001-000-000-000-000-000",
33398
- key: "self_hoh",
33399
- title: "Self - head of household",
32642
+ code: "137-003-000-000-000-000-000",
32643
+ key: "months_6_to_12",
32644
+ title: "6-12 months ago",
33400
32645
  selectable: true,
33401
32646
  parentCode: null,
33402
32647
  childCodes: [],
33403
- definition: "The person IS the head of household. Canonical 'self' code for HMIS reporting; every household has exactly one HoH per HMIS 3.15.",
33404
- hmisCode: 1
32648
+ definition: "The asserted event occurred between 6 and 12 months ago."
33405
32649
  },
33406
32650
  {
33407
- code: "129-002-000-000-000-000-000",
33408
- key: "child_of_hoh",
33409
- title: "Head of household's child",
32651
+ code: "137-004-000-000-000-000-000",
32652
+ key: "one_year_or_more",
32653
+ title: "One year or more",
33410
32654
  selectable: true,
33411
32655
  parentCode: null,
33412
32656
  childCodes: [],
33413
- definition: "Member is a biological / adopted / step / foster / kinship child of the head of household. HMIS treats all child relationships as the same code.",
33414
- hmisCode: 2
32657
+ definition: "The asserted event occurred one year or more ago (without further granularity)."
33415
32658
  },
33416
32659
  {
33417
- code: "129-003-000-000-000-000-000",
33418
- key: "spouse_or_partner_of_hoh",
33419
- title: "Head of household's spouse or partner",
32660
+ code: "137-005-000-000-000-000-000",
32661
+ key: "ten_plus_years",
32662
+ title: "10+ years ago",
33420
32663
  selectable: true,
33421
32664
  parentCode: null,
33422
32665
  childCodes: [],
33423
- definition: "Member is the spouse or romantic partner of the head of household. HMIS 3.15 'partner' explicitly covers unmarried domestic partners.",
33424
- hmisCode: 3
32666
+ definition: "The asserted event occurred 10 or more years ago."
33425
32667
  },
33426
32668
  {
33427
- code: "129-004-000-000-000-000-000",
33428
- key: "other_relative_of_hoh",
33429
- title: "Head of household's other relation",
32669
+ code: "137-006-000-000-000-000-000",
32670
+ key: "within_3_months",
32671
+ title: "Within past 3 months",
33430
32672
  selectable: true,
33431
32673
  parentCode: null,
33432
32674
  childCodes: [],
33433
- definition: "Member is a family relation OTHER than spouse/partner or child (e.g., parent, sibling, grandparent, aunt/uncle, cousin, in-law). HMIS 3.15 collapses all non-spouse / non-child family ties into this single code.",
33434
- hmisCode: 4
32675
+ definition: "The asserted event occurred within the past 3 months."
33435
32676
  },
33436
32677
  {
33437
- code: "129-005-000-000-000-000-000",
33438
- key: "non_relation_member",
33439
- title: "Other: non-relation member",
32678
+ code: "137-007-000-000-000-000-000",
32679
+ key: "years_3_to_10",
32680
+ title: "3-10 years ago",
33440
32681
  selectable: true,
33441
32682
  parentCode: null,
33442
32683
  childCodes: [],
33443
- definition: "Member shares the household but is not a family relation (e.g., roommate, housemate, friend, live-in caregiver, au pair, boarder).",
33444
- hmisCode: 5
32684
+ definition: "The asserted event occurred between 3 and 10 years ago."
33445
32685
  }
33446
32686
  ]
33447
32687
  };
33448
32688
 
33449
- // src/cvcs/victimAbuseTypes.v1.0.0.json
33450
- var victimAbuseTypes_v1_0_0_default = {
33451
- domain: "victim_abuse_types",
33452
- name: "Core Victim Abuse Types",
32689
+ // src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json
32690
+ var juvenileJusticeEpisodeType_v1_0_0_default = {
32691
+ domain: "juvenile_justice_episode_type",
32692
+ name: "Core Juvenile Justice Episode Type",
33453
32693
  version: "1.0.0",
33454
32694
  levels: {
33455
32695
  "0": "Unknown or Missing",
33456
- "1": "Abuse / victimization type"
32696
+ "1": "Episode Type"
33457
32697
  },
33458
32698
  entries: [
33459
32699
  {
33460
- code: "073-000-000-000-000-000-000",
32700
+ code: "197-000-000-000-000-000-000",
33461
32701
  key: "missingness_root",
33462
32702
  title: "Unknown, Redacted, or Missing",
33463
32703
  selectable: false,
33464
32704
  parentCode: null,
33465
32705
  childCodes: [
33466
- "073-000-000-000-000-000-001",
33467
- "073-000-000-000-000-000-002",
33468
- "073-000-000-000-000-000-003"
32706
+ "197-000-000-000-000-000-001",
32707
+ "197-000-000-000-000-000-002",
32708
+ "197-000-000-000-000-000-003"
33469
32709
  ],
33470
32710
  definition: "Root group for values indicating absent, withheld, or uncollected data."
33471
32711
  },
33472
32712
  {
33473
- code: "073-000-000-000-000-000-001",
32713
+ code: "197-000-000-000-000-000-001",
33474
32714
  key: "unknown",
33475
32715
  title: "Unknown",
33476
32716
  selectable: true,
33477
- parentCode: "073-000-000-000-000-000-000",
32717
+ parentCode: "197-000-000-000-000-000-000",
33478
32718
  childCodes: [],
33479
- definition: "The abuse / victimization type is unknown or cannot be determined from the available information."
33480
- },
33481
- {
33482
- code: "073-000-000-000-000-000-002",
33483
- key: "anonymous",
33484
- title: "Anonymous / declined to answer",
33485
- selectable: true,
33486
- parentCode: "073-000-000-000-000-000-000",
33487
- childCodes: [],
33488
- definition: "The abuse / victimization type may be withheld by preference or due to redaction; identity is anonymous or redacted."
33489
- },
33490
- {
33491
- code: "073-000-000-000-000-000-003",
33492
- key: "data_not_collected",
33493
- title: "Data not collected",
33494
- selectable: true,
33495
- parentCode: "073-000-000-000-000-000-000",
33496
- childCodes: [],
33497
- definition: "No attempt was made to collect the abuse / victimization type."
33498
- },
33499
- {
33500
- code: "073-001-000-000-000-000-000",
33501
- key: "adult_physical_assault",
33502
- title: "Adult Physical Assault (includes Aggravated and Simple Assault)",
33503
- selectable: true,
33504
- parentCode: null,
33505
- childCodes: [],
33506
- definition: "Adult physical assault, including aggravated and simple assault."
33507
- },
33508
- {
33509
- code: "073-002-000-000-000-000-000",
33510
- key: "adult_sexual_assault",
33511
- title: "Adult Sexual Assault",
33512
- selectable: true,
33513
- parentCode: null,
33514
- childCodes: [],
33515
- definition: "Adult sexual assault."
33516
- },
33517
- {
33518
- code: "073-003-000-000-000-000-000",
33519
- key: "arson",
33520
- title: "Arson",
33521
- selectable: true,
33522
- parentCode: null,
33523
- childCodes: [],
33524
- definition: "Arson."
33525
- },
33526
- {
33527
- code: "073-004-000-000-000-000-000",
33528
- key: "bullying",
33529
- title: "Bullying (Verbal, Cyber, or Physical)",
33530
- selectable: true,
33531
- parentCode: null,
33532
- childCodes: [],
33533
- definition: "Bullying, including verbal, cyber, or physical bullying."
33534
- },
33535
- {
33536
- code: "073-005-000-000-000-000-000",
33537
- key: "burglary",
33538
- title: "Burglary",
33539
- selectable: true,
33540
- parentCode: null,
33541
- childCodes: [],
33542
- definition: "Burglary."
33543
- },
33544
- {
33545
- code: "073-006-000-000-000-000-000",
33546
- key: "child_physical_abuse_or_neglect",
33547
- title: "Child Physical Abuse or Neglect",
33548
- selectable: true,
33549
- parentCode: null,
33550
- childCodes: [],
33551
- definition: "Child physical abuse or neglect."
33552
- },
33553
- {
33554
- code: "073-007-000-000-000-000-000",
33555
- key: "child_pornography",
33556
- title: "Child Pornography",
33557
- selectable: true,
33558
- parentCode: null,
33559
- childCodes: [],
33560
- definition: "Child pornography."
33561
- },
33562
- {
33563
- code: "073-008-000-000-000-000-000",
33564
- key: "child_sexual_abuse_assault",
33565
- title: "Child Sexual Abuse / Assault",
33566
- selectable: true,
33567
- parentCode: null,
33568
- childCodes: [],
33569
- definition: "Child sexual abuse or assault."
33570
- },
33571
- {
33572
- code: "073-009-000-000-000-000-000",
33573
- key: "domestic_and_or_family_violence",
33574
- title: "Domestic and/or Family Violence",
33575
- selectable: true,
33576
- parentCode: null,
33577
- childCodes: [],
33578
- definition: "Domestic and/or family violence."
33579
- },
33580
- {
33581
- code: "073-010-000-000-000-000-000",
33582
- key: "dui_dwi_incidents",
33583
- title: "DUI / DWI Incidents",
33584
- selectable: true,
33585
- parentCode: null,
33586
- childCodes: [],
33587
- definition: "Driving under the influence (DUI) / driving while intoxicated (DWI) incidents."
33588
- },
33589
- {
33590
- code: "073-011-000-000-000-000-000",
33591
- key: "elder_abuse",
33592
- title: "Elder Abuse or Neglect (Physical or Emotional)",
33593
- selectable: true,
33594
- parentCode: null,
33595
- childCodes: [],
33596
- definition: "Elder abuse or neglect, physical or emotional."
33597
- },
33598
- {
33599
- code: "073-012-000-000-000-000-000",
33600
- key: "gang_violence",
33601
- title: "Gang Violence",
33602
- selectable: true,
33603
- parentCode: null,
33604
- childCodes: [],
33605
- definition: "Gang violence."
33606
- },
33607
- {
33608
- code: "073-013-000-000-000-000-000",
33609
- key: "hate_crime",
33610
- title: "Hate Crime",
33611
- selectable: true,
33612
- parentCode: null,
33613
- childCodes: [],
33614
- definition: "Hate crime."
33615
- },
33616
- {
33617
- code: "073-014-000-000-000-000-000",
33618
- key: "homicide",
33619
- title: "Homicide",
33620
- selectable: true,
33621
- parentCode: null,
33622
- childCodes: [],
33623
- definition: "Homicide."
33624
- },
33625
- {
33626
- code: "073-015-000-000-000-000-000",
33627
- key: "identity_theft",
33628
- title: "Identity Theft / Fraud / Financial Crime",
33629
- selectable: true,
33630
- parentCode: null,
33631
- childCodes: [],
33632
- definition: "Identity theft, fraud, or financial crime."
33633
- },
33634
- {
33635
- code: "073-016-000-000-000-000-000",
33636
- key: "kidnapping_custodial",
33637
- title: "Kidnapping (Custodial)",
33638
- selectable: true,
33639
- parentCode: null,
33640
- childCodes: [],
33641
- definition: "Custodial kidnapping."
33642
- },
33643
- {
33644
- code: "073-017-000-000-000-000-000",
33645
- key: "kidnapping_noncustodial",
33646
- title: "Kidnapping (Noncustodial)",
33647
- selectable: true,
33648
- parentCode: null,
33649
- childCodes: [],
33650
- definition: "Noncustodial kidnapping."
33651
- },
33652
- {
33653
- code: "073-018-000-000-000-000-000",
33654
- key: "mass_violence",
33655
- title: "Mass Violence (Domestic / International)",
33656
- selectable: true,
33657
- parentCode: null,
33658
- childCodes: [],
33659
- definition: "Mass violence, domestic or international."
33660
- },
33661
- {
33662
- code: "073-019-000-000-000-000-000",
33663
- key: "other",
33664
- title: "Other",
33665
- selectable: true,
33666
- parentCode: null,
33667
- childCodes: [],
33668
- definition: "An abuse / victimization type not covered by the other codes. Requires accompanying free-text explanation; prefer a specific code whenever one applies."
33669
- },
33670
- {
33671
- code: "073-020-000-000-000-000-000",
33672
- key: "other_vehicular",
33673
- title: "Other Vehicular Victimization",
33674
- selectable: true,
33675
- parentCode: null,
33676
- childCodes: [],
33677
- definition: "Other vehicular victimization."
33678
- },
33679
- {
33680
- code: "073-021-000-000-000-000-000",
33681
- key: "robbery",
33682
- title: "Robbery",
33683
- selectable: true,
33684
- parentCode: null,
33685
- childCodes: [],
33686
- definition: "Robbery."
33687
- },
33688
- {
33689
- code: "073-022-000-000-000-000-000",
33690
- key: "stalking_harassment",
33691
- title: "Stalking / Harassment",
33692
- selectable: true,
33693
- parentCode: null,
33694
- childCodes: [],
33695
- definition: "Stalking or harassment."
33696
- },
33697
- {
33698
- code: "073-023-000-000-000-000-000",
33699
- key: "survivors_of_homicide_victims",
33700
- title: "Survivors of Homicide Victims",
33701
- selectable: true,
33702
- parentCode: null,
33703
- childCodes: [],
33704
- definition: "Survivors of homicide victims."
33705
- },
33706
- {
33707
- code: "073-024-000-000-000-000-000",
33708
- key: "teen_dating_victimization",
33709
- title: "Teen Dating Victimization",
33710
- selectable: true,
33711
- parentCode: null,
33712
- childCodes: [],
33713
- definition: "Teen dating victimization."
33714
- },
33715
- {
33716
- code: "073-025-000-000-000-000-000",
33717
- key: "terrorism",
33718
- title: "Terrorism (Domestic / International)",
33719
- selectable: true,
33720
- parentCode: null,
33721
- childCodes: [],
33722
- definition: "Terrorism, domestic or international."
33723
- }
33724
- ]
33725
- };
33726
-
33727
- // src/cvcs/htType.v1.0.0.json
33728
- var htType_v1_0_0_default = {
33729
- domain: "ht_type",
33730
- name: "Core Human Trafficking Type",
33731
- version: "1.0.0",
33732
- levels: {
33733
- "0": "Unknown or Missing",
33734
- "1": "Trafficking type"
33735
- },
33736
- entries: [
33737
- {
33738
- code: "072-000-000-000-000-000-000",
33739
- key: "missingness_root",
33740
- title: "Unknown, Redacted, or Missing",
33741
- selectable: false,
33742
- parentCode: null,
33743
- childCodes: [
33744
- "072-000-000-000-000-000-001",
33745
- "072-000-000-000-000-000-002",
33746
- "072-000-000-000-000-000-003"
33747
- ],
33748
- definition: "Root group for values indicating absent, withheld, or uncollected data."
33749
- },
33750
- {
33751
- code: "072-000-000-000-000-000-001",
33752
- key: "unknown",
33753
- title: "Unknown",
33754
- selectable: true,
33755
- parentCode: "072-000-000-000-000-000-000",
33756
- childCodes: [],
33757
- definition: "The trafficking type is unknown or cannot be determined from the available information."
33758
- },
33759
- {
33760
- code: "072-000-000-000-000-000-002",
33761
- key: "anonymous",
33762
- title: "Anonymous / declined to answer",
33763
- selectable: true,
33764
- parentCode: "072-000-000-000-000-000-000",
33765
- childCodes: [],
33766
- definition: "The trafficking type may be withheld by preference or due to redaction; identity is anonymous or redacted."
33767
- },
33768
- {
33769
- code: "072-000-000-000-000-000-003",
33770
- key: "data_not_collected",
33771
- title: "Data not collected",
33772
- selectable: true,
33773
- parentCode: "072-000-000-000-000-000-000",
33774
- childCodes: [],
33775
- definition: "No attempt was made to collect the trafficking type."
33776
- },
33777
- {
33778
- code: "072-001-000-000-000-000-000",
33779
- key: "sex",
33780
- title: "Sex Trafficking",
33781
- selectable: true,
33782
- parentCode: null,
33783
- childCodes: [],
33784
- definition: "Sex trafficking victimization. Commercial sex acts induced by force, fraud, or coercion, or involving a minor, as asserted by the source at their stated confidence level."
33785
- },
33786
- {
33787
- code: "072-002-000-000-000-000-000",
33788
- key: "labor",
33789
- title: "Labor Trafficking",
33790
- selectable: true,
33791
- parentCode: null,
33792
- childCodes: [],
33793
- definition: "Labor trafficking victimization. Forced labor or services obtained through force, fraud, or coercion, as asserted by the source at their stated confidence level."
33794
- },
33795
- {
33796
- code: "072-003-000-000-000-000-000",
33797
- key: "sex_and_labor",
33798
- title: "Sex and Labor Trafficking",
33799
- selectable: true,
33800
- parentCode: null,
33801
- childCodes: [],
33802
- definition: "Both sex trafficking and labor trafficking are asserted to apply, either concurrently or across the relevant time window. Use when credible assertions exist for both sex and labor trafficking for the same subject / time context."
33803
- },
33804
- {
33805
- code: "072-004-000-000-000-000-000",
33806
- key: "none",
33807
- title: "None",
33808
- selectable: true,
33809
- parentCode: null,
33810
- childCodes: [],
33811
- definition: "No trafficking type asserted \u2014 an explicit NEGATIVE determination rather than a trafficking type. The picker surfaces `none` alongside the substantive codes (sex / labor / sex_and_labor) so an advocate can assert 'this person is not a trafficking victim of any specific type.' Pair with victim_status_family = no_indication when the negative determination spans the victim assertion. Canonical per Crysta directive 2026-05-27 (core_ht_type.yaml), which overrides the 2026-04-26 bundle's prior 'remove None from canonical' recommendation."
33812
- }
33813
- ]
33814
- };
33815
-
33816
- // src/cvcs/relationshipConcern.v1.0.0.json
33817
- var relationshipConcern_v1_0_0_default = {
33818
- domain: "relationship_concern",
33819
- name: "Core Relationship Concern (PROVISIONAL CVC-231 \u2014 pending codebook ratification)",
33820
- version: "1.0.0",
33821
- levels: {
33822
- "0": "Unknown or Missing",
33823
- "1": "Relationship concern"
33824
- },
33825
- entries: [
33826
- {
33827
- code: "231-000-000-000-000-000-000",
33828
- key: "missingness_root",
33829
- title: "Unknown, Redacted, or Missing",
33830
- selectable: false,
33831
- parentCode: null,
33832
- childCodes: [
33833
- "231-000-000-000-000-000-001",
33834
- "231-000-000-000-000-000-002",
33835
- "231-000-000-000-000-000-003"
33836
- ],
33837
- definition: "Root group for values indicating absent, withheld, or uncollected data."
33838
- },
33839
- {
33840
- code: "231-000-000-000-000-000-001",
33841
- key: "unknown",
33842
- title: "Unknown",
33843
- selectable: true,
33844
- parentCode: "231-000-000-000-000-000-000",
33845
- childCodes: [],
33846
- definition: "The relationship concern is unknown or cannot be determined from the available information."
33847
- },
33848
- {
33849
- code: "231-000-000-000-000-000-002",
33850
- key: "anonymous",
33851
- title: "Anonymous / declined to answer",
33852
- selectable: true,
33853
- parentCode: "231-000-000-000-000-000-000",
33854
- childCodes: [],
33855
- definition: "The relationship concern may be withheld by preference or due to redaction; identity is anonymous or redacted."
33856
- },
33857
- {
33858
- code: "231-000-000-000-000-000-003",
33859
- key: "data_not_collected",
33860
- title: "Data not collected",
33861
- selectable: true,
33862
- parentCode: "231-000-000-000-000-000-000",
33863
- childCodes: [],
33864
- definition: "No attempt was made to collect the relationship concern."
33865
- },
33866
- {
33867
- code: "231-001-000-000-000-000-000",
33868
- key: "appears_controlling",
33869
- title: "Appears controlling",
33870
- selectable: true,
33871
- parentCode: null,
33872
- childCodes: [],
33873
- definition: "Employer, intimate partner, or family member who appears controlling in relation to the subject."
33874
- },
33875
- {
33876
- code: "231-002-000-000-000-000-000",
33877
- key: "is_much_older",
33878
- title: "Is much older (age-disparate)",
33879
- selectable: true,
33880
- parentCode: null,
33881
- childCodes: [],
33882
- definition: "Significant age disparity in the relationship \u2014 a vulnerability signal, especially for youth."
33883
- },
33884
- {
33885
- code: "231-003-000-000-000-000-000",
33886
- key: "physically_abusive",
33887
- title: "Physically abusive",
33888
- selectable: true,
33889
- parentCode: null,
33890
- childCodes: [],
33891
- definition: "Reports of physical harm or abuse from this person toward the subject."
33892
- },
33893
- {
33894
- code: "231-004-000-000-000-000-000",
33895
- key: "emotionally_abusive",
33896
- title: "Emotionally abusive / threatening",
33897
- selectable: true,
33898
- parentCode: null,
33899
- childCodes: [],
33900
- definition: "Emotional abuse, threats, or intimidation by this person toward the subject."
33901
- },
33902
- {
33903
- code: "231-005-000-000-000-000-000",
33904
- key: "has_legal_involvement",
33905
- title: "Has relevant legal involvement",
33906
- selectable: true,
33907
- parentCode: null,
33908
- childCodes: [],
33909
- definition: "This person has a legal case, protective order, or criminal history relevant to the subject's situation."
33910
- },
33911
- {
33912
- code: "231-006-000-000-000-000-000",
33913
- key: "is_known_trafficker_or_suspect",
33914
- title: "Is known or suspected trafficker",
33915
- selectable: true,
33916
- parentCode: null,
33917
- childCodes: [],
33918
- definition: "This person is suspected or confirmed as a trafficker in relation to the subject. Complements (does not replace) role assignment via Add-Person."
33919
- },
33920
- {
33921
- code: "231-007-000-000-000-000-000",
33922
- key: "other_concern",
33923
- title: "Other concern",
33924
- selectable: true,
33925
- parentCode: null,
33926
- childCodes: [],
33927
- definition: "Catch-all for concerns not covered by the other codes. Requires accompanying free-text explanation; prefer a specific code whenever one applies."
33928
- }
33929
- ]
33930
- };
33931
-
33932
- // src/cvcs/recencyBand.v1.0.0.json
33933
- var recencyBand_v1_0_0_default = {
33934
- domain: "recency_band",
33935
- name: "Core Recency Band (PROVISIONAL CVC-232 \u2014 pending codebook ratification)",
33936
- version: "1.0.0",
33937
- levels: {
33938
- "0": "Unknown or Missing",
33939
- "1": "Recency band"
33940
- },
33941
- entries: [
33942
- {
33943
- code: "232-000-000-000-000-000-000",
33944
- key: "missingness_root",
33945
- title: "Unknown, Redacted, or Missing",
33946
- selectable: false,
33947
- parentCode: null,
33948
- childCodes: [
33949
- "232-000-000-000-000-000-001",
33950
- "232-000-000-000-000-000-002",
33951
- "232-000-000-000-000-000-003"
33952
- ],
33953
- definition: "Root group for values indicating absent, withheld, or uncollected data."
33954
- },
33955
- {
33956
- code: "232-000-000-000-000-000-001",
33957
- key: "unknown",
33958
- title: "Unknown / not captured",
33959
- selectable: true,
33960
- parentCode: "232-000-000-000-000-000-000",
33961
- childCodes: [],
33962
- definition: "The recency band is unknown or cannot be determined from the available information."
32719
+ definition: "Value is unknown at time of entry."
33963
32720
  },
33964
32721
  {
33965
- code: "232-000-000-000-000-000-002",
32722
+ code: "197-000-000-000-000-000-002",
33966
32723
  key: "anonymous",
33967
- title: "Anonymous / declined to answer",
32724
+ title: "Anonymous",
33968
32725
  selectable: true,
33969
- parentCode: "232-000-000-000-000-000-000",
32726
+ parentCode: "197-000-000-000-000-000-000",
33970
32727
  childCodes: [],
33971
- definition: "The recency band may be withheld by preference or due to redaction; identity is anonymous or redacted."
32728
+ definition: "Value is intentionally withheld or redacted."
33972
32729
  },
33973
32730
  {
33974
- code: "232-000-000-000-000-000-003",
32731
+ code: "197-000-000-000-000-000-003",
33975
32732
  key: "data_not_collected",
33976
32733
  title: "Data not collected",
33977
32734
  selectable: true,
33978
- parentCode: "232-000-000-000-000-000-000",
33979
- childCodes: [],
33980
- definition: "No attempt was made to collect the recency band."
33981
- },
33982
- {
33983
- code: "232-001-000-000-000-000-000",
33984
- key: "within_3_months",
33985
- title: "Within the last 3 months",
33986
- selectable: true,
33987
- parentCode: null,
32735
+ parentCode: "197-000-000-000-000-000-000",
33988
32736
  childCodes: [],
33989
- definition: "The event or condition occurred within the most recent 3 months (0 up to and including 3 months before time_as_of)."
32737
+ definition: "No attempt was made to collect the value."
33990
32738
  },
33991
32739
  {
33992
- code: "232-002-000-000-000-000-000",
33993
- key: "months_3_to_6",
33994
- title: "3 to 6 months ago",
32740
+ code: "197-001-000-000-000-000-000",
32741
+ key: "detention_stay",
32742
+ title: "Detention stay",
33995
32743
  selectable: true,
33996
32744
  parentCode: null,
33997
32745
  childCodes: [],
33998
- definition: "The event or condition occurred more than 3 and up to and including 6 months before time_as_of."
32746
+ definition: "A period of confinement in a juvenile detention facility."
33999
32747
  },
34000
32748
  {
34001
- code: "232-003-000-000-000-000-000",
34002
- key: "months_6_to_12",
34003
- title: "6 to 12 months ago",
32749
+ code: "197-002-000-000-000-000-000",
32750
+ key: "diversion_program",
32751
+ title: "Diversion program",
34004
32752
  selectable: true,
34005
32753
  parentCode: null,
34006
32754
  childCodes: [],
34007
- definition: "The event or condition occurred more than 6 and up to and including 12 months before time_as_of."
32755
+ definition: "Participation in a program that diverts a youth away from formal juvenile court processing."
34008
32756
  },
34009
32757
  {
34010
- code: "232-004-000-000-000-000-000",
34011
- key: "one_year_or_more",
34012
- title: "1 year or more ago",
32758
+ code: "197-003-000-000-000-000-000",
32759
+ key: "pending_adjudication",
32760
+ title: "Pending charges / adjudication process",
34013
32761
  selectable: true,
34014
32762
  parentCode: null,
34015
32763
  childCodes: [],
34016
- definition: "The event or condition occurred at least 1 year before time_as_of. Use a finer-grained band (years_3_to_10 or ten_plus_years) when the source supports it."
32764
+ definition: "An open juvenile case awaiting adjudication."
34017
32765
  },
34018
32766
  {
34019
- code: "232-005-000-000-000-000-000",
34020
- key: "years_3_to_10",
34021
- title: "3 to 10 years ago",
32767
+ code: "197-004-000-000-000-000-000",
32768
+ key: "probation_supervision",
32769
+ title: "Probation / community supervision (juvenile)",
34022
32770
  selectable: true,
34023
32771
  parentCode: null,
34024
32772
  childCodes: [],
34025
- definition: "The event or condition occurred more than 3 and up to and including 10 years before time_as_of."
32773
+ definition: "Court-ordered supervision of a youth in the community rather than in confinement."
34026
32774
  },
34027
32775
  {
34028
- code: "232-006-000-000-000-000-000",
34029
- key: "ten_plus_years",
34030
- title: "More than 10 years ago",
32776
+ code: "197-005-000-000-000-000-000",
32777
+ key: "residential_jj_placement",
32778
+ title: "Residential JJ placement",
34031
32779
  selectable: true,
34032
32780
  parentCode: null,
34033
32781
  childCodes: [],
34034
- definition: "The event or condition occurred more than 10 years before time_as_of."
32782
+ definition: "Placement in a residential juvenile justice facility (e.g. training school, residential treatment)."
34035
32783
  }
34036
32784
  ]
34037
32785
  };
34038
32786
 
34039
- // src/cvcs/housingSubsidyTypes.v1.0.0.json
34040
- var housingSubsidyTypes_v1_0_0_default = {
34041
- domain: "housing_subsidy_types",
34042
- name: "Core Housing Subsidy Types (PROVISIONAL CVC-233 \u2014 pending codebook ratification)",
34043
- version: "1.0.0",
34044
- levels: {
34045
- "0": "Unknown or Missing",
34046
- "1": "Housing subsidy type"
34047
- },
34048
- entries: [
34049
- {
34050
- code: "233-000-000-000-000-000-000",
34051
- key: "missingness_root",
34052
- title: "Unknown, Redacted, or Missing",
34053
- selectable: false,
34054
- parentCode: null,
34055
- childCodes: [
34056
- "233-000-000-000-000-000-001",
34057
- "233-000-000-000-000-000-002",
34058
- "233-000-000-000-000-000-003"
34059
- ],
34060
- definition: "Root group for values indicating absent, withheld, or uncollected data."
34061
- },
34062
- {
34063
- code: "233-000-000-000-000-000-001",
34064
- key: "unknown",
34065
- title: "Unknown / not captured",
34066
- selectable: true,
34067
- parentCode: "233-000-000-000-000-000-000",
34068
- childCodes: [],
34069
- definition: "The housing subsidy type is unknown or cannot be determined from the available information."
34070
- },
34071
- {
34072
- code: "233-000-000-000-000-000-002",
34073
- key: "anonymous",
34074
- title: "Anonymous / declined to answer",
34075
- selectable: true,
34076
- parentCode: "233-000-000-000-000-000-000",
34077
- childCodes: [],
34078
- definition: "The housing subsidy type may be withheld by preference or due to redaction; identity is anonymous or redacted."
34079
- },
34080
- {
34081
- code: "233-000-000-000-000-000-003",
34082
- key: "data_not_collected",
34083
- title: "Data not collected",
34084
- selectable: true,
34085
- parentCode: "233-000-000-000-000-000-000",
34086
- childCodes: [],
34087
- definition: "No attempt was made to collect the housing subsidy type."
34088
- },
34089
- {
34090
- code: "233-001-000-000-000-000-000",
34091
- key: "housing_choice_voucher",
34092
- title: "Housing Choice Voucher (Section 8 HCV)",
34093
- selectable: true,
34094
- parentCode: null,
34095
- childCodes: [],
34096
- definition: "Tenant-based rental assistance through the HUD Housing Choice Voucher program (Section 8 HCV), which subsidizes rent in private-market units chosen by the tenant."
34097
- },
34098
- {
34099
- code: "233-002-000-000-000-000-000",
34100
- key: "public_housing",
34101
- title: "Public housing",
34102
- selectable: true,
34103
- parentCode: null,
34104
- childCodes: [],
34105
- definition: "Residence in a public housing unit owned and operated by a public housing authority (PHA), with rent set as a subsidized share of household income."
34106
- },
34107
- {
34108
- code: "233-003-000-000-000-000-000",
34109
- key: "project_based_rental_assistance",
34110
- title: "Project-based rental assistance",
34111
- selectable: true,
34112
- parentCode: null,
34113
- childCodes: [],
34114
- definition: "Rental assistance tied to a specific housing development or unit (e.g. project-based Section 8, project-based vouchers, or other site-based subsidy) rather than to the tenant."
34115
- },
34116
- {
34117
- code: "233-004-000-000-000-000-000",
34118
- key: "permanent_supportive_housing",
34119
- title: "Permanent supportive housing (PSH)",
34120
- selectable: true,
34121
- parentCode: null,
34122
- childCodes: [],
34123
- definition: "Permanent housing that pairs a long-term rental subsidy with voluntary supportive services for people with disabilities or chronic homelessness (HUD CoC PSH)."
34124
- },
34125
- {
34126
- code: "233-005-000-000-000-000-000",
34127
- key: "rapid_rehousing_assistance",
34128
- title: "Rapid re-housing assistance",
34129
- selectable: true,
34130
- parentCode: null,
34131
- childCodes: [],
34132
- definition: "Time-limited rental assistance and housing-stabilization services to help a household quickly exit homelessness into permanent housing (HUD CoC/ESG rapid re-housing)."
34133
- },
34134
- {
34135
- code: "233-008-000-000-000-000-000",
34136
- key: "va_supportive_housing",
34137
- title: "VA Supportive Housing (HUD-VASH)",
34138
- selectable: true,
34139
- parentCode: null,
34140
- childCodes: [],
34141
- definition: "HUD-VASH: a HUD Housing Choice Voucher paired with VA case management and clinical services for homeless Veterans."
34142
- },
34143
- {
34144
- code: "233-009-000-000-000-000-000",
34145
- key: "grant_per_diem_transition_in_place",
34146
- title: "Grant and Per Diem Transition-in-Place (GPD TIP)",
34147
- selectable: true,
34148
- parentCode: null,
34149
- childCodes: [],
34150
- definition: "VA Grant and Per Diem Transition-in-Place: transitional housing that converts to permanent housing for the Veteran in the same unit."
34151
- },
34152
- {
34153
- code: "233-010-000-000-000-000-000",
34154
- key: "housing_stability_voucher",
34155
- title: "Housing Stability Voucher (HSV)",
34156
- selectable: true,
34157
- parentCode: null,
34158
- childCodes: [],
34159
- definition: "Housing Stability Voucher: rental assistance for individuals and families who are homeless, at risk of homelessness, or fleeing domestic violence."
34160
- },
34161
- {
34162
- code: "233-011-000-000-000-000-000",
34163
- key: "family_unification_program",
34164
- title: "Family Unification Program (FUP)",
34165
- selectable: true,
34166
- parentCode: null,
34167
- childCodes: [],
34168
- definition: "Family Unification Program: HUD vouchers for families at risk of child-welfare separation and for eligible youth aging out of foster care."
34169
- },
34170
- {
34171
- code: "233-012-000-000-000-000-000",
34172
- key: "foster_youth_to_independence",
34173
- title: "Foster Youth to Independence (FYI)",
34174
- selectable: true,
34175
- parentCode: null,
34176
- childCodes: [],
34177
- definition: "Foster Youth to Independence: HUD vouchers for youth aging out of foster care who are homeless or at risk of homelessness."
34178
- },
34179
- {
34180
- code: "233-006-000-000-000-000-000",
34181
- key: "other_housing_subsidy",
34182
- title: "Other housing subsidy",
34183
- selectable: true,
34184
- parentCode: null,
34185
- childCodes: [],
34186
- definition: "A housing subsidy or rental-assistance program not covered by the other codes (e.g. state or local subsidy, HOME TBRA, or other program). Record program name and free-text detail alongside this code to preserve analytic value."
34187
- },
34188
- {
34189
- code: "233-007-000-000-000-000-000",
34190
- key: "no_subsidy",
34191
- title: "No housing subsidy",
34192
- selectable: true,
34193
- parentCode: null,
34194
- childCodes: [],
34195
- definition: "The household receives no housing subsidy or rental assistance (housing costs are paid in full without a subsidy)."
34196
- }
34197
- ]
34198
- };
32787
+ // src/index.ts
32788
+ var selectableCodes = (envelope) => envelope.entries.filter((e) => e.selectable).map((e) => e.code);
32789
+ var CVC_137_VALUES = selectableCodes(recencyBand_v1_0_0_default);
32790
+ var CVC_197_VALUES = selectableCodes(
32791
+ juvenileJusticeEpisodeType_v1_0_0_default
32792
+ );
34199
32793
  // Annotate the CommonJS export names for ESM import in node:
34200
32794
  0 && (module.exports = {
34201
32795
  ACCOMMODATION_LABELS,
@@ -34209,12 +32803,10 @@ var housingSubsidyTypes_v1_0_0_default = {
34209
32803
  AccommodationTypeKeys,
34210
32804
  ActionStepCompletionStatusKeys,
34211
32805
  ActionStepTypeKeys,
34212
- ActivityTypeKeys,
34213
32806
  AdministeringJurisdictionKeys,
34214
32807
  AgeBinReportingKeys,
34215
32808
  AnnouncementAudienceScopeKeys,
34216
32809
  AnnouncementResponseTypeKeys,
34217
- AssertionDomainKeys,
34218
32810
  BIRTH_LOCATION,
34219
32811
  BIRTH_LOCATION_LABELS,
34220
32812
  BIRTH_LOCATION_VALUES,
@@ -34250,6 +32842,7 @@ var housingSubsidyTypes_v1_0_0_default = {
34250
32842
  CVC_136_OPTIONS,
34251
32843
  CVC_136_TYPE_TO_CATEGORY,
34252
32844
  CVC_136_VALUES,
32845
+ CVC_137_VALUES,
34253
32846
  CVC_145_CATEGORY,
34254
32847
  CVC_145_CATEGORY_LABELS,
34255
32848
  CVC_145_CATEGORY_ORDER,
@@ -34339,6 +32932,7 @@ var housingSubsidyTypes_v1_0_0_default = {
34339
32932
  CVC_196_CHILD_WELFARE_EPISODE_TYPE,
34340
32933
  CVC_196_LABELS,
34341
32934
  CVC_196_VALUES,
32935
+ CVC_197_VALUES,
34342
32936
  CVC_1_LABELS,
34343
32937
  CVC_1_NAME_TYPE,
34344
32938
  CVC_1_STRUCTURED_NAME_TYPES,
@@ -34379,7 +32973,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34379
32973
  CollectionContextKeys,
34380
32974
  ContactInfoTypeKeys,
34381
32975
  ContactInfoUseTypeKeys,
34382
- ContactLinkTypeKeys,
34383
32976
  ContactSafetyStatusKeys,
34384
32977
  CvcCodeSchema,
34385
32978
  CvcEntrySchema,
@@ -34428,13 +33021,10 @@ var housingSubsidyTypes_v1_0_0_default = {
34428
33021
  HasTattoosKeys,
34429
33022
  HighestEducationLevelCompletedKeys,
34430
33023
  HmisProjectTypeKeys,
34431
- HmisRelationshipToHohKeys,
34432
33024
  HomelessStatusKeys,
34433
33025
  HopeScaleCaptureContextKeys,
34434
33026
  HopeScaleResponseOptionsKeys,
34435
33027
  HopeScaleTierKeys,
34436
- HousingSubsidyTypesKeys,
34437
- HtTypeKeys,
34438
33028
  IC_13_CATEGORIES,
34439
33029
  IC_13_CATEGORY_ORDER,
34440
33030
  IC_13_LABELS,
@@ -34469,7 +33059,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34469
33059
  IC_56_DESCRIPTIONS,
34470
33060
  IC_56_LABELS,
34471
33061
  IC_56_OPTIONS,
34472
- IC_56_PROVISIONAL_CHANNELS,
34473
33062
  IC_56_SERVICE_DELIVERY_CHANNEL,
34474
33063
  IC_57_LABELS,
34475
33064
  IC_57_SERVICE_AUDIENCE,
@@ -34502,7 +33091,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34502
33091
  LanguagesKeys,
34503
33092
  LeReportStatusKeys,
34504
33093
  LegalActionTypeKeys,
34505
- LivingSituationKeys,
34506
33094
  LocationTypeKeys,
34507
33095
  MINOR_ADULT_STATUS,
34508
33096
  MINOR_ADULT_STATUS_LABELS,
@@ -34538,7 +33126,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34538
33126
  ProgramSpecificCodeKeys,
34539
33127
  PronounsKeys,
34540
33128
  ProofOfIdTypeKeys,
34541
- ProvenanceSourceIdKeys,
34542
33129
  QUESTION_FORMAT,
34543
33130
  QUESTION_FORMAT_LABELS,
34544
33131
  QUICK_START_CONFIG,
@@ -34557,16 +33144,12 @@ var housingSubsidyTypes_v1_0_0_default = {
34557
33144
  ROLE_LEVEL_LABELS,
34558
33145
  ROLE_LEVEL_VALUES,
34559
33146
  RaceEthnicityKeys,
34560
- RadiusBucketKeys,
34561
- RecencyBandKeys,
34562
33147
  ReferenceLinkTypeKeys,
34563
33148
  ReferralEntityCategoryKeys,
34564
- RelationshipConcernKeys,
34565
33149
  RelationshipDynamicsKeys,
34566
33150
  RelationshipStatusCurrentKeys,
34567
33151
  RelationshipTiesKeys,
34568
33152
  ReturnedToAbuserStatusKeys,
34569
- RoiMethodKeys,
34570
33153
  RoleContextKeys,
34571
33154
  RsvpResponseKeys,
34572
33155
  SESSION_STATES,
@@ -34576,7 +33159,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34576
33159
  SHARE_VIEW_VALUES,
34577
33160
  SUBMISSION_STATES,
34578
33161
  SUBMISSION_STATE_LABELS,
34579
- ServiceAudienceKeys,
34580
33162
  ServiceCategoryEntrySchema,
34581
33163
  ServiceCategoryKeys,
34582
33164
  ServiceMechanismKeys,
@@ -34584,7 +33166,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34584
33166
  ServicePlanReviewSnoozeReasonKeys,
34585
33167
  ServiceSourceKeys,
34586
33168
  ServiceStateKeys,
34587
- SessionNoteVisibilityKeys,
34588
33169
  SessionStateKeys,
34589
33170
  SeverityFollowUpKeys,
34590
33171
  SexProviderSubroleKeys,
@@ -34598,7 +33179,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34598
33179
  SourceCategoryKeys,
34599
33180
  SourceSubtypeKeys,
34600
33181
  SubstanceUseStatusKeys,
34601
- SuggestionSourceKeys,
34602
33182
  SupportStrengthKeys,
34603
33183
  SupportTopicKeys,
34604
33184
  THREAD_INVOLVEMENT_ROLES,
@@ -34612,7 +33192,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34612
33192
  VALID_RECORD_STATES,
34613
33193
  VerificationMethodKeys,
34614
33194
  VerificationStatusKeys,
34615
- VictimAbuseTypesKeys,
34616
33195
  VictimStatusFamilyKeys,
34617
33196
  VisaTypeKeys,
34618
33197
  accommodationTypeSot,
@@ -34703,13 +33282,10 @@ var housingSubsidyTypes_v1_0_0_default = {
34703
33282
  hasTattoosSot,
34704
33283
  highestEducationLevelCompletedSot,
34705
33284
  hmisProjectTypeSot,
34706
- hmisRelationshipToHohSot,
34707
33285
  homelessStatusSot,
34708
33286
  hopeScaleCaptureContextSot,
34709
33287
  hopeScaleResponseOptionsSot,
34710
33288
  hopeScaleTierSot,
34711
- housingSubsidyTypesSot,
34712
- htTypeSot,
34713
33289
  identificationStatusSot,
34714
33290
  incidentInvolvementRolesSot,
34715
33291
  incidentParticipationRolesSot,
@@ -34727,7 +33303,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34727
33303
  layoutSchema,
34728
33304
  leReportStatusSot,
34729
33305
  legalActionTypeSot,
34730
- livingSituationSot,
34731
33306
  locationTypeSot,
34732
33307
  maritalStatusLegalSot,
34733
33308
  messageReportReasonSot,
@@ -34761,10 +33336,8 @@ var housingSubsidyTypes_v1_0_0_default = {
34761
33336
  questionSchemaDefinition,
34762
33337
  questionSchemaOptions,
34763
33338
  raceEthnicitySot,
34764
- recencyBandSot,
34765
33339
  referenceLinkTypeSot,
34766
33340
  referralEntityCategorySot,
34767
- relationshipConcernSot,
34768
33341
  relationshipDynamicsSot,
34769
33342
  relationshipStatusCurrentSot,
34770
33343
  relationshipTiesSot,
@@ -34782,7 +33355,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34782
33355
  sectionQuestionRefSchema,
34783
33356
  sectionSchemaDefinition,
34784
33357
  sectionSchemaOptions,
34785
- serviceAudienceSot,
34786
33358
  serviceCategoriesSot,
34787
33359
  serviceMechanismsSot,
34788
33360
  servicePlanClosureReasonSot,
@@ -34811,7 +33383,6 @@ var housingSubsidyTypes_v1_0_0_default = {
34811
33383
  tribesSot,
34812
33384
  verificationMethodSot,
34813
33385
  verificationStatusSot,
34814
- victimAbuseTypesSot,
34815
33386
  victimStatusFamilySot,
34816
33387
  visaTypeSot,
34817
33388
  visibilityRuleSchema