@htilabs/platform-common-models 0.17.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 (71) 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-ctHTp2df.d.cts → cvcEntry-0BIB9sen.d.cts} +36 -36
  12. package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-0BIB9sen.d.ts} +36 -36
  13. package/dist/cvcs/index.cjs +114 -62
  14. package/dist/cvcs/index.cjs.map +1 -1
  15. package/dist/cvcs/index.d.cts +112 -59
  16. package/dist/cvcs/index.d.ts +112 -59
  17. package/dist/cvcs/index.js +114 -62
  18. package/dist/cvcs/index.js.map +1 -1
  19. package/dist/enums/index.cjs +1 -0
  20. package/dist/enums/index.cjs.map +1 -1
  21. package/dist/enums/index.d.cts +2 -1
  22. package/dist/enums/index.d.ts +2 -1
  23. package/dist/enums/index.js +1 -0
  24. package/dist/enums/index.js.map +1 -1
  25. package/dist/{index-4DiJrn7y.d.ts → index-CDoqrfc1.d.ts} +1 -1
  26. package/dist/{index-qreOzXYS.d.cts → index-Zu_mOJRn.d.cts} +1 -1
  27. package/dist/index.cjs +1654 -1077
  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 +1600 -1076
  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 +14 -11
  42. package/dist/schemas/index.d.ts +14 -11
  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 +2 -2
  55. package/src/__tests__/cvc-sot-snapshot.test.ts +5 -5
  56. package/src/__tests__/cvc-structural.test.ts +1 -1
  57. package/src/__tests__/org-type-contract.test.ts +1353 -0
  58. package/src/__tests__/referral-entity-category-canon.test.ts +255 -81
  59. package/src/constants/ic.ts +45 -0
  60. package/src/constants/index.ts +1 -0
  61. package/src/constants/org-type.ts +703 -0
  62. package/src/cvcs/index.ts +1 -1
  63. package/src/cvcs/{referralEntityCategory.v1.1.0.json → referralEntityCategory.v1.2.0.json} +111 -59
  64. package/src/generated/cvc-enums.ts +2 -1
  65. package/src/index.ts +23 -0
  66. package/src/schemas/agency.ts +481 -0
  67. package/src/schemas/index.ts +24 -0
  68. package/src/validation/agency.ts +119 -0
  69. package/src/validation/index.ts +1 -0
  70. package/dist/team-C4LJ5Tex.d.cts +0 -333
  71. 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,
@@ -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,12 +712,18 @@ __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,
@@ -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",
@@ -12453,6 +13536,26 @@ var TeamDirectoryFieldsSchema = import_zod2.z.object({
12453
13536
  canReferTo: import_zod2.z.array(ObjectIdHexSchema).refine(hasNoDuplicates, "canReferTo must not repeat a team").optional()
12454
13537
  });
12455
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
+
12456
13559
  // src/cvcs/serviceCategories.v1.0.0.json
