@htilabs/platform-common-models 0.15.0 → 0.18.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 (76) hide show
  1. package/dist/agency-BHv54o79.d.ts +484 -0
  2. package/dist/agency-Ca4pCOOf.d.ts +342 -0
  3. package/dist/agency-DYCv839V.d.cts +342 -0
  4. package/dist/agency-Djp57S71.d.cts +484 -0
  5. package/dist/constants/index.cjs +952 -0
  6. package/dist/constants/index.cjs.map +1 -1
  7. package/dist/constants/index.d.cts +3 -1
  8. package/dist/constants/index.d.ts +3 -1
  9. package/dist/constants/index.js +920 -0
  10. package/dist/constants/index.js.map +1 -1
  11. package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-0BIB9sen.d.cts} +44 -44
  12. package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-0BIB9sen.d.ts} +44 -44
  13. package/dist/cvcs/index.cjs +182 -77
  14. package/dist/cvcs/index.cjs.map +1 -1
  15. package/dist/cvcs/index.d.cts +187 -78
  16. package/dist/cvcs/index.d.ts +187 -78
  17. package/dist/cvcs/index.js +182 -77
  18. package/dist/cvcs/index.js.map +1 -1
  19. package/dist/enums/index.cjs +3 -1
  20. package/dist/enums/index.cjs.map +1 -1
  21. package/dist/enums/index.d.cts +7 -5
  22. package/dist/enums/index.d.ts +7 -5
  23. package/dist/enums/index.js +3 -1
  24. package/dist/enums/index.js.map +1 -1
  25. package/dist/{index-C0J3f169.d.ts → index-CDoqrfc1.d.ts} +1 -1
  26. package/dist/{index-EPjPjR0z.d.cts → index-Zu_mOJRn.d.cts} +1 -1
  27. package/dist/index.cjs +1704 -1073
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +6 -4
  30. package/dist/index.d.ts +6 -4
  31. package/dist/index.js +1650 -1072
  32. package/dist/index.js.map +1 -1
  33. package/dist/models/index.d.cts +2 -2
  34. package/dist/models/index.d.ts +2 -2
  35. package/dist/org-type-BYQb9Qzq.d.ts +366 -0
  36. package/dist/org-type-D_FG4KdN.d.cts +366 -0
  37. package/dist/{platform-auth-CrF5U_JH.d.cts → platform-auth-CvAYFVhK.d.cts} +39 -0
  38. package/dist/{platform-auth-CrF5U_JH.d.ts → platform-auth-CvAYFVhK.d.ts} +39 -0
  39. package/dist/schemas/index.cjs +977 -2
  40. package/dist/schemas/index.cjs.map +1 -1
  41. package/dist/schemas/index.d.cts +38 -35
  42. package/dist/schemas/index.d.ts +38 -35
  43. package/dist/schemas/index.js +962 -1
  44. package/dist/schemas/index.js.map +1 -1
  45. package/dist/types/index.d.cts +2 -2
  46. package/dist/types/index.d.ts +2 -2
  47. package/dist/validation/index.cjs +894 -2
  48. package/dist/validation/index.cjs.map +1 -1
  49. package/dist/validation/index.d.cts +5 -1
  50. package/dist/validation/index.d.ts +5 -1
  51. package/dist/validation/index.js +884 -1
  52. package/dist/validation/index.js.map +1 -1
  53. package/package.json +26 -27
  54. package/src/__tests__/__snapshots__/cvc-sot.snap +5 -5
  55. package/src/__tests__/core-functions-canon.test.ts +53 -0
  56. package/src/__tests__/core-information-scope-invariant.test.ts +94 -4
  57. package/src/__tests__/cvc-sot-snapshot.test.ts +13 -10
  58. package/src/__tests__/cvc-status-parser.test.ts +1 -1
  59. package/src/__tests__/cvc-structural.test.ts +3 -3
  60. package/src/__tests__/org-type-contract.test.ts +1353 -0
  61. package/src/__tests__/referral-entity-category-canon.test.ts +255 -81
  62. package/src/constants/ic.ts +45 -0
  63. package/src/constants/index.ts +1 -0
  64. package/src/constants/org-type.ts +703 -0
  65. package/src/cvcs/{coreFunctions.v1.0.0.json → coreFunctions.v1.1.0.json} +11 -2
  66. package/src/cvcs/index.ts +3 -3
  67. package/src/cvcs/{referralEntityCategory.v1.1.0.json → referralEntityCategory.v1.2.0.json} +111 -59
  68. package/src/cvcs/{roiScope.v1.0.0.json → roiScope.v1.2.0.json} +51 -7
  69. package/src/generated/cvc-enums.ts +7 -5
  70. package/src/index.ts +23 -0
  71. package/src/schemas/agency.ts +481 -0
  72. package/src/schemas/index.ts +24 -0
  73. package/src/validation/agency.ts +119 -0
  74. package/src/validation/index.ts +1 -0
  75. package/dist/team-C4LJ5Tex.d.cts +0 -333
  76. package/dist/team-C4LJ5Tex.d.ts +0 -333