12457
13560
  var serviceCategories_v1_0_0_default = {
12458
13561
  domain: "service_categories",
@@ -22720,1338 +23823,759 @@ var personRelationships_v1_0_0_default = {
22720
23823
  title: "Facilitator / Target person",
22721
23824
  selectable: true,
22722
23825
  parentCode: "126-007-000-000-000-000-000",
22723
- childCodes: [
22724
- "126-007-003-001-000-000-000",
22725
- "126-007-003-002-000-000-000"
22726
- ],
22727
- definition: "Relationship where one person facilitates or intermediates commercial sex/exploitation activity affecting the other (e.g., arranging, advertising, booking)."
22728
- },
22729
- {
22730
- code: "126-007-003-001-000-000-000",
22731
- key: "facilitator_of",
22732
- title: "Facilitator",
22733
- selectable: true,
22734
- parentCode: "126-007-003-000-000-000-000",
22735
- childCodes: [],
22736
- definition: "Role: the related person facilitated/intermediated commercial sex/exploitation activity affecting the anchor person."
22737
- },
22738
- {
22739
- code: "126-007-003-002-000-000-000",
22740
- key: "target_of_facilitator",
22741
- title: "Target person (facilitator)",
22742
- selectable: true,
22743
- parentCode: "126-007-003-000-000-000-000",
22744
- childCodes: [],
22745
- definition: "Role: the related person was the target/person affected by facilitation from the anchor person."
22746
- },
22747
- {
22748
- code: "126-007-004-000-000-000-000",
22749
- key: "recruiter_recruited_person",
22750
- title: "Recruiter / Recruited person",
22751
- selectable: true,
22752
- parentCode: "126-007-000-000-000-000-000",
22753
- childCodes: [
22754
- "126-007-004-001-000-000-000",
22755
- "126-007-004-002-000-000-000"
22756
- ],
22757
- definition: "Relationship where one person recruits/entices another into commercial sex or exploitation context."
22758
- },
22759
- {
22760
- code: "126-007-004-001-000-000-000",
22761
- key: "recruited_by",
22762
- title: "Recruited person",
22763
- selectable: true,
22764
- parentCode: "126-007-004-000-000-000-000",
22765
- childCodes: [],
22766
- definition: "Role: the related person was recruited/enticed by the anchor person."
22767
- },
22768
- {
22769
- code: "126-007-004-002-000-000-000",
22770
- key: "recruiter_of",
22771
- title: "Recruiter",
22772
- selectable: true,
22773
- parentCode: "126-007-004-000-000-000-000",
22774
- childCodes: [],
22775
- definition: "Role: the related person recruited/enticed the anchor person into commercial sex/exploitation context."
22776
- },
22777
- {
22778
- code: "126-007-005-000-000-000-000",
22779
- key: "trafficker_victim",
22780
- title: "Trafficker / Victim",
22781
- selectable: true,
22782
- parentCode: "126-007-000-000-000-000-000",
22783
- childCodes: [
22784
- "126-007-005-001-000-000-000",
22785
- "126-007-005-002-000-000-000"
22786
- ],
22787
- definition: "Exploitation relationship where one person is believed to traffic/exploit the other in a commercial sex or related exploitation context."
22788
- },
22789
- {
22790
- code: "126-007-005-001-000-000-000",
22791
- key: "trafficker_of",
22792
- title: "Trafficker",
22793
- selectable: true,
22794
- parentCode: "126-007-005-000-000-000-000",
22795
- childCodes: [],
22796
- definition: "Role: the related person is the trafficker/exploiter of the anchor person."
22797
- },
22798
- {
22799
- code: "126-007-005-002-000-000-000",
22800
- key: "victim_of_trafficker",
22801
- title: "Victim",
22802
- selectable: true,
22803
- parentCode: "126-007-005-000-000-000-000",
22804
- childCodes: [],
22805
- definition: "Role: the related person is the victim/target of trafficking/exploitation by the anchor person."
22806
- },
22807
- {
22808
- code: "126-008-000-000-000-000-000",
22809
- key: "other_unspecified",
22810
- title: "Other / Unspecified",
22811
- selectable: false,
22812
- parentCode: null,
22813
- childCodes: [
22814
- "126-008-001-000-000-000-000",
22815
- "126-008-002-000-000-000-000",
22816
- "126-008-003-000-000-000-000",
22817
- "126-008-004-000-000-000-000"
22818
- ],
22819
- definition: "High-level topic for edge cases, unknown/low-information ties, and constrained exceptions that don't fit the primary relationship domains."
22820
- },
22821
- {
22822
- code: "126-008-001-000-000-000-000",
22823
- key: "other_person_relationship",
22824
- title: "Other person relationship",
22825
- selectable: true,
22826
- parentCode: "126-008-000-000-000-000-000",
22827
- childCodes: [],
22828
- definition: "Person-to-person relationship exists, but none of the available structural relationship types fit. Should require detail text."
22829
- },
22830
- {
22831
- code: "126-008-002-000-000-000-000",
22832
- key: "person_pet",
22833
- title: "Pet / Animal (person\u2194pet)",
22834
- selectable: true,
22835
- parentCode: "126-008-000-000-000-000-000",
22836
- childCodes: [
22837
- "126-008-002-001-000-000-000",
22838
- "126-008-002-002-000-000-000",
22839
- "126-008-002-003-000-000-000"
22840
- ],
22841
- 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."
22842
- },
22843
- {
22844
- code: "126-008-002-001-000-000-000",
22845
- key: "pet_caregiver_of",
22846
- title: "Caregiver of (pet)",
22847
- selectable: true,
22848
- parentCode: "126-008-002-000-000-000-000",
22849
- childCodes: [],
22850
- definition: "Person provides primary day-to-day care for the pet/animal, regardless of legal ownership."
22851
- },
22852
- {
22853
- code: "126-008-002-002-000-000-000",
22854
- key: "pet_of",
22855
- title: "Pet of",
22856
- selectable: true,
22857
- parentCode: "126-008-002-000-000-000-000",
22858
- childCodes: [],
22859
- definition: "Pet/animal is the pet of the person."
22860
- },
22861
- {
22862
- code: "126-008-002-003-000-000-000",
22863
- key: "pet_owner_of",
22864
- title: "Owner of (pet)",
22865
- selectable: true,
22866
- parentCode: "126-008-002-000-000-000-000",
22867
- childCodes: [],
22868
- definition: "Person has legal or practical ownership responsibility for the pet/animal."
22869
- },
22870
- {
22871
- code: "126-008-003-000-000-000-000",
22872
- key: "relationship_unknown",
22873
- title: "Relationship unknown",
22874
- selectable: true,
22875
- parentCode: "126-008-000-000-000-000-000",
22876
- childCodes: [],
22877
- definition: "A relationship/link is asserted between two people, but the relationship type is unknown or not yet determined."
22878
- },
22879
- {
22880
- code: "126-008-004-000-000-000-000",
22881
- key: "stranger",
22882
- title: "Stranger",
22883
- selectable: true,
22884
- parentCode: "126-008-000-000-000-000-000",
22885
- childCodes: [],
22886
- definition: "No known prior relationship exists between the two people (i.e., they are strangers)."
22887
- }
22888
- ]
22889
- };
22890
-
22891
- // src/cvcs/employmentStatus.v1.0.0.json
22892
- var employmentStatus_v1_0_0_default = {
22893
- domain: "employment_status",
22894
- name: "Core Employment Status",
22895
- version: "1.0.0",
22896
- levels: {
22897
- "0": "Unknown or Missing",
22898
- "1": "Primary",
22899
- "2": "Detail"
22900
- },
22901
- entries: [
22902
- {
22903
- code: "179-000-000-000-000-000-000",
22904
- key: "missingness_root",
22905
- title: "Unknown, Redacted, or Missing",
22906
- selectable: false,
22907
- parentCode: null,
22908
- childCodes: [
22909
- "179-000-000-000-000-000-001",
22910
- "179-000-000-000-000-000-002",
22911
- "179-000-000-000-000-000-003",
22912
- "179-000-000-000-000-000-004",
22913
- "179-000-000-000-000-000-005"
22914
- ],
22915
- 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."
22916
- },
22917
- {
22918
- code: "179-000-000-000-000-000-001",
22919
- key: "unknown",
22920
- title: "Unknown",
22921
- selectable: true,
22922
- parentCode: "179-000-000-000-000-000-000",
22923
- childCodes: [],
22924
- definition: "Value is unknown at time of entry or cannot be determined from available information."
22925
- },
22926
- {
22927
- code: "179-000-000-000-000-000-002",
22928
- key: "anonymous",
22929
- title: "Anonymous",
22930
- selectable: true,
22931
- parentCode: "179-000-000-000-000-000-000",
22932
- childCodes: [],
22933
- definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted."
22934
- },
22935
- {
22936
- code: "179-000-000-000-000-000-003",
22937
- key: "data_not_collected",
22938
- title: "Data not collected",
22939
- selectable: true,
22940
- parentCode: "179-000-000-000-000-000-000",
22941
- childCodes: [],
22942
- definition: "No attempt was made to collect the information."
22943
- },
22944
- {
22945
- code: "179-000-000-000-000-000-004",
22946
- key: "client_doesnt_know",
22947
- title: "Client doesn't know",
22948
- selectable: true,
22949
- parentCode: "179-000-000-000-000-000-000",
22950
- childCodes: [],
22951
- definition: "Client is unable to provide an answer (explicit 'doesn't know'). HMIS R6 nonresponse value."
22952
- },
22953
- {
22954
- code: "179-000-000-000-000-000-005",
22955
- key: "client_refused",
22956
- title: "Client refused",
22957
- selectable: true,
22958
- parentCode: "179-000-000-000-000-000-000",
22959
- childCodes: [],
22960
- definition: "The person was asked but chose not to provide an answer (client prefers not to answer). HMIS R6 nonresponse value."
22961
- },
22962
- {
22963
- code: "179-001-000-000-000-000-000",
22964
- key: "employed",
22965
- title: "Employed",
22966
- selectable: true,
22967
- parentCode: null,
22968
- childCodes: [
22969
- "179-001-001-000-000-000-000",
22970
- "179-001-002-000-000-000-000",
22971
- "179-001-003-000-000-000-000",
22972
- "179-001-004-000-000-000-000",
22973
- "179-001-005-000-000-000-000",
22974
- "179-001-006-000-000-000-000",
22975
- "179-001-007-000-000-000-000"
22976
- ],
22977
- definition: "Has worked for pay or profit during the reference period (includes formal and informal work)."
22978
- },
22979
- {
22980
- code: "179-001-001-000-000-000-000",
22981
- key: "full_time",
22982
- title: "Full-time",
22983
- selectable: true,
22984
- parentCode: "179-001-000-000-000-000-000",
22985
- childCodes: [],
22986
- 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."
22987
- },
22988
- {
22989
- code: "179-001-002-000-000-000-000",
22990
- key: "part_time",
22991
- title: "Part-time",
22992
- selectable: true,
22993
- parentCode: "179-001-000-000-000-000-000",
22994
- childCodes: [],
22995
- definition: "Working fewer than full-time hours during the reference period. HMIS-authoritative type of employment when Employed=Yes."
22996
- },
22997
- {
22998
- code: "179-001-003-000-000-000-000",
22999
- key: "seasonal_sporadic",
23000
- title: "Seasonal / sporadic (including day labor)",
23001
- selectable: true,
23002
- parentCode: "179-001-000-000-000-000-000",
23003
- childCodes: [],
23004
- definition: "Work is seasonal, sporadic, day labor, or otherwise inconsistent/irregular during the reference period. HMIS-authoritative type of employment when Employed=Yes."
23005
- },
23006
- {
23007
- code: "179-001-004-000-000-000-000",
23008
- key: "self_employed",
23009
- title: "Self-employed",
23010
- selectable: true,
23011
- parentCode: "179-001-000-000-000-000-000",
23012
- childCodes: [],
23013
- definition: "Works for themself as a contractor, sole proprietor, or business owner. HTI extended detail (non-HMIS)."
23014
- },
23015
- {
23016
- code: "179-001-005-000-000-000-000",
23017
- key: "informal_cash_gig",
23018
- title: "Informal / cash-based / gig",
23019
- selectable: true,
23020
- parentCode: "179-001-000-000-000-000-000",
23021
- childCodes: [],
23022
- definition: "Earns income through informal, cash-based, gig, or off-the-books work. HTI extended detail (non-HMIS)."
23023
- },
23024
- {
23025
- code: "179-001-006-000-000-000-000",
23026
- key: "multiple_jobs",
23027
- title: "Multiple jobs",
23028
- selectable: true,
23029
- parentCode: "179-001-000-000-000-000-000",
23030
- childCodes: [],
23031
- definition: "Holds more than one job or income-generating role. HTI extended detail (non-HMIS)."
23032
- },
23033
- {
23034
- code: "179-001-007-000-000-000-000",
23035
- key: "unpaid_family_worker",
23036
- title: "Unpaid family worker",
23037
- selectable: true,
23038
- parentCode: "179-001-000-000-000-000-000",
23039
- childCodes: [],
23040
- definition: "Works in a family business or farm without formal pay. HTI extended detail (non-HMIS)."
23041
- },
23042
- {
23043
- code: "179-002-000-000-000-000-000",
23044
- key: "unemployed",
23045
- title: "Unemployed",
23046
- selectable: true,
23047
- parentCode: null,
23048
- childCodes: [
23049
- "179-002-001-000-000-000-000",
23050
- "179-002-002-000-000-000-000",
23051
- "179-002-003-000-000-000-000",
23052
- "179-002-004-000-000-000-000",
23053
- "179-002-005-000-000-000-000"
23054
- ],
23055
- definition: "Not working, available, and actively seeking work (or on temporary layoff). Federal BLS/Census Unemployed definition."
23056
- },
23057
- {
23058
- code: "179-002-001-000-000-000-000",
23059
- key: "looking_for_work",
23060
- title: "Looking for work (HMIS)",
23061
- selectable: true,
23062
- parentCode: "179-002-000-000-000-000-000",
23063
- childCodes: [],
23064
- definition: "Employed=No and looking for work. HMIS-authoritative reason captured when Employed=No."
23065
- },
23066
- {
23067
- code: "179-002-002-000-000-000-000",
23068
- key: "actively_seeking",
23069
- title: "Actively seeking",
23070
- selectable: true,
23071
- parentCode: "179-002-000-000-000-000-000",
23072
- childCodes: [],
23073
- definition: "Not working, available, and actively taking steps to find work. HTI extended detail (non-HMIS)."
23074
- },
23075
- {
23076
- code: "179-002-003-000-000-000-000",
23077
- key: "first_time_job_seeker",
23078
- title: "First-time job seeker",
23079
- selectable: true,
23080
- parentCode: "179-002-000-000-000-000-000",
23081
- childCodes: [],
23082
- definition: "Unemployed and seeking a first job (no prior work history or new entrant). HTI extended detail (non-HMIS)."
23083
- },
23084
- {
23085
- code: "179-002-004-000-000-000-000",
23086
- key: "recently_laid_off",
23087
- title: "Recently laid off",
23088
- selectable: true,
23089
- parentCode: "179-002-000-000-000-000-000",
23090
- childCodes: [],
23091
- definition: "Unemployed due to a recent layoff or job loss. HTI extended detail (non-HMIS)."
23092
- },
23093
- {
23094
- code: "179-002-005-000-000-000-000",
23095
- key: "long_term_unemployed",
23096
- title: "Long-term unemployed",
23097
- selectable: true,
23098
- parentCode: "179-002-000-000-000-000-000",
23099
- childCodes: [],
23100
- definition: "Unemployed and actively seeking work for an extended period (program-defined threshold, often 27+ weeks). HTI extended detail (non-HMIS)."
23101
- },
23102
- {
23103
- code: "179-003-000-000-000-000-000",
23104
- key: "not_in_labor_force",
23105
- title: "Not in the labor force (NILF)",
23106
- selectable: true,
23107
- parentCode: null,
23108
- childCodes: [
23109
- "179-003-001-000-000-000-000",
23110
- "179-003-002-000-000-000-000",
23111
- "179-003-003-000-000-000-000",
23112
- "179-003-004-000-000-000-000",
23113
- "179-003-005-000-000-000-000",
23114
- "179-003-006-000-000-000-000",
23115
- "179-003-007-000-000-000-000",
23116
- "179-003-008-000-000-000-000"
23117
- ],
23118
- definition: "Not working and not actively seeking work during the reference period (e.g., student, caregiver, retired). Federal BLS/Census NILF definition."
23119
- },
23120
- {
23121
- code: "179-003-001-000-000-000-000",
23122
- key: "not_looking_for_work",
23123
- title: "Not looking for work (HMIS)",
23124
- selectable: true,
23125
- parentCode: "179-003-000-000-000-000-000",
23126
- childCodes: [],
23127
- definition: "Employed=No and not looking for work. HMIS-authoritative reason captured when Employed=No."
23128
- },
23129
- {
23130
- code: "179-003-002-000-000-000-000",
23131
- key: "unable_to_work",
23132
- title: "Unable to work (HMIS)",
23133
- selectable: true,
23134
- parentCode: "179-003-000-000-000-000-000",
23135
- childCodes: [],
23136
- definition: "Employed=No due to being unable to work. HMIS-authoritative reason captured when Employed=No."
23137
- },
23138
- {
23139
- code: "179-003-003-000-000-000-000",
23140
- key: "student",
23141
- title: "Student",
23142
- selectable: true,
23143
- parentCode: "179-003-000-000-000-000-000",
23144
- childCodes: [],
23145
- definition: "Not working because enrolled in school or training and not actively seeking work. HTI extended detail (non-HMIS)."
23146
- },
23147
- {
23148
- code: "179-003-004-000-000-000-000",
23149
- key: "caregiver",
23150
- title: "Caregiver (child, family, dependent)",
23151
- selectable: true,
23152
- parentCode: "179-003-000-000-000-000-000",
23153
- childCodes: [],
23154
- definition: "Not working due to caregiving responsibilities for a child, family member, or other dependent. HTI extended detail (non-HMIS)."
23155
- },
23156
- {
23157
- code: "179-003-005-000-000-000-000",
23158
- key: "disabled",
23159
- title: "Disabled / unable to work",
23160
- selectable: true,
23161
- parentCode: "179-003-000-000-000-000-000",
23162
- childCodes: [],
23163
- 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."
23164
- },
23165
- {
23166
- code: "179-003-006-000-000-000-000",
23167
- key: "retired",
23168
- title: "Retired",
23169
- selectable: true,
23170
- parentCode: "179-003-000-000-000-000-000",
23171
- childCodes: [],
23172
- definition: "Not working because retired and not actively seeking work. HTI extended detail (non-HMIS)."
23173
- },
23174
- {
23175
- code: "179-003-007-000-000-000-000",
23176
- key: "discouraged_worker",
23177
- title: "Discouraged worker",
23178
- selectable: true,
23179
- parentCode: "179-003-000-000-000-000-000",
23180
- childCodes: [],
23181
- definition: "Not working and wants a job but is not currently seeking due to discouragement about job prospects. HTI extended detail (non-HMIS)."
23182
- },
23183
- {
23184
- code: "179-003-008-000-000-000-000",
23185
- key: "other_reason",
23186
- title: "Other reason",
23187
- selectable: true,
23188
- parentCode: "179-003-000-000-000-000-000",
23189
- childCodes: [],
23190
- definition: "Not working for another specified reason not captured above. HTI extended detail (non-HMIS)."
23191
- }
23192
- ]
23193
- };
23194
-
23195
- // src/cvcs/locationType.v1.0.0.json
23196
- var locationType_v1_0_0_default = {
23197
- domain: "location_type",
23198
- name: "Core Location Type",
23199
- version: "1.0.0",
23200
- _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.",
23201
- levels: {
23202
- "0": "Unknown or Missing",
23203
- "1": "Category"
23204
- },
23205
- entries: [
23206
- {
23207
- code: "191-000-000-000-000-000-000",
23208
- key: "missingness_root",
23209
- title: "Unknown, Redacted, or Missing",
23210
- selectable: false,
23211
- parentCode: null,
23212
- childCodes: [
23213
- "191-000-000-000-000-000-001",
23214
- "191-000-000-000-000-000-002",
23215
- "191-000-000-000-000-000-003"
23826
+ childCodes: [
23827
+ "126-007-003-001-000-000-000",
23828
+ "126-007-003-002-000-000-000"
23216
23829
  ],
23217
- definition: "Root group for values indicating absent, withheld, or uncollected data."
23830
+ definition: "Relationship where one person facilitates or intermediates commercial sex/exploitation activity affecting the other (e.g., arranging, advertising, booking)."
23218
23831
  },
23219
23832
  {
23220
- code: "191-000-000-000-000-000-001",
23221
- key: "unknown",
23222
- title: "Unknown",
23833
+ code: "126-007-003-001-000-000-000",
23834
+ key: "facilitator_of",
23835
+ title: "Facilitator",
23223
23836
  selectable: true,
23224
- parentCode: "191-000-000-000-000-000-000",
23837
+ parentCode: "126-007-003-000-000-000-000",
23225
23838
  childCodes: [],
23226
- definition: "Unknown or cannot be determined from the available information.",
23227
- tier: "sentinel",
23228
- anchors: [],
23229
- anchorDefault: null,
23230
- shareUnit: null,
23231
- safetyDefault: null
23839
+ definition: "Role: the related person facilitated/intermediated commercial sex/exploitation activity affecting the anchor person."
23232
23840
  },
23233
23841
  {
23234
- code: "191-000-000-000-000-000-002",
23235
- key: "anonymous",
23236
- title: "Anonymous",
23842
+ code: "126-007-003-002-000-000-000",
23843
+ key: "target_of_facilitator",
23844
+ title: "Target person (facilitator)",
23237
23845
  selectable: true,
23238
- parentCode: "191-000-000-000-000-000-000",
23846
+ parentCode: "126-007-003-000-000-000-000",
23239
23847
  childCodes: [],
23240
- definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted.",
23241
- tier: "sentinel",
23242
- anchors: [],
23243
- anchorDefault: null,
23244
- shareUnit: null,
23245
- safetyDefault: null
23848
+ definition: "Role: the related person was the target/person affected by facilitation from the anchor person."
23246
23849
  },
23247
23850
  {
23248
- code: "191-000-000-000-000-000-003",
23249
- key: "data_not_collected",
23250
- title: "Data not collected",
23851
+ code: "126-007-004-000-000-000-000",
23852
+ key: "recruiter_recruited_person",
23853
+ title: "Recruiter / Recruited person",
23251
23854
  selectable: true,
23252
- parentCode: "191-000-000-000-000-000-000",
23253
- childCodes: [],
23254
- definition: "No attempt was made to collect the information.",
23255
- tier: "sentinel",
23256
- anchors: [],
23257
- anchorDefault: null,
23258
- shareUnit: null,
23259
- safetyDefault: null
23855
+ parentCode: "126-007-000-000-000-000-000",
23856
+ childCodes: [
23857
+ "126-007-004-001-000-000-000",
23858
+ "126-007-004-002-000-000-000"
23859
+ ],
23860
+ definition: "Relationship where one person recruits/entices another into commercial sex or exploitation context."
23260
23861
  },
23261
23862
  {
23262
- code: "191-001-000-000-000-000-000",
23263
- key: "current_residence",
23264
- title: "Current residence",
23863
+ code: "126-007-004-001-000-000-000",
23864
+ key: "recruited_by",
23865
+ title: "Recruited person",
23265
23866
  selectable: true,
23266
- parentCode: null,
23867
+ parentCode: "126-007-004-000-000-000-000",
23267
23868
  childCodes: [],
23268
- definition: "Where the client/person currently resides (residential location).",
23269
- tier: "residence",
23270
- anchors: [
23271
- "person"
23272
- ],
23273
- anchorDefault: "person",
23274
- shareUnit: "addresses",
23275
- safetyDefault: "ask"
23869
+ definition: "Role: the related person was recruited/enticed by the anchor person."
23276
23870
  },
23277
23871
  {
23278
- code: "191-002-000-000-000-000-000",
23279
- key: "service_delivery_location",
23280
- title: "Service delivery location",
23872
+ code: "126-007-004-002-000-000-000",
23873
+ key: "recruiter_of",
23874
+ title: "Recruiter",
23281
23875
  selectable: true,
23282
- parentCode: null,
23876
+ parentCode: "126-007-004-000-000-000-000",
23283
23877
  childCodes: [],
23284
- definition: "The physical site where a service instance was delivered (office, outreach site, partner site, on-scene).",
23285
- tier: "service",
23286
- anchors: [
23287
- "service_instance",
23288
- "agency_program",
23289
- "person"
23290
- ],
23291
- anchorDefault: "service_instance",
23292
- shareUnit: "service_history",
23293
- safetyDefault: "ask"
23878
+ definition: "Role: the related person recruited/enticed the anchor person into commercial sex/exploitation context."
23294
23879
  },
23295
23880
  {
23296
- code: "191-003-000-000-000-000-000",
23297
- key: "current_client_location",
23298
- title: "Current client/victim location",
23881
+ code: "126-007-005-000-000-000-000",
23882
+ key: "trafficker_victim",
23883
+ title: "Trafficker / Victim",
23299
23884
  selectable: true,
23300
- parentCode: null,
23301
- childCodes: [],
23302
- definition: "Where the client/victim/caller is physically located at the time of contact or service (operational safety location).",
23303
- tier: "encounter",
23304
- anchors: [
23305
- "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"
23306
23889
  ],
23307
- anchorDefault: "person",
23308
- shareUnit: "addresses",
23309
- safetyDefault: "ask"
23890
+ definition: "Exploitation relationship where one person is believed to traffic/exploit the other in a commercial sex or related exploitation context."
23310
23891
  },
23311
23892
  {
23312
- code: "191-004-000-000-000-000-000",
23313
- key: "meet_contact_location",
23314
- title: "Meet / contact location",
23893
+ code: "126-007-005-001-000-000-000",
23894
+ key: "trafficker_of",
23895
+ title: "Trafficker",
23315
23896
  selectable: true,
23316
- parentCode: null,
23897
+ parentCode: "126-007-005-000-000-000-000",
23317
23898
  childCodes: [],
23318
- definition: "A location where an in-person meeting/contact/event occurred (e.g., meet location, arrest location, outreach contact site).",
23319
- tier: "encounter",
23320
- anchors: [
23321
- "session",
23322
- "event",
23323
- "person"
23324
- ],
23325
- anchorDefault: "session",
23326
- shareUnit: "encounter_location",
23327
- safetyDefault: "ask"
23899
+ definition: "Role: the related person is the trafficker/exploiter of the anchor person."
23328
23900
  },
23329
23901
  {
23330
- code: "191-005-000-000-000-000-000",
23331
- key: "prior_residence",
23332
- title: "Prior residence",
23902
+ code: "126-007-005-002-000-000-000",
23903
+ key: "victim_of_trafficker",
23904
+ title: "Victim",
23333
23905
  selectable: true,
23334
- parentCode: null,
23906
+ parentCode: "126-007-005-000-000-000-000",
23335
23907
  childCodes: [],
23336
- definition: "Where the client/person previously resided (historical residential location).",
23337
- tier: "residence",
23338
- anchors: [
23339
- "person"
23340
- ],
23341
- anchorDefault: "person",
23342
- shareUnit: "addresses",
23343
- safetyDefault: "ask"
23908
+ definition: "Role: the related person is the victim/target of trafficking/exploitation by the anchor person."
23344
23909
  },
23345
23910
  {
23346
- code: "191-006-000-000-000-000-000",
23347
- key: "jurisdiction_routing_location",
23348
- title: "Jurisdiction / routing location",
23349
- selectable: true,
23911
+ code: "126-008-000-000-000-000-000",
23912
+ key: "other_unspecified",
23913
+ title: "Other / Unspecified",
23914
+ selectable: false,
23350
23915
  parentCode: null,
23351
- childCodes: [],
23352
- definition: "A location used to determine jurisdiction, eligibility, or referral routing (e.g., county, city, CoC code, service area).",
23353
- tier: "encounter",
23354
- anchors: [
23355
- "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"
23356
23921
  ],
23357
- anchorDefault: "person",
23358
- shareUnit: "addresses",
23359
- 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."
23360
23923
  },
23361
23924
  {
23362
- code: "191-007-000-000-000-000-000",
23363
- key: "ad_location_derived",
23364
- title: "Ad location (derived)",
23925
+ code: "126-008-001-000-000-000-000",
23926
+ key: "other_person_relationship",
23927
+ title: "Other person relationship",
23365
23928
  selectable: true,
23366
- parentCode: null,
23929
+ parentCode: "126-008-000-000-000-000-000",
23367
23930
  childCodes: [],
23368
- definition: "A location inferred from ads/postings (posting city/region/board) used for analytics such as base location, travel, and heat maps.",
23369
- tier: "derived",
23370
- anchors: [
23371
- "person"
23372
- ],
23373
- anchorDefault: "person",
23374
- shareUnit: "commercial_activity",
23375
- safetyDefault: null
23931
+ definition: "Person-to-person relationship exists, but none of the available structural relationship types fit. Should require detail text."
23376
23932
  },
23377
23933
  {
23378
- code: "191-008-000-000-000-000-000",
23379
- key: "travel_stop_visit",
23380
- title: "Travel stop / visit",
23934
+ code: "126-008-002-000-000-000-000",
23935
+ key: "person_pet",
23936
+ title: "Pet / Animal (person\u2194pet)",
23381
23937
  selectable: true,
23382
- parentCode: null,
23383
- childCodes: [],
23384
- definition: "A location representing a travel instance or visit (part of a travel log/itinerary), with time bounds.",
23385
- tier: "encounter",
23386
- anchors: [
23387
- "person",
23388
- "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"
23389
23943
  ],
23390
- anchorDefault: "person",
23391
- shareUnit: "addresses",
23392
- 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."
23393
23945
  },
23394
23946
  {
23395
- code: "191-009-000-000-000-000-000",
23396
- key: "work_school_business",
23397
- title: "Work / school / business",
23947
+ code: "126-008-002-001-000-000-000",
23948
+ key: "pet_caregiver_of",
23949
+ title: "Caregiver of (pet)",
23398
23950
  selectable: true,
23399
- parentCode: null,
23951
+ parentCode: "126-008-002-000-000-000-000",
23400
23952
  childCodes: [],
23401
- definition: "A location associated with work, school, or business activity (legal or illicit), including known venues tied to an entity.",
23402
- tier: "encounter",
23403
- anchors: [
23404
- "person"
23405
- ],
23406
- anchorDefault: "person",
23407
- shareUnit: "addresses",
23408
- safetyDefault: "ask"
23953
+ definition: "Person provides primary day-to-day care for the pet/animal, regardless of legal ownership."
23409
23954
  },
23410
23955
  {
23411
- code: "191-010-000-000-000-000-000",
23412
- key: "ip_derived_location",
23413
- title: "IP-derived location (derived)",
23956
+ code: "126-008-002-002-000-000-000",
23957
+ key: "pet_of",
23958
+ title: "Pet of",
23414
23959
  selectable: true,
23415
- parentCode: null,
23960
+ parentCode: "126-008-002-000-000-000-000",
23416
23961
  childCodes: [],
23417
- definition: "A location inferred from an IP address (geolocation-derived), used as a signal rather than a confirmed physical location.",
23418
- tier: "derived",
23419
- anchors: [
23420
- "person"
23421
- ],
23422
- anchorDefault: "person",
23423
- shareUnit: "commercial_activity",
23424
- safetyDefault: null
23962
+ definition: "Pet/animal is the pet of the person."
23425
23963
  },
23426
23964
  {
23427
- code: "191-011-000-000-000-000-000",
23428
- key: "program_project_location",
23429
- title: "Program / project location (reporting)",
23965
+ code: "126-008-002-003-000-000-000",
23966
+ key: "pet_owner_of",
23967
+ title: "Owner of (pet)",
23430
23968
  selectable: true,
23431
- parentCode: null,
23969
+ parentCode: "126-008-002-000-000-000-000",
23432
23970
  childCodes: [],
23433
- definition: "A location describing a program, shelter, project site, or provider location used for reporting (e.g., HMIS project descriptor).",
23434
- tier: "service",
23435
- anchors: [
23436
- "agency_program"
23437
- ],
23438
- anchorDefault: "agency_program",
23439
- shareUnit: null,
23440
- safetyDefault: "safe"
23971
+ definition: "Person has legal or practical ownership responsibility for the pet/animal."
23441
23972
  },
23442
23973
  {
23443
- code: "191-012-000-000-000-000-000",
23444
- key: "other",
23445
- title: "Other",
23974
+ code: "126-008-003-000-000-000-000",
23975
+ key: "relationship_unknown",
23976
+ title: "Relationship unknown",
23446
23977
  selectable: true,
23447
- parentCode: null,
23978
+ parentCode: "126-008-000-000-000-000-000",
23448
23979
  childCodes: [],
23449
- definition: "A catch-all value used when none of the defined location types apply or when the role/context is unclear.",
23450
- tier: "encounter",
23451
- anchors: [
23452
- "person",
23453
- "session",
23454
- "event"
23455
- ],
23456
- anchorDefault: "person",
23457
- shareUnit: "addresses",
23458
- safetyDefault: "ask"
23980
+ definition: "A relationship/link is asserted between two people, but the relationship type is unknown or not yet determined."
23459
23981
  },
23460
23982
  {
23461
- code: "191-013-000-000-000-000-000",
23462
- key: "incident",
23463
- title: "Incident",
23983
+ code: "126-008-004-000-000-000-000",
23984
+ key: "stranger",
23985
+ title: "Stranger",
23464
23986
  selectable: true,
23465
- parentCode: null,
23987
+ parentCode: "126-008-000-000-000-000-000",
23466
23988
  childCodes: [],
23467
- 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.",
23468
- tier: "encounter",
23469
- anchors: [
23470
- "session",
23471
- "event"
23472
- ],
23473
- anchorDefault: "event",
23474
- shareUnit: "encounter_location",
23475
- safetyDefault: "ask"
23989
+ definition: "No known prior relationship exists between the two people (i.e., they are strangers)."
23476
23990
  }
23477
23991
  ]
23478
23992
  };
23479
23993
 
23480
- // src/cvcs/referralEntityCategory.v1.1.0.json
23481
- var referralEntityCategory_v1_1_0_default = {
23482
- domain: "referral_entity_category",
23483
- name: "Core Referral Entity Category",
23484
- version: "1.1.0",
23485
- _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.",
23486
- _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)",
23487
- _supersedes: {
23488
- version: "1.0.0",
23489
- keyMap: {
23490
- missingness_root: "missingness_root",
23491
- unknown: "unknown",
23492
- anonymous: "anonymous",
23493
- data_not_collected: "data_not_collected",
23494
- self_referred: "self_referred",
23495
- family_guardian_friend: "family_guardian_friend",
23496
- peer: "peer",
23497
- other_individual: "other_individual",
23498
- housing_shelter_continuum: "housing_shelter_continuum",
23499
- outreach_project: "outreach_project",
23500
- temporary_shelter: "temporary_shelter",
23501
- residential_project: "residential_project",
23502
- hotlines: "hotlines",
23503
- national_hotline: "national_hotline",
23504
- local_other_hotline: "local_other_hotline",
23505
- justice_protective_systems: "justice_protective_systems",
23506
- child_welfare_cps: "child_welfare_cps",
23507
- juvenile_justice: "juvenile_justice",
23508
- law_enforcement: "law_enforcement",
23509
- local_law_enforcement: "local_law_enforcement",
23510
- state_law_enforcement: "state_law_enforcement",
23511
- federal_law_enforcement: "federal_law_enforcement",
23512
- tribal_law_enforcement: "tribal_law_enforcement",
23513
- other_law_enforcement: "other_law_enforcement",
23514
- courts_prosecution: "courts_prosecution",
23515
- correction_probation: "correction_probation",
23516
- health_behavioral_health: "health_behavioral_health",
23517
- inpatient_psychiatric_facility: "inpatient_psychiatric_facility",
23518
- healthcare_provider: "healthcare_provider",
23519
- education: "education",
23520
- victim_community_service_providers: "victim_community_service_providers",
23521
- child_advocacy_center: "child_advocacy_center",
23522
- victim_service_provider: "victim_service_provider",
23523
- community_based_service_provider: "community_based_service_provider",
23524
- coordination_governance: "coordination_governance",
23525
- mdt: "mdt",
23526
- coalition: "coalition",
23527
- internal: "internal",
23528
- own_agency_internal: "own_agency_internal",
23529
- other_entity: "other_entity",
23530
- employer: "employer",
23531
- benefits_public_assistance_office: "benefits_public_assistance_office",
23532
- other_organization: "other_organization"
23533
- },
23534
- retiredCodes: [],
23535
- notes: {
23536
- 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.",
23537
- law_enforcement: "v1.0.0 `law_enforcement` was a non-selectable heading. Canon makes Law enforcement / Police a selectable leaf with five optional children."
23538
- }
23539
- },
23540
- _notCarried: [
23541
- {
23542
- canonicalCode: "02-02-01-00",
23543
- name: "Hotline",
23544
- 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"
23545
- }
23546
- ],
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",
23547
23999
  levels: {
23548
24000
  "0": "Unknown or Missing",
23549
- "1": "Category",
23550
- "2": "Entity",
23551
- "3": "Variant"
24001
+ "1": "Primary",
24002
+ "2": "Detail"
23552
24003
  },
23553
24004
  entries: [
23554
24005
  {
23555
- code: "048-000-000-000-000-000-000",
24006
+ code: "179-000-000-000-000-000-000",
23556
24007
  key: "missingness_root",
23557
24008
  title: "Unknown, Redacted, or Missing",
23558
24009
  selectable: false,
23559
24010
  parentCode: null,
23560
24011
  childCodes: [
23561
- "048-000-000-000-000-000-001",
23562
- "048-000-000-000-000-000-002",
23563
- "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"
23564
24017
  ],
23565
- 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."
23566
24019
  },
23567
24020
  {
23568
- code: "048-000-000-000-000-000-001",
24021
+ code: "179-000-000-000-000-000-001",
23569
24022
  key: "unknown",
23570
24023
  title: "Unknown",
23571
24024
  selectable: true,
23572
- parentCode: "048-000-000-000-000-000-000",
24025
+ parentCode: "179-000-000-000-000-000-000",
23573
24026
  childCodes: [],
23574
- definition: "Referral entity category unknown.",
23575
- canonicalCode: "00-00-01-00"
24027
+ definition: "Value is unknown at time of entry or cannot be determined from available information."
23576
24028
  },
23577
24029
  {
23578
- code: "048-000-000-000-000-000-002",
24030
+ code: "179-000-000-000-000-000-002",
23579
24031
  key: "anonymous",
23580
24032
  title: "Anonymous",
23581
24033
  selectable: true,
23582
- parentCode: "048-000-000-000-000-000-000",
24034
+ parentCode: "179-000-000-000-000-000-000",
23583
24035
  childCodes: [],
23584
- definition: "Referral entity category withheld or redacted.",
23585
- canonicalCode: "00-00-02-00"
24036
+ definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted."
23586
24037
  },
23587
24038
  {
23588
- code: "048-000-000-000-000-000-003",
24039
+ code: "179-000-000-000-000-000-003",
23589
24040
  key: "data_not_collected",
23590
24041
  title: "Data not collected",
23591
24042
  selectable: true,
23592
- parentCode: "048-000-000-000-000-000-000",
24043
+ parentCode: "179-000-000-000-000-000-000",
23593
24044
  childCodes: [],
23594
- definition: "Referral entity category not collected or no signal captured.",
23595
- canonicalCode: "00-00-03-00"
24045
+ definition: "No attempt was made to collect the information."
23596
24046
  },
23597
24047
  {
23598
- code: "048-001-000-000-000-000-000",
23599
- key: "self_referred",
23600
- title: "Self-referred",
24048
+ code: "179-000-000-000-000-000-004",
24049
+ key: "client_doesnt_know",
24050
+ title: "Client doesn't know",
23601
24051
  selectable: true,
23602
- parentCode: null,
24052
+ parentCode: "179-000-000-000-000-000-000",
23603
24053
  childCodes: [],
23604
- definition: "Client initiated contact or presented for services without a third-party referrer.",
23605
- canonicalCode: "01-00-01-00"
24054
+ definition: "Client is unable to provide an answer (explicit 'doesn't know'). HMIS R6 nonresponse value."
23606
24055
  },
23607
24056
  {
23608
- code: "048-002-000-000-000-000-000",
23609
- key: "family_guardian_friend",
23610
- title: "Family/guardian/friend/foster parent",
24057
+ code: "179-000-000-000-000-000-005",
24058
+ key: "client_refused",
24059
+ title: "Client refused",
23611
24060
  selectable: true,
23612
- parentCode: null,
24061
+ parentCode: "179-000-000-000-000-000-000",
23613
24062
  childCodes: [],
23614
- definition: "A caregiver, family member, or close personal support person initiated the referral.",
23615
- 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."
23616
24064
  },
23617
24065
  {
23618
- code: "048-003-000-000-000-000-000",
23619
- key: "peer",
23620
- title: "Peer / another client",
24066
+ code: "179-001-000-000-000-000-000",
24067
+ key: "employed",
24068
+ title: "Employed",
23621
24069
  selectable: true,
23622
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",
23623
24088
  childCodes: [],
23624
- definition: "Another current or former client initiated or encouraged the referral.",
23625
- 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."
23626
24090
  },
23627
24091
  {
23628
- code: "048-004-000-000-000-000-000",
23629
- key: "other_individual",
23630
- title: "Other individual",
24092
+ code: "179-001-002-000-000-000-000",
24093
+ key: "part_time",
24094
+ title: "Part-time",
23631
24095
  selectable: true,
23632
- parentCode: null,
24096
+ parentCode: "179-001-000-000-000-000-000",
23633
24097
  childCodes: [],
23634
- definition: "A non-family individual initiated the referral (e.g., neighbor, community member, clergy).",
23635
- 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."
23636
24099
  },
23637
24100
  {
23638
- code: "048-005-000-000-000-000-000",
23639
- key: "housing_shelter_continuum",
23640
- title: "Housing / Shelter continuum",
23641
- selectable: false,
23642
- parentCode: null,
23643
- childCodes: [
23644
- "048-005-001-000-000-000-000",
23645
- "048-005-002-000-000-000-000",
23646
- "048-005-003-000-000-000-000"
23647
- ],
23648
- definition: "Primary function is outreach engagement, emergency shelter, or residential shelter/housing programs.",
23649
- 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."
23650
24108
  },
23651
24109
  {
23652
- code: "048-005-001-000-000-000-000",
23653
- key: "outreach_project",
23654
- title: "Outreach Project",
24110
+ code: "179-001-004-000-000-000-000",
24111
+ key: "self_employed",
24112
+ title: "Self-employed",
23655
24113
  selectable: true,
23656
- parentCode: "048-005-000-000-000-000-000",
24114
+ parentCode: "179-001-000-000-000-000-000",
23657
24115
  childCodes: [],
23658
- definition: "Street/community outreach program that engaged the client prior to enrollment.",
23659
- canonicalCode: "02-01-01-00"
24116
+ definition: "Works for themself as a contractor, sole proprietor, or business owner. HTI extended detail (non-HMIS)."
23660
24117
  },
23661
24118
  {
23662
- code: "048-005-002-000-000-000-000",
23663
- key: "temporary_shelter",
23664
- title: "Temporary Shelter",
24119
+ code: "179-001-005-000-000-000-000",
24120
+ key: "informal_cash_gig",
24121
+ title: "Informal / cash-based / gig",
23665
24122
  selectable: true,
23666
- parentCode: "048-005-000-000-000-000-000",
24123
+ parentCode: "179-001-000-000-000-000-000",
23667
24124
  childCodes: [],
23668
- definition: "Emergency/crisis shelter or short-term temporary housing program.",
23669
- canonicalCode: "02-01-02-00"
24125
+ definition: "Earns income through informal, cash-based, gig, or off-the-books work. HTI extended detail (non-HMIS)."
23670
24126
  },
23671
24127
  {
23672
- code: "048-005-003-000-000-000-000",
23673
- key: "residential_project",
23674
- title: "Residential Project",
24128
+ code: "179-001-006-000-000-000-000",
24129
+ key: "multiple_jobs",
24130
+ title: "Multiple jobs",
23675
24131
  selectable: true,
23676
- parentCode: "048-005-000-000-000-000-000",
24132
+ parentCode: "179-001-000-000-000-000-000",
23677
24133
  childCodes: [],
23678
- definition: "Longer-term residential or transitional living program.",
23679
- canonicalCode: "02-01-03-00"
24134
+ definition: "Holds more than one job or income-generating role. HTI extended detail (non-HMIS)."
23680
24135
  },
23681
24136
  {
23682
- code: "048-006-000-000-000-000-000",
23683
- key: "hotlines",
23684
- title: "Hotlines",
23685
- 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,
23686
24150
  parentCode: null,
23687
24151
  childCodes: [
23688
- "048-006-001-000-000-000-000",
23689
- "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"
23690
24157
  ],
23691
- definition: "Crisis lines or call centers that connect a person to services.",
23692
- canonicalCode: "02-02-00-00"
24158
+ definition: "Not working, available, and actively seeking work (or on temporary layoff). Federal BLS/Census Unemployed definition."
23693
24159
  },
23694
24160
  {
23695
- code: "048-006-001-000-000-000-000",
23696
- key: "national_hotline",
23697
- title: "National hotline",
24161
+ code: "179-002-001-000-000-000-000",
24162
+ key: "looking_for_work",
24163
+ title: "Looking for work (HMIS)",
23698
24164
  selectable: true,
23699
- parentCode: "048-006-000-000-000-000-000",
24165
+ parentCode: "179-002-000-000-000-000-000",
23700
24166
  childCodes: [],
23701
- definition: "National-level hotline network.",
23702
- canonicalCode: "02-02-01-01"
24167
+ definition: "Employed=No and looking for work. HMIS-authoritative reason captured when Employed=No."
23703
24168
  },
23704
24169
  {
23705
- code: "048-006-002-000-000-000-000",
23706
- key: "local_other_hotline",
23707
- title: "Local/other hotline",
24170
+ code: "179-002-002-000-000-000-000",
24171
+ key: "actively_seeking",
24172
+ title: "Actively seeking",
23708
24173
  selectable: true,
23709
- parentCode: "048-006-000-000-000-000-000",
24174
+ parentCode: "179-002-000-000-000-000-000",
23710
24175
  childCodes: [],
23711
- definition: "Local/regional hotline or non-national hotline.",
23712
- canonicalCode: "02-02-01-02"
24176
+ definition: "Not working, available, and actively taking steps to find work. HTI extended detail (non-HMIS)."
23713
24177
  },
23714
24178
  {
23715
- code: "048-007-000-000-000-000-000",
23716
- key: "justice_protective_systems",
23717
- title: "Justice & Protective Systems",
23718
- selectable: false,
23719
- parentCode: null,
23720
- childCodes: [
23721
- "048-007-001-000-000-000-000",
23722
- "048-007-002-000-000-000-000",
23723
- "048-007-003-000-000-000-000",
23724
- "048-007-004-000-000-000-000",
23725
- "048-007-005-000-000-000-000",
23726
- "048-007-006-000-000-000-000"
23727
- ],
23728
- definition: null,
23729
- 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)."
23730
24186
  },
23731
24187
  {
23732
- code: "048-007-001-000-000-000-000",
23733
- key: "child_welfare_cps",
23734
- title: "Child Welfare / CPS",
24188
+ code: "179-002-004-000-000-000-000",
24189
+ key: "recently_laid_off",
24190
+ title: "Recently laid off",
23735
24191
  selectable: true,
23736
- parentCode: "048-007-000-000-000-000-000",
24192
+ parentCode: "179-002-000-000-000-000-000",
23737
24193
  childCodes: [],
23738
- definition: "Government child protection agency responsible for investigating child abuse/neglect and ensuring child safety.",
23739
- canonicalCode: "02-03-01-00"
24194
+ definition: "Unemployed due to a recent layoff or job loss. HTI extended detail (non-HMIS)."
23740
24195
  },
23741
24196
  {
23742
- code: "048-007-002-000-000-000-000",
23743
- key: "juvenile_justice",
23744
- title: "Juvenile Justice",
24197
+ code: "179-002-005-000-000-000-000",
24198
+ key: "long_term_unemployed",
24199
+ title: "Long-term unemployed",
23745
24200
  selectable: true,
23746
- parentCode: "048-007-000-000-000-000-000",
24201
+ parentCode: "179-002-000-000-000-000-000",
23747
24202
  childCodes: [],
23748
- definition: "Juvenile probation/detention/court-related juvenile justice system initiated the referral.",
23749
- 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)."
23750
24204
  },
23751
24205
  {
23752
- code: "048-007-003-000-000-000-000",
23753
- key: "law_enforcement",
23754
- 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)",
23755
24209
  selectable: true,
23756
- parentCode: "048-007-000-000-000-000-000",
24210
+ parentCode: null,
23757
24211
  childCodes: [
23758
- "048-007-003-001-000-000-000",
23759
- "048-007-003-002-000-000-000",
23760
- "048-007-003-003-000-000-000",
23761
- "048-007-003-004-000-000-000",
23762
- "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"
23763
24220
  ],
23764
- definition: "Law enforcement agency initiated the referral (local/state/federal).",
23765
- 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."
23766
24222
  },
23767
24223
  {
23768
- code: "048-007-003-001-000-000-000",
23769
- key: "local_law_enforcement",
23770
- 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)",
23771
24227
  selectable: true,
23772
- parentCode: "048-007-003-000-000-000-000",
24228
+ parentCode: "179-003-000-000-000-000-000",
23773
24229
  childCodes: [],
23774
- definition: "City/county police or sheriff.",
23775
- canonicalCode: "02-03-03-01"
24230
+ definition: "Employed=No and not looking for work. HMIS-authoritative reason captured when Employed=No."
23776
24231
  },
23777
24232
  {
23778
- code: "048-007-003-002-000-000-000",
23779
- key: "state_law_enforcement",
23780
- title: "State law enforcement",
24233
+ code: "179-003-002-000-000-000-000",
24234
+ key: "unable_to_work",
24235
+ title: "Unable to work (HMIS)",
23781
24236
  selectable: true,
23782
- parentCode: "048-007-003-000-000-000-000",
24237
+ parentCode: "179-003-000-000-000-000-000",
23783
24238
  childCodes: [],
23784
- definition: "State-level law enforcement agency (e.g., state police/highway patrol/state bureau of investigation) acting in an official capacity.",
23785
- canonicalCode: "02-03-03-02"
24239
+ definition: "Employed=No due to being unable to work. HMIS-authoritative reason captured when Employed=No."
23786
24240
  },