package/dist/index.cjs CHANGED
@@ -24,6 +24,8 @@ __export(src_exports, {
24
24
  ACCOMMODATION_OPTIONS: () => ACCOMMODATION_OPTIONS,
25
25
  ACTIVE_CVC_136_CORE_INDICATOR_VALUES: () => ACTIVE_CVC_136_CORE_INDICATOR_VALUES,
26
26
  ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES: () => ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES,
27
+ AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS: () => AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS,
28
+ AGENCY_TYPE_KEYS: () => AGENCY_TYPE_KEYS,
27
29
  AGE_BIN_REPORTING: () => AGE_BIN_REPORTING,
28
30
  AGE_BIN_REPORTING_IS_MINOR: () => AGE_BIN_REPORTING_IS_MINOR,
29
31
  AGE_BIN_REPORTING_LABELS: () => AGE_BIN_REPORTING_LABELS,
@@ -37,6 +39,8 @@ __export(src_exports, {
37
39
  AdminRoleKeys: () => AdminRoleKeys,
38
40
  AdministeringJurisdictionKeys: () => AdministeringJurisdictionKeys,
39
41
  AgeBinReportingKeys: () => AgeBinReportingKeys,
42
+ AgencyOrgTypeFieldsSchema: () => AgencyOrgTypeFieldsSchema,
43
+ AgencyTypeKeySchema: () => AgencyTypeKeySchema,
40
44
  AnnouncementAudienceScopeKeys: () => AnnouncementAudienceScopeKeys,
41
45
  AnnouncementResponseTypeKeys: () => AnnouncementResponseTypeKeys,
42
46
  AssertionDomainKeys: () => AssertionDomainKeys,
@@ -257,6 +261,7 @@ __export(src_exports, {
257
261
  GoalPriorityKeys: () => GoalPriorityKeys,
258
262
  GoalStatusKeys: () => GoalStatusKeys,
259
263
  GoalWithdrawalReasonKeys: () => GoalWithdrawalReasonKeys,
264
+ HEALTHCARE_ORG_TYPE_KEYS: () => HEALTHCARE_ORG_TYPE_KEYS,
260
265
  HairColorKeys: () => HairColorKeys,
261
266
  HasTattoosKeys: () => HasTattoosKeys,
262
267
  HighestEducationLevelCompletedKeys: () => HighestEducationLevelCompletedKeys,
@@ -338,6 +343,9 @@ __export(src_exports, {
338
343
  InvestigativeRequestTypeKeys: () => InvestigativeRequestTypeKeys,
339
344
  JuvenileJusticeEpisodeTypeKeys: () => JuvenileJusticeEpisodeTypeKeys,
340
345
  JuvenileJusticeInvolvementStatusKeys: () => JuvenileJusticeInvolvementStatusKeys,
346
+ LAW_ENFORCEMENT_ORG_TYPE_KEYS: () => LAW_ENFORCEMENT_ORG_TYPE_KEYS,
347
+ LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY: () => LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY,
348
+ LEGAL_ORG_TYPE_KEYS: () => LEGAL_ORG_TYPE_KEYS,
341
349
  LanguagesKeys: () => LanguagesKeys,
342
350
  LeReportStatusKeys: () => LeReportStatusKeys,
343
351
  LegalActionTypeKeys: () => LegalActionTypeKeys,
@@ -353,11 +361,20 @@ __export(src_exports, {
353
361
  MilitaryBranchKeys: () => MilitaryBranchKeys,
354
362
  MilitaryStatusKeys: () => MilitaryStatusKeys,
355
363
  MinorAdultStatusKeys: () => MinorAdultStatusKeys,
364
+ NO_SECTOR_ORG_TYPE_KEYS: () => NO_SECTOR_ORG_TYPE_KEYS,
356
365
  NameTypeKeys: () => NameTypeKeys,
357
366
  NeedsAssessmentChangeTypeKeys: () => NeedsAssessmentChangeTypeKeys,
358
367
  NeedsResidentialAgainKeys: () => NeedsResidentialAgainKeys,
368
+ ORG_TYPE_FIELD_NAMES: () => ORG_TYPE_FIELD_NAMES,
369
+ ORG_TYPE_HEADING_KEYS: () => ORG_TYPE_HEADING_KEYS,
370
+ ORG_TYPE_KEYS: () => ORG_TYPE_KEYS,
371
+ ORG_TYPE_NONPICKABLE_LEAF_KEYS: () => ORG_TYPE_NONPICKABLE_LEAF_KEYS,
372
+ ORG_TYPE_PARENT_KEY: () => ORG_TYPE_PARENT_KEY,
373
+ ORG_TYPE_SELECTABLE_KEYS: () => ORG_TYPE_SELECTABLE_KEYS,
359
374
  OffenderStatusFamilyKeys: () => OffenderStatusFamilyKeys,
360
375
  OffenderStatusKeys: () => OffenderStatusKeys,
376
+ OrgTypeFieldsSchema: () => OrgTypeFieldsSchema,
377
+ OrgTypeSelectableKeySchema: () => OrgTypeSelectableKeySchema,
361
378
  OrientationIdentityKeys: () => OrientationIdentityKeys,
362
379
  PARTICIPATION_ROLE_CATEGORIES: () => PARTICIPATION_ROLE_CATEGORIES,
363
380
  PERMISSION_STATE: () => PERMISSION_STATE,
@@ -399,6 +416,7 @@ __export(src_exports, {
399
416
  RELATIONSHIP_DYNAMICS: () => RELATIONSHIP_DYNAMICS,
400
417
  RELATIONSHIP_DYNAMICS_LABELS: () => RELATIONSHIP_DYNAMICS_LABELS,
401
418
  RELATIONSHIP_DYNAMICS_VALUES: () => RELATIONSHIP_DYNAMICS_VALUES,
419
+ REPORT_AUTHORITY_ORG_TYPE_KEYS: () => REPORT_AUTHORITY_ORG_TYPE_KEYS,
402
420
  ROLE_LEVEL: () => ROLE_LEVEL,
403
421
  ROLE_LEVEL_LABELS: () => ROLE_LEVEL_LABELS,
404
422
  ROLE_LEVEL_VALUES: () => ROLE_LEVEL_VALUES,
@@ -441,6 +459,7 @@ __export(src_exports, {
441
459
  SessionNoteVisibilityKeys: () => SessionNoteVisibilityKeys,
442
460
  SessionStateKeys: () => SessionStateKeys,
443
461
  SessionTemplateKeys: () => SessionTemplateKeys,
462
+ SetOrgTypeInputSchema: () => SetOrgTypeInputSchema,
444
463
  SeverityFollowUpKeys: () => SeverityFollowUpKeys,
445
464
  SexProviderSubroleKeys: () => SexProviderSubroleKeys,
446
465
  SharePurposeKeys: () => SharePurposeKeys,
@@ -475,6 +494,8 @@ __export(src_exports, {
475
494
  UserRoleKeys: () => UserRoleKeys,
476
495
  VALID_INTERACTION_TYPES: () => VALID_INTERACTION_TYPES,
477
496
  VALID_RECORD_STATES: () => VALID_RECORD_STATES,
497
+ VICTIM_SERVING_ORG_TYPE_KEYS: () => VICTIM_SERVING_ORG_TYPE_KEYS,
498
+ VSP_TWO_STEP_ISSUE: () => VSP_TWO_STEP_ISSUE,
478
499
  VerificationMethodKeys: () => VerificationMethodKeys,
479
500
  VerificationStatusKeys: () => VerificationStatusKeys,
480
501
  VictimAbuseTypesKeys: () => VictimAbuseTypesKeys,
@@ -485,14 +506,18 @@ __export(src_exports, {
485
506
  actionStepCompletionStatusSot: () => actionStepCompletionStatus_v1_0_0_default,
486
507
  actionStepTypeSot: () => actionStepType_v1_0_0_default,
487
508
  activityTypeSot: () => activityType_v1_0_0_default,
509
+ addAgencyOrgTypeFields: () => addAgencyOrgTypeFields,
510
+ addOrgTypeFields: () => addOrgTypeFields,
488
511
  addTeamDirectoryFields: () => addTeamDirectoryFields,
489
512
  addressSchema: () => addressSchema,
490
513
  adminRolesSot: () => adminRoles_v1_0_0_default,
491
514
  administeringJurisdictionSot: () => administeringJurisdiction_v1_0_0_default,
492
515
  ageBinReportingSot: () => ageBinReporting_v1_0_0_default,
516
+ agencyOrgTypeSchemaDefinition: () => agencyOrgTypeSchemaDefinition,
493
517
  announcementAudienceScopeSot: () => announcementAudienceScope_v1_0_0_default,
494
518
  announcementResponseTypeSot: () => announcementResponseType_v1_0_0_default,
495
519
  applyEntryOverrides: () => applyEntryOverrides,
520
+ applyRunValidatorsIfUnset: () => applyRunValidatorsIfUnset,
496
521
  assertionDomainSot: () => assertionDomain_v1_1_0_default,
497
522
  assertionStatusSot: () => assertionStatus_v1_0_0_default,
498
523
  basisQuickPicksSot: () => basisQuickPicks_v1_0_0_default,
@@ -524,7 +549,7 @@ __export(src_exports, {
524
549
  contactLinkTypeSot: () => contactLinkType_v1_0_0_default,
525
550
  contactSafetyStatusSot: () => contactSafetyStatus_v1_0_0_default,
526
551
  coreDhStateSot: () => coreDhState_v1_0_0_default,
527
- coreFunctionsSot: () => coreFunctions_v1_0_0_default,
552
+ coreFunctionsSot: () => coreFunctions_v1_1_0_default,
528
553
  coreIndicatorsSot: () => coreIndicators_v1_1_0_default,
529
554
  coreInformationScopeSot: () => coreInformationScope_v1_1_0_default,
530
555
  coreReferralOutcomeSot: () => coreReferralOutcome_v1_0_0_default,
@@ -609,14 +634,21 @@ __export(src_exports, {
609
634
  incomeBenefitsSourcesSot: () => incomeBenefitsSources_v1_1_0_default,
610
635
  inferenceTypeSot: () => inferenceType_v1_0_0_default,
611
636
  investigativeRequestTypeSot: () => investigativeRequestType_v1_0_0_default,
637
+ isAgencyTypeKey: () => isAgencyTypeKey,
612
638
  isDeprecatedCoreIndicator: () => isDeprecatedCoreIndicator,
613
639
  isDeprecatedIncidentParticipationRole: () => isDeprecatedIncidentParticipationRole,
640
+ isHealthcareOrgType: () => isHealthcareOrgType,
614
641
  isIC56Missingness: () => isIC56Missingness,
615
642
  isIC56ValidChannel: () => isIC56ValidChannel,
643
+ isLawEnforcementOrgType: () => isLawEnforcementOrgType,
644
+ isLegalOrgType: () => isLegalOrgType,
616
645
  isLgbtqOrientation: () => isLgbtqOrientation,
646
+ isOrgTypeKey: () => isOrgTypeKey,
617
647
  isProtectedRelationship: () => isProtectedRelationship,
648
+ isReportAuthorityOrgType: () => isReportAuthorityOrgType,
618
649
  isStructuredNameType: () => isStructuredNameType,
619
650
  isTransgenderGenderIdentity: () => isTransgenderGenderIdentity,
651
+ isVictimServingOrgType: () => isVictimServingOrgType,
620
652
  juvenileJusticeEpisodeTypeSot: () => juvenileJusticeEpisodeType_v1_0_0_default,
621
653
  juvenileJusticeInvolvementStatusSot: () => juvenileJusticeInvolvementStatus_v1_0_0_default,
622
654
  languagesSot: () => languages_v1_0_0_default,
@@ -633,11 +665,23 @@ __export(src_exports, {
633
665
  militaryBranchSot: () => militaryBranch_v1_0_0_default,
634
666
  militaryStatusSot: () => militaryStatus_v1_0_0_default,
635
667
  minorAdultStatusSot: () => minorAdultStatus_v1_0_0_default,
668
+ mirrorOrgTypeFields: () => mirrorOrgTypeFields,
636
669
  nameTypeSot: () => nameType_v1_0_0_default,
637
670
  needsAssessmentChangeTypeSot: () => needsAssessmentChangeType_v1_0_0_default,
638
671
  needsResidentialAgainSot: () => needsResidentialAgain_v1_0_0_default,
639
672
  offenderStatusFamilySot: () => offenderStatusFamily_v1_0_0_default,
640
673
  offenderStatusSot: () => offenderStatus_v1_0_0_default,
674
+ orgTypeAncestry: () => orgTypeAncestry,
675
+ orgTypeCanonicalCode: () => orgTypeCanonicalCode,
676
+ orgTypeDefaultSessionRole: () => orgTypeDefaultSessionRole,
677
+ orgTypeDefaultSessionRoleOrNull: () => orgTypeDefaultSessionRoleOrNull,
678
+ orgTypeDefaultVsp: () => orgTypeDefaultVsp,
679
+ orgTypeEnumConstant: () => orgTypeEnumConstant,
680
+ orgTypeFieldsDiffer: () => orgTypeFieldsDiffer,
681
+ orgTypeFieldsShape: () => orgTypeFieldsShape,
682
+ orgTypeLabel: () => orgTypeLabel,
683
+ orgTypeSchemaDefinition: () => orgTypeSchemaDefinition,
684
+ orgTypeSector: () => orgTypeSector,
641
685
  orientationIdentitySot: () => orientationIdentity_v1_0_0_default,
642
686
  personNameSchema: () => personNameSchema,
643
687
  personRelationshipsSot: () => personRelationships_v1_0_0_default,
@@ -668,19 +712,25 @@ __export(src_exports, {
668
712
  radiusBucketSot: () => radiusBucket_v1_0_0_default,
669
713
  recencyBandSot: () => recencyBand_v1_0_0_default,
670
714
  referenceLinkTypeSot: () => referenceLinkType_v1_0_0_default,
671
- referralEntityCategorySot: () => referralEntityCategory_v1_1_0_default,
715
+ referralEntityCategorySot: () => referralEntityCategory_v1_2_0_default,
672
716
  referralOriginSot: () => referralOrigin_v1_0_0_default,
673
717
  relationshipConcernSot: () => relationshipConcern_v1_0_0_default,
674
718
  relationshipDynamicsSot: () => relationshipDynamics_v1_0_0_default,
675
719
  relationshipStatusCurrentSot: () => relationshipStatusCurrent_v1_0_0_default,
676
720
  relationshipTiesSot: () => relationshipTies_v1_0_0_default,
721
+ resolveAgencyTypeKey: () => resolveAgencyTypeKey,
722
+ resolveEffectiveOrgType: () => resolveEffectiveOrgType,
723
+ resolveEffectiveOrgTypeFields: () => resolveEffectiveOrgTypeFields,
724
+ resolveOrgTypeKey: () => resolveOrgTypeKey,
725
+ resolveOrgTypeKeyFromLegacyNumeric: () => resolveOrgTypeKeyFromLegacyNumeric,
726
+ resolveReferralEntityKeyFromLegacyNumeric: () => resolveReferralEntityKeyFromLegacyNumeric,
677
727
  resolveRegistryWithInheritance: () => resolveRegistryWithInheritance,
678
728
  returnedToAbuserStatusSot: () => returnedToAbuserStatus_v1_0_0_default,
679
729
  riskCategorySot: () => riskCategory_v1_0_0_default,
680
730
  riskIdentificationMilestoneSot: () => riskIdentificationMilestone_v1_0_0_default,
681
731
  riskSeverityBandSot: () => riskSeverityBand_v1_0_0_default,
682
732
  roiMethodSot: () => roiMethod_v1_0_0_default,
683
- roiScopeSot: () => roiScope_v1_0_0_default,
733
+ roiScopeSot: () => roiScope_v1_2_0_default,
684
734
  roiStatusSot: () => roiStatus_v1_0_0_default,
685
735
  roleContextSot: () => roleContext_v1_0_0_default,
686
736
  romanticRelationshipChangeTypeSot: () => romanticRelationshipChangeType_v1_0_0_default,
@@ -740,7 +790,10 @@ __export(src_exports, {
740
790
  victimStatusFamilySot: () => victimStatusFamily_v1_0_0_default,
741
791
  visaTypeSot: () => visaType_v1_0_0_default,
742
792
  visibilityRuleSchema: () => visibilityRuleSchema,
743
- whyNotsSot: () => whyNots_v1_0_0_default
793
+ vspTwoStepHolds: () => vspTwoStepHolds,
794
+ vspTwoStepHoldsOnUpdate: () => vspTwoStepHoldsOnUpdate,
795
+ whyNotsSot: () => whyNots_v1_0_0_default,
796
+ withOrgTypeFields: () => withOrgTypeFields
744
797
  });
745
798
  module.exports = __toCommonJS(src_exports);
746
799
 
@@ -6760,6 +6813,894 @@ var FUNCTION_STATUS_LABELS = {
6760
6813
  [FUNCTION_STATUS.FUTURE]: "Future (Not v1)"
6761
6814
  };
6762
6815
 
6816
+ // src/cvcs/referralEntityCategory.v1.2.0.json
6817
+ var referralEntityCategory_v1_2_0_default = {
6818
+ domain: "referral_entity_category",
6819
+ name: "Core Referral Entity Category",
6820
+ version: "1.2.0",
6821
+ _status: "CANONICAL \u2014 Notion CVC-48 `core-referral_entity_category` (IC-58), status Active (full audit 2026-08-20, CVC48_IC58_REFERRAL_ENTITY_CATEGORY_AUDIT; `Date of last audit` 2026-09-01). Re-mirrored from prototype canon yaml v1.3 @ f1321e47 and the live Notion codebook (46 rows, compared row by row 2026-10-05). SUPERSEDES referralEntityCategory v1.0.0 (platform-common <= 0.13.0), which predated the audit. ADDITIVE: no v1.0.0 key is removed and no v1.0.0 positional code changes. ADDED (4): `adult_protective_services` (02-03-06-00), `school_academic_institution` (02-05-01-00), `legal_services_provider` (02-06-04-00), and since 0.18.0 `hotline` (02-02-01-00, canon's selectable Level-2 parent of the two hotline children) at the next free ordinal 048-006-003 with `national_hotline` / `local_other_hotline` RE-PARENTED under it \u2014 their codes are unchanged (a positional code is identity, `parentCode` is hierarchy). SELECTABLE follows canon on two rows: `education` is now a non-selectable heading (its leaf is `school_academic_institution`, which carries the HMIS R1 School rollup \u2014 ruled 2026-08-20) and `law_enforcement` is now selectable (canon Level 2 Required; its five children are optional depth). A stored `education` is still a valid key. `title` and `definition` are canon's, verbatim (yaml `name` / `definition`; the live Notion wording where the two differ: the Adult Protective Services label, the quotation marks in the Victim service provider definition, and the wording of the residual Community-based provider definition); the Level-0 rows keep the package's house missingness titles. `justice_protective_systems` no longer carries the package-authored definition v1.0.0 gave it: canon's heading (02-03-00-00) has none. Every canon-backed row carries canon's 4-segment code as `canonicalCode`; the package's own positional codes are unchanged and are NOT canon's. NOT carried: canon `hmis_r1_code` / `hmis_r1_mapping`, `required`, `voca_ovc_pmt_bucket`, `pave_2025_mapping`, `logic_notes`, `mappings_notes` (v1.0.0 carried none of them). CARRIED since 0.18.0: canon `enum_constant` as `enumConstant` on every canon-backed row (the Sean-spec constant the org registry / `agencies.typeId` spell the type with). Generated by scripts/gen-referral-entity-category.py \u2014 do not hand-edit.",
6822
+ _source: "htilabstech/prototype/data/cvcs/core_referral_entity_category.yaml @ f1321e47 (Notion CVC-48, yaml v1.3; read from origin/main) + Notion codebook collection://3181ef14-abcd-8081-95b5-000bc30a73bd (wording of 3 cells, compared 2026-10-05)",
6823
+ _supersedes: {
6824
+ version: "1.0.0",
6825
+ keyMap: {
6826
+ missingness_root: "missingness_root",
6827
+ unknown: "unknown",
6828
+ anonymous: "anonymous",
6829
+ data_not_collected: "data_not_collected",
6830
+ self_referred: "self_referred",
6831
+ family_guardian_friend: "family_guardian_friend",
6832
+ peer: "peer",
6833
+ other_individual: "other_individual",
6834
+ housing_shelter_continuum: "housing_shelter_continuum",
6835
+ outreach_project: "outreach_project",
6836
+ temporary_shelter: "temporary_shelter",
6837
+ residential_project: "residential_project",
6838
+ hotlines: "hotlines",
6839
+ national_hotline: "national_hotline",
6840
+ local_other_hotline: "local_other_hotline",
6841
+ justice_protective_systems: "justice_protective_systems",
6842
+ child_welfare_cps: "child_welfare_cps",
6843
+ juvenile_justice: "juvenile_justice",
6844
+ law_enforcement: "law_enforcement",
6845
+ local_law_enforcement: "local_law_enforcement",
6846
+ state_law_enforcement: "state_law_enforcement",
6847
+ federal_law_enforcement: "federal_law_enforcement",
6848
+ tribal_law_enforcement: "tribal_law_enforcement",
6849
+ other_law_enforcement: "other_law_enforcement",
6850
+ courts_prosecution: "courts_prosecution",
6851
+ correction_probation: "correction_probation",
6852
+ health_behavioral_health: "health_behavioral_health",
6853
+ inpatient_psychiatric_facility: "inpatient_psychiatric_facility",
6854
+ healthcare_provider: "healthcare_provider",
6855
+ education: "education",
6856
+ victim_community_service_providers: "victim_community_service_providers",
6857
+ child_advocacy_center: "child_advocacy_center",
6858
+ victim_service_provider: "victim_service_provider",
6859
+ community_based_service_provider: "community_based_service_provider",
6860
+ coordination_governance: "coordination_governance",
6861
+ mdt: "mdt",
6862
+ coalition: "coalition",
6863
+ internal: "internal",
6864
+ own_agency_internal: "own_agency_internal",
6865
+ other_entity: "other_entity",
6866
+ employer: "employer",
6867
+ benefits_public_assistance_office: "benefits_public_assistance_office",
6868
+ other_organization: "other_organization"
6869
+ },
6870
+ retiredCodes: [],
6871
+ notes: {
6872
+ education: "v1.0.0 `education` was a selectable leaf. Canon makes Education a heading whose only leaf is School / academic institution. `education` stays a valid stored key (now `selectable: false`); the specific successor for a school is `school_academic_institution`. Not mapped automatically.",
6873
+ law_enforcement: "v1.0.0 `law_enforcement` was a non-selectable heading. Canon makes Law enforcement / Police a selectable leaf with five optional children."
6874
+ }
6875
+ },
6876
+ _notCarried: [],
6877
+ levels: {
6878
+ "0": "Unknown or Missing",
6879
+ "1": "Category",
6880
+ "2": "Entity",
6881
+ "3": "Variant"
6882
+ },
6883
+ entries: [
6884
+ {
6885
+ code: "048-000-000-000-000-000-000",
6886
+ key: "missingness_root",
6887
+ title: "Unknown, Redacted, or Missing",
6888
+ selectable: false,
6889
+ parentCode: null,
6890
+ childCodes: [
6891
+ "048-000-000-000-000-000-001",
6892
+ "048-000-000-000-000-000-002",
6893
+ "048-000-000-000-000-000-003"
6894
+ ],
6895
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
6896
+ },
6897
+ {
6898
+ code: "048-000-000-000-000-000-001",
6899
+ key: "unknown",
6900
+ title: "Unknown",
6901
+ selectable: true,
6902
+ parentCode: "048-000-000-000-000-000-000",
6903
+ childCodes: [],
6904
+ definition: "Referral entity category unknown.",
6905
+ canonicalCode: "00-00-01-00",
6906
+ enumConstant: "EMPTY_RESPONSE_UNKNOWN"
6907
+ },
6908
+ {
6909
+ code: "048-000-000-000-000-000-002",
6910
+ key: "anonymous",
6911
+ title: "Anonymous",
6912
+ selectable: true,
6913
+ parentCode: "048-000-000-000-000-000-000",
6914
+ childCodes: [],
6915
+ definition: "Referral entity category withheld or redacted.",
6916
+ canonicalCode: "00-00-02-00",
6917
+ enumConstant: "EMPTY_RESPONSE_ANONYMOUS"
6918
+ },
6919
+ {
6920
+ code: "048-000-000-000-000-000-003",
6921
+ key: "data_not_collected",
6922
+ title: "Data not collected",
6923
+ selectable: true,
6924
+ parentCode: "048-000-000-000-000-000-000",
6925
+ childCodes: [],
6926
+ definition: "Referral entity category not collected or no signal captured.",
6927
+ canonicalCode: "00-00-03-00",
6928
+ enumConstant: "EMPTY_RESPONSE_NOTCOLLECTED"
6929
+ },
6930
+ {
6931
+ code: "048-001-000-000-000-000-000",
6932
+ key: "self_referred",
6933
+ title: "Self-referred",
6934
+ selectable: true,
6935
+ parentCode: null,
6936
+ childCodes: [],
6937
+ definition: "Client initiated contact or presented for services without a third-party referrer.",
6938
+ canonicalCode: "01-00-01-00",
6939
+ enumConstant: "INDIVIDUAL_PERSON_SELFREFERRED"
6940
+ },
6941
+ {
6942
+ code: "048-002-000-000-000-000-000",
6943
+ key: "family_guardian_friend",
6944
+ title: "Family/guardian/friend/foster parent",
6945
+ selectable: true,
6946
+ parentCode: null,
6947
+ childCodes: [],
6948
+ definition: "A caregiver, family member, or close personal support person initiated the referral.",
6949
+ canonicalCode: "01-00-02-00",
6950
+ enumConstant: "INDIVIDUAL_PERSON_FAMILYGUARDIANFRIEND"
6951
+ },
6952
+ {
6953
+ code: "048-003-000-000-000-000-000",
6954
+ key: "peer",
6955
+ title: "Peer / another client",
6956
+ selectable: true,
6957
+ parentCode: null,
6958
+ childCodes: [],
6959
+ definition: "Another current or former client initiated or encouraged the referral.",
6960
+ canonicalCode: "01-00-03-00",
6961
+ enumConstant: "INDIVIDUAL_PERSON_PEER"
6962
+ },
6963
+ {
6964
+ code: "048-004-000-000-000-000-000",
6965
+ key: "other_individual",
6966
+ title: "Other individual",
6967
+ selectable: true,
6968
+ parentCode: null,
6969
+ childCodes: [],
6970
+ definition: "A non-family individual initiated the referral (e.g., neighbor, community member, clergy).",
6971
+ canonicalCode: "01-00-04-00",
6972
+ enumConstant: "INDIVIDUAL_PERSON_OTHER"
6973
+ },
6974
+ {
6975
+ code: "048-005-000-000-000-000-000",
6976
+ key: "housing_shelter_continuum",
6977
+ title: "Housing / Shelter continuum",
6978
+ selectable: false,
6979
+ parentCode: null,
6980
+ childCodes: [
6981
+ "048-005-001-000-000-000-000",
6982
+ "048-005-002-000-000-000-000",
6983
+ "048-005-003-000-000-000-000"
6984
+ ],
6985
+ definition: "Primary function is outreach engagement, emergency shelter, or residential shelter/housing programs.",
6986
+ canonicalCode: "02-01-00-00",
6987
+ enumConstant: "ORGANIZATION_HOUSING"
6988
+ },
6989
+ {
6990
+ code: "048-005-001-000-000-000-000",
6991
+ key: "outreach_project",
6992
+ title: "Outreach Project",
6993
+ selectable: true,
6994
+ parentCode: "048-005-000-000-000-000-000",
6995
+ childCodes: [],
6996
+ definition: "Street/community outreach program that engaged the client prior to enrollment.",
6997
+ canonicalCode: "02-01-01-00",
6998
+ enumConstant: "ORGANIZATION_HOUSING_OUTREACHPROJECT"
6999
+ },
7000
+ {
7001
+ code: "048-005-002-000-000-000-000",
7002
+ key: "temporary_shelter",
7003
+ title: "Temporary Shelter",
7004
+ selectable: true,
7005
+ parentCode: "048-005-000-000-000-000-000",
7006
+ childCodes: [],
7007
+ definition: "Emergency/crisis shelter or short-term temporary housing program.",
7008
+ canonicalCode: "02-01-02-00",
7009
+ enumConstant: "ORGANIZATION_HOUSING_TEMPORARYSHELTER"
7010
+ },
7011
+ {
7012
+ code: "048-005-003-000-000-000-000",
7013
+ key: "residential_project",
7014
+ title: "Residential Project",
7015
+ selectable: true,
7016
+ parentCode: "048-005-000-000-000-000-000",
7017
+ childCodes: [],
7018
+ definition: "Longer-term residential or transitional living program.",
7019
+ canonicalCode: "02-01-03-00",
7020
+ enumConstant: "ORGANIZATION_HOUSING_RESIDENTIALPROJECT"
7021
+ },
7022
+ {
7023
+ code: "048-006-000-000-000-000-000",
7024
+ key: "hotlines",
7025
+ title: "Hotlines",
7026
+ selectable: false,
7027
+ parentCode: null,
7028
+ childCodes: [
7029
+ "048-006-003-000-000-000-000"
7030
+ ],
7031
+ definition: "Crisis lines or call centers that connect a person to services.",
7032
+ canonicalCode: "02-02-00-00",
7033
+ enumConstant: "ORGANIZATION_CALLCENTERS"
7034
+ },
7035
+ {
7036
+ code: "048-006-001-000-000-000-000",
7037
+ key: "national_hotline",
7038
+ title: "National hotline",
7039
+ selectable: true,
7040
+ parentCode: "048-006-003-000-000-000-000",
7041
+ childCodes: [],
7042
+ definition: "National-level hotline network.",
7043
+ canonicalCode: "02-02-01-01",
7044
+ enumConstant: "ORGANIZATION_CALLCENTERS_HOTLINE_NATIONAL"
7045
+ },
7046
+ {
7047
+ code: "048-006-002-000-000-000-000",
7048
+ key: "local_other_hotline",
7049
+ title: "Local/other hotline",
7050
+ selectable: true,
7051
+ parentCode: "048-006-003-000-000-000-000",
7052
+ childCodes: [],
7053
+ definition: "Local/regional hotline or non-national hotline.",
7054
+ canonicalCode: "02-02-01-02",
7055
+ enumConstant: "ORGANIZATION_CALLCENTERS_HOTLINE_LOCAL"
7056
+ },
7057
+ {
7058
+ code: "048-006-003-000-000-000-000",
7059
+ key: "hotline",
7060
+ title: "Hotline",
7061
+ selectable: true,
7062
+ parentCode: "048-006-000-000-000-000-000",
7063
+ childCodes: [
7064
+ "048-006-001-000-000-000-000",
7065
+ "048-006-002-000-000-000-000"
7066
+ ],
7067
+ definition: "Crisis hotline or call center that connected the client to services.",
7068
+ canonicalCode: "02-02-01-00",
7069
+ enumConstant: "ORGANIZATION_CALLCENTERS_HOTLINE"
7070
+ },
7071
+ {
7072
+ code: "048-007-000-000-000-000-000",
7073
+ key: "justice_protective_systems",
7074
+ title: "Justice & Protective Systems",
7075
+ selectable: false,
7076
+ parentCode: null,
7077
+ childCodes: [
7078
+ "048-007-001-000-000-000-000",
7079
+ "048-007-002-000-000-000-000",
7080
+ "048-007-003-000-000-000-000",
7081
+ "048-007-004-000-000-000-000",
7082
+ "048-007-005-000-000-000-000",
7083
+ "048-007-006-000-000-000-000"
7084
+ ],
7085
+ definition: null,
7086
+ canonicalCode: "02-03-00-00",
7087
+ enumConstant: "ORGANIZATION_JUSTICE"
7088
+ },
7089
+ {
7090
+ code: "048-007-001-000-000-000-000",
7091
+ key: "child_welfare_cps",
7092
+ title: "Child Welfare / CPS",
7093
+ selectable: true,
7094
+ parentCode: "048-007-000-000-000-000-000",
7095
+ childCodes: [],
7096
+ definition: "Government child protection agency responsible for investigating child abuse/neglect and ensuring child safety.",
7097
+ canonicalCode: "02-03-01-00",
7098
+ enumConstant: "ORGANIZATION_JUSTICE_CHILDWELFARE"
7099
+ },
7100
+ {
7101
+ code: "048-007-002-000-000-000-000",
7102
+ key: "juvenile_justice",
7103
+ title: "Juvenile Justice",
7104
+ selectable: true,
7105
+ parentCode: "048-007-000-000-000-000-000",
7106
+ childCodes: [],
7107
+ definition: "Juvenile probation/detention/court-related juvenile justice system initiated the referral.",
7108
+ canonicalCode: "02-03-02-00",
7109
+ enumConstant: "ORGANIZATION_JUSTICE_JUVENILE"
7110
+ },
7111
+ {
7112
+ code: "048-007-003-000-000-000-000",
7113
+ key: "law_enforcement",
7114
+ title: "Law enforcement / Police",
7115
+ selectable: true,
7116
+ parentCode: "048-007-000-000-000-000-000",
7117
+ childCodes: [
7118
+ "048-007-003-001-000-000-000",
7119
+ "048-007-003-002-000-000-000",
7120
+ "048-007-003-003-000-000-000",
7121
+ "048-007-003-004-000-000-000",
7122
+ "048-007-003-005-000-000-000"
7123
+ ],
7124
+ definition: "Law enforcement agency initiated the referral (local/state/federal).",
7125
+ canonicalCode: "02-03-03-00",
7126
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT"
7127
+ },
7128
+ {
7129
+ code: "048-007-003-001-000-000-000",
7130
+ key: "local_law_enforcement",
7131
+ title: "Local law enforcement",
7132
+ selectable: true,
7133
+ parentCode: "048-007-003-000-000-000-000",
7134
+ childCodes: [],
7135
+ definition: "City/county police or sheriff.",
7136
+ canonicalCode: "02-03-03-01",
7137
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_LOCAL"
7138
+ },
7139
+ {
7140
+ code: "048-007-003-002-000-000-000",
7141
+ key: "state_law_enforcement",
7142
+ title: "State law enforcement",
7143
+ selectable: true,
7144
+ parentCode: "048-007-003-000-000-000-000",
7145
+ childCodes: [],
7146
+ definition: "State-level law enforcement agency (e.g., state police/highway patrol/state bureau of investigation) acting in an official capacity.",
7147
+ canonicalCode: "02-03-03-02",
7148
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_STATE"
7149
+ },
7150
+ {
7151
+ code: "048-007-003-003-000-000-000",
7152
+ key: "federal_law_enforcement",
7153
+ title: "Federal law enforcement",
7154
+ selectable: true,
7155
+ parentCode: "048-007-003-000-000-000-000",
7156
+ childCodes: [],
7157
+ definition: "Federal law enforcement agency (e.g., FBI, DHS/ICE).",
7158
+ canonicalCode: "02-03-03-03",
7159
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_FEDERAL"
7160
+ },
7161
+ {
7162
+ code: "048-007-003-004-000-000-000",
7163
+ key: "tribal_law_enforcement",
7164
+ title: "Tribal law enforcement",
7165
+ selectable: true,
7166
+ parentCode: "048-007-003-000-000-000-000",
7167
+ childCodes: [],
7168
+ definition: "Tribal police.",
7169
+ canonicalCode: "02-03-03-04",
7170
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_TRIBAL"
7171
+ },
7172
+ {
7173
+ code: "048-007-003-005-000-000-000",
7174
+ key: "other_law_enforcement",
7175
+ title: "Other/ unknown LE",
7176
+ selectable: true,
7177
+ parentCode: "048-007-003-000-000-000-000",
7178
+ childCodes: [],
7179
+ definition: "Other law enforcement entity, or law enforcement type is unknown.",
7180
+ canonicalCode: "02-03-03-05",
7181
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_OTHER"
7182
+ },
7183
+ {
7184
+ code: "048-007-004-000-000-000-000",
7185
+ key: "courts_prosecution",
7186
+ title: "Courts or prosecution",
7187
+ selectable: true,
7188
+ parentCode: "048-007-000-000-000-000-000",
7189
+ childCodes: [],
7190
+ definition: "Court or prosecution entity (not law enforcement).",
7191
+ canonicalCode: "02-03-04-00",
7192
+ enumConstant: "ORGANIZATION_JUSTICE_COURTS"
7193
+ },
7194
+ {
7195
+ code: "048-007-005-000-000-000-000",
7196
+ key: "correction_probation",
7197
+ title: "Correction / probation",
7198
+ selectable: true,
7199
+ parentCode: "048-007-000-000-000-000-000",
7200
+ childCodes: [],
7201
+ definition: "Corrections, probation, parole, or community supervision entity (not law enforcement).",
7202
+ canonicalCode: "02-03-05-00",
7203
+ enumConstant: "ORGANIZATION_JUSTICE_CORRECTIONS"
7204
+ },
7205
+ {
7206
+ code: "048-007-006-000-000-000-000",
7207
+ key: "adult_protective_services",
7208
+ title: "Adult Protective Services (APS)",
7209
+ selectable: true,
7210
+ parentCode: "048-007-000-000-000-000-000",
7211
+ childCodes: [],
7212
+ definition: "Government adult protection agency responsible for investigating abuse, neglect, self-neglect, or exploitation of vulnerable or older adults and ensuring their safety. Adult analog of Child Welfare / CPS.",
7213
+ canonicalCode: "02-03-06-00",
7214
+ enumConstant: "ORGANIZATION_JUSTICE_ADULTPROTECTIVE"
7215
+ },
7216
+ {
7217
+ code: "048-008-000-000-000-000-000",
7218
+ key: "health_behavioral_health",
7219
+ title: "Health / behavioral health",
7220
+ selectable: false,
7221
+ parentCode: null,
7222
+ childCodes: [
7223
+ "048-008-001-000-000-000-000",
7224
+ "048-008-002-000-000-000-000"
7225
+ ],
7226
+ definition: "Hospitals and healthcare providers (including mental health inpatient facilities).",
7227
+ canonicalCode: "02-04-00-00",
7228
+ enumConstant: "ORGANIZATION_HEALTH"
7229
+ },
7230
+ {
7231
+ code: "048-008-001-000-000-000-000",
7232
+ key: "inpatient_psychiatric_facility",
7233
+ title: "Inpatient psychiatric facility",
7234
+ selectable: true,
7235
+ parentCode: "048-008-000-000-000-000-000",
7236
+ childCodes: [],
7237
+ definition: "Inpatient psychiatric hospital or psychiatric facility.",
7238
+ canonicalCode: "02-04-01-00",
7239
+ enumConstant: "ORGANIZATION_HEALTH_PSYCHIATRIC"
7240
+ },
7241
+ {
7242
+ code: "048-008-002-000-000-000-000",
7243
+ key: "healthcare_provider",
7244
+ title: "Healthcare provider (non-inpatient psychiatric)",
7245
+ selectable: true,
7246
+ parentCode: "048-008-000-000-000-000-000",
7247
+ childCodes: [],
7248
+ definition: "Any non-inpatient healthcare provider (clinic, hospital, outpatient provider, behavioral health clinic, SANE program, substance abuse clinic, etc.).",
7249
+ canonicalCode: "02-04-02-00",
7250
+ enumConstant: "ORGANIZATION_HEALTH_HEALTHCARE"
7251
+ },
7252
+ {
7253
+ code: "048-009-000-000-000-000-000",
7254
+ key: "education",
7255
+ title: "Education",
7256
+ selectable: false,
7257
+ parentCode: null,
7258
+ childCodes: [
7259
+ "048-009-001-000-000-000-000"
7260
+ ],
7261
+ definition: "Parent category for education-related institutions.",
7262
+ canonicalCode: "02-05-00-00",
7263
+ enumConstant: "ORGANIZATION_EDUCATION"
7264
+ },
7265
+ {
7266
+ code: "048-009-001-000-000-000-000",
7267
+ key: "school_academic_institution",
7268
+ title: "School / academic institution",
7269
+ selectable: true,
7270
+ parentCode: "048-009-000-000-000-000-000",
7271
+ childCodes: [],
7272
+ definition: "School system or educational institution.",
7273
+ canonicalCode: "02-05-01-00",
7274
+ enumConstant: "ORGANIZATION_EDUCATION_SCHOOL"
7275
+ },
7276
+ {
7277
+ code: "048-010-000-000-000-000-000",
7278
+ key: "victim_community_service_providers",
7279
+ title: "Victim + Community service providers",
7280
+ selectable: false,
7281
+ parentCode: null,
7282
+ childCodes: [
7283
+ "048-010-001-000-000-000-000",
7284
+ "048-010-002-000-000-000-000",
7285
+ "048-010-003-000-000-000-000",
7286
+ "048-010-004-000-000-000-000"
7287
+ ],
7288
+ definition: "Parent category for victim service providers and community-based service providers.",
7289
+ canonicalCode: "02-06-00-00",
7290
+ enumConstant: "ORGANIZATION_COMMUNITY"
7291
+ },
7292
+ {
7293
+ code: "048-010-001-000-000-000-000",
7294
+ key: "child_advocacy_center",
7295
+ title: "Child Advocacy Center (CAC)",
7296
+ selectable: true,
7297
+ parentCode: "048-010-000-000-000-000-000",
7298
+ childCodes: [],
7299
+ definition: "A child-centered multidisciplinary center coordinating investigation and services (forensic interview, coordination, referrals, sometimes medical or therapy) for child victims.",
7300
+ canonicalCode: "02-06-01-00",
7301
+ enumConstant: "ORGANIZATION_COMMUNITY_CHILDADVOCACYCENTER"
7302
+ },
7303
+ {
7304
+ code: "048-010-002-000-000-000-000",
7305
+ key: "victim_service_provider",
7306
+ title: "Victim service provider / advocacy program",
7307
+ selectable: true,
7308
+ parentCode: "048-010-000-000-000-000-000",
7309
+ childCodes: [],
7310
+ definition: "Organization whose primary mission is to provide services to victims/survivors of crime (VOCA-aligned breadth: rape crisis centers, DV/dating-violence/stalking programs, anti-trafficking programs, child victim centers, homicide-survivor organizations, and similar). Whether the organization is specifically a DV/SA victim service provider \u2014 the fact HMIS 2.01 needs (Comparable Database) \u2014 is a separate per-organization attribute, self-attested by the organization at onboarding (Platform survey / Agency Hub \u201CMy agency info\u201D), not part of this category.",
7311
+ canonicalCode: "02-06-02-00",
7312
+ enumConstant: "ORGANIZATION_COMMUNITY_VICTIMSERVICEPROVIDER"
7313
+ },
7314
+ {
7315
+ code: "048-010-003-000-000-000-000",
7316
+ key: "community_based_service_provider",
7317
+ title: "Community-based service provider (general social services)",
7318
+ selectable: true,
7319
+ parentCode: "048-010-000-000-000-000-000",
7320
+ childCodes: [],
7321
+ definition: "The residual community-based provider (\u201Cother community-based service provider\u201D): a non-VSP offering practical support services, navigation, or stabilization resources that is not primarily a VSP, a legal services provider, a housing/shelter project, a government justice agency, a healthcare provider, a school, a hotline, or a public benefits office. (Ex: youth drop-in center; food pantry; reentry program.)",
7322
+ canonicalCode: "02-06-03-00",
7323
+ enumConstant: "ORGANIZATION_COMMUNITY_COMMUNITYSERVICEPROVIDER"
7324
+ },
7325
+ {
7326
+ code: "048-010-004-000-000-000-000",
7327
+ key: "legal_services_provider",
7328
+ title: "Legal services provider",
7329
+ selectable: true,
7330
+ parentCode: "048-010-000-000-000-000-000",
7331
+ childCodes: [],
7332
+ definition: "Civil legal aid organization, immigration attorneys, victim-rights law clinic, or similar provider of legal help to the client. Distinct from Courts or prosecution (the justice-system entity itself): this is getting a lawyer's help, not being referred into proceedings.",
7333
+ canonicalCode: "02-06-04-00",
7334
+ enumConstant: "ORGANIZATION_COMMUNITY_LEGALSERVICES"
7335
+ },
7336
+ {
7337
+ code: "048-011-000-000-000-000-000",
7338
+ key: "coordination_governance",
7339
+ title: "Coordination & Governance",
7340
+ selectable: false,
7341
+ parentCode: null,
7342
+ childCodes: [
7343
+ "048-011-001-000-000-000-000",
7344
+ "048-011-002-000-000-000-000"
7345
+ ],
7346
+ definition: "Parent category for coordination and governance bodies (e.g., MDTs, coalitions).",
7347
+ canonicalCode: "02-07-00-00",
7348
+ enumConstant: "ORGANIZATION_GOVERNANCE"
7349
+ },
7350
+ {
7351
+ code: "048-011-001-000-000-000-000",
7352
+ key: "mdt",
7353
+ title: "Multidisciplinary team (MDT)",
7354
+ selectable: true,
7355
+ parentCode: "048-011-000-000-000-000-000",
7356
+ childCodes: [],
7357
+ definition: "A case-level team: professionals from multiple agencies (law enforcement, child welfare, medical, advocacy) who review and coordinate individual cases together; referrals arise out of case review. (E.g., a county trafficking MDT or a CAC-based team.)",
7358
+ canonicalCode: "02-07-01-00",
7359
+ enumConstant: "ORGANIZATION_GOVERNANCE_MDT"
7360
+ },
7361
+ {
7362
+ code: "048-011-002-000-000-000-000",
7363
+ key: "coalition",
7364
+ title: "Coalition (state/regional coalition)",
7365
+ selectable: true,
7366
+ parentCode: "048-011-000-000-000-000-000",
7367
+ childCodes: [],
7368
+ definition: "A state or regional membership body of organizations coordinating at the system level \u2014 training, standards, policy, funding \u2014 not individual cases; referrals from a coalition are typically warm handoffs to a member organization.",
7369
+ canonicalCode: "02-07-02-00",
7370
+ enumConstant: "ORGANIZATION_GOVERNANCE_COALITION"
7371
+ },
7372
+ {
7373
+ code: "048-012-000-000-000-000-000",
7374
+ key: "internal",
7375
+ title: "Internal",
7376
+ selectable: false,
7377
+ parentCode: null,
7378
+ childCodes: [
7379
+ "048-012-001-000-000-000-000"
7380
+ ],
7381
+ definition: "Parent category for internal referrals within the same umbrella agency.",
7382
+ canonicalCode: "02-08-00-00",
7383
+ enumConstant: "ORGANIZATION_INTERNAL"
7384
+ },
7385
+ {
7386
+ code: "048-012-001-000-000-000-000",
7387
+ key: "own_agency_internal",
7388
+ title: "Own agency / internal referral",
7389
+ selectable: true,
7390
+ parentCode: "048-012-000-000-000-000-000",
7391
+ childCodes: [],
7392
+ definition: "Client was referred from another program or unit within the same umbrella agency.",
7393
+ canonicalCode: "02-08-01-00",
7394
+ enumConstant: "ORGANIZATION_INTERNAL_OWNAGENCY"
7395
+ },
7396
+ {
7397
+ code: "048-013-000-000-000-000-000",
7398
+ key: "other_entity",
7399
+ title: "Other",
7400
+ selectable: false,
7401
+ parentCode: null,
7402
+ childCodes: [
7403
+ "048-013-001-000-000-000-000",
7404
+ "048-013-002-000-000-000-000",
7405
+ "048-013-003-000-000-000-000"
7406
+ ],
7407
+ definition: "Parent category for other organizations not captured by the primary sectors.",
7408
+ canonicalCode: "02-09-00-00",
7409
+ enumConstant: "ORGANIZATION_OTHER"
7410
+ },
7411
+ {
7412
+ code: "048-013-001-000-000-000-000",
7413
+ key: "employer",
7414
+ title: "Employer",
7415
+ selectable: true,
7416
+ parentCode: "048-013-000-000-000-000-000",
7417
+ childCodes: [],
7418
+ definition: "Employer, HR, or employee assistance program initiated the referral.",
7419
+ canonicalCode: "02-09-01-00",
7420
+ enumConstant: "ORGANIZATION_OTHER_EMPLOYER"
7421
+ },
7422
+ {
7423
+ code: "048-013-002-000-000-000-000",
7424
+ key: "benefits_public_assistance_office",
7425
+ title: "Benefits/public assistance office",
7426
+ selectable: true,
7427
+ parentCode: "048-013-000-000-000-000-000",
7428
+ childCodes: [],
7429
+ definition: "Government office administering public benefits or eligibility and enrollment (e.g., SNAP, TANF, Medicaid, SSA).",
7430
+ canonicalCode: "02-09-02-00",
7431
+ enumConstant: "ORGANIZATION_OTHER_PUBLICASSISTANCE"
7432
+ },
7433
+ {
7434
+ code: "048-013-003-000-000-000-000",
7435
+ key: "other_organization",
7436
+ title: "Other Organization",
7437
+ selectable: true,
7438
+ parentCode: "048-013-000-000-000-000-000",
7439
+ childCodes: [],
7440
+ definition: "Other organization not otherwise captured by the listed categories.",
7441
+ canonicalCode: "02-09-03-00",
7442
+ enumConstant: "ORGANIZATION_OTHER_UNSPECIFIED"
7443
+ }
7444
+ ]
7445
+ };
7446
+
7447
+ // src/constants/org-type.ts
7448
+ var ENTRIES = referralEntityCategory_v1_2_0_default.entries;
7449
+ var BY_KEY = new Map(ENTRIES.map((e) => [e.key, e]));
7450
+ var BY_CODE = new Map(ENTRIES.map((e) => [e.code, e]));
7451
+ var BY_CANON = new Map(
7452
+ ENTRIES.filter((e) => e.canonicalCode).map((e) => [
7453
+ e.canonicalCode,
7454
+ e
7455
+ ])
7456
+ );
7457
+ var BY_ENUM_CONSTANT = new Map(
7458
+ ENTRIES.filter((e) => e.enumConstant).map((e) => [
7459
+ e.enumConstant,
7460
+ e
7461
+ ])
7462
+ );
7463
+ var isOrgHalf = (e) => (e.canonicalCode ?? "").startsWith("02-");
7464
+ var isHeading = (e) => isOrgHalf(e) && !e.selectable && /^02-\d\d-00-00$/.test(e.canonicalCode ?? "");
7465
+ var ORG_TYPE_HEADING_KEYS = Object.freeze([
7466
+ "housing_shelter_continuum",
7467
+ "hotlines",
7468
+ "justice_protective_systems",
7469
+ "health_behavioral_health",
7470
+ "education",
7471
+ "victim_community_service_providers",
7472
+ "coordination_governance",
7473
+ "internal",
7474
+ "other_entity"
7475
+ ]);
7476
+ var ORG_TYPE_SELECTABLE_KEYS = Object.freeze([
7477
+ "outreach_project",
7478
+ "temporary_shelter",
7479
+ "residential_project",
7480
+ "national_hotline",
7481
+ "local_other_hotline",
7482
+ "hotline",
7483
+ "child_welfare_cps",
7484
+ "juvenile_justice",
7485
+ "law_enforcement",
7486
+ "local_law_enforcement",
7487
+ "state_law_enforcement",
7488
+ "federal_law_enforcement",
7489
+ "tribal_law_enforcement",
7490
+ "other_law_enforcement",
7491
+ "courts_prosecution",
7492
+ "correction_probation",
7493
+ "adult_protective_services",
7494
+ "inpatient_psychiatric_facility",
7495
+ "healthcare_provider",
7496
+ "school_academic_institution",
7497
+ "child_advocacy_center",
7498
+ "victim_service_provider",
7499
+ "community_based_service_provider",
7500
+ "legal_services_provider",
7501
+ "mdt",
7502
+ "coalition",
7503
+ "employer",
7504
+ "benefits_public_assistance_office",
7505
+ "other_organization"
7506
+ ]);
7507
+ var ORG_TYPE_NONPICKABLE_LEAF_KEYS = Object.freeze([
7508
+ "own_agency_internal"
7509
+ ]);
7510
+ var ORG_TYPE_KEYS = Object.freeze([
7511
+ ...ORG_TYPE_HEADING_KEYS,
7512
+ ...ORG_TYPE_SELECTABLE_KEYS,
7513
+ ...ORG_TYPE_NONPICKABLE_LEAF_KEYS
7514
+ ]);
7515
+ var AGENCY_TYPE_KEYS = Object.freeze([
7516
+ ...ORG_TYPE_SELECTABLE_KEYS,
7517
+ ...ORG_TYPE_NONPICKABLE_LEAF_KEYS,
7518
+ "unknown"
7519
+ ]);
7520
+ var ORG_TYPE_KEY_SET = new Set(ORG_TYPE_KEYS);
7521
+ var AGENCY_TYPE_KEY_SET = new Set(AGENCY_TYPE_KEYS);
7522
+ function isOrgTypeKey(value) {
7523
+ return typeof value === "string" && ORG_TYPE_KEY_SET.has(value);
7524
+ }
7525
+ function isAgencyTypeKey(value) {
7526
+ return typeof value === "string" && AGENCY_TYPE_KEY_SET.has(value);
7527
+ }
7528
+ function lookup(value) {
7529
+ if (typeof value !== "string") return null;
7530
+ const v = value.trim();
7531
+ if (!v) return null;
7532
+ return BY_KEY.get(v.toLowerCase()) ?? BY_ENUM_CONSTANT.get(v.toUpperCase()) ?? BY_CANON.get(v) ?? BY_CODE.get(v) ?? null;
7533
+ }
7534
+ function resolveOrgTypeKey(value) {
7535
+ const hit = lookup(value);
7536
+ return hit && isOrgTypeKey(hit.key) ? hit.key : null;
7537
+ }
7538
+ function resolveAgencyTypeKey(value) {
7539
+ const hit = lookup(value);
7540
+ return hit && isAgencyTypeKey(hit.key) ? hit.key : null;
7541
+ }
7542
+ var LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY = Object.freeze({
7543
+ 0: "unknown",
7544
+ 1: "own_agency_internal",
7545
+ 2: "self_referred",
7546
+ 3: "family_guardian_friend",
7547
+ 4: "peer",
7548
+ 5: "other_individual",
7549
+ 10: "housing_shelter_continuum",
7550
+ 11: "hotline",
7551
+ 12: "justice_protective_systems",
7552
+ 13: "outreach_project",
7553
+ 14: "temporary_shelter",
7554
+ 15: "residential_project",
7555
+ 16: "health_behavioral_health",
7556
+ 17: "education",
7557
+ 18: "law_enforcement",
7558
+ 19: "other_entity",
7559
+ 20: "child_welfare_cps",
7560
+ 21: "juvenile_justice",
7561
+ 22: "courts_prosecution",
7562
+ 23: "correction_probation",
7563
+ 24: "inpatient_psychiatric_facility",
7564
+ 25: "healthcare_provider",
7565
+ 26: "victim_community_service_providers",
7566
+ 27: "child_advocacy_center",
7567
+ 28: "victim_service_provider",
7568
+ 29: "community_based_service_provider",
7569
+ 30: "employer",
7570
+ 31: "benefits_public_assistance_office"
7571
+ });
7572
+ function resolveReferralEntityKeyFromLegacyNumeric(value) {
7573
+ const n = typeof value === "number" ? value : typeof value === "string" && /^\s*\d{1,2}\s*$/.test(value) ? Number(value) : NaN;
7574
+ if (!Number.isInteger(n)) return null;
7575
+ const table = LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY;
7576
+ return table[n] ?? null;
7577
+ }
7578
+ function resolveOrgTypeKeyFromLegacyNumeric(value) {
7579
+ const k = resolveReferralEntityKeyFromLegacyNumeric(value);
7580
+ return k && isOrgTypeKey(k) ? k : null;
7581
+ }
7582
+ function orgTypeEnumConstant(key) {
7583
+ return BY_KEY.get(key)?.enumConstant ?? null;
7584
+ }
7585
+ function orgTypeCanonicalCode(key) {
7586
+ return BY_KEY.get(key)?.canonicalCode ?? null;
7587
+ }
7588
+ function orgTypeLabel(key) {
7589
+ return BY_KEY.get(key)?.title ?? null;
7590
+ }
7591
+ function orgTypeAncestry(key) {
7592
+ const out = [];
7593
+ const seen = /* @__PURE__ */ new Set();
7594
+ let cursor = BY_KEY.get(key);
7595
+ while (cursor && !seen.has(cursor.code)) {
7596
+ seen.add(cursor.code);
7597
+ out.push(cursor.key);
7598
+ cursor = cursor.parentCode ? BY_CODE.get(cursor.parentCode) : void 0;
7599
+ }
7600
+ return out;
7601
+ }
7602
+ var ORG_TYPE_PARENT_KEY = Object.freeze(
7603
+ Object.fromEntries(
7604
+ ENTRIES.filter(isOrgHalf).map((e) => [
7605
+ e.key,
7606
+ e.parentCode ? BY_CODE.get(e.parentCode)?.key ?? null : null
7607
+ ])
7608
+ )
7609
+ );
7610
+ function orgTypeSector(key) {
7611
+ const chain = orgTypeAncestry(key);
7612
+ if (!chain.length) return null;
7613
+ const top = chain[chain.length - 1];
7614
+ const entry = BY_KEY.get(top);
7615
+ return entry && isHeading(entry) ? top : null;
7616
+ }
7617
+ var VICTIM_SERVING_ORG_TYPE_KEYS = Object.freeze([
7618
+ "victim_service_provider",
7619
+ "child_advocacy_center"
7620
+ ]);
7621
+ var LAW_ENFORCEMENT_ORG_TYPE_KEYS = Object.freeze([
7622
+ "law_enforcement",
7623
+ "local_law_enforcement",
7624
+ "state_law_enforcement",
7625
+ "federal_law_enforcement",
7626
+ "tribal_law_enforcement",
7627
+ "other_law_enforcement"
7628
+ ]);
7629
+ var LEGAL_ORG_TYPE_KEYS = Object.freeze([
7630
+ "courts_prosecution",
7631
+ "legal_services_provider"
7632
+ ]);
7633
+ var HEALTHCARE_ORG_TYPE_KEYS = Object.freeze([
7634
+ "health_behavioral_health",
7635
+ "inpatient_psychiatric_facility",
7636
+ "healthcare_provider"
7637
+ ]);
7638
+ var REPORT_AUTHORITY_ORG_TYPE_KEYS = Object.freeze([
7639
+ "justice_protective_systems",
7640
+ "child_welfare_cps",
7641
+ "juvenile_justice",
7642
+ "law_enforcement",
7643
+ "local_law_enforcement",
7644
+ "state_law_enforcement",
7645
+ "federal_law_enforcement",
7646
+ "tribal_law_enforcement",
7647
+ "other_law_enforcement",
7648
+ "courts_prosecution",
7649
+ "correction_probation",
7650
+ "adult_protective_services"
7651
+ ]);
7652
+ var NO_SECTOR_ORG_TYPE_KEYS = Object.freeze([
7653
+ "internal",
7654
+ "own_agency_internal",
7655
+ "unknown"
7656
+ ]);
7657
+ var asSet = (keys) => new Set(keys);
7658
+ var VICTIM_SERVING = asSet(VICTIM_SERVING_ORG_TYPE_KEYS);
7659
+ var LAW_ENFORCEMENT = asSet(LAW_ENFORCEMENT_ORG_TYPE_KEYS);
7660
+ var LEGAL = asSet(LEGAL_ORG_TYPE_KEYS);
7661
+ var HEALTHCARE = asSet(HEALTHCARE_ORG_TYPE_KEYS);
7662
+ var REPORT_AUTHORITY = asSet(REPORT_AUTHORITY_ORG_TYPE_KEYS);
7663
+ var NO_SECTOR = asSet(NO_SECTOR_ORG_TYPE_KEYS);
7664
+ function isVictimServingOrgType(type) {
7665
+ const k = resolveAgencyTypeKey(type);
7666
+ return !!k && VICTIM_SERVING.has(k);
7667
+ }
7668
+ function isLawEnforcementOrgType(type) {
7669
+ const k = resolveAgencyTypeKey(type);
7670
+ return !!k && LAW_ENFORCEMENT.has(k);
7671
+ }
7672
+ function isLegalOrgType(type) {
7673
+ const k = resolveAgencyTypeKey(type);
7674
+ return !!k && LEGAL.has(k);
7675
+ }
7676
+ function isHealthcareOrgType(type) {
7677
+ const k = resolveAgencyTypeKey(type);
7678
+ return !!k && HEALTHCARE.has(k);
7679
+ }
7680
+ function isReportAuthorityOrgType(type) {
7681
+ const k = resolveAgencyTypeKey(type);
7682
+ return !!k && REPORT_AUTHORITY.has(k);
7683
+ }
7684
+ function orgTypeDefaultVsp(type) {
7685
+ const k = resolveAgencyTypeKey(type);
7686
+ if (!k || NO_SECTOR.has(k) || k === "child_advocacy_center") return null;
7687
+ return k === "victim_service_provider";
7688
+ }
7689
+ function orgTypeDefaultSessionRole(type, vsp) {
7690
+ return orgTypeDefaultSessionRoleOrNull(type, vsp) ?? "vsp_staff";
7691
+ }
7692
+ function orgTypeDefaultSessionRoleOrNull(type, vsp) {
7693
+ if (vsp === true) return "vsp_staff";
7694
+ const k = resolveAgencyTypeKey(type);
7695
+ if (!k) return null;
7696
+ if (NO_SECTOR.has(k)) return "vsp_staff";
7697
+ if (VICTIM_SERVING.has(k)) return "vsp_staff";
7698
+ if (LAW_ENFORCEMENT.has(k)) return "law_enforcement_personnel";
7699
+ if (LEGAL.has(k)) return "legal_professional";
7700
+ if (HEALTHCARE.has(k)) return "healthcare_provider_staff";
7701
+ return "other_response_personnel";
7702
+ }
7703
+
6763
7704
  // src/schemas/common.ts
6764
7705
  var import_mongoose = require("mongoose");
6765
7706
  var addressSchema = new import_mongoose.Schema(
@@ -7757,6 +8698,147 @@ function buildCvcEntrySchema() {
7757
8698
  }
7758
8699
  var _cvcEntrySchema = buildCvcEntrySchema();
7759
8700
 
8701
+ // src/schemas/agency.ts
8702
+ var import_mongoose11 = require("mongoose");
8703
+ function vspTwoStepHolds(v) {
8704
+ return v.vspPrivateNonprofit == null || v.vsp === true;
8705
+ }
8706
+ var VSP_TWO_STEP_ISSUE = {
8707
+ message: "vspPrivateNonprofit is step 2 of the HMIS VSP two-step and requires vsp: true",
8708
+ path: ["vspPrivateNonprofit"]
8709
+ };
8710
+ function vspTwoStepHoldsOnUpdate(update) {
8711
+ if (!update || typeof update !== "object") return true;
8712
+ const u = update;
8713
+ const set = { ...u, ...u.$set ?? {} };
8714
+ return vspTwoStepHolds({
8715
+ vsp: set.vsp,
8716
+ vspPrivateNonprofit: set.vspPrivateNonprofit
8717
+ });
8718
+ }
8719
+ var orgTypeSchemaDefinition = {
8720
+ /**
8721
+ * The agency's organization type: a CVC-48 key from
8722
+ * {@link AGENCY_TYPE_KEYS} (a selectable org-type leaf, or the pre-backfill
8723
+ * `unknown`). Set once in the Admin Hub; carried from the Org. Never free
8724
+ * text — a value outside the enum fails validation on `save()` and, when
8725
+ * the fragment is added with {@link addAgencyOrgTypeFields} (default
8726
+ * options), on `updateOne` / `updateMany` / `findOneAndUpdate` too.
8727
+ *
8728
+ * ORDER OF ADOPTION (review MG2, pinned in org-type-contract.test.ts):
8729
+ * Mongoose validates `init`-ed paths on `save()`, not only modified ones,
8730
+ * so once a consumer adds this fragment, an agency document that carries a
8731
+ * NON-KEY `type` (free text, "UNKNOWN", "multi_service", a number) fails
8732
+ * its next save of ANY field. A document with no `type` at all saves fine.
8733
+ * Backfill first (every stored value → a key or `unknown`), then adopt.
8734
+ */
8735
+ type: {
8736
+ type: String,
8737
+ enum: [...AGENCY_TYPE_KEYS],
8738
+ index: true
8739
+ },
8740
+ /**
8741
+ * Is this organization a DV/SA victim service provider — the HMIS 2.01
8742
+ * (Comparable Database) fact. Captured in the Admin Hub (never inferred
8743
+ * from the type; the type only PROPOSES it — `orgTypeDefaultVsp`, the
8744
+ * Hub's pre-fill — and HTI Labs affirms or changes it there). Tri-state:
8745
+ * `true` / `false` / absent (not yet captured — a reader falls back to the
8746
+ * proposal).
8747
+ */
8748
+ vsp: {
8749
+ type: Boolean
8750
+ },
8751
+ /**
8752
+ * Step 2 of the two-step: private non-profit VSP (VOCA/OVC PMT
8753
+ * distinction). Captured; tri-state; may only be `true`/`false` when
8754
+ * `vsp === true` ({@link vspTwoStepHolds}, enforced at the mount).
8755
+ */
8756
+ vspPrivateNonprofit: {
8757
+ type: Boolean
8758
+ }
8759
+ };
8760
+ var agencyOrgTypeSchemaDefinition = orgTypeSchemaDefinition;
8761
+ var ORG_TYPE_FIELD_NAMES = Object.freeze([
8762
+ "type",
8763
+ "vsp",
8764
+ "vspPrivateNonprofit"
8765
+ ]);
8766
+ var AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS = Object.freeze([
8767
+ "updateOne",
8768
+ "updateMany",
8769
+ "findOneAndUpdate"
8770
+ ]);
8771
+ function applyRunValidatorsIfUnset(query) {
8772
+ if (query.getOptions().runValidators === void 0) {
8773
+ query.setOptions({ runValidators: true });
8774
+ }
8775
+ }
8776
+ function mountOrgTypeFields(schema, options) {
8777
+ schema.add(orgTypeSchemaDefinition);
8778
+ schema.pre("validate", function() {
8779
+ const doc = this;
8780
+ if (!vspTwoStepHolds(doc)) {
8781
+ const err = new import_mongoose11.Error.ValidationError();
8782
+ err.addError(
8783
+ "vspPrivateNonprofit",
8784
+ new import_mongoose11.Error.ValidatorError({
8785
+ path: "vspPrivateNonprofit",
8786
+ message: VSP_TWO_STEP_ISSUE.message,
8787
+ value: doc.vspPrivateNonprofit
8788
+ })
8789
+ );
8790
+ throw err;
8791
+ }
8792
+ });
8793
+ const validateOnUpdate = options.validateOnUpdate ?? true;
8794
+ schema.pre(
8795
+ [...AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS],
8796
+ function() {
8797
+ if (!vspTwoStepHoldsOnUpdate(this.getUpdate())) {
8798
+ throw new Error(VSP_TWO_STEP_ISSUE.message);
8799
+ }
8800
+ if (validateOnUpdate) applyRunValidatorsIfUnset(this);
8801
+ }
8802
+ );
8803
+ return schema;
8804
+ }
8805
+ function addOrgTypeFields(schema, options = {}) {
8806
+ return mountOrgTypeFields(schema, options);
8807
+ }
8808
+ function addAgencyOrgTypeFields(schema, options = {}) {
8809
+ return mountOrgTypeFields(schema, options);
8810
+ }
8811
+ function pickOrgTypeFields(src) {
8812
+ const out = {};
8813
+ if (src) {
8814
+ for (const k of ORG_TYPE_FIELD_NAMES) {
8815
+ const v = src[k];
8816
+ if (v != null) out[k] = v;
8817
+ }
8818
+ }
8819
+ return out;
8820
+ }
8821
+ function mirrorOrgTypeFields(org) {
8822
+ const out = pickOrgTypeFields(org);
8823
+ if (!vspTwoStepHolds(out)) {
8824
+ throw new Error(`mirrorOrgTypeFields: ${VSP_TWO_STEP_ISSUE.message}`);
8825
+ }
8826
+ return out;
8827
+ }
8828
+ function resolveEffectiveOrgTypeFields(org, agency) {
8829
+ const linked = agency != null && agency.organizationId != null;
8830
+ if (linked && org) return pickOrgTypeFields(org);
8831
+ return pickOrgTypeFields(agency);
8832
+ }
8833
+ function resolveEffectiveOrgType(org, agency) {
8834
+ return resolveAgencyTypeKey(resolveEffectiveOrgTypeFields(org, agency).type);
8835
+ }
8836
+ function orgTypeFieldsDiffer(org, agency) {
8837
+ const a = pickOrgTypeFields(org);
8838
+ const b = pickOrgTypeFields(agency);
8839
+ return ORG_TYPE_FIELD_NAMES.filter((k) => a[k] !== b[k]);
8840
+ }
8841
+
7760
8842
  // src/models/formModel.ts
7761
8843
  var formModel_exports = {};
7762
8844
  __export(formModel_exports, {
@@ -8907,6 +9989,7 @@ var ReferralEntityCategoryKeys = {
8907
9989
  hotlines: "048-006-000-000-000-000-000",
8908
9990
  national_hotline: "048-006-001-000-000-000-000",
8909
9991
  local_other_hotline: "048-006-002-000-000-000-000",
9992
+ hotline: "048-006-003-000-000-000-000",
8910
9993
  justice_protective_systems: "048-007-000-000-000-000-000",
8911
9994
  child_welfare_cps: "048-007-001-000-000-000-000",
8912
9995
  juvenile_justice: "048-007-002-000-000-000-000",
@@ -10739,7 +11822,8 @@ var CoreFunctionsKeys = {
10739
11822
  thread_share_send: "133-074-000-000-000-000-000",
10740
11823
  training_content_upload: "133-075-000-000-000-000-000",
10741
11824
  training_gate_manage: "133-076-000-000-000-000-000",
10742
- usr_manage: "133-077-000-000-000-000-000"
11825
+ usr_manage: "133-077-000-000-000-000-000",
11826
+ note_open_departed_author: "133-078-000-000-000-000-000"
10743
11827
  };
10744
11828
  var NeedsAssessmentChangeTypeKeys = {
10745
11829
  missingness_root: "982-000-000-000-000-000-000",
@@ -12452,6 +13536,26 @@ var TeamDirectoryFieldsSchema = import_zod2.z.object({
12452
13536
  canReferTo: import_zod2.z.array(ObjectIdHexSchema).refine(hasNoDuplicates, "canReferTo must not repeat a team").optional()
12453
13537
  });
12454
13538
 
13539
+ // src/validation/agency.ts
13540
+ var import_zod3 = require("zod");
13541
+ var OrgTypeSelectableKeySchema = import_zod3.z.enum(ORG_TYPE_SELECTABLE_KEYS);
13542
+ var AgencyTypeKeySchema = import_zod3.z.enum(AGENCY_TYPE_KEYS);
13543
+ var orgTypeFieldsShape = {
13544
+ type: AgencyTypeKeySchema.optional(),
13545
+ vsp: import_zod3.z.boolean().optional(),
13546
+ vspPrivateNonprofit: import_zod3.z.boolean().optional()
13547
+ };
13548
+ var AgencyOrgTypeFieldsSchema = import_zod3.z.object(orgTypeFieldsShape).refine(vspTwoStepHolds, VSP_TWO_STEP_ISSUE);
13549
+ function withOrgTypeFields(shape) {
13550
+ return import_zod3.z.object({ ...shape, ...orgTypeFieldsShape }).refine(vspTwoStepHolds, VSP_TWO_STEP_ISSUE);
13551
+ }
13552
+ var OrgTypeFieldsSchema = AgencyOrgTypeFieldsSchema;
13553
+ var SetOrgTypeInputSchema = import_zod3.z.object({
13554
+ type: OrgTypeSelectableKeySchema,
13555
+ vsp: import_zod3.z.boolean().optional(),
13556
+ vspPrivateNonprofit: import_zod3.z.boolean().optional()
13557
+ }).strict().refine(vspTwoStepHolds, VSP_TWO_STEP_ISSUE);
13558
+
12455
13559
  // src/cvcs/serviceCategories.v1.0.0.json
12456
13560
  var serviceCategories_v1_0_0_default = {
12457
13561
  domain: "service_categories",
@@ -22751,1306 +23855,727 @@ var personRelationships_v1_0_0_default = {
22751
23855
  parentCode: "126-007-000-000-000-000-000",
22752
23856
  childCodes: [
22753
23857
  "126-007-004-001-000-000-000",
22754
- "126-007-004-002-000-000-000"
22755
- ],
22756
- definition: "Relationship where one person recruits/entices another into commercial sex or exploitation context."
22757
- },
22758
- {
22759
- code: "126-007-004-001-000-000-000",
22760
- key: "recruited_by",
22761
- title: "Recruited person",
22762
- selectable: true,
22763
- parentCode: "126-007-004-000-000-000-000",
22764
- childCodes: [],
22765
- definition: "Role: the related person was recruited/enticed by the anchor person."
22766
- },
22767
- {
22768
- code: "126-007-004-002-000-000-000",
22769
- key: "recruiter_of",
22770
- title: "Recruiter",
22771
- selectable: true,
22772
- parentCode: "126-007-004-000-000-000-000",
22773
- childCodes: [],
22774
- definition: "Role: the related person recruited/enticed the anchor person into commercial sex/exploitation context."
22775
- },
22776
- {
22777
- code: "126-007-005-000-000-000-000",
22778
- key: "trafficker_victim",
22779
- title: "Trafficker / Victim",
22780
- selectable: true,
22781
- parentCode: "126-007-000-000-000-000-000",
22782
- childCodes: [
22783
- "126-007-005-001-000-000-000",
22784
- "126-007-005-002-000-000-000"
22785
- ],
22786
- definition: "Exploitation relationship where one person is believed to traffic/exploit the other in a commercial sex or related exploitation context."
22787
- },
22788
- {
22789
- code: "126-007-005-001-000-000-000",
22790
- key: "trafficker_of",
22791
- title: "Trafficker",
22792
- selectable: true,
22793
- parentCode: "126-007-005-000-000-000-000",
22794
- childCodes: [],
22795
- definition: "Role: the related person is the trafficker/exploiter of the anchor person."
22796
- },
22797
- {
22798
- code: "126-007-005-002-000-000-000",
22799
- key: "victim_of_trafficker",
22800
- title: "Victim",
22801
- selectable: true,
22802
- parentCode: "126-007-005-000-000-000-000",
22803
- childCodes: [],
22804
- definition: "Role: the related person is the victim/target of trafficking/exploitation by the anchor person."
22805
- },
22806
- {
22807
- code: "126-008-000-000-000-000-000",
22808
- key: "other_unspecified",
22809
- title: "Other / Unspecified",
22810
- selectable: false,
22811
- parentCode: null,
22812
- childCodes: [
22813
- "126-008-001-000-000-000-000",
22814
- "126-008-002-000-000-000-000",
22815
- "126-008-003-000-000-000-000",
22816
- "126-008-004-000-000-000-000"
22817
- ],
22818
- definition: "High-level topic for edge cases, unknown/low-information ties, and constrained exceptions that don't fit the primary relationship domains."
22819
- },
22820
- {
22821
- code: "126-008-001-000-000-000-000",
22822
- key: "other_person_relationship",
22823
- title: "Other person relationship",
22824
- selectable: true,
22825
- parentCode: "126-008-000-000-000-000-000",
22826
- childCodes: [],
22827
- definition: "Person-to-person relationship exists, but none of the available structural relationship types fit. Should require detail text."
22828
- },
22829
- {
22830
- code: "126-008-002-000-000-000-000",
22831
- key: "person_pet",
22832
- title: "Pet / Animal (person\u2194pet)",
22833
- selectable: true,
22834
- parentCode: "126-008-000-000-000-000-000",
22835
- childCodes: [
22836
- "126-008-002-001-000-000-000",
22837
- "126-008-002-002-000-000-000",
22838
- "126-008-002-003-000-000-000"
22839
- ],
22840
- definition: "Structural relationship between a person and a pet/animal entity, where the person has ownership, guardianship, caretaking, or similar responsibility. This is a constrained non-person branch inside core_person_relationship for UI continuity; it is not a person\u2194person tie."
22841
- },
22842
- {
22843
- code: "126-008-002-001-000-000-000",
22844
- key: "pet_caregiver_of",
22845
- title: "Caregiver of (pet)",
22846
- selectable: true,
22847
- parentCode: "126-008-002-000-000-000-000",
22848
- childCodes: [],
22849
- definition: "Person provides primary day-to-day care for the pet/animal, regardless of legal ownership."
22850
- },
22851
- {
22852
- code: "126-008-002-002-000-000-000",
22853
- key: "pet_of",
22854
- title: "Pet of",
22855
- selectable: true,
22856
- parentCode: "126-008-002-000-000-000-000",
22857
- childCodes: [],
22858
- definition: "Pet/animal is the pet of the person."
22859
- },
22860
- {
22861
- code: "126-008-002-003-000-000-000",
22862
- key: "pet_owner_of",
22863
- title: "Owner of (pet)",
22864
- selectable: true,
22865
- parentCode: "126-008-002-000-000-000-000",
22866
- childCodes: [],
22867
- definition: "Person has legal or practical ownership responsibility for the pet/animal."
22868
- },
22869
- {
22870
- code: "126-008-003-000-000-000-000",
22871
- key: "relationship_unknown",
22872
- title: "Relationship unknown",
22873
- selectable: true,
22874
- parentCode: "126-008-000-000-000-000-000",
22875
- childCodes: [],
22876
- definition: "A relationship/link is asserted between two people, but the relationship type is unknown or not yet determined."
22877
- },
22878
- {
22879
- code: "126-008-004-000-000-000-000",
22880
- key: "stranger",
22881
- title: "Stranger",
22882
- selectable: true,
22883
- parentCode: "126-008-000-000-000-000-000",
22884
- childCodes: [],
22885
- definition: "No known prior relationship exists between the two people (i.e., they are strangers)."
22886
- }
22887
- ]
22888
- };
22889
-
22890
- // src/cvcs/employmentStatus.v1.0.0.json
22891
- var employmentStatus_v1_0_0_default = {
22892
- domain: "employment_status",
22893
- name: "Core Employment Status",
22894
- version: "1.0.0",
22895
- levels: {
22896
- "0": "Unknown or Missing",
22897
- "1": "Primary",
22898
- "2": "Detail"
22899
- },
22900
- entries: [
22901
- {
22902
- code: "179-000-000-000-000-000-000",
22903
- key: "missingness_root",
22904
- title: "Unknown, Redacted, or Missing",
22905
- selectable: false,
22906
- parentCode: null,
22907
- childCodes: [
22908
- "179-000-000-000-000-000-001",
22909
- "179-000-000-000-000-000-002",
22910
- "179-000-000-000-000-000-003",
22911
- "179-000-000-000-000-000-004",
22912
- "179-000-000-000-000-000-005"
22913
- ],
22914
- definition: "Root group for values indicating absent, withheld, or uncollected employment-status data. Expands to the full HMIS 5-state missingness set (unknown, anonymous, data_not_collected, client_doesnt_know, client_refused) per HMIS R6 Employment Status response semantics."
22915
- },
22916
- {
22917
- code: "179-000-000-000-000-000-001",
22918
- key: "unknown",
22919
- title: "Unknown",
22920
- selectable: true,
22921
- parentCode: "179-000-000-000-000-000-000",
22922
- childCodes: [],
22923
- definition: "Value is unknown at time of entry or cannot be determined from available information."
22924
- },
22925
- {
22926
- code: "179-000-000-000-000-000-002",
22927
- key: "anonymous",
22928
- title: "Anonymous",
22929
- selectable: true,
22930
- parentCode: "179-000-000-000-000-000-000",
22931
- childCodes: [],
22932
- definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted."
22933
- },
22934
- {
22935
- code: "179-000-000-000-000-000-003",
22936
- key: "data_not_collected",
22937
- title: "Data not collected",
22938
- selectable: true,
22939
- parentCode: "179-000-000-000-000-000-000",
22940
- childCodes: [],
22941
- definition: "No attempt was made to collect the information."
22942
- },
22943
- {
22944
- code: "179-000-000-000-000-000-004",
22945
- key: "client_doesnt_know",
22946
- title: "Client doesn't know",
22947
- selectable: true,
22948
- parentCode: "179-000-000-000-000-000-000",
22949
- childCodes: [],
22950
- definition: "Client is unable to provide an answer (explicit 'doesn't know'). HMIS R6 nonresponse value."
22951
- },
22952
- {
22953
- code: "179-000-000-000-000-000-005",
22954
- key: "client_refused",
22955
- title: "Client refused",
22956
- selectable: true,
22957
- parentCode: "179-000-000-000-000-000-000",
22958
- childCodes: [],
22959
- definition: "The person was asked but chose not to provide an answer (client prefers not to answer). HMIS R6 nonresponse value."
22960
- },
22961
- {
22962
- code: "179-001-000-000-000-000-000",
22963
- key: "employed",
22964
- title: "Employed",
22965
- selectable: true,
22966
- parentCode: null,
22967
- childCodes: [
22968
- "179-001-001-000-000-000-000",
22969
- "179-001-002-000-000-000-000",
22970
- "179-001-003-000-000-000-000",
22971
- "179-001-004-000-000-000-000",
22972
- "179-001-005-000-000-000-000",
22973
- "179-001-006-000-000-000-000",
22974
- "179-001-007-000-000-000-000"
22975
- ],
22976
- definition: "Has worked for pay or profit during the reference period (includes formal and informal work)."
22977
- },
22978
- {
22979
- code: "179-001-001-000-000-000-000",
22980
- key: "full_time",
22981
- title: "Full-time",
22982
- selectable: true,
22983
- parentCode: "179-001-000-000-000-000-000",
22984
- childCodes: [],
22985
- definition: "Working 35+ hours per week (or local program definition of full-time) during the reference period. HMIS-authoritative type of employment when Employed=Yes."
22986
- },
22987
- {
22988
- code: "179-001-002-000-000-000-000",
22989
- key: "part_time",
22990
- title: "Part-time",
22991
- selectable: true,
22992
- parentCode: "179-001-000-000-000-000-000",
22993
- childCodes: [],
22994
- definition: "Working fewer than full-time hours during the reference period. HMIS-authoritative type of employment when Employed=Yes."
22995
- },
22996
- {
22997
- code: "179-001-003-000-000-000-000",
22998
- key: "seasonal_sporadic",
22999
- title: "Seasonal / sporadic (including day labor)",
23000
- selectable: true,
23001
- parentCode: "179-001-000-000-000-000-000",
23002
- childCodes: [],
23003
- definition: "Work is seasonal, sporadic, day labor, or otherwise inconsistent/irregular during the reference period. HMIS-authoritative type of employment when Employed=Yes."
23004
- },
23005
- {
23006
- code: "179-001-004-000-000-000-000",
23007
- key: "self_employed",
23008
- title: "Self-employed",
23009
- selectable: true,
23010
- parentCode: "179-001-000-000-000-000-000",
23011
- childCodes: [],
23012
- definition: "Works for themself as a contractor, sole proprietor, or business owner. HTI extended detail (non-HMIS)."
23013
- },
23014
- {
23015
- code: "179-001-005-000-000-000-000",
23016
- key: "informal_cash_gig",
23017
- title: "Informal / cash-based / gig",
23018
- selectable: true,
23019
- parentCode: "179-001-000-000-000-000-000",
23020
- childCodes: [],
23021
- definition: "Earns income through informal, cash-based, gig, or off-the-books work. HTI extended detail (non-HMIS)."
23022
- },
23023
- {
23024
- code: "179-001-006-000-000-000-000",
23025
- key: "multiple_jobs",
23026
- title: "Multiple jobs",
23027
- selectable: true,
23028
- parentCode: "179-001-000-000-000-000-000",
23029
- childCodes: [],
23030
- definition: "Holds more than one job or income-generating role. HTI extended detail (non-HMIS)."
23031
- },
23032
- {
23033
- code: "179-001-007-000-000-000-000",
23034
- key: "unpaid_family_worker",
23035
- title: "Unpaid family worker",
23036
- selectable: true,
23037
- parentCode: "179-001-000-000-000-000-000",
23038
- childCodes: [],
23039
- definition: "Works in a family business or farm without formal pay. HTI extended detail (non-HMIS)."
23040
- },
23041
- {
23042
- code: "179-002-000-000-000-000-000",
23043
- key: "unemployed",
23044
- title: "Unemployed",
23045
- selectable: true,
23046
- parentCode: null,
23047
- childCodes: [
23048
- "179-002-001-000-000-000-000",
23049
- "179-002-002-000-000-000-000",
23050
- "179-002-003-000-000-000-000",
23051
- "179-002-004-000-000-000-000",
23052
- "179-002-005-000-000-000-000"
23053
- ],
23054
- definition: "Not working, available, and actively seeking work (or on temporary layoff). Federal BLS/Census Unemployed definition."
23055
- },
23056
- {
23057
- code: "179-002-001-000-000-000-000",
23058
- key: "looking_for_work",
23059
- title: "Looking for work (HMIS)",
23060
- selectable: true,
23061
- parentCode: "179-002-000-000-000-000-000",
23062
- childCodes: [],
23063
- definition: "Employed=No and looking for work. HMIS-authoritative reason captured when Employed=No."
23064
- },
23065
- {
23066
- code: "179-002-002-000-000-000-000",
23067
- key: "actively_seeking",
23068
- title: "Actively seeking",
23069
- selectable: true,
23070
- parentCode: "179-002-000-000-000-000-000",
23071
- childCodes: [],
23072
- definition: "Not working, available, and actively taking steps to find work. HTI extended detail (non-HMIS)."
23073
- },
23074
- {
23075
- code: "179-002-003-000-000-000-000",
23076
- key: "first_time_job_seeker",
23077
- title: "First-time job seeker",
23078
- selectable: true,
23079
- parentCode: "179-002-000-000-000-000-000",
23080
- childCodes: [],
23081
- definition: "Unemployed and seeking a first job (no prior work history or new entrant). HTI extended detail (non-HMIS)."
23082
- },
23083
- {
23084
- code: "179-002-004-000-000-000-000",
23085
- key: "recently_laid_off",
23086
- title: "Recently laid off",
23087
- selectable: true,
23088
- parentCode: "179-002-000-000-000-000-000",
23089
- childCodes: [],
23090
- definition: "Unemployed due to a recent layoff or job loss. HTI extended detail (non-HMIS)."
23091
- },
23092
- {
23093
- code: "179-002-005-000-000-000-000",
23094
- key: "long_term_unemployed",
23095
- title: "Long-term unemployed",
23096
- selectable: true,
23097
- parentCode: "179-002-000-000-000-000-000",
23098
- childCodes: [],
23099
- definition: "Unemployed and actively seeking work for an extended period (program-defined threshold, often 27+ weeks). HTI extended detail (non-HMIS)."
23100
- },
23101
- {
23102
- code: "179-003-000-000-000-000-000",
23103
- key: "not_in_labor_force",
23104
- title: "Not in the labor force (NILF)",
23105
- selectable: true,
23106
- parentCode: null,
23107
- childCodes: [
23108
- "179-003-001-000-000-000-000",
23109
- "179-003-002-000-000-000-000",
23110
- "179-003-003-000-000-000-000",
23111
- "179-003-004-000-000-000-000",
23112
- "179-003-005-000-000-000-000",
23113
- "179-003-006-000-000-000-000",
23114
- "179-003-007-000-000-000-000",
23115
- "179-003-008-000-000-000-000"
23116
- ],
23117
- definition: "Not working and not actively seeking work during the reference period (e.g., student, caregiver, retired). Federal BLS/Census NILF definition."
23118
- },
23119
- {
23120
- code: "179-003-001-000-000-000-000",
23121
- key: "not_looking_for_work",
23122
- title: "Not looking for work (HMIS)",
23123
- selectable: true,
23124
- parentCode: "179-003-000-000-000-000-000",
23125
- childCodes: [],
23126
- definition: "Employed=No and not looking for work. HMIS-authoritative reason captured when Employed=No."
23127
- },
23128
- {
23129
- code: "179-003-002-000-000-000-000",
23130
- key: "unable_to_work",
23131
- title: "Unable to work (HMIS)",
23132
- selectable: true,
23133
- parentCode: "179-003-000-000-000-000-000",
23134
- childCodes: [],
23135
- definition: "Employed=No due to being unable to work. HMIS-authoritative reason captured when Employed=No."
23136
- },
23137
- {
23138
- code: "179-003-003-000-000-000-000",
23139
- key: "student",
23140
- title: "Student",
23141
- selectable: true,
23142
- parentCode: "179-003-000-000-000-000-000",
23143
- childCodes: [],
23144
- definition: "Not working because enrolled in school or training and not actively seeking work. HTI extended detail (non-HMIS)."
23145
- },
23146
- {
23147
- code: "179-003-004-000-000-000-000",
23148
- key: "caregiver",
23149
- title: "Caregiver (child, family, dependent)",
23150
- selectable: true,
23151
- parentCode: "179-003-000-000-000-000-000",
23152
- childCodes: [],
23153
- definition: "Not working due to caregiving responsibilities for a child, family member, or other dependent. HTI extended detail (non-HMIS)."
23154
- },
23155
- {
23156
- code: "179-003-005-000-000-000-000",
23157
- key: "disabled",
23158
- title: "Disabled / unable to work",
23159
- selectable: true,
23160
- parentCode: "179-003-000-000-000-000-000",
23161
- childCodes: [],
23162
- definition: "Not working due to disability, illness, or inability to work. HTI extended detail (non-HMIS); captures disability-specific context beyond the HMIS Unable-to-work code."
23163
- },
23164
- {
23165
- code: "179-003-006-000-000-000-000",
23166
- key: "retired",
23167
- title: "Retired",
23168
- selectable: true,
23169
- parentCode: "179-003-000-000-000-000-000",
23170
- childCodes: [],
23171
- definition: "Not working because retired and not actively seeking work. HTI extended detail (non-HMIS)."
23172
- },
23173
- {
23174
- code: "179-003-007-000-000-000-000",
23175
- key: "discouraged_worker",
23176
- title: "Discouraged worker",
23177
- selectable: true,
23178
- parentCode: "179-003-000-000-000-000-000",
23179
- childCodes: [],
23180
- definition: "Not working and wants a job but is not currently seeking due to discouragement about job prospects. HTI extended detail (non-HMIS)."
23181
- },
23182
- {
23183
- code: "179-003-008-000-000-000-000",
23184
- key: "other_reason",
23185
- title: "Other reason",
23186
- selectable: true,
23187
- parentCode: "179-003-000-000-000-000-000",
23188
- childCodes: [],
23189
- definition: "Not working for another specified reason not captured above. HTI extended detail (non-HMIS)."
23190
- }
23191
- ]
23192
- };
23193
-
23194
- // src/cvcs/locationType.v1.0.0.json
23195
- var locationType_v1_0_0_default = {
23196
- domain: "location_type",
23197
- name: "Core Location Type",
23198
- version: "1.0.0",
23199
- _source: "Rows: hand-authored 2026-04-22 from the April Notion codebook export (co-8ff.5.12); codes, keys, titles and definitions are unchanged since. LOGIC columns (tier \xB7 anchors \xB7 anchorDefault \xB7 shareUnit \xB7 safetyDefault): htilabstech/prototype/data/cvcs/core_location_type.yaml @ 55088d44 (CVC-191 v1.1, logic amended 2026-10-01; read from origin/main; cross-checked against htilabstech/prototype/Final CVCs/Location (IC-4)/core - location_type \u2014 codebook 1.csv + 2.csv @ 55088d44), overlaid by scripts/gen-location-type.py. NOT absorbed: 8 canon rows the package does not publish (TRAFFICKING_OCCURRENCE, VICTIM_IDENTIFICATION, COMMERCIAL_SEX_AD_POSTING, TRAFFICKING_RECRUITMENT, BIRTHPLACE, COURT_LOCATION, LE_INTERVIEW_LOCATION, LE_AGENCY_LOCATION) and the 4 labels canon reworded on 2026-08-28.",
23200
- levels: {
23201
- "0": "Unknown or Missing",
23202
- "1": "Category"
23203
- },
23204
- entries: [
23205
- {
23206
- code: "191-000-000-000-000-000-000",
23207
- key: "missingness_root",
23208
- title: "Unknown, Redacted, or Missing",
23209
- selectable: false,
23210
- parentCode: null,
23211
- childCodes: [
23212
- "191-000-000-000-000-000-001",
23213
- "191-000-000-000-000-000-002",
23214
- "191-000-000-000-000-000-003"
23215
- ],
23216
- definition: "Root group for values indicating absent, withheld, or uncollected data."
23217
- },
23218
- {
23219
- code: "191-000-000-000-000-000-001",
23220
- key: "unknown",
23221
- title: "Unknown",
23222
- selectable: true,
23223
- parentCode: "191-000-000-000-000-000-000",
23224
- childCodes: [],
23225
- definition: "Unknown or cannot be determined from the available information.",
23226
- tier: "sentinel",
23227
- anchors: [],
23228
- anchorDefault: null,
23229
- shareUnit: null,
23230
- safetyDefault: null
23231
- },
23232
- {
23233
- code: "191-000-000-000-000-000-002",
23234
- key: "anonymous",
23235
- title: "Anonymous",
23236
- selectable: true,
23237
- parentCode: "191-000-000-000-000-000-000",
23238
- childCodes: [],
23239
- definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted.",
23240
- tier: "sentinel",
23241
- anchors: [],
23242
- anchorDefault: null,
23243
- shareUnit: null,
23244
- safetyDefault: null
23245
- },
23246
- {
23247
- code: "191-000-000-000-000-000-003",
23248
- key: "data_not_collected",
23249
- title: "Data not collected",
23250
- selectable: true,
23251
- parentCode: "191-000-000-000-000-000-000",
23252
- childCodes: [],
23253
- definition: "No attempt was made to collect the information.",
23254
- tier: "sentinel",
23255
- anchors: [],
23256
- anchorDefault: null,
23257
- shareUnit: null,
23258
- safetyDefault: null
23858
+ "126-007-004-002-000-000-000"
23859
+ ],
23860
+ definition: "Relationship where one person recruits/entices another into commercial sex or exploitation context."
23259
23861
  },
23260
23862
  {
23261
- code: "191-001-000-000-000-000-000",
23262
- key: "current_residence",
23263
- title: "Current residence",
23863
+ code: "126-007-004-001-000-000-000",
23864
+ key: "recruited_by",
23865
+ title: "Recruited person",
23264
23866
  selectable: true,
23265
- parentCode: null,
23867
+ parentCode: "126-007-004-000-000-000-000",
23266
23868
  childCodes: [],
23267
- definition: "Where the client/person currently resides (residential location).",
23268
- tier: "residence",
23269
- anchors: [
23270
- "person"
23271
- ],
23272
- anchorDefault: "person",
23273
- shareUnit: "addresses",
23274
- safetyDefault: "ask"
23869
+ definition: "Role: the related person was recruited/enticed by the anchor person."
23275
23870
  },
23276
23871
  {
23277
- code: "191-002-000-000-000-000-000",
23278
- key: "service_delivery_location",
23279
- title: "Service delivery location",
23872
+ code: "126-007-004-002-000-000-000",
23873
+ key: "recruiter_of",
23874
+ title: "Recruiter",
23280
23875
  selectable: true,
23281
- parentCode: null,
23876
+ parentCode: "126-007-004-000-000-000-000",
23282
23877
  childCodes: [],
23283
- definition: "The physical site where a service instance was delivered (office, outreach site, partner site, on-scene).",
23284
- tier: "service",
23285
- anchors: [
23286
- "service_instance",
23287
- "agency_program",
23288
- "person"
23289
- ],
23290
- anchorDefault: "service_instance",
23291
- shareUnit: "service_history",
23292
- safetyDefault: "ask"
23878
+ definition: "Role: the related person recruited/enticed the anchor person into commercial sex/exploitation context."
23293
23879
  },
23294
23880
  {
23295
- code: "191-003-000-000-000-000-000",
23296
- key: "current_client_location",
23297
- title: "Current client/victim location",
23881
+ code: "126-007-005-000-000-000-000",
23882
+ key: "trafficker_victim",
23883
+ title: "Trafficker / Victim",
23298
23884
  selectable: true,
23299
- parentCode: null,
23300
- childCodes: [],
23301
- definition: "Where the client/victim/caller is physically located at the time of contact or service (operational safety location).",
23302
- tier: "encounter",
23303
- anchors: [
23304
- "person"
23885
+ parentCode: "126-007-000-000-000-000-000",
23886
+ childCodes: [
23887
+ "126-007-005-001-000-000-000",
23888
+ "126-007-005-002-000-000-000"
23305
23889
  ],
23306
- anchorDefault: "person",
23307
- shareUnit: "addresses",
23308
- safetyDefault: "ask"
23890
+ definition: "Exploitation relationship where one person is believed to traffic/exploit the other in a commercial sex or related exploitation context."
23309
23891
  },
23310
23892
  {
23311
- code: "191-004-000-000-000-000-000",
23312
- key: "meet_contact_location",
23313
- title: "Meet / contact location",
23893
+ code: "126-007-005-001-000-000-000",
23894
+ key: "trafficker_of",
23895
+ title: "Trafficker",
23314
23896
  selectable: true,
23315
- parentCode: null,
23897
+ parentCode: "126-007-005-000-000-000-000",
23316
23898
  childCodes: [],
23317
- definition: "A location where an in-person meeting/contact/event occurred (e.g., meet location, arrest location, outreach contact site).",
23318
- tier: "encounter",
23319
- anchors: [
23320
- "session",
23321
- "event",
23322
- "person"
23323
- ],
23324
- anchorDefault: "session",
23325
- shareUnit: "encounter_location",
23326
- safetyDefault: "ask"
23899
+ definition: "Role: the related person is the trafficker/exploiter of the anchor person."
23327
23900
  },
23328
23901
  {
23329
- code: "191-005-000-000-000-000-000",
23330
- key: "prior_residence",
23331
- title: "Prior residence",
23902
+ code: "126-007-005-002-000-000-000",
23903
+ key: "victim_of_trafficker",
23904
+ title: "Victim",
23332
23905
  selectable: true,
23333
- parentCode: null,
23906
+ parentCode: "126-007-005-000-000-000-000",
23334
23907
  childCodes: [],
23335
- definition: "Where the client/person previously resided (historical residential location).",
23336
- tier: "residence",
23337
- anchors: [
23338
- "person"
23339
- ],
23340
- anchorDefault: "person",
23341
- shareUnit: "addresses",
23342
- safetyDefault: "ask"
23908
+ definition: "Role: the related person is the victim/target of trafficking/exploitation by the anchor person."
23343
23909
  },
23344
23910
  {
23345
- code: "191-006-000-000-000-000-000",
23346
- key: "jurisdiction_routing_location",
23347
- title: "Jurisdiction / routing location",
23348
- selectable: true,
23911
+ code: "126-008-000-000-000-000-000",
23912
+ key: "other_unspecified",
23913
+ title: "Other / Unspecified",
23914
+ selectable: false,
23349
23915
  parentCode: null,
23350
- childCodes: [],
23351
- definition: "A location used to determine jurisdiction, eligibility, or referral routing (e.g., county, city, CoC code, service area).",
23352
- tier: "encounter",
23353
- anchors: [
23354
- "person"
23916
+ childCodes: [
23917
+ "126-008-001-000-000-000-000",
23918
+ "126-008-002-000-000-000-000",
23919
+ "126-008-003-000-000-000-000",
23920
+ "126-008-004-000-000-000-000"
23355
23921
  ],
23356
- anchorDefault: "person",
23357
- shareUnit: "addresses",
23358
- safetyDefault: "ask"
23922
+ definition: "High-level topic for edge cases, unknown/low-information ties, and constrained exceptions that don't fit the primary relationship domains."
23359
23923
  },
23360
23924
  {
23361
- code: "191-007-000-000-000-000-000",
23362
- key: "ad_location_derived",
23363
- title: "Ad location (derived)",
23925
+ code: "126-008-001-000-000-000-000",
23926
+ key: "other_person_relationship",
23927
+ title: "Other person relationship",
23364
23928
  selectable: true,
23365
- parentCode: null,
23929
+ parentCode: "126-008-000-000-000-000-000",
23366
23930
  childCodes: [],
23367
- definition: "A location inferred from ads/postings (posting city/region/board) used for analytics such as base location, travel, and heat maps.",
23368
- tier: "derived",
23369
- anchors: [
23370
- "person"
23371
- ],
23372
- anchorDefault: "person",
23373
- shareUnit: "commercial_activity",
23374
- safetyDefault: null
23931
+ definition: "Person-to-person relationship exists, but none of the available structural relationship types fit. Should require detail text."
23375
23932
  },
23376
23933
  {
23377
- code: "191-008-000-000-000-000-000",
23378
- key: "travel_stop_visit",
23379
- title: "Travel stop / visit",
23934
+ code: "126-008-002-000-000-000-000",
23935
+ key: "person_pet",
23936
+ title: "Pet / Animal (person\u2194pet)",
23380
23937
  selectable: true,
23381
- parentCode: null,
23382
- childCodes: [],
23383
- definition: "A location representing a travel instance or visit (part of a travel log/itinerary), with time bounds.",
23384
- tier: "encounter",
23385
- anchors: [
23386
- "person",
23387
- "event"
23938
+ parentCode: "126-008-000-000-000-000-000",
23939
+ childCodes: [
23940
+ "126-008-002-001-000-000-000",
23941
+ "126-008-002-002-000-000-000",
23942
+ "126-008-002-003-000-000-000"
23388
23943
  ],
23389
- anchorDefault: "person",
23390
- shareUnit: "addresses",
23391
- safetyDefault: "ask"
23944
+ definition: "Structural relationship between a person and a pet/animal entity, where the person has ownership, guardianship, caretaking, or similar responsibility. This is a constrained non-person branch inside core_person_relationship for UI continuity; it is not a person\u2194person tie."
23392
23945
  },
23393
23946
  {
23394
- code: "191-009-000-000-000-000-000",
23395
- key: "work_school_business",
23396
- title: "Work / school / business",
23947
+ code: "126-008-002-001-000-000-000",
23948
+ key: "pet_caregiver_of",
23949
+ title: "Caregiver of (pet)",
23397
23950
  selectable: true,
23398
- parentCode: null,
23951
+ parentCode: "126-008-002-000-000-000-000",
23399
23952
  childCodes: [],
23400
- definition: "A location associated with work, school, or business activity (legal or illicit), including known venues tied to an entity.",
23401
- tier: "encounter",
23402
- anchors: [
23403
- "person"
23404
- ],
23405
- anchorDefault: "person",
23406
- shareUnit: "addresses",
23407
- safetyDefault: "ask"
23953
+ definition: "Person provides primary day-to-day care for the pet/animal, regardless of legal ownership."
23408
23954
  },
23409
23955
  {
23410
- code: "191-010-000-000-000-000-000",
23411
- key: "ip_derived_location",
23412
- title: "IP-derived location (derived)",
23956
+ code: "126-008-002-002-000-000-000",
23957
+ key: "pet_of",
23958
+ title: "Pet of",
23413
23959
  selectable: true,
23414
- parentCode: null,
23960
+ parentCode: "126-008-002-000-000-000-000",
23415
23961
  childCodes: [],
23416
- definition: "A location inferred from an IP address (geolocation-derived), used as a signal rather than a confirmed physical location.",
23417
- tier: "derived",
23418
- anchors: [
23419
- "person"
23420
- ],
23421
- anchorDefault: "person",
23422
- shareUnit: "commercial_activity",
23423
- safetyDefault: null
23962
+ definition: "Pet/animal is the pet of the person."
23424
23963
  },
23425
23964
  {
23426
- code: "191-011-000-000-000-000-000",
23427
- key: "program_project_location",
23428
- title: "Program / project location (reporting)",
23965
+ code: "126-008-002-003-000-000-000",
23966
+ key: "pet_owner_of",
23967
+ title: "Owner of (pet)",
23429
23968
  selectable: true,
23430
- parentCode: null,
23969
+ parentCode: "126-008-002-000-000-000-000",
23431
23970
  childCodes: [],
23432
- definition: "A location describing a program, shelter, project site, or provider location used for reporting (e.g., HMIS project descriptor).",
23433
- tier: "service",
23434
- anchors: [
23435
- "agency_program"
23436
- ],
23437
- anchorDefault: "agency_program",
23438
- shareUnit: null,
23439
- safetyDefault: "safe"
23971
+ definition: "Person has legal or practical ownership responsibility for the pet/animal."
23440
23972
  },
23441
23973
  {
23442
- code: "191-012-000-000-000-000-000",
23443
- key: "other",
23444
- title: "Other",
23974
+ code: "126-008-003-000-000-000-000",
23975
+ key: "relationship_unknown",
23976
+ title: "Relationship unknown",
23445
23977
  selectable: true,
23446
- parentCode: null,
23978
+ parentCode: "126-008-000-000-000-000-000",
23447
23979
  childCodes: [],
23448
- definition: "A catch-all value used when none of the defined location types apply or when the role/context is unclear.",
23449
- tier: "encounter",
23450
- anchors: [
23451
- "person",
23452
- "session",
23453
- "event"
23454
- ],
23455
- anchorDefault: "person",
23456
- shareUnit: "addresses",
23457
- safetyDefault: "ask"
23980
+ definition: "A relationship/link is asserted between two people, but the relationship type is unknown or not yet determined."
23458
23981
  },
23459
23982
  {
23460
- code: "191-013-000-000-000-000-000",
23461
- key: "incident",
23462
- title: "Incident",
23983
+ code: "126-008-004-000-000-000-000",
23984
+ key: "stranger",
23985
+ title: "Stranger",
23463
23986
  selectable: true,
23464
- parentCode: null,
23987
+ parentCode: "126-008-000-000-000-000-000",
23465
23988
  childCodes: [],
23466
- definition: "Location associated with an incident (e.g., where an event occurred, was reported, or was investigated), distinct from current residence, jurisdiction/routing, or service delivery context.",
23467
- tier: "encounter",
23468
- anchors: [
23469
- "session",
23470
- "event"
23471
- ],
23472
- anchorDefault: "event",
23473
- shareUnit: "encounter_location",
23474
- safetyDefault: "ask"
23989
+ definition: "No known prior relationship exists between the two people (i.e., they are strangers)."
23475
23990
  }
23476
23991
  ]
23477
23992
  };
23478
23993
 
23479
- // src/cvcs/referralEntityCategory.v1.1.0.json
23480
- var referralEntityCategory_v1_1_0_default = {
23481
- domain: "referral_entity_category",
23482
- name: "Core Referral Entity Category",
23483
- version: "1.1.0",
23484
- _status: "CANONICAL \u2014 Notion CVC-48 `core-referral_entity_category` (IC-58), status Active (full audit 2026-08-20, CVC48_IC58_REFERRAL_ENTITY_CATEGORY_AUDIT; `Date of last audit` 2026-09-01). Re-mirrored from prototype canon yaml v1.3 @ 9a10f480 and the live Notion codebook (46 rows, compared row by row 2026-10-05). SUPERSEDES referralEntityCategory v1.0.0 (platform-common <= 0.13.0), which predated the audit. ADDITIVE: no v1.0.0 key is removed and no v1.0.0 positional code changes. ADDED (3): `adult_protective_services` (02-03-06-00), `school_academic_institution` (02-05-01-00), `legal_services_provider` (02-06-04-00). SELECTABLE follows canon on two rows: `education` is now a non-selectable heading (its leaf is `school_academic_institution`, which carries the HMIS R1 School rollup \u2014 ruled 2026-08-20) and `law_enforcement` is now selectable (canon Level 2 Required; its five children are optional depth). A stored `education` is still a valid key. `title` and `definition` are canon's, verbatim (yaml `name` / `definition`; the live Notion wording where the two differ: the Adult Protective Services label, the quotation marks in the Victim service provider definition, and the wording of the residual Community-based provider definition); the Level-0 rows keep the package's house missingness titles. `justice_protective_systems` no longer carries the package-authored definition v1.0.0 gave it: canon's heading (02-03-00-00) has none. Every canon-backed row carries canon's 4-segment code as `canonicalCode`; the package's own positional codes are unchanged and are NOT canon's. NOT CARRIED, pending a decision: `02-02-01-00` Hotline \u2014 canon's Level-2 parent of National hotline / Local/other hotline; carrying it needs a decision between renumbering 048-006-001/-002 (breaks the frozen-ordinal rule) and appending it at 048-006-003 as a sibling of its own canon children. Until it is carried, `national_hotline` and `local_other_hotline` sit directly under the `hotlines` heading (as in v1.0.0) and this package has no key for a generic Hotline. Also NOT carried: canon `hmis_r1_code` / `hmis_r1_mapping`, `required`, `enum_constant`, `voca_ovc_pmt_bucket`, `pave_2025_mapping`, `logic_notes`, `mappings_notes` (v1.0.0 carried none of them). Generated by scripts/gen-referral-entity-category.py \u2014 do not hand-edit.",
23485
- _source: "htilabstech/prototype/data/cvcs/core_referral_entity_category.yaml @ 9a10f480 (Notion CVC-48, yaml v1.3; read from origin/main) + Notion codebook collection://3181ef14-abcd-8081-95b5-000bc30a73bd (wording of 3 cells, compared 2026-10-05)",
23486
- _supersedes: {
23487
- version: "1.0.0",
23488
- keyMap: {
23489
- missingness_root: "missingness_root",
23490
- unknown: "unknown",
23491
- anonymous: "anonymous",
23492
- data_not_collected: "data_not_collected",
23493
- self_referred: "self_referred",
23494
- family_guardian_friend: "family_guardian_friend",
23495
- peer: "peer",
23496
- other_individual: "other_individual",
23497
- housing_shelter_continuum: "housing_shelter_continuum",
23498
- outreach_project: "outreach_project",
23499
- temporary_shelter: "temporary_shelter",
23500
- residential_project: "residential_project",
23501
- hotlines: "hotlines",
23502
- national_hotline: "national_hotline",
23503
- local_other_hotline: "local_other_hotline",
23504
- justice_protective_systems: "justice_protective_systems",
23505
- child_welfare_cps: "child_welfare_cps",
23506
- juvenile_justice: "juvenile_justice",
23507
- law_enforcement: "law_enforcement",
23508
- local_law_enforcement: "local_law_enforcement",
23509
- state_law_enforcement: "state_law_enforcement",
23510
- federal_law_enforcement: "federal_law_enforcement",
23511
- tribal_law_enforcement: "tribal_law_enforcement",
23512
- other_law_enforcement: "other_law_enforcement",
23513
- courts_prosecution: "courts_prosecution",
23514
- correction_probation: "correction_probation",
23515
- health_behavioral_health: "health_behavioral_health",
23516
- inpatient_psychiatric_facility: "inpatient_psychiatric_facility",
23517
- healthcare_provider: "healthcare_provider",
23518
- education: "education",
23519
- victim_community_service_providers: "victim_community_service_providers",
23520
- child_advocacy_center: "child_advocacy_center",
23521
- victim_service_provider: "victim_service_provider",
23522
- community_based_service_provider: "community_based_service_provider",
23523
- coordination_governance: "coordination_governance",
23524
- mdt: "mdt",
23525
- coalition: "coalition",
23526
- internal: "internal",
23527
- own_agency_internal: "own_agency_internal",
23528
- other_entity: "other_entity",
23529
- employer: "employer",
23530
- benefits_public_assistance_office: "benefits_public_assistance_office",
23531
- other_organization: "other_organization"
23532
- },
23533
- retiredCodes: [],
23534
- notes: {
23535
- education: "v1.0.0 `education` was a selectable leaf. Canon makes Education a heading whose only leaf is School / academic institution. `education` stays a valid stored key (now `selectable: false`); the specific successor for a school is `school_academic_institution`. Not mapped automatically.",
23536
- law_enforcement: "v1.0.0 `law_enforcement` was a non-selectable heading. Canon makes Law enforcement / Police a selectable leaf with five optional children."
23537
- }
23538
- },
23539
- _notCarried: [
23540
- {
23541
- canonicalCode: "02-02-01-00",
23542
- name: "Hotline",
23543
- reason: "canon's Level-2 parent of National hotline / Local/other hotline; carrying it needs a decision between renumbering 048-006-001/-002 (breaks the frozen-ordinal rule) and appending it at 048-006-003 as a sibling of its own canon children"
23544
- }
23545
- ],
23994
+ // src/cvcs/employmentStatus.v1.0.0.json
23995
+ var employmentStatus_v1_0_0_default = {
23996
+ domain: "employment_status",
23997
+ name: "Core Employment Status",
23998
+ version: "1.0.0",
23546
23999
  levels: {
23547
24000
  "0": "Unknown or Missing",
23548
- "1": "Category",
23549
- "2": "Entity",
23550
- "3": "Variant"
24001
+ "1": "Primary",
24002
+ "2": "Detail"
23551
24003
  },
23552
24004
  entries: [
23553
24005
  {
23554
- code: "048-000-000-000-000-000-000",
24006
+ code: "179-000-000-000-000-000-000",
23555
24007
  key: "missingness_root",
23556
24008
  title: "Unknown, Redacted, or Missing",
23557
24009
  selectable: false,
23558
24010
  parentCode: null,
23559
24011
  childCodes: [
23560
- "048-000-000-000-000-000-001",
23561
- "048-000-000-000-000-000-002",
23562
- "048-000-000-000-000-000-003"
24012
+ "179-000-000-000-000-000-001",
24013
+ "179-000-000-000-000-000-002",
24014
+ "179-000-000-000-000-000-003",
24015
+ "179-000-000-000-000-000-004",
24016
+ "179-000-000-000-000-000-005"
23563
24017
  ],
23564
- definition: "Root group for values indicating absent, withheld, or uncollected data."
24018
+ definition: "Root group for values indicating absent, withheld, or uncollected employment-status data. Expands to the full HMIS 5-state missingness set (unknown, anonymous, data_not_collected, client_doesnt_know, client_refused) per HMIS R6 Employment Status response semantics."
23565
24019
  },
23566
24020
  {
23567
- code: "048-000-000-000-000-000-001",
24021
+ code: "179-000-000-000-000-000-001",
23568
24022
  key: "unknown",
23569
24023
  title: "Unknown",
23570
24024
  selectable: true,
23571
- parentCode: "048-000-000-000-000-000-000",
24025
+ parentCode: "179-000-000-000-000-000-000",
23572
24026
  childCodes: [],
23573
- definition: "Referral entity category unknown.",
23574
- canonicalCode: "00-00-01-00"
24027
+ definition: "Value is unknown at time of entry or cannot be determined from available information."
23575
24028
  },
23576
24029
  {
23577
- code: "048-000-000-000-000-000-002",
24030
+ code: "179-000-000-000-000-000-002",
23578
24031
  key: "anonymous",
23579
24032
  title: "Anonymous",
23580
24033
  selectable: true,
23581
- parentCode: "048-000-000-000-000-000-000",
24034
+ parentCode: "179-000-000-000-000-000-000",
23582
24035
  childCodes: [],
23583
- definition: "Referral entity category withheld or redacted.",
23584
- canonicalCode: "00-00-02-00"
24036
+ definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted."
23585
24037
  },
23586
24038
  {
23587
- code: "048-000-000-000-000-000-003",
24039
+ code: "179-000-000-000-000-000-003",
23588
24040
  key: "data_not_collected",
23589
24041
  title: "Data not collected",
23590
24042
  selectable: true,
23591
- parentCode: "048-000-000-000-000-000-000",
24043
+ parentCode: "179-000-000-000-000-000-000",
23592
24044
  childCodes: [],
23593
- definition: "Referral entity category not collected or no signal captured.",
23594
- canonicalCode: "00-00-03-00"
24045
+ definition: "No attempt was made to collect the information."
23595
24046
  },
23596
24047
  {
23597
- code: "048-001-000-000-000-000-000",
23598
- key: "self_referred",
23599
- title: "Self-referred",
24048
+ code: "179-000-000-000-000-000-004",
24049
+ key: "client_doesnt_know",
24050
+ title: "Client doesn't know",
23600
24051
  selectable: true,
23601
- parentCode: null,
24052
+ parentCode: "179-000-000-000-000-000-000",
23602
24053
  childCodes: [],
23603
- definition: "Client initiated contact or presented for services without a third-party referrer.",
23604
- canonicalCode: "01-00-01-00"
24054
+ definition: "Client is unable to provide an answer (explicit 'doesn't know'). HMIS R6 nonresponse value."
23605
24055
  },
23606
24056
  {
23607
- code: "048-002-000-000-000-000-000",
23608
- key: "family_guardian_friend",
23609
- title: "Family/guardian/friend/foster parent",
24057
+ code: "179-000-000-000-000-000-005",
24058
+ key: "client_refused",
24059
+ title: "Client refused",
23610
24060
  selectable: true,
23611
- parentCode: null,
24061
+ parentCode: "179-000-000-000-000-000-000",
23612
24062
  childCodes: [],
23613
- definition: "A caregiver, family member, or close personal support person initiated the referral.",
23614
- canonicalCode: "01-00-02-00"
24063
+ definition: "The person was asked but chose not to provide an answer (client prefers not to answer). HMIS R6 nonresponse value."
23615
24064
  },
23616
24065
  {
23617
- code: "048-003-000-000-000-000-000",
23618
- key: "peer",
23619
- title: "Peer / another client",
24066
+ code: "179-001-000-000-000-000-000",
24067
+ key: "employed",
24068
+ title: "Employed",
23620
24069
  selectable: true,
23621
24070
  parentCode: null,
24071
+ childCodes: [
24072
+ "179-001-001-000-000-000-000",
24073
+ "179-001-002-000-000-000-000",
24074
+ "179-001-003-000-000-000-000",
24075
+ "179-001-004-000-000-000-000",
24076
+ "179-001-005-000-000-000-000",
24077
+ "179-001-006-000-000-000-000",
24078
+ "179-001-007-000-000-000-000"
24079
+ ],
24080
+ definition: "Has worked for pay or profit during the reference period (includes formal and informal work)."
24081
+ },
24082
+ {
24083
+ code: "179-001-001-000-000-000-000",
24084
+ key: "full_time",
24085
+ title: "Full-time",
24086
+ selectable: true,
24087
+ parentCode: "179-001-000-000-000-000-000",
23622
24088
  childCodes: [],
23623
- definition: "Another current or former client initiated or encouraged the referral.",
23624
- canonicalCode: "01-00-03-00"
24089
+ definition: "Working 35+ hours per week (or local program definition of full-time) during the reference period. HMIS-authoritative type of employment when Employed=Yes."
23625
24090
  },
23626
24091
  {
23627
- code: "048-004-000-000-000-000-000",
23628
- key: "other_individual",
23629
- title: "Other individual",
24092
+ code: "179-001-002-000-000-000-000",
24093
+ key: "part_time",
24094
+ title: "Part-time",
23630
24095
  selectable: true,
23631
- parentCode: null,
24096
+ parentCode: "179-001-000-000-000-000-000",
23632
24097
  childCodes: [],
23633
- definition: "A non-family individual initiated the referral (e.g., neighbor, community member, clergy).",
23634
- canonicalCode: "01-00-04-00"
24098
+ definition: "Working fewer than full-time hours during the reference period. HMIS-authoritative type of employment when Employed=Yes."
23635
24099
  },
23636
24100
  {
23637
- code: "048-005-000-000-000-000-000",
23638
- key: "housing_shelter_continuum",
23639
- title: "Housing / Shelter continuum",
23640
- selectable: false,
23641
- parentCode: null,
23642
- childCodes: [
23643
- "048-005-001-000-000-000-000",
23644
- "048-005-002-000-000-000-000",
23645
- "048-005-003-000-000-000-000"
23646
- ],
23647
- definition: "Primary function is outreach engagement, emergency shelter, or residential shelter/housing programs.",
23648
- canonicalCode: "02-01-00-00"
24101
+ code: "179-001-003-000-000-000-000",
24102
+ key: "seasonal_sporadic",
24103
+ title: "Seasonal / sporadic (including day labor)",
24104
+ selectable: true,
24105
+ parentCode: "179-001-000-000-000-000-000",
24106
+ childCodes: [],
24107
+ definition: "Work is seasonal, sporadic, day labor, or otherwise inconsistent/irregular during the reference period. HMIS-authoritative type of employment when Employed=Yes."
23649
24108
  },
23650
24109
  {
23651
- code: "048-005-001-000-000-000-000",
23652
- key: "outreach_project",
23653
- title: "Outreach Project",
24110
+ code: "179-001-004-000-000-000-000",
24111
+ key: "self_employed",
24112
+ title: "Self-employed",
23654
24113
  selectable: true,
23655
- parentCode: "048-005-000-000-000-000-000",
24114
+ parentCode: "179-001-000-000-000-000-000",
23656
24115
  childCodes: [],
23657
- definition: "Street/community outreach program that engaged the client prior to enrollment.",
23658
- canonicalCode: "02-01-01-00"
24116
+ definition: "Works for themself as a contractor, sole proprietor, or business owner. HTI extended detail (non-HMIS)."
23659
24117
  },
23660
24118
  {
23661
- code: "048-005-002-000-000-000-000",
23662
- key: "temporary_shelter",
23663
- title: "Temporary Shelter",
24119
+ code: "179-001-005-000-000-000-000",
24120
+ key: "informal_cash_gig",
24121
+ title: "Informal / cash-based / gig",
23664
24122
  selectable: true,
23665
- parentCode: "048-005-000-000-000-000-000",
24123
+ parentCode: "179-001-000-000-000-000-000",
23666
24124
  childCodes: [],
23667
- definition: "Emergency/crisis shelter or short-term temporary housing program.",
23668
- canonicalCode: "02-01-02-00"
24125
+ definition: "Earns income through informal, cash-based, gig, or off-the-books work. HTI extended detail (non-HMIS)."
23669
24126
  },
23670
24127
  {
23671
- code: "048-005-003-000-000-000-000",
23672
- key: "residential_project",
23673
- title: "Residential Project",
24128
+ code: "179-001-006-000-000-000-000",
24129
+ key: "multiple_jobs",
24130
+ title: "Multiple jobs",
23674
24131
  selectable: true,
23675
- parentCode: "048-005-000-000-000-000-000",
24132
+ parentCode: "179-001-000-000-000-000-000",
23676
24133
  childCodes: [],
23677
- definition: "Longer-term residential or transitional living program.",
23678
- canonicalCode: "02-01-03-00"
24134
+ definition: "Holds more than one job or income-generating role. HTI extended detail (non-HMIS)."
23679
24135
  },
23680
24136
  {
23681
- code: "048-006-000-000-000-000-000",
23682
- key: "hotlines",
23683
- title: "Hotlines",
23684
- selectable: false,
24137
+ code: "179-001-007-000-000-000-000",
24138
+ key: "unpaid_family_worker",
24139
+ title: "Unpaid family worker",
24140
+ selectable: true,
24141
+ parentCode: "179-001-000-000-000-000-000",
24142
+ childCodes: [],
24143
+ definition: "Works in a family business or farm without formal pay. HTI extended detail (non-HMIS)."
24144
+ },
24145
+ {
24146
+ code: "179-002-000-000-000-000-000",
24147
+ key: "unemployed",
24148
+ title: "Unemployed",
24149
+ selectable: true,
23685
24150
  parentCode: null,
23686
24151
  childCodes: [
23687
- "048-006-001-000-000-000-000",
23688
- "048-006-002-000-000-000-000"
24152
+ "179-002-001-000-000-000-000",
24153
+ "179-002-002-000-000-000-000",
24154
+ "179-002-003-000-000-000-000",
24155
+ "179-002-004-000-000-000-000",
24156
+ "179-002-005-000-000-000-000"
23689
24157
  ],
23690
- definition: "Crisis lines or call centers that connect a person to services.",
23691
- canonicalCode: "02-02-00-00"
24158
+ definition: "Not working, available, and actively seeking work (or on temporary layoff). Federal BLS/Census Unemployed definition."
23692
24159
  },
23693
24160
  {
23694
- code: "048-006-001-000-000-000-000",
23695
- key: "national_hotline",
23696
- title: "National hotline",
24161
+ code: "179-002-001-000-000-000-000",
24162
+ key: "looking_for_work",
24163
+ title: "Looking for work (HMIS)",
23697
24164
  selectable: true,
23698
- parentCode: "048-006-000-000-000-000-000",
24165
+ parentCode: "179-002-000-000-000-000-000",
23699
24166
  childCodes: [],
23700
- definition: "National-level hotline network.",
23701
- canonicalCode: "02-02-01-01"
24167
+ definition: "Employed=No and looking for work. HMIS-authoritative reason captured when Employed=No."
23702
24168
  },
23703
24169
  {
23704
- code: "048-006-002-000-000-000-000",
23705
- key: "local_other_hotline",
23706
- title: "Local/other hotline",
24170
+ code: "179-002-002-000-000-000-000",
24171
+ key: "actively_seeking",
24172
+ title: "Actively seeking",
23707
24173
  selectable: true,
23708
- parentCode: "048-006-000-000-000-000-000",
24174
+ parentCode: "179-002-000-000-000-000-000",
23709
24175
  childCodes: [],
23710
- definition: "Local/regional hotline or non-national hotline.",
23711
- canonicalCode: "02-02-01-02"
24176
+ definition: "Not working, available, and actively taking steps to find work. HTI extended detail (non-HMIS)."
23712
24177
  },
23713
24178
  {
23714
- code: "048-007-000-000-000-000-000",
23715
- key: "justice_protective_systems",
23716
- title: "Justice & Protective Systems",
23717
- selectable: false,
23718
- parentCode: null,
23719
- childCodes: [
23720
- "048-007-001-000-000-000-000",
23721
- "048-007-002-000-000-000-000",
23722
- "048-007-003-000-000-000-000",
23723
- "048-007-004-000-000-000-000",
23724
- "048-007-005-000-000-000-000",
23725
- "048-007-006-000-000-000-000"
23726
- ],
23727
- definition: null,
23728
- canonicalCode: "02-03-00-00"
24179
+ code: "179-002-003-000-000-000-000",
24180
+ key: "first_time_job_seeker",
24181
+ title: "First-time job seeker",
24182
+ selectable: true,
24183
+ parentCode: "179-002-000-000-000-000-000",
24184
+ childCodes: [],
24185
+ definition: "Unemployed and seeking a first job (no prior work history or new entrant). HTI extended detail (non-HMIS)."
23729
24186
  },
23730
24187
  {
23731
- code: "048-007-001-000-000-000-000",
23732
- key: "child_welfare_cps",
23733
- title: "Child Welfare / CPS",
24188
+ code: "179-002-004-000-000-000-000",
24189
+ key: "recently_laid_off",
24190
+ title: "Recently laid off",
23734
24191
  selectable: true,
23735
- parentCode: "048-007-000-000-000-000-000",
24192
+ parentCode: "179-002-000-000-000-000-000",
23736
24193
  childCodes: [],
23737
- definition: "Government child protection agency responsible for investigating child abuse/neglect and ensuring child safety.",
23738
- canonicalCode: "02-03-01-00"
24194
+ definition: "Unemployed due to a recent layoff or job loss. HTI extended detail (non-HMIS)."
23739
24195
  },
23740
24196
  {
23741
- code: "048-007-002-000-000-000-000",
23742
- key: "juvenile_justice",
23743
- title: "Juvenile Justice",
24197
+ code: "179-002-005-000-000-000-000",
24198
+ key: "long_term_unemployed",
24199
+ title: "Long-term unemployed",
23744
24200
  selectable: true,
23745
- parentCode: "048-007-000-000-000-000-000",
24201
+ parentCode: "179-002-000-000-000-000-000",
23746
24202
  childCodes: [],
23747
- definition: "Juvenile probation/detention/court-related juvenile justice system initiated the referral.",
23748
- canonicalCode: "02-03-02-00"
24203
+ definition: "Unemployed and actively seeking work for an extended period (program-defined threshold, often 27+ weeks). HTI extended detail (non-HMIS)."
23749
24204
  },
23750
24205
  {
23751
- code: "048-007-003-000-000-000-000",
23752
- key: "law_enforcement",
23753
- title: "Law enforcement / Police",
24206
+ code: "179-003-000-000-000-000-000",
24207
+ key: "not_in_labor_force",
24208
+ title: "Not in the labor force (NILF)",
23754
24209
  selectable: true,
23755
- parentCode: "048-007-000-000-000-000-000",
24210
+ parentCode: null,
23756
24211
  childCodes: [
23757
- "048-007-003-001-000-000-000",
23758
- "048-007-003-002-000-000-000",
23759
- "048-007-003-003-000-000-000",
23760
- "048-007-003-004-000-000-000",
23761
- "048-007-003-005-000-000-000"
24212
+ "179-003-001-000-000-000-000",
24213
+ "179-003-002-000-000-000-000",
24214
+ "179-003-003-000-000-000-000",
24215
+ "179-003-004-000-000-000-000",
24216
+ "179-003-005-000-000-000-000",
24217
+ "179-003-006-000-000-000-000",
24218
+ "179-003-007-000-000-000-000",
24219
+ "179-003-008-000-000-000-000"
23762
24220
  ],
23763
- definition: "Law enforcement agency initiated the referral (local/state/federal).",
23764
- canonicalCode: "02-03-03-00"
24221
+ definition: "Not working and not actively seeking work during the reference period (e.g., student, caregiver, retired). Federal BLS/Census NILF definition."
23765
24222
  },
23766
24223
  {
23767
- code: "048-007-003-001-000-000-000",
23768
- key: "local_law_enforcement",
23769
- title: "Local law enforcement",
24224
+ code: "179-003-001-000-000-000-000",
24225
+ key: "not_looking_for_work",
24226
+ title: "Not looking for work (HMIS)",
23770
24227
  selectable: true,
23771
- parentCode: "048-007-003-000-000-000-000",
24228
+ parentCode: "179-003-000-000-000-000-000",
23772
24229
  childCodes: [],
23773
- definition: "City/county police or sheriff.",
23774
- canonicalCode: "02-03-03-01"
24230
+ definition: "Employed=No and not looking for work. HMIS-authoritative reason captured when Employed=No."
23775
24231
  },
23776
24232
  {
23777
- code: "048-007-003-002-000-000-000",
23778
- key: "state_law_enforcement",
23779
- title: "State law enforcement",
24233
+ code: "179-003-002-000-000-000-000",
24234
+ key: "unable_to_work",
24235
+ title: "Unable to work (HMIS)",
23780
24236
  selectable: true,
23781
- parentCode: "048-007-003-000-000-000-000",
24237
+ parentCode: "179-003-000-000-000-000-000",
23782
24238
  childCodes: [],
23783
- definition: "State-level law enforcement agency (e.g., state police/highway patrol/state bureau of investigation) acting in an official capacity.",
23784
- canonicalCode: "02-03-03-02"
24239
+ definition: "Employed=No due to being unable to work. HMIS-authoritative reason captured when Employed=No."
23785
24240
  },
23786
24241
  {
23787
- code: "048-007-003-003-000-000-000",
23788
- key: "federal_law_enforcement",
23789
- title: "Federal law enforcement",
24242
+ code: "179-003-003-000-000-000-000",
24243
+ key: "student",
24244
+ title: "Student",
23790
24245
  selectable: true,
23791
- parentCode: "048-007-003-000-000-000-000",
24246
+ parentCode: "179-003-000-000-000-000-000",
23792
24247
  childCodes: [],
23793
- definition: "Federal law enforcement agency (e.g., FBI, DHS/ICE).",
23794
- canonicalCode: "02-03-03-03"
24248
+ definition: "Not working because enrolled in school or training and not actively seeking work. HTI extended detail (non-HMIS)."
23795
24249
  },
23796
24250
  {
23797
- code: "048-007-003-004-000-000-000",
23798
- key: "tribal_law_enforcement",
23799
- title: "Tribal law enforcement",
24251
+ code: "179-003-004-000-000-000-000",
24252
+ key: "caregiver",
24253
+ title: "Caregiver (child, family, dependent)",
23800
24254
  selectable: true,
23801
- parentCode: "048-007-003-000-000-000-000",
24255
+ parentCode: "179-003-000-000-000-000-000",
23802
24256
  childCodes: [],
23803
- definition: "Tribal police.",
23804
- canonicalCode: "02-03-03-04"
24257
+ definition: "Not working due to caregiving responsibilities for a child, family member, or other dependent. HTI extended detail (non-HMIS)."
23805
24258
  },
23806
24259
  {
23807
- code: "048-007-003-005-000-000-000",
23808
- key: "other_law_enforcement",
23809
- title: "Other/ unknown LE",
24260
+ code: "179-003-005-000-000-000-000",
24261
+ key: "disabled",
24262
+ title: "Disabled / unable to work",
23810
24263
  selectable: true,
23811
- parentCode: "048-007-003-000-000-000-000",
24264
+ parentCode: "179-003-000-000-000-000-000",
23812
24265
  childCodes: [],
23813
- definition: "Other law enforcement entity, or law enforcement type is unknown.",
23814
- canonicalCode: "02-03-03-05"
24266
+ definition: "Not working due to disability, illness, or inability to work. HTI extended detail (non-HMIS); captures disability-specific context beyond the HMIS Unable-to-work code."
23815
24267
  },
23816
24268
  {
23817
- code: "048-007-004-000-000-000-000",
23818
- key: "courts_prosecution",
23819
- title: "Courts or prosecution",
24269
+ code: "179-003-006-000-000-000-000",
24270
+ key: "retired",
24271
+ title: "Retired",
23820
24272
  selectable: true,
23821
- parentCode: "048-007-000-000-000-000-000",
24273
+ parentCode: "179-003-000-000-000-000-000",
23822
24274
  childCodes: [],
23823
- definition: "Court or prosecution entity (not law enforcement).",
23824
- canonicalCode: "02-03-04-00"
24275
+ definition: "Not working because retired and not actively seeking work. HTI extended detail (non-HMIS)."
23825
24276
  },
23826
24277
  {
23827
- code: "048-007-005-000-000-000-000",
23828
- key: "correction_probation",
23829
- title: "Correction / probation",
24278
+ code: "179-003-007-000-000-000-000",
24279
+ key: "discouraged_worker",
24280
+ title: "Discouraged worker",
23830
24281
  selectable: true,
23831
- parentCode: "048-007-000-000-000-000-000",
24282
+ parentCode: "179-003-000-000-000-000-000",
23832
24283
  childCodes: [],
23833
- definition: "Corrections, probation, parole, or community supervision entity (not law enforcement).",
23834
- canonicalCode: "02-03-05-00"
24284
+ definition: "Not working and wants a job but is not currently seeking due to discouragement about job prospects. HTI extended detail (non-HMIS)."
23835
24285
  },
23836
24286
  {
23837
- code: "048-007-006-000-000-000-000",
23838
- key: "adult_protective_services",
23839
- title: "Adult Protective Services (APS)",
24287
+ code: "179-003-008-000-000-000-000",
24288
+ key: "other_reason",
24289
+ title: "Other reason",
23840
24290
  selectable: true,
23841
- parentCode: "048-007-000-000-000-000-000",
24291
+ parentCode: "179-003-000-000-000-000-000",
23842
24292
  childCodes: [],
23843
- definition: "Government adult protection agency responsible for investigating abuse, neglect, self-neglect, or exploitation of vulnerable or older adults and ensuring their safety. Adult analog of Child Welfare / CPS.",
23844
- canonicalCode: "02-03-06-00"
23845
- },
24293
+ definition: "Not working for another specified reason not captured above. HTI extended detail (non-HMIS)."
24294
+ }
24295
+ ]
24296
+ };
24297
+
24298
+ // src/cvcs/locationType.v1.0.0.json
24299
+ var locationType_v1_0_0_default = {
24300
+ domain: "location_type",
24301
+ name: "Core Location Type",
24302
+ version: "1.0.0",
24303
+ _source: "Rows: hand-authored 2026-04-22 from the April Notion codebook export (co-8ff.5.12); codes, keys, titles and definitions are unchanged since. LOGIC columns (tier \xB7 anchors \xB7 anchorDefault \xB7 shareUnit \xB7 safetyDefault): htilabstech/prototype/data/cvcs/core_location_type.yaml @ 55088d44 (CVC-191 v1.1, logic amended 2026-10-01; read from origin/main; cross-checked against htilabstech/prototype/Final CVCs/Location (IC-4)/core - location_type \u2014 codebook 1.csv + 2.csv @ 55088d44), overlaid by scripts/gen-location-type.py. NOT absorbed: 8 canon rows the package does not publish (TRAFFICKING_OCCURRENCE, VICTIM_IDENTIFICATION, COMMERCIAL_SEX_AD_POSTING, TRAFFICKING_RECRUITMENT, BIRTHPLACE, COURT_LOCATION, LE_INTERVIEW_LOCATION, LE_AGENCY_LOCATION) and the 4 labels canon reworded on 2026-08-28.",
24304
+ levels: {
24305
+ "0": "Unknown or Missing",
24306
+ "1": "Category"
24307
+ },
24308
+ entries: [
23846
24309
  {
23847
- code: "048-008-000-000-000-000-000",
23848
- key: "health_behavioral_health",
23849
- title: "Health / behavioral health",
24310
+ code: "191-000-000-000-000-000-000",
24311
+ key: "missingness_root",
24312
+ title: "Unknown, Redacted, or Missing",
23850
24313
  selectable: false,
23851
24314
  parentCode: null,
23852
24315
  childCodes: [
23853
- "048-008-001-000-000-000-000",
23854
- "048-008-002-000-000-000-000"
24316
+ "191-000-000-000-000-000-001",
24317
+ "191-000-000-000-000-000-002",
24318
+ "191-000-000-000-000-000-003"
23855
24319
  ],
23856
- definition: "Hospitals and healthcare providers (including mental health inpatient facilities).",
23857
- canonicalCode: "02-04-00-00"
24320
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
23858
24321
  },
23859
24322
  {
23860
- code: "048-008-001-000-000-000-000",
23861
- key: "inpatient_psychiatric_facility",
23862
- title: "Inpatient psychiatric facility",
24323
+ code: "191-000-000-000-000-000-001",
24324
+ key: "unknown",
24325
+ title: "Unknown",
23863
24326
  selectable: true,
23864
- parentCode: "048-008-000-000-000-000-000",
24327
+ parentCode: "191-000-000-000-000-000-000",
23865
24328
  childCodes: [],
23866
- definition: "Inpatient psychiatric hospital or psychiatric facility.",
23867
- canonicalCode: "02-04-01-00"
24329
+ definition: "Unknown or cannot be determined from the available information.",
24330
+ tier: "sentinel",
24331
+ anchors: [],
24332
+ anchorDefault: null,
24333
+ shareUnit: null,
24334
+ safetyDefault: null
23868
24335
  },
23869
24336
  {
23870
- code: "048-008-002-000-000-000-000",
23871
- key: "healthcare_provider",
23872
- title: "Healthcare provider (non-inpatient psychiatric)",
24337
+ code: "191-000-000-000-000-000-002",
24338
+ key: "anonymous",
24339
+ title: "Anonymous",
23873
24340
  selectable: true,
23874
- parentCode: "048-008-000-000-000-000-000",
24341
+ parentCode: "191-000-000-000-000-000-000",
23875
24342
  childCodes: [],
23876
- definition: "Any non-inpatient healthcare provider (clinic, hospital, outpatient provider, behavioral health clinic, SANE program, substance abuse clinic, etc.).",
23877
- canonicalCode: "02-04-02-00"
23878
- },
23879
- {
23880
- code: "048-009-000-000-000-000-000",
23881
- key: "education",
23882
- title: "Education",
23883
- selectable: false,
23884
- parentCode: null,
23885
- childCodes: [
23886
- "048-009-001-000-000-000-000"
23887
- ],
23888
- definition: "Parent category for education-related institutions.",
23889
- canonicalCode: "02-05-00-00"
24343
+ definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted.",
24344
+ tier: "sentinel",
24345
+ anchors: [],
24346
+ anchorDefault: null,
24347
+ shareUnit: null,
24348
+ safetyDefault: null
23890
24349
  },
23891
24350
  {
23892
- code: "048-009-001-000-000-000-000",
23893
- key: "school_academic_institution",
23894
- title: "School / academic institution",
24351
+ code: "191-000-000-000-000-000-003",
24352
+ key: "data_not_collected",
24353
+ title: "Data not collected",
23895
24354
  selectable: true,
23896
- parentCode: "048-009-000-000-000-000-000",
24355
+ parentCode: "191-000-000-000-000-000-000",
23897
24356
  childCodes: [],
23898
- definition: "School system or educational institution.",
23899
- canonicalCode: "02-05-01-00"
24357
+ definition: "No attempt was made to collect the information.",
24358
+ tier: "sentinel",
24359
+ anchors: [],
24360
+ anchorDefault: null,
24361
+ shareUnit: null,
24362
+ safetyDefault: null
23900
24363
  },
23901
24364
  {
23902
- code: "048-010-000-000-000-000-000",
23903
- key: "victim_community_service_providers",
23904
- title: "Victim + Community service providers",
23905
- selectable: false,
24365
+ code: "191-001-000-000-000-000-000",
24366
+ key: "current_residence",
24367
+ title: "Current residence",
24368
+ selectable: true,
23906
24369
  parentCode: null,
23907
- childCodes: [
23908
- "048-010-001-000-000-000-000",
23909
- "048-010-002-000-000-000-000",
23910
- "048-010-003-000-000-000-000",
23911
- "048-010-004-000-000-000-000"
24370
+ childCodes: [],
24371
+ definition: "Where the client/person currently resides (residential location).",
24372
+ tier: "residence",
24373
+ anchors: [
24374
+ "person"
23912
24375
  ],
23913
- definition: "Parent category for victim service providers and community-based service providers.",
23914
- canonicalCode: "02-06-00-00"
24376
+ anchorDefault: "person",
24377
+ shareUnit: "addresses",
24378
+ safetyDefault: "ask"
23915
24379
  },
23916
24380
  {
23917
- code: "048-010-001-000-000-000-000",
23918
- key: "child_advocacy_center",
23919
- title: "Child Advocacy Center (CAC)",
24381
+ code: "191-002-000-000-000-000-000",
24382
+ key: "service_delivery_location",
24383
+ title: "Service delivery location",
23920
24384
  selectable: true,
23921
- parentCode: "048-010-000-000-000-000-000",
24385
+ parentCode: null,
23922
24386
  childCodes: [],
23923
- definition: "A child-centered multidisciplinary center coordinating investigation and services (forensic interview, coordination, referrals, sometimes medical or therapy) for child victims.",
23924
- canonicalCode: "02-06-01-00"
24387
+ definition: "The physical site where a service instance was delivered (office, outreach site, partner site, on-scene).",
24388
+ tier: "service",
24389
+ anchors: [
24390
+ "service_instance",
24391
+ "agency_program",
24392
+ "person"
24393
+ ],
24394
+ anchorDefault: "service_instance",
24395
+ shareUnit: "service_history",
24396
+ safetyDefault: "ask"
23925
24397
  },
23926
24398
  {
23927
- code: "048-010-002-000-000-000-000",
23928
- key: "victim_service_provider",
23929
- title: "Victim service provider / advocacy program",
24399
+ code: "191-003-000-000-000-000-000",
24400
+ key: "current_client_location",
24401
+ title: "Current client/victim location",
23930
24402
  selectable: true,
23931
- parentCode: "048-010-000-000-000-000-000",
24403
+ parentCode: null,
23932
24404
  childCodes: [],
23933
- definition: "Organization whose primary mission is to provide services to victims/survivors of crime (VOCA-aligned breadth: rape crisis centers, DV/dating-violence/stalking programs, anti-trafficking programs, child victim centers, homicide-survivor organizations, and similar). Whether the organization is specifically a DV/SA victim service provider \u2014 the fact HMIS 2.01 needs (Comparable Database) \u2014 is a separate per-organization attribute, self-attested by the organization at onboarding (Platform survey / Agency Hub \u201CMy agency info\u201D), not part of this category.",
23934
- canonicalCode: "02-06-02-00"
24405
+ definition: "Where the client/victim/caller is physically located at the time of contact or service (operational safety location).",
24406
+ tier: "encounter",
24407
+ anchors: [
24408
+ "person"
24409
+ ],
24410
+ anchorDefault: "person",
24411
+ shareUnit: "addresses",
24412
+ safetyDefault: "ask"
23935
24413
  },
23936
24414
  {
23937
- code: "048-010-003-000-000-000-000",
23938
- key: "community_based_service_provider",
23939
- title: "Community-based service provider (general social services)",
24415
+ code: "191-004-000-000-000-000-000",
24416
+ key: "meet_contact_location",
24417
+ title: "Meet / contact location",
23940
24418
  selectable: true,
23941
- parentCode: "048-010-000-000-000-000-000",
24419
+ parentCode: null,
23942
24420
  childCodes: [],
23943
- definition: "The residual community-based provider (\u201Cother community-based service provider\u201D): a non-VSP offering practical support services, navigation, or stabilization resources that is not primarily a VSP, a legal services provider, a housing/shelter project, a government justice agency, a healthcare provider, a school, a hotline, or a public benefits office. (Ex: youth drop-in center; food pantry; reentry program.)",
23944
- canonicalCode: "02-06-03-00"
24421
+ definition: "A location where an in-person meeting/contact/event occurred (e.g., meet location, arrest location, outreach contact site).",
24422
+ tier: "encounter",
24423
+ anchors: [
24424
+ "session",
24425
+ "event",
24426
+ "person"
24427
+ ],
24428
+ anchorDefault: "session",
24429
+ shareUnit: "encounter_location",
24430
+ safetyDefault: "ask"
23945
24431
  },
23946
24432
  {
23947
- code: "048-010-004-000-000-000-000",
23948
- key: "legal_services_provider",
23949
- title: "Legal services provider",
24433
+ code: "191-005-000-000-000-000-000",
24434
+ key: "prior_residence",
24435
+ title: "Prior residence",
23950
24436
  selectable: true,
23951
- parentCode: "048-010-000-000-000-000-000",
23952
- childCodes: [],
23953
- definition: "Civil legal aid organization, immigration attorneys, victim-rights law clinic, or similar provider of legal help to the client. Distinct from Courts or prosecution (the justice-system entity itself): this is getting a lawyer's help, not being referred into proceedings.",
23954
- canonicalCode: "02-06-04-00"
23955
- },
23956
- {
23957
- code: "048-011-000-000-000-000-000",
23958
- key: "coordination_governance",
23959
- title: "Coordination & Governance",
23960
- selectable: false,
23961
24437
  parentCode: null,
23962
- childCodes: [
23963
- "048-011-001-000-000-000-000",
23964
- "048-011-002-000-000-000-000"
24438
+ childCodes: [],
24439
+ definition: "Where the client/person previously resided (historical residential location).",
24440
+ tier: "residence",
24441
+ anchors: [
24442
+ "person"
23965
24443
  ],
23966
- definition: "Parent category for coordination and governance bodies (e.g., MDTs, coalitions).",
23967
- canonicalCode: "02-07-00-00"
24444
+ anchorDefault: "person",
24445
+ shareUnit: "addresses",
24446
+ safetyDefault: "ask"
23968
24447
  },
23969
24448
  {
23970
- code: "048-011-001-000-000-000-000",
23971
- key: "mdt",
23972
- title: "Multidisciplinary team (MDT)",
24449
+ code: "191-006-000-000-000-000-000",
24450
+ key: "jurisdiction_routing_location",
24451
+ title: "Jurisdiction / routing location",
23973
24452
  selectable: true,
23974
- parentCode: "048-011-000-000-000-000-000",
24453
+ parentCode: null,
23975
24454
  childCodes: [],
23976
- definition: "A case-level team: professionals from multiple agencies (law enforcement, child welfare, medical, advocacy) who review and coordinate individual cases together; referrals arise out of case review. (E.g., a county trafficking MDT or a CAC-based team.)",
23977
- canonicalCode: "02-07-01-00"
24455
+ definition: "A location used to determine jurisdiction, eligibility, or referral routing (e.g., county, city, CoC code, service area).",
24456
+ tier: "encounter",
24457
+ anchors: [
24458
+ "person"
24459
+ ],
24460
+ anchorDefault: "person",
24461
+ shareUnit: "addresses",
24462
+ safetyDefault: "ask"
23978
24463
  },
23979
24464
  {
23980
- code: "048-011-002-000-000-000-000",
23981
- key: "coalition",
23982
- title: "Coalition (state/regional coalition)",
24465
+ code: "191-007-000-000-000-000-000",
24466
+ key: "ad_location_derived",
24467
+ title: "Ad location (derived)",
23983
24468
  selectable: true,
23984
- parentCode: "048-011-000-000-000-000-000",
24469
+ parentCode: null,
23985
24470
  childCodes: [],
23986
- definition: "A state or regional membership body of organizations coordinating at the system level \u2014 training, standards, policy, funding \u2014 not individual cases; referrals from a coalition are typically warm handoffs to a member organization.",
23987
- canonicalCode: "02-07-02-00"
24471
+ definition: "A location inferred from ads/postings (posting city/region/board) used for analytics such as base location, travel, and heat maps.",
24472
+ tier: "derived",
24473
+ anchors: [
24474
+ "person"
24475
+ ],
24476
+ anchorDefault: "person",
24477
+ shareUnit: "commercial_activity",
24478
+ safetyDefault: null
23988
24479
  },
23989
24480
  {
23990
- code: "048-012-000-000-000-000-000",
23991
- key: "internal",
23992
- title: "Internal",
23993
- selectable: false,
24481
+ code: "191-008-000-000-000-000-000",
24482
+ key: "travel_stop_visit",
24483
+ title: "Travel stop / visit",
24484
+ selectable: true,
23994
24485
  parentCode: null,
23995
- childCodes: [
23996
- "048-012-001-000-000-000-000"
24486
+ childCodes: [],
24487
+ definition: "A location representing a travel instance or visit (part of a travel log/itinerary), with time bounds.",
24488
+ tier: "encounter",
24489
+ anchors: [
24490
+ "person",
24491
+ "event"
23997
24492
  ],
23998
- definition: "Parent category for internal referrals within the same umbrella agency.",
23999
- canonicalCode: "02-08-00-00"
24493
+ anchorDefault: "person",
24494
+ shareUnit: "addresses",
24495
+ safetyDefault: "ask"
24000
24496
  },
24001
24497
  {
24002
- code: "048-012-001-000-000-000-000",
24003
- key: "own_agency_internal",
24004
- title: "Own agency / internal referral",
24498
+ code: "191-009-000-000-000-000-000",
24499
+ key: "work_school_business",
24500
+ title: "Work / school / business",
24005
24501
  selectable: true,
24006
- parentCode: "048-012-000-000-000-000-000",
24502
+ parentCode: null,
24007
24503
  childCodes: [],
24008
- definition: "Client was referred from another program or unit within the same umbrella agency.",
24009
- canonicalCode: "02-08-01-00"
24504
+ definition: "A location associated with work, school, or business activity (legal or illicit), including known venues tied to an entity.",
24505
+ tier: "encounter",
24506
+ anchors: [
24507
+ "person"
24508
+ ],
24509
+ anchorDefault: "person",
24510
+ shareUnit: "addresses",
24511
+ safetyDefault: "ask"
24010
24512
  },
24011
24513
  {
24012
- code: "048-013-000-000-000-000-000",
24013
- key: "other_entity",
24014
- title: "Other",
24015
- selectable: false,
24514
+ code: "191-010-000-000-000-000-000",
24515
+ key: "ip_derived_location",
24516
+ title: "IP-derived location (derived)",
24517
+ selectable: true,
24016
24518
  parentCode: null,
24017
- childCodes: [
24018
- "048-013-001-000-000-000-000",
24019
- "048-013-002-000-000-000-000",
24020
- "048-013-003-000-000-000-000"
24519
+ childCodes: [],
24520
+ definition: "A location inferred from an IP address (geolocation-derived), used as a signal rather than a confirmed physical location.",
24521
+ tier: "derived",
24522
+ anchors: [
24523
+ "person"
24021
24524
  ],
24022
- definition: "Parent category for other organizations not captured by the primary sectors.",
24023
- canonicalCode: "02-09-00-00"
24525
+ anchorDefault: "person",
24526
+ shareUnit: "commercial_activity",
24527
+ safetyDefault: null
24024
24528
  },
24025
24529
  {
24026
- code: "048-013-001-000-000-000-000",
24027
- key: "employer",
24028
- title: "Employer",
24530
+ code: "191-011-000-000-000-000-000",
24531
+ key: "program_project_location",
24532
+ title: "Program / project location (reporting)",
24029
24533
  selectable: true,
24030
- parentCode: "048-013-000-000-000-000-000",
24534
+ parentCode: null,
24031
24535
  childCodes: [],
24032
- definition: "Employer, HR, or employee assistance program initiated the referral.",
24033
- canonicalCode: "02-09-01-00"
24536
+ definition: "A location describing a program, shelter, project site, or provider location used for reporting (e.g., HMIS project descriptor).",
24537
+ tier: "service",
24538
+ anchors: [
24539
+ "agency_program"
24540
+ ],
24541
+ anchorDefault: "agency_program",
24542
+ shareUnit: null,
24543
+ safetyDefault: "safe"
24034
24544
  },
24035
24545
  {
24036
- code: "048-013-002-000-000-000-000",
24037
- key: "benefits_public_assistance_office",
24038
- title: "Benefits/public assistance office",
24546
+ code: "191-012-000-000-000-000-000",
24547
+ key: "other",
24548
+ title: "Other",
24039
24549
  selectable: true,
24040
- parentCode: "048-013-000-000-000-000-000",
24550
+ parentCode: null,
24041
24551
  childCodes: [],
24042
- definition: "Government office administering public benefits or eligibility and enrollment (e.g., SNAP, TANF, Medicaid, SSA).",
24043
- canonicalCode: "02-09-02-00"
24552
+ definition: "A catch-all value used when none of the defined location types apply or when the role/context is unclear.",
24553
+ tier: "encounter",
24554
+ anchors: [
24555
+ "person",
24556
+ "session",
24557
+ "event"
24558
+ ],
24559
+ anchorDefault: "person",
24560
+ shareUnit: "addresses",
24561
+ safetyDefault: "ask"
24044
24562
  },
24045
24563
  {
24046
- code: "048-013-003-000-000-000-000",
24047
- key: "other_organization",
24048
- title: "Other Organization",
24564
+ code: "191-013-000-000-000-000-000",
24565
+ key: "incident",
24566
+ title: "Incident",
24049
24567
  selectable: true,
24050
- parentCode: "048-013-000-000-000-000-000",
24568
+ parentCode: null,
24051
24569
  childCodes: [],
24052
- definition: "Other organization not otherwise captured by the listed categories.",
24053
- canonicalCode: "02-09-03-00"
24570
+ definition: "Location associated with an incident (e.g., where an event occurred, was reported, or was investigated), distinct from current residence, jurisdiction/routing, or service delivery context.",
24571
+ tier: "encounter",
24572
+ anchors: [
24573
+ "session",
24574
+ "event"
24575
+ ],
24576
+ anchorDefault: "event",
24577
+ shareUnit: "encounter_location",
24578
+ safetyDefault: "ask"
24054
24579
  }
24055
24580
  ]
24056
24581
  };
@@ -38845,12 +39370,12 @@ var riskCategory_v1_0_0_default = {
38845
39370
  ]
38846
39371
  };
38847
39372
 
38848
- // src/cvcs/coreFunctions.v1.0.0.json
38849
- var coreFunctions_v1_0_0_default = {
39373
+ // src/cvcs/coreFunctions.v1.1.0.json
39374
+ var coreFunctions_v1_1_0_default = {
38850
39375
  domain: "core_functions",
38851
39376
  name: "Core Functions",
38852
- version: "1.0.0",
38853
- _status: "DRAFTED \u2014 NEEDS REVIEW: canonical Notion CVC-133 (core - functions), verified v1.0, ported verbatim from the Notion codebook. Canonical numbering (133), NOT provisional. Per-entry lifecycle Status (v1 / future / not-started) is carried in each definition.",
39377
+ version: "1.1.0",
39378
+ _status: "DRAFTED \u2014 NEEDS REVIEW: canonical Notion CVC-133 (core - functions), verified v1.0, ported verbatim from the Notion codebook. Canonical numbering (133), NOT provisional. Per-entry lifecycle Status (v1 / future / not-started) is carried in each definition. VERSION 1.1.0 (additive; ADR-CVC-0.8.13 Addendum 2026-10-05): APPENDS `note_open_departed_author` at 133-078 (added 2026-10-05 while building the Narrative notes Spec v2, rule 10; canon's own logic_notes mark the row as awaiting steward review (Crysta); canon `data/cvcs/core_functions.yaml` L68-93 @ prototype 9ef79748, unchanged at fed744f3, and the codebook_all.csv export). Default Off for Account Admin (MEM-ADM) only; bounds are not carried by this entry schema. Every 1.0.0 code and key is unchanged. Canon carries 112 functions; this SOT carries 78 \u2014 the other 34 canon rows are a separate absorb, not taken here.",
38854
39379
  _source: "Notion CVC-133 core - functions (collection://3211ef14-abcd-8024-867d-000be4b35a79)",
38855
39380
  levels: {
38856
39381
  "0": "Unknown or Missing",
@@ -39589,6 +40114,15 @@ var coreFunctions_v1_0_0_default = {
39589
40114
  parentCode: null,
39590
40115
  childCodes: [],
39591
40116
  definition: "Create, invite, deactivate, and manage user accounts within a member account or platform context. [Status: Defined; existing PAVE function. Platform: PLATFORM. User-relevant: no. Admin-relevant: yes. Category: Identity & access administration, Platform administration (HTI-only).]"
40117
+ },
40118
+ {
40119
+ code: "133-078-000-000-000-000-000",
40120
+ key: "note_open_departed_author",
40121
+ title: "Open a deactivated author's private notes",
40122
+ selectable: true,
40123
+ parentCode: null,
40124
+ childCodes: [],
40125
+ definition: `Move a deactivated author's "Private to me" notes to "Our account only", so the account can read notes whose author no longer has an account. The admin cannot read a note before opening it and cannot move it any further. [Status: Defined; new function. Platform: PAVE, THREAD. User-relevant: no. Admin-relevant: yes. Category: Account administration (member admin).]`
39592
40126
  }
39593
40127
  ]
39594
40128
  };
@@ -41021,13 +41555,55 @@ var coreInformationScope_v1_1_0_default = {
41021
41555
  ]
41022
41556
  };
41023
41557
 
41024
- // src/cvcs/roiScope.v1.0.0.json
41025
- var roiScope_v1_0_0_default = {
41558
+ // src/cvcs/roiScope.v1.2.0.json
41559
+ var roiScope_v1_2_0_default = {
41026
41560
  domain: "roi_scope",
41027
41561
  name: "ROI Scope",
41028
- version: "1.1.0",
41029
- _status: "DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering. 0.8.13: COMPLETED against the canonical 27-item source. 0.8.12 shipped 15 of the canonical 27; the missing 12 are added here. Nothing PAVE shipped was invented \u2014 this was purely a gap. Canonical source: `HTI_SHARE_SCOPE_GROUPS` in HTI-LEADS-PAVE-Thread-prototype.html @ HEAD a596eb9 (7 groups x items = 27): identifying (5) + risk (4) + contact (3) + notes (3) + health_accommodation (6) + immigration_legal_status (5) + system (1). The GROUP axis (identifying / risk / contact / notes / health_accommodation / immigration_legal_status / system) is a separate presentation concern and is deliberately NOT modelled as hierarchy rows here \u2014 this CVC is the flat item vocabulary that an ROI authorizes. PENDING canonical Notion authoring + steward ratification.",
41030
- _source: "htilabstech/prototype@a596eb9 HTI-LEADS-PAVE-Thread-prototype.html HTI_SHARE_SCOPE_GROUPS",
41562
+ version: "1.2.0",
41563
+ _status: 'DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering. 0.8.13: COMPLETED against the canonical 27-item source. 0.8.12 shipped 15 of the canonical 27; the missing 12 are added here. Nothing PAVE shipped was invented \u2014 this was purely a gap. Canonical source: `HTI_SHARE_SCOPE_GROUPS` in HTI-LEADS-PAVE-Thread-prototype.html @ HEAD a596eb9 (7 groups x items = 27): identifying (5) + risk (4) + contact (3) + notes (3) + health_accommodation (6) + immigration_legal_status (5) + system (1). The GROUP axis (identifying / risk / contact / notes / health_accommodation / immigration_legal_status / system) is a separate presentation concern and is deliberately NOT modelled as hierarchy rows here \u2014 this CVC is the flat item vocabulary that an ROI authorizes. PENDING canonical Notion authoring + steward ratification. VERSION 1.2.0 supersedes 1.1.0 (co-bwc): `screen_notes` (983-012) and `background` (983-014) are RETIRED TOMBSTONES, matching CVC-236 `core_information_scope` v1.1.0 (retired 2026-10-05, Narrative notes, signed Spec v2 rule 5). Each keeps its published code (never reused), is `selectable: false` + `retired: true`, and includes nothing: a stored ROI that names one resolves to "retired", not "unknown". Not additive, hence the version (ADR-CVC-0.8.13 Addendum 2026-10-05; see `_supersedes`). This flat vocabulary is LEGACY: new units (e.g. `session_summary`, 236-005-004) are minted in CVC-236 only and are not mirrored here.',
41564
+ _source: "htilabstech/prototype@a596eb9 HTI-LEADS-PAVE-Thread-prototype.html HTI_SHARE_SCOPE_GROUPS; v1.2.0 retirements: htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 9ef79748 retired_units (L467)",
41565
+ _supersedes: {
41566
+ version: "1.1.0",
41567
+ keyMap: {
41568
+ missingness_root: "missingness_root",
41569
+ unknown: "unknown",
41570
+ anonymous: "anonymous",
41571
+ data_not_collected: "data_not_collected",
41572
+ names: "names",
41573
+ dob: "dob",
41574
+ addresses: "addresses",
41575
+ additional_ids: "additional_ids",
41576
+ demographics: "demographics",
41577
+ screen_indicators: "screen_indicators",
41578
+ victimization: "victimization",
41579
+ ida_full: "ida_full",
41580
+ ida_consid: "ida_consid",
41581
+ contact_info: "contact_info",
41582
+ service_history: "service_history",
41583
+ screen_notes: "screen_notes",
41584
+ case_notes: "case_notes",
41585
+ background: "background",
41586
+ system_info: "system_info",
41587
+ contact_history: "contact_history",
41588
+ accommodation_needs: "accommodation_needs",
41589
+ disability_subtypes: "disability_subtypes",
41590
+ mental_health_status: "mental_health_status",
41591
+ substance_use_status: "substance_use_status",
41592
+ chronic_health_status: "chronic_health_status",
41593
+ hiv_status: "hiv_status",
41594
+ immigration_status: "immigration_status",
41595
+ uscis_alien_number: "uscis_alien_number",
41596
+ federal_protection_applications: "federal_protection_applications",
41597
+ tvap_enrollment: "tvap_enrollment",
41598
+ le_report_status: "le_report_status"
41599
+ },
41600
+ retiredCodes: [],
41601
+ notes: {
41602
+ summary: 'Every v1.1.0 key is still an entry in v1.2.0, at its v1.1.0 code, so `keyMap` is the identity and `retiredCodes` is empty: no code was withdrawn. Non-additive because 2 published items are now RETIRED tombstones (notes below), matching CVC-236 `core_information_scope` v1.1.0, which retired the same two keys; nothing was added. Before this version the package gave two answers to "is screen_notes offerable" (co-bwc). The file was named `roiScope.v1.0.0.json` while declaring version 1.1.0 (the 0.8.13 completion); the published version superseded here is the declared 1.1.0.',
41603
+ screen_notes: "v1.1.0 `screen_notes` was a selectable item. Retired 2026-10-05 (Narrative notes, signed Spec v2 rule 5): The Initial Screen's notes box is an instrument note and belongs to the Initial Screen. It stays at 983-012 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI that names it narrows, never widens. CVC-236 v1.1.0 retired the same key (canon `data/cvcs/core_information_scope.yaml` `retired_units` L467 @ prototype 9ef79748); canon records that only demo data named it (Crysta 2026-10-04).",
41604
+ background: "v1.1.0 `background` was a selectable item. Retired 2026-10-05 (Narrative notes, signed Spec v2 rule 5): Nothing ever captured it. It stays at 983-014 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI that names it narrows, never widens. CVC-236 v1.1.0 retired the same key (canon `data/cvcs/core_information_scope.yaml` `retired_units` L467 @ prototype 9ef79748); canon records that only demo data named it (Crysta 2026-10-04)."
41605
+ }
41606
+ },
41031
41607
  levels: {
41032
41608
  "0": "Unknown or Missing",
41033
41609
  "1": "ROI scope item"
@@ -41176,10 +41752,11 @@ var roiScope_v1_0_0_default = {
41176
41752
  code: "983-012-000-000-000-000-000",
41177
41753
  key: "screen_notes",
41178
41754
  title: "Screen notes",
41179
- selectable: true,
41755
+ selectable: false,
41180
41756
  parentCode: null,
41181
41757
  childCodes: [],
41182
- definition: "Narrative notes captured during screening. Narrative-notes scope group."
41758
+ definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5), matching its CVC-236 `core_information_scope` v1.1.0 twin. The Initial Screen's notes box is an instrument note and belongs to the Initial Screen. No longer offered in an ROI; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
41759
+ retired: true
41183
41760
  },
41184
41761
  {
41185
41762
  code: "983-013-000-000-000-000-000",
@@ -41194,10 +41771,11 @@ var roiScope_v1_0_0_default = {
41194
41771
  code: "983-014-000-000-000-000-000",
41195
41772
  key: "background",
41196
41773
  title: "Background information",
41197
- selectable: true,
41774
+ selectable: false,
41198
41775
  parentCode: null,
41199
41776
  childCodes: [],
41200
- definition: "Background/narrative context about the subject. Narrative-notes scope group."
41777
+ definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5), matching its CVC-236 `core_information_scope` v1.1.0 twin. Nothing ever captured it. No longer offered in an ROI; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
41778
+ retired: true
41201
41779
  },
41202
41780
  {
41203
41781
  code: "983-015-000-000-000-000-000",
@@ -57240,6 +57818,8 @@ var CVC_197_VALUES = selectableCodes(
57240
57818
  ACCOMMODATION_OPTIONS,
57241
57819
  ACTIVE_CVC_136_CORE_INDICATOR_VALUES,
57242
57820
  ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES,
57821
+ AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS,
57822
+ AGENCY_TYPE_KEYS,
57243
57823
  AGE_BIN_REPORTING,
57244
57824
  AGE_BIN_REPORTING_IS_MINOR,
57245
57825
  AGE_BIN_REPORTING_LABELS,
@@ -57253,6 +57833,8 @@ var CVC_197_VALUES = selectableCodes(
57253
57833
  AdminRoleKeys,
57254
57834
  AdministeringJurisdictionKeys,
57255
57835
  AgeBinReportingKeys,
57836
+ AgencyOrgTypeFieldsSchema,
57837
+ AgencyTypeKeySchema,
57256
57838
  AnnouncementAudienceScopeKeys,
57257
57839
  AnnouncementResponseTypeKeys,
57258
57840
  AssertionDomainKeys,
@@ -57473,6 +58055,7 @@ var CVC_197_VALUES = selectableCodes(
57473
58055
  GoalPriorityKeys,
57474
58056
  GoalStatusKeys,
57475
58057
  GoalWithdrawalReasonKeys,
58058
+ HEALTHCARE_ORG_TYPE_KEYS,
57476
58059
  HairColorKeys,
57477
58060
  HasTattoosKeys,
57478
58061
  HighestEducationLevelCompletedKeys,
@@ -57554,6 +58137,9 @@ var CVC_197_VALUES = selectableCodes(
57554
58137
  InvestigativeRequestTypeKeys,
57555
58138
  JuvenileJusticeEpisodeTypeKeys,
57556
58139
  JuvenileJusticeInvolvementStatusKeys,
58140
+ LAW_ENFORCEMENT_ORG_TYPE_KEYS,
58141
+ LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY,
58142
+ LEGAL_ORG_TYPE_KEYS,
57557
58143
  LanguagesKeys,
57558
58144
  LeReportStatusKeys,
57559
58145
  LegalActionTypeKeys,
@@ -57569,11 +58155,20 @@ var CVC_197_VALUES = selectableCodes(
57569
58155
  MilitaryBranchKeys,
57570
58156
  MilitaryStatusKeys,
57571
58157
  MinorAdultStatusKeys,
58158
+ NO_SECTOR_ORG_TYPE_KEYS,
57572
58159
  NameTypeKeys,
57573
58160
  NeedsAssessmentChangeTypeKeys,
57574
58161
  NeedsResidentialAgainKeys,
58162
+ ORG_TYPE_FIELD_NAMES,
58163
+ ORG_TYPE_HEADING_KEYS,
58164
+ ORG_TYPE_KEYS,
58165
+ ORG_TYPE_NONPICKABLE_LEAF_KEYS,
58166
+ ORG_TYPE_PARENT_KEY,
58167
+ ORG_TYPE_SELECTABLE_KEYS,
57575
58168
  OffenderStatusFamilyKeys,
57576
58169
  OffenderStatusKeys,
58170
+ OrgTypeFieldsSchema,
58171
+ OrgTypeSelectableKeySchema,
57577
58172
  OrientationIdentityKeys,
57578
58173
  PARTICIPATION_ROLE_CATEGORIES,
57579
58174
  PERMISSION_STATE,
@@ -57615,6 +58210,7 @@ var CVC_197_VALUES = selectableCodes(
57615
58210
  RELATIONSHIP_DYNAMICS,
57616
58211
  RELATIONSHIP_DYNAMICS_LABELS,
57617
58212
  RELATIONSHIP_DYNAMICS_VALUES,
58213
+ REPORT_AUTHORITY_ORG_TYPE_KEYS,
57618
58214
  ROLE_LEVEL,
57619
58215
  ROLE_LEVEL_LABELS,
57620
58216
  ROLE_LEVEL_VALUES,
@@ -57657,6 +58253,7 @@ var CVC_197_VALUES = selectableCodes(
57657
58253
  SessionNoteVisibilityKeys,
57658
58254
  SessionStateKeys,
57659
58255
  SessionTemplateKeys,
58256
+ SetOrgTypeInputSchema,
57660
58257
  SeverityFollowUpKeys,
57661
58258
  SexProviderSubroleKeys,
57662
58259
  SharePurposeKeys,
@@ -57691,6 +58288,8 @@ var CVC_197_VALUES = selectableCodes(
57691
58288
  UserRoleKeys,
57692
58289
  VALID_INTERACTION_TYPES,
57693
58290
  VALID_RECORD_STATES,
58291
+ VICTIM_SERVING_ORG_TYPE_KEYS,
58292
+ VSP_TWO_STEP_ISSUE,
57694
58293
  VerificationMethodKeys,
57695
58294
  VerificationStatusKeys,
57696
58295
  VictimAbuseTypesKeys,
@@ -57701,14 +58300,18 @@ var CVC_197_VALUES = selectableCodes(
57701
58300
  actionStepCompletionStatusSot,
57702
58301
  actionStepTypeSot,
57703
58302
  activityTypeSot,
58303
+ addAgencyOrgTypeFields,
58304
+ addOrgTypeFields,
57704
58305
  addTeamDirectoryFields,
57705
58306
  addressSchema,
57706
58307
  adminRolesSot,
57707
58308
  administeringJurisdictionSot,
57708
58309
  ageBinReportingSot,
58310
+ agencyOrgTypeSchemaDefinition,
57709
58311
  announcementAudienceScopeSot,
57710
58312
  announcementResponseTypeSot,
57711
58313
  applyEntryOverrides,
58314
+ applyRunValidatorsIfUnset,
57712
58315
  assertionDomainSot,
57713
58316
  assertionStatusSot,
57714
58317
  basisQuickPicksSot,
@@ -57825,14 +58428,21 @@ var CVC_197_VALUES = selectableCodes(
57825
58428
  incomeBenefitsSourcesSot,
57826
58429
  inferenceTypeSot,
57827
58430
  investigativeRequestTypeSot,
58431
+ isAgencyTypeKey,
57828
58432
  isDeprecatedCoreIndicator,
57829
58433
  isDeprecatedIncidentParticipationRole,
58434
+ isHealthcareOrgType,
57830
58435
  isIC56Missingness,
57831
58436
  isIC56ValidChannel,
58437
+ isLawEnforcementOrgType,
58438
+ isLegalOrgType,
57832
58439
  isLgbtqOrientation,
58440
+ isOrgTypeKey,
57833
58441
  isProtectedRelationship,
58442
+ isReportAuthorityOrgType,
57834
58443
  isStructuredNameType,
57835
58444
  isTransgenderGenderIdentity,
58445
+ isVictimServingOrgType,
57836
58446
  juvenileJusticeEpisodeTypeSot,
57837
58447
  juvenileJusticeInvolvementStatusSot,
57838
58448
  languagesSot,
@@ -57849,11 +58459,23 @@ var CVC_197_VALUES = selectableCodes(
57849
58459
  militaryBranchSot,
57850
58460
  militaryStatusSot,
57851
58461
  minorAdultStatusSot,
58462
+ mirrorOrgTypeFields,
57852
58463
  nameTypeSot,
57853
58464
  needsAssessmentChangeTypeSot,
57854
58465
  needsResidentialAgainSot,
57855
58466
  offenderStatusFamilySot,
57856
58467
  offenderStatusSot,
58468
+ orgTypeAncestry,
58469
+ orgTypeCanonicalCode,
58470
+ orgTypeDefaultSessionRole,
58471
+ orgTypeDefaultSessionRoleOrNull,
58472
+ orgTypeDefaultVsp,
58473
+ orgTypeEnumConstant,
58474
+ orgTypeFieldsDiffer,
58475
+ orgTypeFieldsShape,
58476
+ orgTypeLabel,
58477
+ orgTypeSchemaDefinition,
58478
+ orgTypeSector,
57857
58479
  orientationIdentitySot,
57858
58480
  personNameSchema,
57859
58481
  personRelationshipsSot,
@@ -57890,6 +58512,12 @@ var CVC_197_VALUES = selectableCodes(
57890
58512
  relationshipDynamicsSot,
57891
58513
  relationshipStatusCurrentSot,
57892
58514
  relationshipTiesSot,
58515
+ resolveAgencyTypeKey,
58516
+ resolveEffectiveOrgType,
58517
+ resolveEffectiveOrgTypeFields,
58518
+ resolveOrgTypeKey,
58519
+ resolveOrgTypeKeyFromLegacyNumeric,
58520
+ resolveReferralEntityKeyFromLegacyNumeric,
57893
58521
  resolveRegistryWithInheritance,
57894
58522
  returnedToAbuserStatusSot,
57895
58523
  riskCategorySot,
@@ -57956,6 +58584,9 @@ var CVC_197_VALUES = selectableCodes(
57956
58584
  victimStatusFamilySot,
57957
58585
  visaTypeSot,
57958
58586
  visibilityRuleSchema,
57959
- whyNotsSot
58587
+ vspTwoStepHolds,
58588
+ vspTwoStepHoldsOnUpdate,
58589
+ whyNotsSot,
58590
+ withOrgTypeFields
57960
58591
  });
57961
58592
  //# sourceMappingURL=index.cjs.map