23787
24241
  {
23788
- code: "048-007-003-003-000-000-000",
23789
- key: "federal_law_enforcement",
23790
- title: "Federal law enforcement",
24242
+ code: "179-003-003-000-000-000-000",
24243
+ key: "student",
24244
+ title: "Student",
23791
24245
  selectable: true,
23792
- parentCode: "048-007-003-000-000-000-000",
24246
+ parentCode: "179-003-000-000-000-000-000",
23793
24247
  childCodes: [],
23794
- definition: "Federal law enforcement agency (e.g., FBI, DHS/ICE).",
23795
- 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)."
23796
24249
  },
23797
24250
  {
23798
- code: "048-007-003-004-000-000-000",
23799
- key: "tribal_law_enforcement",
23800
- title: "Tribal law enforcement",
24251
+ code: "179-003-004-000-000-000-000",
24252
+ key: "caregiver",
24253
+ title: "Caregiver (child, family, dependent)",
23801
24254
  selectable: true,
23802
- parentCode: "048-007-003-000-000-000-000",
24255
+ parentCode: "179-003-000-000-000-000-000",
23803
24256
  childCodes: [],
23804
- definition: "Tribal police.",
23805
- 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)."
23806
24258
  },
23807
24259
  {
23808
- code: "048-007-003-005-000-000-000",
23809
- key: "other_law_enforcement",
23810
- title: "Other/ unknown LE",
24260
+ code: "179-003-005-000-000-000-000",
24261
+ key: "disabled",
24262
+ title: "Disabled / unable to work",
23811
24263
  selectable: true,
23812
- parentCode: "048-007-003-000-000-000-000",
24264
+ parentCode: "179-003-000-000-000-000-000",
23813
24265
  childCodes: [],
23814
- definition: "Other law enforcement entity, or law enforcement type is unknown.",
23815
- 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."
23816
24267
  },
23817
24268
  {
23818
- code: "048-007-004-000-000-000-000",
23819
- key: "courts_prosecution",
23820
- title: "Courts or prosecution",
24269
+ code: "179-003-006-000-000-000-000",
24270
+ key: "retired",
24271
+ title: "Retired",
23821
24272
  selectable: true,
23822
- parentCode: "048-007-000-000-000-000-000",
24273
+ parentCode: "179-003-000-000-000-000-000",
23823
24274
  childCodes: [],
23824
- definition: "Court or prosecution entity (not law enforcement).",
23825
- canonicalCode: "02-03-04-00"
24275
+ definition: "Not working because retired and not actively seeking work. HTI extended detail (non-HMIS)."
23826
24276
  },
23827
24277
  {
23828
- code: "048-007-005-000-000-000-000",
23829
- key: "correction_probation",
23830
- title: "Correction / probation",
24278
+ code: "179-003-007-000-000-000-000",
24279
+ key: "discouraged_worker",
24280
+ title: "Discouraged worker",
23831
24281
  selectable: true,
23832
- parentCode: "048-007-000-000-000-000-000",
24282
+ parentCode: "179-003-000-000-000-000-000",
23833
24283
  childCodes: [],
23834
- definition: "Corrections, probation, parole, or community supervision entity (not law enforcement).",
23835
- 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)."
23836
24285
  },
23837
24286
  {
23838
- code: "048-007-006-000-000-000-000",
23839
- key: "adult_protective_services",
23840
- title: "Adult Protective Services (APS)",
24287
+ code: "179-003-008-000-000-000-000",
24288
+ key: "other_reason",
24289
+ title: "Other reason",
23841
24290
  selectable: true,
23842
- parentCode: "048-007-000-000-000-000-000",
24291
+ parentCode: "179-003-000-000-000-000-000",
23843
24292
  childCodes: [],
23844
- 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.",
23845
- canonicalCode: "02-03-06-00"
23846
- },
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: [
23847
24309
  {
23848
- code: "048-008-000-000-000-000-000",
23849
- key: "health_behavioral_health",
23850
- title: "Health / behavioral health",
24310
+ code: "191-000-000-000-000-000-000",
24311
+ key: "missingness_root",
24312
+ title: "Unknown, Redacted, or Missing",
23851
24313
  selectable: false,
23852
24314
  parentCode: null,
23853
24315
  childCodes: [
23854
- "048-008-001-000-000-000-000",
23855
- "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"
23856
24319
  ],
23857
- definition: "Hospitals and healthcare providers (including mental health inpatient facilities).",
23858
- canonicalCode: "02-04-00-00"
24320
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
23859
24321
  },
23860
24322
  {
23861
- code: "048-008-001-000-000-000-000",
23862
- key: "inpatient_psychiatric_facility",
23863
- title: "Inpatient psychiatric facility",
24323
+ code: "191-000-000-000-000-000-001",
24324
+ key: "unknown",
24325
+ title: "Unknown",
23864
24326
  selectable: true,
23865
- parentCode: "048-008-000-000-000-000-000",
24327
+ parentCode: "191-000-000-000-000-000-000",
23866
24328
  childCodes: [],
23867
- definition: "Inpatient psychiatric hospital or psychiatric facility.",
23868
- 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
23869
24335
  },
23870
24336
  {
23871
- code: "048-008-002-000-000-000-000",
23872
- key: "healthcare_provider",
23873
- title: "Healthcare provider (non-inpatient psychiatric)",
24337
+ code: "191-000-000-000-000-000-002",
24338
+ key: "anonymous",
24339
+ title: "Anonymous",
23874
24340
  selectable: true,
23875
- parentCode: "048-008-000-000-000-000-000",
24341
+ parentCode: "191-000-000-000-000-000-000",
23876
24342
  childCodes: [],
23877
- definition: "Any non-inpatient healthcare provider (clinic, hospital, outpatient provider, behavioral health clinic, SANE program, substance abuse clinic, etc.).",
23878
- canonicalCode: "02-04-02-00"
23879
- },
23880
- {
23881
- code: "048-009-000-000-000-000-000",
23882
- key: "education",
23883
- title: "Education",
23884
- selectable: false,
23885
- parentCode: null,
23886
- childCodes: [
23887
- "048-009-001-000-000-000-000"
23888
- ],
23889
- definition: "Parent category for education-related institutions.",
23890
- 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
23891
24349
  },
23892
24350
  {
23893
- code: "048-009-001-000-000-000-000",
23894
- key: "school_academic_institution",
23895
- title: "School / academic institution",
24351
+ code: "191-000-000-000-000-000-003",
24352
+ key: "data_not_collected",
24353
+ title: "Data not collected",
23896
24354
  selectable: true,
23897
- parentCode: "048-009-000-000-000-000-000",
24355
+ parentCode: "191-000-000-000-000-000-000",
23898
24356
  childCodes: [],
23899
- definition: "School system or educational institution.",
23900
- 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
23901
24363
  },
23902
24364
  {
23903
- code: "048-010-000-000-000-000-000",
23904
- key: "victim_community_service_providers",
23905
- title: "Victim + Community service providers",
23906
- selectable: false,
24365
+ code: "191-001-000-000-000-000-000",
24366
+ key: "current_residence",
24367
+ title: "Current residence",
24368
+ selectable: true,
23907
24369
  parentCode: null,
23908
- childCodes: [
23909
- "048-010-001-000-000-000-000",
23910
- "048-010-002-000-000-000-000",
23911
- "048-010-003-000-000-000-000",
23912
- "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"
23913
24375
  ],
23914
- definition: "Parent category for victim service providers and community-based service providers.",
23915
- canonicalCode: "02-06-00-00"
24376
+ anchorDefault: "person",
24377
+ shareUnit: "addresses",
24378
+ safetyDefault: "ask"
23916
24379
  },
23917
24380
  {
23918
- code: "048-010-001-000-000-000-000",
23919
- key: "child_advocacy_center",
23920
- title: "Child Advocacy Center (CAC)",
24381
+ code: "191-002-000-000-000-000-000",
24382
+ key: "service_delivery_location",
24383
+ title: "Service delivery location",
23921
24384
  selectable: true,
23922
- parentCode: "048-010-000-000-000-000-000",
24385
+ parentCode: null,
23923
24386
  childCodes: [],
23924
- definition: "A child-centered multidisciplinary center coordinating investigation and services (forensic interview, coordination, referrals, sometimes medical or therapy) for child victims.",
23925
- 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"
23926
24397
  },
23927
24398
  {
23928
- code: "048-010-002-000-000-000-000",
23929
- key: "victim_service_provider",
23930
- 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",
23931
24402
  selectable: true,
23932
- parentCode: "048-010-000-000-000-000-000",
24403
+ parentCode: null,
23933
24404
  childCodes: [],
23934
- 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.",
23935
- 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"
23936
24413
  },
23937
24414
  {
23938
- code: "048-010-003-000-000-000-000",
23939
- key: "community_based_service_provider",
23940
- 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",
23941
24418
  selectable: true,
23942
- parentCode: "048-010-000-000-000-000-000",
24419
+ parentCode: null,
23943
24420
  childCodes: [],
23944
- 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.)",
23945
- 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"
23946
24431
  },
23947
24432
  {
23948
- code: "048-010-004-000-000-000-000",
23949
- key: "legal_services_provider",
23950
- title: "Legal services provider",
24433
+ code: "191-005-000-000-000-000-000",
24434
+ key: "prior_residence",
24435
+ title: "Prior residence",
23951
24436
  selectable: true,
23952
- parentCode: "048-010-000-000-000-000-000",
23953
- childCodes: [],
23954
- 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.",
23955
- canonicalCode: "02-06-04-00"
23956
- },
23957
- {
23958
- code: "048-011-000-000-000-000-000",
23959
- key: "coordination_governance",
23960
- title: "Coordination & Governance",
23961
- selectable: false,
23962
24437
  parentCode: null,
23963
- childCodes: [
23964
- "048-011-001-000-000-000-000",
23965
- "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"
23966
24443
  ],
23967
- definition: "Parent category for coordination and governance bodies (e.g., MDTs, coalitions).",
23968
- canonicalCode: "02-07-00-00"
24444
+ anchorDefault: "person",
24445
+ shareUnit: "addresses",
24446
+ safetyDefault: "ask"
23969
24447
  },
23970
24448
  {
23971
- code: "048-011-001-000-000-000-000",
23972
- key: "mdt",
23973
- title: "Multidisciplinary team (MDT)",
24449
+ code: "191-006-000-000-000-000-000",
24450
+ key: "jurisdiction_routing_location",
24451
+ title: "Jurisdiction / routing location",
23974
24452
  selectable: true,
23975
- parentCode: "048-011-000-000-000-000-000",
24453
+ parentCode: null,
23976
24454
  childCodes: [],
23977
- 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.)",
23978
- 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"
23979
24463
  },
23980
24464
  {
23981
- code: "048-011-002-000-000-000-000",
23982
- key: "coalition",
23983
- title: "Coalition (state/regional coalition)",
24465
+ code: "191-007-000-000-000-000-000",
24466
+ key: "ad_location_derived",
24467
+ title: "Ad location (derived)",
23984
24468
  selectable: true,
23985
- parentCode: "048-011-000-000-000-000-000",
24469
+ parentCode: null,
23986
24470
  childCodes: [],
23987
- 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.",
23988
- 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
23989
24479
  },
23990
24480
  {
23991
- code: "048-012-000-000-000-000-000",
23992
- key: "internal",
23993
- title: "Internal",
23994
- selectable: false,
24481
+ code: "191-008-000-000-000-000-000",
24482
+ key: "travel_stop_visit",
24483
+ title: "Travel stop / visit",
24484
+ selectable: true,
23995
24485
  parentCode: null,
23996
- childCodes: [
23997
- "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"
23998
24492
  ],
23999
- definition: "Parent category for internal referrals within the same umbrella agency.",
24000
- canonicalCode: "02-08-00-00"
24493
+ anchorDefault: "person",
24494
+ shareUnit: "addresses",
24495
+ safetyDefault: "ask"
24001
24496
  },
24002
24497
  {
24003
- code: "048-012-001-000-000-000-000",
24004
- key: "own_agency_internal",
24005
- title: "Own agency / internal referral",
24498
+ code: "191-009-000-000-000-000-000",
24499
+ key: "work_school_business",
24500
+ title: "Work / school / business",
24006
24501
  selectable: true,
24007
- parentCode: "048-012-000-000-000-000-000",
24502
+ parentCode: null,
24008
24503
  childCodes: [],
24009
- definition: "Client was referred from another program or unit within the same umbrella agency.",
24010
- 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"
24011
24512
  },
24012
24513
  {
24013
- code: "048-013-000-000-000-000-000",
24014
- key: "other_entity",
24015
- title: "Other",
24016
- 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,
24017
24518
  parentCode: null,
24018
- childCodes: [
24019
- "048-013-001-000-000-000-000",
24020
- "048-013-002-000-000-000-000",
24021
- "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"
24022
24524
  ],
24023
- definition: "Parent category for other organizations not captured by the primary sectors.",
24024
- canonicalCode: "02-09-00-00"
24525
+ anchorDefault: "person",
24526
+ shareUnit: "commercial_activity",
24527
+ safetyDefault: null
24025
24528
  },
24026
24529
  {
24027
- code: "048-013-001-000-000-000-000",
24028
- key: "employer",
24029
- title: "Employer",
24530
+ code: "191-011-000-000-000-000-000",
24531
+ key: "program_project_location",
24532
+ title: "Program / project location (reporting)",
24030
24533
  selectable: true,
24031
- parentCode: "048-013-000-000-000-000-000",
24534
+ parentCode: null,
24032
24535
  childCodes: [],
24033
- definition: "Employer, HR, or employee assistance program initiated the referral.",
24034
- 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"
24035
24544
  },
24036
24545
  {
24037
- code: "048-013-002-000-000-000-000",
24038
- key: "benefits_public_assistance_office",
24039
- title: "Benefits/public assistance office",
24546
+ code: "191-012-000-000-000-000-000",
24547
+ key: "other",
24548
+ title: "Other",
24040
24549
  selectable: true,
24041
- parentCode: "048-013-000-000-000-000-000",
24550
+ parentCode: null,
24042
24551
  childCodes: [],
24043
- definition: "Government office administering public benefits or eligibility and enrollment (e.g., SNAP, TANF, Medicaid, SSA).",
24044
- 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"
24045
24562
  },
24046
24563
  {
24047
- code: "048-013-003-000-000-000-000",
24048
- key: "other_organization",
24049
- title: "Other Organization",
24564
+ code: "191-013-000-000-000-000-000",
24565
+ key: "incident",
24566
+ title: "Incident",
24050
24567
  selectable: true,
24051
- parentCode: "048-013-000-000-000-000-000",
24568
+ parentCode: null,
24052
24569
  childCodes: [],
24053
- definition: "Other organization not otherwise captured by the listed categories.",
24054
- 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"
24055
24579
  }
24056
24580
  ]
24057
24581
  };
@@ -57294,6 +57818,8 @@ var CVC_197_VALUES = selectableCodes(
57294
57818
  ACCOMMODATION_OPTIONS,
57295
57819
  ACTIVE_CVC_136_CORE_INDICATOR_VALUES,
57296
57820
  ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES,
57821
+ AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS,
57822
+ AGENCY_TYPE_KEYS,
57297
57823
  AGE_BIN_REPORTING,
57298
57824
  AGE_BIN_REPORTING_IS_MINOR,
57299
57825
  AGE_BIN_REPORTING_LABELS,
@@ -57307,6 +57833,8 @@ var CVC_197_VALUES = selectableCodes(
57307
57833
  AdminRoleKeys,
57308
57834
  AdministeringJurisdictionKeys,
57309
57835
  AgeBinReportingKeys,
57836
+ AgencyOrgTypeFieldsSchema,
57837
+ AgencyTypeKeySchema,
57310
57838
  AnnouncementAudienceScopeKeys,
57311
57839
  AnnouncementResponseTypeKeys,
57312
57840
  AssertionDomainKeys,
@@ -57527,6 +58055,7 @@ var CVC_197_VALUES = selectableCodes(
57527
58055
  GoalPriorityKeys,
57528
58056
  GoalStatusKeys,
57529
58057
  GoalWithdrawalReasonKeys,
58058
+ HEALTHCARE_ORG_TYPE_KEYS,
57530
58059
  HairColorKeys,
57531
58060
  HasTattoosKeys,
57532
58061
  HighestEducationLevelCompletedKeys,
@@ -57608,6 +58137,9 @@ var CVC_197_VALUES = selectableCodes(
57608
58137
  InvestigativeRequestTypeKeys,
57609
58138
  JuvenileJusticeEpisodeTypeKeys,
57610
58139
  JuvenileJusticeInvolvementStatusKeys,
58140
+ LAW_ENFORCEMENT_ORG_TYPE_KEYS,
58141
+ LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY,
58142
+ LEGAL_ORG_TYPE_KEYS,
57611
58143
  LanguagesKeys,
57612
58144
  LeReportStatusKeys,
57613
58145
  LegalActionTypeKeys,
@@ -57623,11 +58155,20 @@ var CVC_197_VALUES = selectableCodes(
57623
58155
  MilitaryBranchKeys,
57624
58156
  MilitaryStatusKeys,
57625
58157
  MinorAdultStatusKeys,
58158
+ NO_SECTOR_ORG_TYPE_KEYS,
57626
58159
  NameTypeKeys,
57627
58160
  NeedsAssessmentChangeTypeKeys,
57628
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,
57629
58168
  OffenderStatusFamilyKeys,
57630
58169
  OffenderStatusKeys,
58170
+ OrgTypeFieldsSchema,
58171
+ OrgTypeSelectableKeySchema,
57631
58172
  OrientationIdentityKeys,
57632
58173
  PARTICIPATION_ROLE_CATEGORIES,
57633
58174
  PERMISSION_STATE,
@@ -57669,6 +58210,7 @@ var CVC_197_VALUES = selectableCodes(
57669
58210
  RELATIONSHIP_DYNAMICS,
57670
58211
  RELATIONSHIP_DYNAMICS_LABELS,
57671
58212
  RELATIONSHIP_DYNAMICS_VALUES,
58213
+ REPORT_AUTHORITY_ORG_TYPE_KEYS,
57672
58214
  ROLE_LEVEL,
57673
58215
  ROLE_LEVEL_LABELS,
57674
58216
  ROLE_LEVEL_VALUES,
@@ -57711,6 +58253,7 @@ var CVC_197_VALUES = selectableCodes(
57711
58253
  SessionNoteVisibilityKeys,
57712
58254
  SessionStateKeys,
57713
58255
  SessionTemplateKeys,
58256
+ SetOrgTypeInputSchema,
57714
58257
  SeverityFollowUpKeys,
57715
58258
  SexProviderSubroleKeys,
57716
58259
  SharePurposeKeys,
@@ -57745,6 +58288,8 @@ var CVC_197_VALUES = selectableCodes(
57745
58288
  UserRoleKeys,
57746
58289
  VALID_INTERACTION_TYPES,
57747
58290
  VALID_RECORD_STATES,
58291
+ VICTIM_SERVING_ORG_TYPE_KEYS,
58292
+ VSP_TWO_STEP_ISSUE,
57748
58293
  VerificationMethodKeys,
57749
58294
  VerificationStatusKeys,
57750
58295
  VictimAbuseTypesKeys,
@@ -57755,14 +58300,18 @@ var CVC_197_VALUES = selectableCodes(
57755
58300
  actionStepCompletionStatusSot,
57756
58301
  actionStepTypeSot,
57757
58302
  activityTypeSot,
58303
+ addAgencyOrgTypeFields,
58304
+ addOrgTypeFields,
57758
58305
  addTeamDirectoryFields,
57759
58306
  addressSchema,
57760
58307
  adminRolesSot,
57761
58308
  administeringJurisdictionSot,
57762
58309
  ageBinReportingSot,
58310
+ agencyOrgTypeSchemaDefinition,
57763
58311
  announcementAudienceScopeSot,
57764
58312
  announcementResponseTypeSot,
57765
58313
  applyEntryOverrides,
58314
+ applyRunValidatorsIfUnset,
57766
58315
  assertionDomainSot,
57767
58316
  assertionStatusSot,
57768
58317
  basisQuickPicksSot,
@@ -57879,14 +58428,21 @@ var CVC_197_VALUES = selectableCodes(
57879
58428
  incomeBenefitsSourcesSot,
57880
58429
  inferenceTypeSot,
57881
58430
  investigativeRequestTypeSot,
58431
+ isAgencyTypeKey,
57882
58432
  isDeprecatedCoreIndicator,
57883
58433
  isDeprecatedIncidentParticipationRole,
58434
+ isHealthcareOrgType,
57884
58435
  isIC56Missingness,
57885
58436
  isIC56ValidChannel,
58437
+ isLawEnforcementOrgType,
58438
+ isLegalOrgType,
57886
58439
  isLgbtqOrientation,
58440
+ isOrgTypeKey,
57887
58441
  isProtectedRelationship,
58442
+ isReportAuthorityOrgType,
57888
58443
  isStructuredNameType,
57889
58444
  isTransgenderGenderIdentity,
58445
+ isVictimServingOrgType,
57890
58446
  juvenileJusticeEpisodeTypeSot,
57891
58447
  juvenileJusticeInvolvementStatusSot,
57892
58448
  languagesSot,
@@ -57903,11 +58459,23 @@ var CVC_197_VALUES = selectableCodes(
57903
58459
  militaryBranchSot,
57904
58460
  militaryStatusSot,
57905
58461
  minorAdultStatusSot,
58462
+ mirrorOrgTypeFields,
57906
58463
  nameTypeSot,
57907
58464
  needsAssessmentChangeTypeSot,
57908
58465
  needsResidentialAgainSot,
57909
58466
  offenderStatusFamilySot,
57910
58467
  offenderStatusSot,
58468
+ orgTypeAncestry,
58469
+ orgTypeCanonicalCode,
58470
+ orgTypeDefaultSessionRole,
58471
+ orgTypeDefaultSessionRoleOrNull,
58472
+ orgTypeDefaultVsp,
58473
+ orgTypeEnumConstant,
58474
+ orgTypeFieldsDiffer,
58475
+ orgTypeFieldsShape,
58476
+ orgTypeLabel,
58477
+ orgTypeSchemaDefinition,
58478
+ orgTypeSector,
57911
58479
  orientationIdentitySot,
57912
58480
  personNameSchema,
57913
58481
  personRelationshipsSot,
@@ -57944,6 +58512,12 @@ var CVC_197_VALUES = selectableCodes(
57944
58512
  relationshipDynamicsSot,
57945
58513
  relationshipStatusCurrentSot,
57946
58514
  relationshipTiesSot,
58515
+ resolveAgencyTypeKey,
58516
+ resolveEffectiveOrgType,
58517
+ resolveEffectiveOrgTypeFields,
58518
+ resolveOrgTypeKey,
58519
+ resolveOrgTypeKeyFromLegacyNumeric,
58520
+ resolveReferralEntityKeyFromLegacyNumeric,
57947
58521
  resolveRegistryWithInheritance,
57948
58522
  returnedToAbuserStatusSot,
57949
58523
  riskCategorySot,
@@ -58010,6 +58584,9 @@ var CVC_197_VALUES = selectableCodes(
58010
58584
  victimStatusFamilySot,
58011
58585
  visaTypeSot,
58012
58586
  visibilityRuleSchema,
58013
- whyNotsSot
58587
+ vspTwoStepHolds,
58588
+ vspTwoStepHoldsOnUpdate,
58589
+ whyNotsSot,
58590
+ withOrgTypeFields
58014
58591
  });
58015
58592
  //# sourceMappingURL=index.cjs.map