@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.js CHANGED
@@ -6020,6 +6020,894 @@ var FUNCTION_STATUS_LABELS = {
6020
6020
  [FUNCTION_STATUS.FUTURE]: "Future (Not v1)"
6021
6021
  };
6022
6022
 
6023
+ // src/cvcs/referralEntityCategory.v1.2.0.json
6024
+ var referralEntityCategory_v1_2_0_default = {
6025
+ domain: "referral_entity_category",
6026
+ name: "Core Referral Entity Category",
6027
+ version: "1.2.0",
6028
+ _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.",
6029
+ _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)",
6030
+ _supersedes: {
6031
+ version: "1.0.0",
6032
+ keyMap: {
6033
+ missingness_root: "missingness_root",
6034
+ unknown: "unknown",
6035
+ anonymous: "anonymous",
6036
+ data_not_collected: "data_not_collected",
6037
+ self_referred: "self_referred",
6038
+ family_guardian_friend: "family_guardian_friend",
6039
+ peer: "peer",
6040
+ other_individual: "other_individual",
6041
+ housing_shelter_continuum: "housing_shelter_continuum",
6042
+ outreach_project: "outreach_project",
6043
+ temporary_shelter: "temporary_shelter",
6044
+ residential_project: "residential_project",
6045
+ hotlines: "hotlines",
6046
+ national_hotline: "national_hotline",
6047
+ local_other_hotline: "local_other_hotline",
6048
+ justice_protective_systems: "justice_protective_systems",
6049
+ child_welfare_cps: "child_welfare_cps",
6050
+ juvenile_justice: "juvenile_justice",
6051
+ law_enforcement: "law_enforcement",
6052
+ local_law_enforcement: "local_law_enforcement",
6053
+ state_law_enforcement: "state_law_enforcement",
6054
+ federal_law_enforcement: "federal_law_enforcement",
6055
+ tribal_law_enforcement: "tribal_law_enforcement",
6056
+ other_law_enforcement: "other_law_enforcement",
6057
+ courts_prosecution: "courts_prosecution",
6058
+ correction_probation: "correction_probation",
6059
+ health_behavioral_health: "health_behavioral_health",
6060
+ inpatient_psychiatric_facility: "inpatient_psychiatric_facility",
6061
+ healthcare_provider: "healthcare_provider",
6062
+ education: "education",
6063
+ victim_community_service_providers: "victim_community_service_providers",
6064
+ child_advocacy_center: "child_advocacy_center",
6065
+ victim_service_provider: "victim_service_provider",
6066
+ community_based_service_provider: "community_based_service_provider",
6067
+ coordination_governance: "coordination_governance",
6068
+ mdt: "mdt",
6069
+ coalition: "coalition",
6070
+ internal: "internal",
6071
+ own_agency_internal: "own_agency_internal",
6072
+ other_entity: "other_entity",
6073
+ employer: "employer",
6074
+ benefits_public_assistance_office: "benefits_public_assistance_office",
6075
+ other_organization: "other_organization"
6076
+ },
6077
+ retiredCodes: [],
6078
+ notes: {
6079
+ 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.",
6080
+ law_enforcement: "v1.0.0 `law_enforcement` was a non-selectable heading. Canon makes Law enforcement / Police a selectable leaf with five optional children."
6081
+ }
6082
+ },
6083
+ _notCarried: [],
6084
+ levels: {
6085
+ "0": "Unknown or Missing",
6086
+ "1": "Category",
6087
+ "2": "Entity",
6088
+ "3": "Variant"
6089
+ },
6090
+ entries: [
6091
+ {
6092
+ code: "048-000-000-000-000-000-000",
6093
+ key: "missingness_root",
6094
+ title: "Unknown, Redacted, or Missing",
6095
+ selectable: false,
6096
+ parentCode: null,
6097
+ childCodes: [
6098
+ "048-000-000-000-000-000-001",
6099
+ "048-000-000-000-000-000-002",
6100
+ "048-000-000-000-000-000-003"
6101
+ ],
6102
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
6103
+ },
6104
+ {
6105
+ code: "048-000-000-000-000-000-001",
6106
+ key: "unknown",
6107
+ title: "Unknown",
6108
+ selectable: true,
6109
+ parentCode: "048-000-000-000-000-000-000",
6110
+ childCodes: [],
6111
+ definition: "Referral entity category unknown.",
6112
+ canonicalCode: "00-00-01-00",
6113
+ enumConstant: "EMPTY_RESPONSE_UNKNOWN"
6114
+ },
6115
+ {
6116
+ code: "048-000-000-000-000-000-002",
6117
+ key: "anonymous",
6118
+ title: "Anonymous",
6119
+ selectable: true,
6120
+ parentCode: "048-000-000-000-000-000-000",
6121
+ childCodes: [],
6122
+ definition: "Referral entity category withheld or redacted.",
6123
+ canonicalCode: "00-00-02-00",
6124
+ enumConstant: "EMPTY_RESPONSE_ANONYMOUS"
6125
+ },
6126
+ {
6127
+ code: "048-000-000-000-000-000-003",
6128
+ key: "data_not_collected",
6129
+ title: "Data not collected",
6130
+ selectable: true,
6131
+ parentCode: "048-000-000-000-000-000-000",
6132
+ childCodes: [],
6133
+ definition: "Referral entity category not collected or no signal captured.",
6134
+ canonicalCode: "00-00-03-00",
6135
+ enumConstant: "EMPTY_RESPONSE_NOTCOLLECTED"
6136
+ },
6137
+ {
6138
+ code: "048-001-000-000-000-000-000",
6139
+ key: "self_referred",
6140
+ title: "Self-referred",
6141
+ selectable: true,
6142
+ parentCode: null,
6143
+ childCodes: [],
6144
+ definition: "Client initiated contact or presented for services without a third-party referrer.",
6145
+ canonicalCode: "01-00-01-00",
6146
+ enumConstant: "INDIVIDUAL_PERSON_SELFREFERRED"
6147
+ },
6148
+ {
6149
+ code: "048-002-000-000-000-000-000",
6150
+ key: "family_guardian_friend",
6151
+ title: "Family/guardian/friend/foster parent",
6152
+ selectable: true,
6153
+ parentCode: null,
6154
+ childCodes: [],
6155
+ definition: "A caregiver, family member, or close personal support person initiated the referral.",
6156
+ canonicalCode: "01-00-02-00",
6157
+ enumConstant: "INDIVIDUAL_PERSON_FAMILYGUARDIANFRIEND"
6158
+ },
6159
+ {
6160
+ code: "048-003-000-000-000-000-000",
6161
+ key: "peer",
6162
+ title: "Peer / another client",
6163
+ selectable: true,
6164
+ parentCode: null,
6165
+ childCodes: [],
6166
+ definition: "Another current or former client initiated or encouraged the referral.",
6167
+ canonicalCode: "01-00-03-00",
6168
+ enumConstant: "INDIVIDUAL_PERSON_PEER"
6169
+ },
6170
+ {
6171
+ code: "048-004-000-000-000-000-000",
6172
+ key: "other_individual",
6173
+ title: "Other individual",
6174
+ selectable: true,
6175
+ parentCode: null,
6176
+ childCodes: [],
6177
+ definition: "A non-family individual initiated the referral (e.g., neighbor, community member, clergy).",
6178
+ canonicalCode: "01-00-04-00",
6179
+ enumConstant: "INDIVIDUAL_PERSON_OTHER"
6180
+ },
6181
+ {
6182
+ code: "048-005-000-000-000-000-000",
6183
+ key: "housing_shelter_continuum",
6184
+ title: "Housing / Shelter continuum",
6185
+ selectable: false,
6186
+ parentCode: null,
6187
+ childCodes: [
6188
+ "048-005-001-000-000-000-000",
6189
+ "048-005-002-000-000-000-000",
6190
+ "048-005-003-000-000-000-000"
6191
+ ],
6192
+ definition: "Primary function is outreach engagement, emergency shelter, or residential shelter/housing programs.",
6193
+ canonicalCode: "02-01-00-00",
6194
+ enumConstant: "ORGANIZATION_HOUSING"
6195
+ },
6196
+ {
6197
+ code: "048-005-001-000-000-000-000",
6198
+ key: "outreach_project",
6199
+ title: "Outreach Project",
6200
+ selectable: true,
6201
+ parentCode: "048-005-000-000-000-000-000",
6202
+ childCodes: [],
6203
+ definition: "Street/community outreach program that engaged the client prior to enrollment.",
6204
+ canonicalCode: "02-01-01-00",
6205
+ enumConstant: "ORGANIZATION_HOUSING_OUTREACHPROJECT"
6206
+ },
6207
+ {
6208
+ code: "048-005-002-000-000-000-000",
6209
+ key: "temporary_shelter",
6210
+ title: "Temporary Shelter",
6211
+ selectable: true,
6212
+ parentCode: "048-005-000-000-000-000-000",
6213
+ childCodes: [],
6214
+ definition: "Emergency/crisis shelter or short-term temporary housing program.",
6215
+ canonicalCode: "02-01-02-00",
6216
+ enumConstant: "ORGANIZATION_HOUSING_TEMPORARYSHELTER"
6217
+ },
6218
+ {
6219
+ code: "048-005-003-000-000-000-000",
6220
+ key: "residential_project",
6221
+ title: "Residential Project",
6222
+ selectable: true,
6223
+ parentCode: "048-005-000-000-000-000-000",
6224
+ childCodes: [],
6225
+ definition: "Longer-term residential or transitional living program.",
6226
+ canonicalCode: "02-01-03-00",
6227
+ enumConstant: "ORGANIZATION_HOUSING_RESIDENTIALPROJECT"
6228
+ },
6229
+ {
6230
+ code: "048-006-000-000-000-000-000",
6231
+ key: "hotlines",
6232
+ title: "Hotlines",
6233
+ selectable: false,
6234
+ parentCode: null,
6235
+ childCodes: [
6236
+ "048-006-003-000-000-000-000"
6237
+ ],
6238
+ definition: "Crisis lines or call centers that connect a person to services.",
6239
+ canonicalCode: "02-02-00-00",
6240
+ enumConstant: "ORGANIZATION_CALLCENTERS"
6241
+ },
6242
+ {
6243
+ code: "048-006-001-000-000-000-000",
6244
+ key: "national_hotline",
6245
+ title: "National hotline",
6246
+ selectable: true,
6247
+ parentCode: "048-006-003-000-000-000-000",
6248
+ childCodes: [],
6249
+ definition: "National-level hotline network.",
6250
+ canonicalCode: "02-02-01-01",
6251
+ enumConstant: "ORGANIZATION_CALLCENTERS_HOTLINE_NATIONAL"
6252
+ },
6253
+ {
6254
+ code: "048-006-002-000-000-000-000",
6255
+ key: "local_other_hotline",
6256
+ title: "Local/other hotline",
6257
+ selectable: true,
6258
+ parentCode: "048-006-003-000-000-000-000",
6259
+ childCodes: [],
6260
+ definition: "Local/regional hotline or non-national hotline.",
6261
+ canonicalCode: "02-02-01-02",
6262
+ enumConstant: "ORGANIZATION_CALLCENTERS_HOTLINE_LOCAL"
6263
+ },
6264
+ {
6265
+ code: "048-006-003-000-000-000-000",
6266
+ key: "hotline",
6267
+ title: "Hotline",
6268
+ selectable: true,
6269
+ parentCode: "048-006-000-000-000-000-000",
6270
+ childCodes: [
6271
+ "048-006-001-000-000-000-000",
6272
+ "048-006-002-000-000-000-000"
6273
+ ],
6274
+ definition: "Crisis hotline or call center that connected the client to services.",
6275
+ canonicalCode: "02-02-01-00",
6276
+ enumConstant: "ORGANIZATION_CALLCENTERS_HOTLINE"
6277
+ },
6278
+ {
6279
+ code: "048-007-000-000-000-000-000",
6280
+ key: "justice_protective_systems",
6281
+ title: "Justice & Protective Systems",
6282
+ selectable: false,
6283
+ parentCode: null,
6284
+ childCodes: [
6285
+ "048-007-001-000-000-000-000",
6286
+ "048-007-002-000-000-000-000",
6287
+ "048-007-003-000-000-000-000",
6288
+ "048-007-004-000-000-000-000",
6289
+ "048-007-005-000-000-000-000",
6290
+ "048-007-006-000-000-000-000"
6291
+ ],
6292
+ definition: null,
6293
+ canonicalCode: "02-03-00-00",
6294
+ enumConstant: "ORGANIZATION_JUSTICE"
6295
+ },
6296
+ {
6297
+ code: "048-007-001-000-000-000-000",
6298
+ key: "child_welfare_cps",
6299
+ title: "Child Welfare / CPS",
6300
+ selectable: true,
6301
+ parentCode: "048-007-000-000-000-000-000",
6302
+ childCodes: [],
6303
+ definition: "Government child protection agency responsible for investigating child abuse/neglect and ensuring child safety.",
6304
+ canonicalCode: "02-03-01-00",
6305
+ enumConstant: "ORGANIZATION_JUSTICE_CHILDWELFARE"
6306
+ },
6307
+ {
6308
+ code: "048-007-002-000-000-000-000",
6309
+ key: "juvenile_justice",
6310
+ title: "Juvenile Justice",
6311
+ selectable: true,
6312
+ parentCode: "048-007-000-000-000-000-000",
6313
+ childCodes: [],
6314
+ definition: "Juvenile probation/detention/court-related juvenile justice system initiated the referral.",
6315
+ canonicalCode: "02-03-02-00",
6316
+ enumConstant: "ORGANIZATION_JUSTICE_JUVENILE"
6317
+ },
6318
+ {
6319
+ code: "048-007-003-000-000-000-000",
6320
+ key: "law_enforcement",
6321
+ title: "Law enforcement / Police",
6322
+ selectable: true,
6323
+ parentCode: "048-007-000-000-000-000-000",
6324
+ childCodes: [
6325
+ "048-007-003-001-000-000-000",
6326
+ "048-007-003-002-000-000-000",
6327
+ "048-007-003-003-000-000-000",
6328
+ "048-007-003-004-000-000-000",
6329
+ "048-007-003-005-000-000-000"
6330
+ ],
6331
+ definition: "Law enforcement agency initiated the referral (local/state/federal).",
6332
+ canonicalCode: "02-03-03-00",
6333
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT"
6334
+ },
6335
+ {
6336
+ code: "048-007-003-001-000-000-000",
6337
+ key: "local_law_enforcement",
6338
+ title: "Local law enforcement",
6339
+ selectable: true,
6340
+ parentCode: "048-007-003-000-000-000-000",
6341
+ childCodes: [],
6342
+ definition: "City/county police or sheriff.",
6343
+ canonicalCode: "02-03-03-01",
6344
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_LOCAL"
6345
+ },
6346
+ {
6347
+ code: "048-007-003-002-000-000-000",
6348
+ key: "state_law_enforcement",
6349
+ title: "State law enforcement",
6350
+ selectable: true,
6351
+ parentCode: "048-007-003-000-000-000-000",
6352
+ childCodes: [],
6353
+ definition: "State-level law enforcement agency (e.g., state police/highway patrol/state bureau of investigation) acting in an official capacity.",
6354
+ canonicalCode: "02-03-03-02",
6355
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_STATE"
6356
+ },
6357
+ {
6358
+ code: "048-007-003-003-000-000-000",
6359
+ key: "federal_law_enforcement",
6360
+ title: "Federal law enforcement",
6361
+ selectable: true,
6362
+ parentCode: "048-007-003-000-000-000-000",
6363
+ childCodes: [],
6364
+ definition: "Federal law enforcement agency (e.g., FBI, DHS/ICE).",
6365
+ canonicalCode: "02-03-03-03",
6366
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_FEDERAL"
6367
+ },
6368
+ {
6369
+ code: "048-007-003-004-000-000-000",
6370
+ key: "tribal_law_enforcement",
6371
+ title: "Tribal law enforcement",
6372
+ selectable: true,
6373
+ parentCode: "048-007-003-000-000-000-000",
6374
+ childCodes: [],
6375
+ definition: "Tribal police.",
6376
+ canonicalCode: "02-03-03-04",
6377
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_TRIBAL"
6378
+ },
6379
+ {
6380
+ code: "048-007-003-005-000-000-000",
6381
+ key: "other_law_enforcement",
6382
+ title: "Other/ unknown LE",
6383
+ selectable: true,
6384
+ parentCode: "048-007-003-000-000-000-000",
6385
+ childCodes: [],
6386
+ definition: "Other law enforcement entity, or law enforcement type is unknown.",
6387
+ canonicalCode: "02-03-03-05",
6388
+ enumConstant: "ORGANIZATION_JUSTICE_LAWENFORCEMENT_OTHER"
6389
+ },
6390
+ {
6391
+ code: "048-007-004-000-000-000-000",
6392
+ key: "courts_prosecution",
6393
+ title: "Courts or prosecution",
6394
+ selectable: true,
6395
+ parentCode: "048-007-000-000-000-000-000",
6396
+ childCodes: [],
6397
+ definition: "Court or prosecution entity (not law enforcement).",
6398
+ canonicalCode: "02-03-04-00",
6399
+ enumConstant: "ORGANIZATION_JUSTICE_COURTS"
6400
+ },
6401
+ {
6402
+ code: "048-007-005-000-000-000-000",
6403
+ key: "correction_probation",
6404
+ title: "Correction / probation",
6405
+ selectable: true,
6406
+ parentCode: "048-007-000-000-000-000-000",
6407
+ childCodes: [],
6408
+ definition: "Corrections, probation, parole, or community supervision entity (not law enforcement).",
6409
+ canonicalCode: "02-03-05-00",
6410
+ enumConstant: "ORGANIZATION_JUSTICE_CORRECTIONS"
6411
+ },
6412
+ {
6413
+ code: "048-007-006-000-000-000-000",
6414
+ key: "adult_protective_services",
6415
+ title: "Adult Protective Services (APS)",
6416
+ selectable: true,
6417
+ parentCode: "048-007-000-000-000-000-000",
6418
+ childCodes: [],
6419
+ 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.",
6420
+ canonicalCode: "02-03-06-00",
6421
+ enumConstant: "ORGANIZATION_JUSTICE_ADULTPROTECTIVE"
6422
+ },
6423
+ {
6424
+ code: "048-008-000-000-000-000-000",
6425
+ key: "health_behavioral_health",
6426
+ title: "Health / behavioral health",
6427
+ selectable: false,
6428
+ parentCode: null,
6429
+ childCodes: [
6430
+ "048-008-001-000-000-000-000",
6431
+ "048-008-002-000-000-000-000"
6432
+ ],
6433
+ definition: "Hospitals and healthcare providers (including mental health inpatient facilities).",
6434
+ canonicalCode: "02-04-00-00",
6435
+ enumConstant: "ORGANIZATION_HEALTH"
6436
+ },
6437
+ {
6438
+ code: "048-008-001-000-000-000-000",
6439
+ key: "inpatient_psychiatric_facility",
6440
+ title: "Inpatient psychiatric facility",
6441
+ selectable: true,
6442
+ parentCode: "048-008-000-000-000-000-000",
6443
+ childCodes: [],
6444
+ definition: "Inpatient psychiatric hospital or psychiatric facility.",
6445
+ canonicalCode: "02-04-01-00",
6446
+ enumConstant: "ORGANIZATION_HEALTH_PSYCHIATRIC"
6447
+ },
6448
+ {
6449
+ code: "048-008-002-000-000-000-000",
6450
+ key: "healthcare_provider",
6451
+ title: "Healthcare provider (non-inpatient psychiatric)",
6452
+ selectable: true,
6453
+ parentCode: "048-008-000-000-000-000-000",
6454
+ childCodes: [],
6455
+ definition: "Any non-inpatient healthcare provider (clinic, hospital, outpatient provider, behavioral health clinic, SANE program, substance abuse clinic, etc.).",
6456
+ canonicalCode: "02-04-02-00",
6457
+ enumConstant: "ORGANIZATION_HEALTH_HEALTHCARE"
6458
+ },
6459
+ {
6460
+ code: "048-009-000-000-000-000-000",
6461
+ key: "education",
6462
+ title: "Education",
6463
+ selectable: false,
6464
+ parentCode: null,
6465
+ childCodes: [
6466
+ "048-009-001-000-000-000-000"
6467
+ ],
6468
+ definition: "Parent category for education-related institutions.",
6469
+ canonicalCode: "02-05-00-00",
6470
+ enumConstant: "ORGANIZATION_EDUCATION"
6471
+ },
6472
+ {
6473
+ code: "048-009-001-000-000-000-000",
6474
+ key: "school_academic_institution",
6475
+ title: "School / academic institution",
6476
+ selectable: true,
6477
+ parentCode: "048-009-000-000-000-000-000",
6478
+ childCodes: [],
6479
+ definition: "School system or educational institution.",
6480
+ canonicalCode: "02-05-01-00",
6481
+ enumConstant: "ORGANIZATION_EDUCATION_SCHOOL"
6482
+ },
6483
+ {
6484
+ code: "048-010-000-000-000-000-000",
6485
+ key: "victim_community_service_providers",
6486
+ title: "Victim + Community service providers",
6487
+ selectable: false,
6488
+ parentCode: null,
6489
+ childCodes: [
6490
+ "048-010-001-000-000-000-000",
6491
+ "048-010-002-000-000-000-000",
6492
+ "048-010-003-000-000-000-000",
6493
+ "048-010-004-000-000-000-000"
6494
+ ],
6495
+ definition: "Parent category for victim service providers and community-based service providers.",
6496
+ canonicalCode: "02-06-00-00",
6497
+ enumConstant: "ORGANIZATION_COMMUNITY"
6498
+ },
6499
+ {
6500
+ code: "048-010-001-000-000-000-000",
6501
+ key: "child_advocacy_center",
6502
+ title: "Child Advocacy Center (CAC)",
6503
+ selectable: true,
6504
+ parentCode: "048-010-000-000-000-000-000",
6505
+ childCodes: [],
6506
+ definition: "A child-centered multidisciplinary center coordinating investigation and services (forensic interview, coordination, referrals, sometimes medical or therapy) for child victims.",
6507
+ canonicalCode: "02-06-01-00",
6508
+ enumConstant: "ORGANIZATION_COMMUNITY_CHILDADVOCACYCENTER"
6509
+ },
6510
+ {
6511
+ code: "048-010-002-000-000-000-000",
6512
+ key: "victim_service_provider",
6513
+ title: "Victim service provider / advocacy program",
6514
+ selectable: true,
6515
+ parentCode: "048-010-000-000-000-000-000",
6516
+ childCodes: [],
6517
+ 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.",
6518
+ canonicalCode: "02-06-02-00",
6519
+ enumConstant: "ORGANIZATION_COMMUNITY_VICTIMSERVICEPROVIDER"
6520
+ },
6521
+ {
6522
+ code: "048-010-003-000-000-000-000",
6523
+ key: "community_based_service_provider",
6524
+ title: "Community-based service provider (general social services)",
6525
+ selectable: true,
6526
+ parentCode: "048-010-000-000-000-000-000",
6527
+ childCodes: [],
6528
+ 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.)",
6529
+ canonicalCode: "02-06-03-00",
6530
+ enumConstant: "ORGANIZATION_COMMUNITY_COMMUNITYSERVICEPROVIDER"
6531
+ },
6532
+ {
6533
+ code: "048-010-004-000-000-000-000",
6534
+ key: "legal_services_provider",
6535
+ title: "Legal services provider",
6536
+ selectable: true,
6537
+ parentCode: "048-010-000-000-000-000-000",
6538
+ childCodes: [],
6539
+ 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.",
6540
+ canonicalCode: "02-06-04-00",
6541
+ enumConstant: "ORGANIZATION_COMMUNITY_LEGALSERVICES"
6542
+ },
6543
+ {
6544
+ code: "048-011-000-000-000-000-000",
6545
+ key: "coordination_governance",
6546
+ title: "Coordination & Governance",
6547
+ selectable: false,
6548
+ parentCode: null,
6549
+ childCodes: [
6550
+ "048-011-001-000-000-000-000",
6551
+ "048-011-002-000-000-000-000"
6552
+ ],
6553
+ definition: "Parent category for coordination and governance bodies (e.g., MDTs, coalitions).",
6554
+ canonicalCode: "02-07-00-00",
6555
+ enumConstant: "ORGANIZATION_GOVERNANCE"
6556
+ },
6557
+ {
6558
+ code: "048-011-001-000-000-000-000",
6559
+ key: "mdt",
6560
+ title: "Multidisciplinary team (MDT)",
6561
+ selectable: true,
6562
+ parentCode: "048-011-000-000-000-000-000",
6563
+ childCodes: [],
6564
+ 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.)",
6565
+ canonicalCode: "02-07-01-00",
6566
+ enumConstant: "ORGANIZATION_GOVERNANCE_MDT"
6567
+ },
6568
+ {
6569
+ code: "048-011-002-000-000-000-000",
6570
+ key: "coalition",
6571
+ title: "Coalition (state/regional coalition)",
6572
+ selectable: true,
6573
+ parentCode: "048-011-000-000-000-000-000",
6574
+ childCodes: [],
6575
+ 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.",
6576
+ canonicalCode: "02-07-02-00",
6577
+ enumConstant: "ORGANIZATION_GOVERNANCE_COALITION"
6578
+ },
6579
+ {
6580
+ code: "048-012-000-000-000-000-000",
6581
+ key: "internal",
6582
+ title: "Internal",
6583
+ selectable: false,
6584
+ parentCode: null,
6585
+ childCodes: [
6586
+ "048-012-001-000-000-000-000"
6587
+ ],
6588
+ definition: "Parent category for internal referrals within the same umbrella agency.",
6589
+ canonicalCode: "02-08-00-00",
6590
+ enumConstant: "ORGANIZATION_INTERNAL"
6591
+ },
6592
+ {
6593
+ code: "048-012-001-000-000-000-000",
6594
+ key: "own_agency_internal",
6595
+ title: "Own agency / internal referral",
6596
+ selectable: true,
6597
+ parentCode: "048-012-000-000-000-000-000",
6598
+ childCodes: [],
6599
+ definition: "Client was referred from another program or unit within the same umbrella agency.",
6600
+ canonicalCode: "02-08-01-00",
6601
+ enumConstant: "ORGANIZATION_INTERNAL_OWNAGENCY"
6602
+ },
6603
+ {
6604
+ code: "048-013-000-000-000-000-000",
6605
+ key: "other_entity",
6606
+ title: "Other",
6607
+ selectable: false,
6608
+ parentCode: null,
6609
+ childCodes: [
6610
+ "048-013-001-000-000-000-000",
6611
+ "048-013-002-000-000-000-000",
6612
+ "048-013-003-000-000-000-000"
6613
+ ],
6614
+ definition: "Parent category for other organizations not captured by the primary sectors.",
6615
+ canonicalCode: "02-09-00-00",
6616
+ enumConstant: "ORGANIZATION_OTHER"
6617
+ },
6618
+ {
6619
+ code: "048-013-001-000-000-000-000",
6620
+ key: "employer",
6621
+ title: "Employer",
6622
+ selectable: true,
6623
+ parentCode: "048-013-000-000-000-000-000",
6624
+ childCodes: [],
6625
+ definition: "Employer, HR, or employee assistance program initiated the referral.",
6626
+ canonicalCode: "02-09-01-00",
6627
+ enumConstant: "ORGANIZATION_OTHER_EMPLOYER"
6628
+ },
6629
+ {
6630
+ code: "048-013-002-000-000-000-000",
6631
+ key: "benefits_public_assistance_office",
6632
+ title: "Benefits/public assistance office",
6633
+ selectable: true,
6634
+ parentCode: "048-013-000-000-000-000-000",
6635
+ childCodes: [],
6636
+ definition: "Government office administering public benefits or eligibility and enrollment (e.g., SNAP, TANF, Medicaid, SSA).",
6637
+ canonicalCode: "02-09-02-00",
6638
+ enumConstant: "ORGANIZATION_OTHER_PUBLICASSISTANCE"
6639
+ },
6640
+ {
6641
+ code: "048-013-003-000-000-000-000",
6642
+ key: "other_organization",
6643
+ title: "Other Organization",
6644
+ selectable: true,
6645
+ parentCode: "048-013-000-000-000-000-000",
6646
+ childCodes: [],
6647
+ definition: "Other organization not otherwise captured by the listed categories.",
6648
+ canonicalCode: "02-09-03-00",
6649
+ enumConstant: "ORGANIZATION_OTHER_UNSPECIFIED"
6650
+ }
6651
+ ]
6652
+ };
6653
+
6654
+ // src/constants/org-type.ts
6655
+ var ENTRIES = referralEntityCategory_v1_2_0_default.entries;
6656
+ var BY_KEY = new Map(ENTRIES.map((e) => [e.key, e]));
6657
+ var BY_CODE = new Map(ENTRIES.map((e) => [e.code, e]));
6658
+ var BY_CANON = new Map(
6659
+ ENTRIES.filter((e) => e.canonicalCode).map((e) => [
6660
+ e.canonicalCode,
6661
+ e
6662
+ ])
6663
+ );
6664
+ var BY_ENUM_CONSTANT = new Map(
6665
+ ENTRIES.filter((e) => e.enumConstant).map((e) => [
6666
+ e.enumConstant,
6667
+ e
6668
+ ])
6669
+ );
6670
+ var isOrgHalf = (e) => (e.canonicalCode ?? "").startsWith("02-");
6671
+ var isHeading = (e) => isOrgHalf(e) && !e.selectable && /^02-\d\d-00-00$/.test(e.canonicalCode ?? "");
6672
+ var ORG_TYPE_HEADING_KEYS = Object.freeze([
6673
+ "housing_shelter_continuum",
6674
+ "hotlines",
6675
+ "justice_protective_systems",
6676
+ "health_behavioral_health",
6677
+ "education",
6678
+ "victim_community_service_providers",
6679
+ "coordination_governance",
6680
+ "internal",
6681
+ "other_entity"
6682
+ ]);
6683
+ var ORG_TYPE_SELECTABLE_KEYS = Object.freeze([
6684
+ "outreach_project",
6685
+ "temporary_shelter",
6686
+ "residential_project",
6687
+ "national_hotline",
6688
+ "local_other_hotline",
6689
+ "hotline",
6690
+ "child_welfare_cps",
6691
+ "juvenile_justice",
6692
+ "law_enforcement",
6693
+ "local_law_enforcement",
6694
+ "state_law_enforcement",
6695
+ "federal_law_enforcement",
6696
+ "tribal_law_enforcement",
6697
+ "other_law_enforcement",
6698
+ "courts_prosecution",
6699
+ "correction_probation",
6700
+ "adult_protective_services",
6701
+ "inpatient_psychiatric_facility",
6702
+ "healthcare_provider",
6703
+ "school_academic_institution",
6704
+ "child_advocacy_center",
6705
+ "victim_service_provider",
6706
+ "community_based_service_provider",
6707
+ "legal_services_provider",
6708
+ "mdt",
6709
+ "coalition",
6710
+ "employer",
6711
+ "benefits_public_assistance_office",
6712
+ "other_organization"
6713
+ ]);
6714
+ var ORG_TYPE_NONPICKABLE_LEAF_KEYS = Object.freeze([
6715
+ "own_agency_internal"
6716
+ ]);
6717
+ var ORG_TYPE_KEYS = Object.freeze([
6718
+ ...ORG_TYPE_HEADING_KEYS,
6719
+ ...ORG_TYPE_SELECTABLE_KEYS,
6720
+ ...ORG_TYPE_NONPICKABLE_LEAF_KEYS
6721
+ ]);
6722
+ var AGENCY_TYPE_KEYS = Object.freeze([
6723
+ ...ORG_TYPE_SELECTABLE_KEYS,
6724
+ ...ORG_TYPE_NONPICKABLE_LEAF_KEYS,
6725
+ "unknown"
6726
+ ]);
6727
+ var ORG_TYPE_KEY_SET = new Set(ORG_TYPE_KEYS);
6728
+ var AGENCY_TYPE_KEY_SET = new Set(AGENCY_TYPE_KEYS);
6729
+ function isOrgTypeKey(value) {
6730
+ return typeof value === "string" && ORG_TYPE_KEY_SET.has(value);
6731
+ }
6732
+ function isAgencyTypeKey(value) {
6733
+ return typeof value === "string" && AGENCY_TYPE_KEY_SET.has(value);
6734
+ }
6735
+ function lookup(value) {
6736
+ if (typeof value !== "string") return null;
6737
+ const v = value.trim();
6738
+ if (!v) return null;
6739
+ return BY_KEY.get(v.toLowerCase()) ?? BY_ENUM_CONSTANT.get(v.toUpperCase()) ?? BY_CANON.get(v) ?? BY_CODE.get(v) ?? null;
6740
+ }
6741
+ function resolveOrgTypeKey(value) {
6742
+ const hit = lookup(value);
6743
+ return hit && isOrgTypeKey(hit.key) ? hit.key : null;
6744
+ }
6745
+ function resolveAgencyTypeKey(value) {
6746
+ const hit = lookup(value);
6747
+ return hit && isAgencyTypeKey(hit.key) ? hit.key : null;
6748
+ }
6749
+ var LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY = Object.freeze({
6750
+ 0: "unknown",
6751
+ 1: "own_agency_internal",
6752
+ 2: "self_referred",
6753
+ 3: "family_guardian_friend",
6754
+ 4: "peer",
6755
+ 5: "other_individual",
6756
+ 10: "housing_shelter_continuum",
6757
+ 11: "hotline",
6758
+ 12: "justice_protective_systems",
6759
+ 13: "outreach_project",
6760
+ 14: "temporary_shelter",
6761
+ 15: "residential_project",
6762
+ 16: "health_behavioral_health",
6763
+ 17: "education",
6764
+ 18: "law_enforcement",
6765
+ 19: "other_entity",
6766
+ 20: "child_welfare_cps",
6767
+ 21: "juvenile_justice",
6768
+ 22: "courts_prosecution",
6769
+ 23: "correction_probation",
6770
+ 24: "inpatient_psychiatric_facility",
6771
+ 25: "healthcare_provider",
6772
+ 26: "victim_community_service_providers",
6773
+ 27: "child_advocacy_center",
6774
+ 28: "victim_service_provider",
6775
+ 29: "community_based_service_provider",
6776
+ 30: "employer",
6777
+ 31: "benefits_public_assistance_office"
6778
+ });
6779
+ function resolveReferralEntityKeyFromLegacyNumeric(value) {
6780
+ const n = typeof value === "number" ? value : typeof value === "string" && /^\s*\d{1,2}\s*$/.test(value) ? Number(value) : NaN;
6781
+ if (!Number.isInteger(n)) return null;
6782
+ const table = LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY;
6783
+ return table[n] ?? null;
6784
+ }
6785
+ function resolveOrgTypeKeyFromLegacyNumeric(value) {
6786
+ const k = resolveReferralEntityKeyFromLegacyNumeric(value);
6787
+ return k && isOrgTypeKey(k) ? k : null;
6788
+ }
6789
+ function orgTypeEnumConstant(key) {
6790
+ return BY_KEY.get(key)?.enumConstant ?? null;
6791
+ }
6792
+ function orgTypeCanonicalCode(key) {
6793
+ return BY_KEY.get(key)?.canonicalCode ?? null;
6794
+ }
6795
+ function orgTypeLabel(key) {
6796
+ return BY_KEY.get(key)?.title ?? null;
6797
+ }
6798
+ function orgTypeAncestry(key) {
6799
+ const out = [];
6800
+ const seen = /* @__PURE__ */ new Set();
6801
+ let cursor = BY_KEY.get(key);
6802
+ while (cursor && !seen.has(cursor.code)) {
6803
+ seen.add(cursor.code);
6804
+ out.push(cursor.key);
6805
+ cursor = cursor.parentCode ? BY_CODE.get(cursor.parentCode) : void 0;
6806
+ }
6807
+ return out;
6808
+ }
6809
+ var ORG_TYPE_PARENT_KEY = Object.freeze(
6810
+ Object.fromEntries(
6811
+ ENTRIES.filter(isOrgHalf).map((e) => [
6812
+ e.key,
6813
+ e.parentCode ? BY_CODE.get(e.parentCode)?.key ?? null : null
6814
+ ])
6815
+ )
6816
+ );
6817
+ function orgTypeSector(key) {
6818
+ const chain = orgTypeAncestry(key);
6819
+ if (!chain.length) return null;
6820
+ const top = chain[chain.length - 1];
6821
+ const entry = BY_KEY.get(top);
6822
+ return entry && isHeading(entry) ? top : null;
6823
+ }
6824
+ var VICTIM_SERVING_ORG_TYPE_KEYS = Object.freeze([
6825
+ "victim_service_provider",
6826
+ "child_advocacy_center"
6827
+ ]);
6828
+ var LAW_ENFORCEMENT_ORG_TYPE_KEYS = Object.freeze([
6829
+ "law_enforcement",
6830
+ "local_law_enforcement",
6831
+ "state_law_enforcement",
6832
+ "federal_law_enforcement",
6833
+ "tribal_law_enforcement",
6834
+ "other_law_enforcement"
6835
+ ]);
6836
+ var LEGAL_ORG_TYPE_KEYS = Object.freeze([
6837
+ "courts_prosecution",
6838
+ "legal_services_provider"
6839
+ ]);
6840
+ var HEALTHCARE_ORG_TYPE_KEYS = Object.freeze([
6841
+ "health_behavioral_health",
6842
+ "inpatient_psychiatric_facility",
6843
+ "healthcare_provider"
6844
+ ]);
6845
+ var REPORT_AUTHORITY_ORG_TYPE_KEYS = Object.freeze([
6846
+ "justice_protective_systems",
6847
+ "child_welfare_cps",
6848
+ "juvenile_justice",
6849
+ "law_enforcement",
6850
+ "local_law_enforcement",
6851
+ "state_law_enforcement",
6852
+ "federal_law_enforcement",
6853
+ "tribal_law_enforcement",
6854
+ "other_law_enforcement",
6855
+ "courts_prosecution",
6856
+ "correction_probation",
6857
+ "adult_protective_services"
6858
+ ]);
6859
+ var NO_SECTOR_ORG_TYPE_KEYS = Object.freeze([
6860
+ "internal",
6861
+ "own_agency_internal",
6862
+ "unknown"
6863
+ ]);
6864
+ var asSet = (keys) => new Set(keys);
6865
+ var VICTIM_SERVING = asSet(VICTIM_SERVING_ORG_TYPE_KEYS);
6866
+ var LAW_ENFORCEMENT = asSet(LAW_ENFORCEMENT_ORG_TYPE_KEYS);
6867
+ var LEGAL = asSet(LEGAL_ORG_TYPE_KEYS);
6868
+ var HEALTHCARE = asSet(HEALTHCARE_ORG_TYPE_KEYS);
6869
+ var REPORT_AUTHORITY = asSet(REPORT_AUTHORITY_ORG_TYPE_KEYS);
6870
+ var NO_SECTOR = asSet(NO_SECTOR_ORG_TYPE_KEYS);
6871
+ function isVictimServingOrgType(type) {
6872
+ const k = resolveAgencyTypeKey(type);
6873
+ return !!k && VICTIM_SERVING.has(k);
6874
+ }
6875
+ function isLawEnforcementOrgType(type) {
6876
+ const k = resolveAgencyTypeKey(type);
6877
+ return !!k && LAW_ENFORCEMENT.has(k);
6878
+ }
6879
+ function isLegalOrgType(type) {
6880
+ const k = resolveAgencyTypeKey(type);
6881
+ return !!k && LEGAL.has(k);
6882
+ }
6883
+ function isHealthcareOrgType(type) {
6884
+ const k = resolveAgencyTypeKey(type);
6885
+ return !!k && HEALTHCARE.has(k);
6886
+ }
6887
+ function isReportAuthorityOrgType(type) {
6888
+ const k = resolveAgencyTypeKey(type);
6889
+ return !!k && REPORT_AUTHORITY.has(k);
6890
+ }
6891
+ function orgTypeDefaultVsp(type) {
6892
+ const k = resolveAgencyTypeKey(type);
6893
+ if (!k || NO_SECTOR.has(k) || k === "child_advocacy_center") return null;
6894
+ return k === "victim_service_provider";
6895
+ }
6896
+ function orgTypeDefaultSessionRole(type, vsp) {
6897
+ return orgTypeDefaultSessionRoleOrNull(type, vsp) ?? "vsp_staff";
6898
+ }
6899
+ function orgTypeDefaultSessionRoleOrNull(type, vsp) {
6900
+ if (vsp === true) return "vsp_staff";
6901
+ const k = resolveAgencyTypeKey(type);
6902
+ if (!k) return null;
6903
+ if (NO_SECTOR.has(k)) return "vsp_staff";
6904
+ if (VICTIM_SERVING.has(k)) return "vsp_staff";
6905
+ if (LAW_ENFORCEMENT.has(k)) return "law_enforcement_personnel";
6906
+ if (LEGAL.has(k)) return "legal_professional";
6907
+ if (HEALTHCARE.has(k)) return "healthcare_provider_staff";
6908
+ return "other_response_personnel";
6909
+ }
6910
+
6023
6911
  // src/schemas/common.ts
6024
6912
  import { Schema } from "mongoose";
6025
6913
  var addressSchema = new Schema(
@@ -7017,6 +7905,147 @@ function buildCvcEntrySchema() {
7017
7905
  }
7018
7906
  var _cvcEntrySchema = buildCvcEntrySchema();
7019
7907
 
7908
+ // src/schemas/agency.ts
7909
+ import { Error as MongooseError } from "mongoose";
7910
+ function vspTwoStepHolds(v) {
7911
+ return v.vspPrivateNonprofit == null || v.vsp === true;
7912
+ }
7913
+ var VSP_TWO_STEP_ISSUE = {
7914
+ message: "vspPrivateNonprofit is step 2 of the HMIS VSP two-step and requires vsp: true",
7915
+ path: ["vspPrivateNonprofit"]
7916
+ };
7917
+ function vspTwoStepHoldsOnUpdate(update) {
7918
+ if (!update || typeof update !== "object") return true;
7919
+ const u = update;
7920
+ const set = { ...u, ...u.$set ?? {} };
7921
+ return vspTwoStepHolds({
7922
+ vsp: set.vsp,
7923
+ vspPrivateNonprofit: set.vspPrivateNonprofit
7924
+ });
7925
+ }
7926
+ var orgTypeSchemaDefinition = {
7927
+ /**
7928
+ * The agency's organization type: a CVC-48 key from
7929
+ * {@link AGENCY_TYPE_KEYS} (a selectable org-type leaf, or the pre-backfill
7930
+ * `unknown`). Set once in the Admin Hub; carried from the Org. Never free
7931
+ * text — a value outside the enum fails validation on `save()` and, when
7932
+ * the fragment is added with {@link addAgencyOrgTypeFields} (default
7933
+ * options), on `updateOne` / `updateMany` / `findOneAndUpdate` too.
7934
+ *
7935
+ * ORDER OF ADOPTION (review MG2, pinned in org-type-contract.test.ts):
7936
+ * Mongoose validates `init`-ed paths on `save()`, not only modified ones,
7937
+ * so once a consumer adds this fragment, an agency document that carries a
7938
+ * NON-KEY `type` (free text, "UNKNOWN", "multi_service", a number) fails
7939
+ * its next save of ANY field. A document with no `type` at all saves fine.
7940
+ * Backfill first (every stored value → a key or `unknown`), then adopt.
7941
+ */
7942
+ type: {
7943
+ type: String,
7944
+ enum: [...AGENCY_TYPE_KEYS],
7945
+ index: true
7946
+ },
7947
+ /**
7948
+ * Is this organization a DV/SA victim service provider — the HMIS 2.01
7949
+ * (Comparable Database) fact. Captured in the Admin Hub (never inferred
7950
+ * from the type; the type only PROPOSES it — `orgTypeDefaultVsp`, the
7951
+ * Hub's pre-fill — and HTI Labs affirms or changes it there). Tri-state:
7952
+ * `true` / `false` / absent (not yet captured — a reader falls back to the
7953
+ * proposal).
7954
+ */
7955
+ vsp: {
7956
+ type: Boolean
7957
+ },
7958
+ /**
7959
+ * Step 2 of the two-step: private non-profit VSP (VOCA/OVC PMT
7960
+ * distinction). Captured; tri-state; may only be `true`/`false` when
7961
+ * `vsp === true` ({@link vspTwoStepHolds}, enforced at the mount).
7962
+ */
7963
+ vspPrivateNonprofit: {
7964
+ type: Boolean
7965
+ }
7966
+ };
7967
+ var agencyOrgTypeSchemaDefinition = orgTypeSchemaDefinition;
7968
+ var ORG_TYPE_FIELD_NAMES = Object.freeze([
7969
+ "type",
7970
+ "vsp",
7971
+ "vspPrivateNonprofit"
7972
+ ]);
7973
+ var AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS = Object.freeze([
7974
+ "updateOne",
7975
+ "updateMany",
7976
+ "findOneAndUpdate"
7977
+ ]);
7978
+ function applyRunValidatorsIfUnset(query) {
7979
+ if (query.getOptions().runValidators === void 0) {
7980
+ query.setOptions({ runValidators: true });
7981
+ }
7982
+ }
7983
+ function mountOrgTypeFields(schema, options) {
7984
+ schema.add(orgTypeSchemaDefinition);
7985
+ schema.pre("validate", function() {
7986
+ const doc = this;
7987
+ if (!vspTwoStepHolds(doc)) {
7988
+ const err = new MongooseError.ValidationError();
7989
+ err.addError(
7990
+ "vspPrivateNonprofit",
7991
+ new MongooseError.ValidatorError({
7992
+ path: "vspPrivateNonprofit",
7993
+ message: VSP_TWO_STEP_ISSUE.message,
7994
+ value: doc.vspPrivateNonprofit
7995
+ })
7996
+ );
7997
+ throw err;
7998
+ }
7999
+ });
8000
+ const validateOnUpdate = options.validateOnUpdate ?? true;
8001
+ schema.pre(
8002
+ [...AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS],
8003
+ function() {
8004
+ if (!vspTwoStepHoldsOnUpdate(this.getUpdate())) {
8005
+ throw new Error(VSP_TWO_STEP_ISSUE.message);
8006
+ }
8007
+ if (validateOnUpdate) applyRunValidatorsIfUnset(this);
8008
+ }
8009
+ );
8010
+ return schema;
8011
+ }
8012
+ function addOrgTypeFields(schema, options = {}) {
8013
+ return mountOrgTypeFields(schema, options);
8014
+ }
8015
+ function addAgencyOrgTypeFields(schema, options = {}) {
8016
+ return mountOrgTypeFields(schema, options);
8017
+ }
8018
+ function pickOrgTypeFields(src) {
8019
+ const out = {};
8020
+ if (src) {
8021
+ for (const k of ORG_TYPE_FIELD_NAMES) {
8022
+ const v = src[k];
8023
+ if (v != null) out[k] = v;
8024
+ }
8025
+ }
8026
+ return out;
8027
+ }
8028
+ function mirrorOrgTypeFields(org) {
8029
+ const out = pickOrgTypeFields(org);
8030
+ if (!vspTwoStepHolds(out)) {
8031
+ throw new Error(`mirrorOrgTypeFields: ${VSP_TWO_STEP_ISSUE.message}`);
8032
+ }
8033
+ return out;
8034
+ }
8035
+ function resolveEffectiveOrgTypeFields(org, agency) {
8036
+ const linked = agency != null && agency.organizationId != null;
8037
+ if (linked && org) return pickOrgTypeFields(org);
8038
+ return pickOrgTypeFields(agency);
8039
+ }
8040
+ function resolveEffectiveOrgType(org, agency) {
8041
+ return resolveAgencyTypeKey(resolveEffectiveOrgTypeFields(org, agency).type);
8042
+ }
8043
+ function orgTypeFieldsDiffer(org, agency) {
8044
+ const a = pickOrgTypeFields(org);
8045
+ const b = pickOrgTypeFields(agency);
8046
+ return ORG_TYPE_FIELD_NAMES.filter((k) => a[k] !== b[k]);
8047
+ }
8048
+
7020
8049
  // src/models/formModel.ts
7021
8050
  var formModel_exports = {};
7022
8051
  __export(formModel_exports, {
@@ -8167,6 +9196,7 @@ var ReferralEntityCategoryKeys = {
8167
9196
  hotlines: "048-006-000-000-000-000-000",
8168
9197
  national_hotline: "048-006-001-000-000-000-000",
8169
9198
  local_other_hotline: "048-006-002-000-000-000-000",
9199
+ hotline: "048-006-003-000-000-000-000",
8170
9200
  justice_protective_systems: "048-007-000-000-000-000-000",
8171
9201
  child_welfare_cps: "048-007-001-000-000-000-000",
8172
9202
  juvenile_justice: "048-007-002-000-000-000-000",
@@ -11713,6 +12743,26 @@ var TeamDirectoryFieldsSchema = z2.object({
11713
12743
  canReferTo: z2.array(ObjectIdHexSchema).refine(hasNoDuplicates, "canReferTo must not repeat a team").optional()
11714
12744
  });
11715
12745
 
12746
+ // src/validation/agency.ts
12747
+ import { z as z3 } from "zod";
12748
+ var OrgTypeSelectableKeySchema = z3.enum(ORG_TYPE_SELECTABLE_KEYS);
12749
+ var AgencyTypeKeySchema = z3.enum(AGENCY_TYPE_KEYS);
12750
+ var orgTypeFieldsShape = {
12751
+ type: AgencyTypeKeySchema.optional(),
12752
+ vsp: z3.boolean().optional(),
12753
+ vspPrivateNonprofit: z3.boolean().optional()
12754
+ };
12755
+ var AgencyOrgTypeFieldsSchema = z3.object(orgTypeFieldsShape).refine(vspTwoStepHolds, VSP_TWO_STEP_ISSUE);
12756
+ function withOrgTypeFields(shape) {
12757
+ return z3.object({ ...shape, ...orgTypeFieldsShape }).refine(vspTwoStepHolds, VSP_TWO_STEP_ISSUE);
12758
+ }
12759
+ var OrgTypeFieldsSchema = AgencyOrgTypeFieldsSchema;
12760
+ var SetOrgTypeInputSchema = z3.object({
12761
+ type: OrgTypeSelectableKeySchema,
12762
+ vsp: z3.boolean().optional(),
12763
+ vspPrivateNonprofit: z3.boolean().optional()
12764
+ }).strict().refine(vspTwoStepHolds, VSP_TWO_STEP_ISSUE);
12765
+
11716
12766
  // src/cvcs/serviceCategories.v1.0.0.json
11717
12767
  var serviceCategories_v1_0_0_default = {
11718
12768
  domain: "service_categories",
@@ -21980,1338 +23030,759 @@ var personRelationships_v1_0_0_default = {
21980
23030
  title: "Facilitator / Target person",
21981
23031
  selectable: true,
21982
23032
  parentCode: "126-007-000-000-000-000-000",
21983
- childCodes: [
21984
- "126-007-003-001-000-000-000",
21985
- "126-007-003-002-000-000-000"
21986
- ],
21987
- definition: "Relationship where one person facilitates or intermediates commercial sex/exploitation activity affecting the other (e.g., arranging, advertising, booking)."
21988
- },
21989
- {
21990
- code: "126-007-003-001-000-000-000",
21991
- key: "facilitator_of",
21992
- title: "Facilitator",
21993
- selectable: true,
21994
- parentCode: "126-007-003-000-000-000-000",
21995
- childCodes: [],
21996
- definition: "Role: the related person facilitated/intermediated commercial sex/exploitation activity affecting the anchor person."
21997
- },
21998
- {
21999
- code: "126-007-003-002-000-000-000",
22000
- key: "target_of_facilitator",
22001
- title: "Target person (facilitator)",
22002
- selectable: true,
22003
- parentCode: "126-007-003-000-000-000-000",
22004
- childCodes: [],
22005
- definition: "Role: the related person was the target/person affected by facilitation from the anchor person."
22006
- },
22007
- {
22008
- code: "126-007-004-000-000-000-000",
22009
- key: "recruiter_recruited_person",
22010
- title: "Recruiter / Recruited person",
22011
- selectable: true,
22012
- parentCode: "126-007-000-000-000-000-000",
22013
- childCodes: [
22014
- "126-007-004-001-000-000-000",
22015
- "126-007-004-002-000-000-000"
22016
- ],
22017
- definition: "Relationship where one person recruits/entices another into commercial sex or exploitation context."
22018
- },
22019
- {
22020
- code: "126-007-004-001-000-000-000",
22021
- key: "recruited_by",
22022
- title: "Recruited person",
22023
- selectable: true,
22024
- parentCode: "126-007-004-000-000-000-000",
22025
- childCodes: [],
22026
- definition: "Role: the related person was recruited/enticed by the anchor person."
22027
- },
22028
- {
22029
- code: "126-007-004-002-000-000-000",
22030
- key: "recruiter_of",
22031
- title: "Recruiter",
22032
- selectable: true,
22033
- parentCode: "126-007-004-000-000-000-000",
22034
- childCodes: [],
22035
- definition: "Role: the related person recruited/enticed the anchor person into commercial sex/exploitation context."
22036
- },
22037
- {
22038
- code: "126-007-005-000-000-000-000",
22039
- key: "trafficker_victim",
22040
- title: "Trafficker / Victim",
22041
- selectable: true,
22042
- parentCode: "126-007-000-000-000-000-000",
22043
- childCodes: [
22044
- "126-007-005-001-000-000-000",
22045
- "126-007-005-002-000-000-000"
22046
- ],
22047
- definition: "Exploitation relationship where one person is believed to traffic/exploit the other in a commercial sex or related exploitation context."
22048
- },
22049
- {
22050
- code: "126-007-005-001-000-000-000",
22051
- key: "trafficker_of",
22052
- title: "Trafficker",
22053
- selectable: true,
22054
- parentCode: "126-007-005-000-000-000-000",
22055
- childCodes: [],
22056
- definition: "Role: the related person is the trafficker/exploiter of the anchor person."
22057
- },
22058
- {
22059
- code: "126-007-005-002-000-000-000",
22060
- key: "victim_of_trafficker",
22061
- title: "Victim",
22062
- selectable: true,
22063
- parentCode: "126-007-005-000-000-000-000",
22064
- childCodes: [],
22065
- definition: "Role: the related person is the victim/target of trafficking/exploitation by the anchor person."
22066
- },
22067
- {
22068
- code: "126-008-000-000-000-000-000",
22069
- key: "other_unspecified",
22070
- title: "Other / Unspecified",
22071
- selectable: false,
22072
- parentCode: null,
22073
- childCodes: [
22074
- "126-008-001-000-000-000-000",
22075
- "126-008-002-000-000-000-000",
22076
- "126-008-003-000-000-000-000",
22077
- "126-008-004-000-000-000-000"
22078
- ],
22079
- definition: "High-level topic for edge cases, unknown/low-information ties, and constrained exceptions that don't fit the primary relationship domains."
22080
- },
22081
- {
22082
- code: "126-008-001-000-000-000-000",
22083
- key: "other_person_relationship",
22084
- title: "Other person relationship",
22085
- selectable: true,
22086
- parentCode: "126-008-000-000-000-000-000",
22087
- childCodes: [],
22088
- definition: "Person-to-person relationship exists, but none of the available structural relationship types fit. Should require detail text."
22089
- },
22090
- {
22091
- code: "126-008-002-000-000-000-000",
22092
- key: "person_pet",
22093
- title: "Pet / Animal (person\u2194pet)",
22094
- selectable: true,
22095
- parentCode: "126-008-000-000-000-000-000",
22096
- childCodes: [
22097
- "126-008-002-001-000-000-000",
22098
- "126-008-002-002-000-000-000",
22099
- "126-008-002-003-000-000-000"
22100
- ],
22101
- 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."
22102
- },
22103
- {
22104
- code: "126-008-002-001-000-000-000",
22105
- key: "pet_caregiver_of",
22106
- title: "Caregiver of (pet)",
22107
- selectable: true,
22108
- parentCode: "126-008-002-000-000-000-000",
22109
- childCodes: [],
22110
- definition: "Person provides primary day-to-day care for the pet/animal, regardless of legal ownership."
22111
- },
22112
- {
22113
- code: "126-008-002-002-000-000-000",
22114
- key: "pet_of",
22115
- title: "Pet of",
22116
- selectable: true,
22117
- parentCode: "126-008-002-000-000-000-000",
22118
- childCodes: [],
22119
- definition: "Pet/animal is the pet of the person."
22120
- },
22121
- {
22122
- code: "126-008-002-003-000-000-000",
22123
- key: "pet_owner_of",
22124
- title: "Owner of (pet)",
22125
- selectable: true,
22126
- parentCode: "126-008-002-000-000-000-000",
22127
- childCodes: [],
22128
- definition: "Person has legal or practical ownership responsibility for the pet/animal."
22129
- },
22130
- {
22131
- code: "126-008-003-000-000-000-000",
22132
- key: "relationship_unknown",
22133
- title: "Relationship unknown",
22134
- selectable: true,
22135
- parentCode: "126-008-000-000-000-000-000",
22136
- childCodes: [],
22137
- definition: "A relationship/link is asserted between two people, but the relationship type is unknown or not yet determined."
22138
- },
22139
- {
22140
- code: "126-008-004-000-000-000-000",
22141
- key: "stranger",
22142
- title: "Stranger",
22143
- selectable: true,
22144
- parentCode: "126-008-000-000-000-000-000",
22145
- childCodes: [],
22146
- definition: "No known prior relationship exists between the two people (i.e., they are strangers)."
22147
- }
22148
- ]
22149
- };
22150
-
22151
- // src/cvcs/employmentStatus.v1.0.0.json
22152
- var employmentStatus_v1_0_0_default = {
22153
- domain: "employment_status",
22154
- name: "Core Employment Status",
22155
- version: "1.0.0",
22156
- levels: {
22157
- "0": "Unknown or Missing",
22158
- "1": "Primary",
22159
- "2": "Detail"
22160
- },
22161
- entries: [
22162
- {
22163
- code: "179-000-000-000-000-000-000",
22164
- key: "missingness_root",
22165
- title: "Unknown, Redacted, or Missing",
22166
- selectable: false,
22167
- parentCode: null,
22168
- childCodes: [
22169
- "179-000-000-000-000-000-001",
22170
- "179-000-000-000-000-000-002",
22171
- "179-000-000-000-000-000-003",
22172
- "179-000-000-000-000-000-004",
22173
- "179-000-000-000-000-000-005"
22174
- ],
22175
- 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."
22176
- },
22177
- {
22178
- code: "179-000-000-000-000-000-001",
22179
- key: "unknown",
22180
- title: "Unknown",
22181
- selectable: true,
22182
- parentCode: "179-000-000-000-000-000-000",
22183
- childCodes: [],
22184
- definition: "Value is unknown at time of entry or cannot be determined from available information."
22185
- },
22186
- {
22187
- code: "179-000-000-000-000-000-002",
22188
- key: "anonymous",
22189
- title: "Anonymous",
22190
- selectable: true,
22191
- parentCode: "179-000-000-000-000-000-000",
22192
- childCodes: [],
22193
- definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted."
22194
- },
22195
- {
22196
- code: "179-000-000-000-000-000-003",
22197
- key: "data_not_collected",
22198
- title: "Data not collected",
22199
- selectable: true,
22200
- parentCode: "179-000-000-000-000-000-000",
22201
- childCodes: [],
22202
- definition: "No attempt was made to collect the information."
22203
- },
22204
- {
22205
- code: "179-000-000-000-000-000-004",
22206
- key: "client_doesnt_know",
22207
- title: "Client doesn't know",
22208
- selectable: true,
22209
- parentCode: "179-000-000-000-000-000-000",
22210
- childCodes: [],
22211
- definition: "Client is unable to provide an answer (explicit 'doesn't know'). HMIS R6 nonresponse value."
22212
- },
22213
- {
22214
- code: "179-000-000-000-000-000-005",
22215
- key: "client_refused",
22216
- title: "Client refused",
22217
- selectable: true,
22218
- parentCode: "179-000-000-000-000-000-000",
22219
- childCodes: [],
22220
- definition: "The person was asked but chose not to provide an answer (client prefers not to answer). HMIS R6 nonresponse value."
22221
- },
22222
- {
22223
- code: "179-001-000-000-000-000-000",
22224
- key: "employed",
22225
- title: "Employed",
22226
- selectable: true,
22227
- parentCode: null,
22228
- childCodes: [
22229
- "179-001-001-000-000-000-000",
22230
- "179-001-002-000-000-000-000",
22231
- "179-001-003-000-000-000-000",
22232
- "179-001-004-000-000-000-000",
22233
- "179-001-005-000-000-000-000",
22234
- "179-001-006-000-000-000-000",
22235
- "179-001-007-000-000-000-000"
22236
- ],
22237
- definition: "Has worked for pay or profit during the reference period (includes formal and informal work)."
22238
- },
22239
- {
22240
- code: "179-001-001-000-000-000-000",
22241
- key: "full_time",
22242
- title: "Full-time",
22243
- selectable: true,
22244
- parentCode: "179-001-000-000-000-000-000",
22245
- childCodes: [],
22246
- 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."
22247
- },
22248
- {
22249
- code: "179-001-002-000-000-000-000",
22250
- key: "part_time",
22251
- title: "Part-time",
22252
- selectable: true,
22253
- parentCode: "179-001-000-000-000-000-000",
22254
- childCodes: [],
22255
- definition: "Working fewer than full-time hours during the reference period. HMIS-authoritative type of employment when Employed=Yes."
22256
- },
22257
- {
22258
- code: "179-001-003-000-000-000-000",
22259
- key: "seasonal_sporadic",
22260
- title: "Seasonal / sporadic (including day labor)",
22261
- selectable: true,
22262
- parentCode: "179-001-000-000-000-000-000",
22263
- childCodes: [],
22264
- definition: "Work is seasonal, sporadic, day labor, or otherwise inconsistent/irregular during the reference period. HMIS-authoritative type of employment when Employed=Yes."
22265
- },
22266
- {
22267
- code: "179-001-004-000-000-000-000",
22268
- key: "self_employed",
22269
- title: "Self-employed",
22270
- selectable: true,
22271
- parentCode: "179-001-000-000-000-000-000",
22272
- childCodes: [],
22273
- definition: "Works for themself as a contractor, sole proprietor, or business owner. HTI extended detail (non-HMIS)."
22274
- },
22275
- {
22276
- code: "179-001-005-000-000-000-000",
22277
- key: "informal_cash_gig",
22278
- title: "Informal / cash-based / gig",
22279
- selectable: true,
22280
- parentCode: "179-001-000-000-000-000-000",
22281
- childCodes: [],
22282
- definition: "Earns income through informal, cash-based, gig, or off-the-books work. HTI extended detail (non-HMIS)."
22283
- },
22284
- {
22285
- code: "179-001-006-000-000-000-000",
22286
- key: "multiple_jobs",
22287
- title: "Multiple jobs",
22288
- selectable: true,
22289
- parentCode: "179-001-000-000-000-000-000",
22290
- childCodes: [],
22291
- definition: "Holds more than one job or income-generating role. HTI extended detail (non-HMIS)."
22292
- },
22293
- {
22294
- code: "179-001-007-000-000-000-000",
22295
- key: "unpaid_family_worker",
22296
- title: "Unpaid family worker",
22297
- selectable: true,
22298
- parentCode: "179-001-000-000-000-000-000",
22299
- childCodes: [],
22300
- definition: "Works in a family business or farm without formal pay. HTI extended detail (non-HMIS)."
22301
- },
22302
- {
22303
- code: "179-002-000-000-000-000-000",
22304
- key: "unemployed",
22305
- title: "Unemployed",
22306
- selectable: true,
22307
- parentCode: null,
22308
- childCodes: [
22309
- "179-002-001-000-000-000-000",
22310
- "179-002-002-000-000-000-000",
22311
- "179-002-003-000-000-000-000",
22312
- "179-002-004-000-000-000-000",
22313
- "179-002-005-000-000-000-000"
22314
- ],
22315
- definition: "Not working, available, and actively seeking work (or on temporary layoff). Federal BLS/Census Unemployed definition."
22316
- },
22317
- {
22318
- code: "179-002-001-000-000-000-000",
22319
- key: "looking_for_work",
22320
- title: "Looking for work (HMIS)",
22321
- selectable: true,
22322
- parentCode: "179-002-000-000-000-000-000",
22323
- childCodes: [],
22324
- definition: "Employed=No and looking for work. HMIS-authoritative reason captured when Employed=No."
22325
- },
22326
- {
22327
- code: "179-002-002-000-000-000-000",
22328
- key: "actively_seeking",
22329
- title: "Actively seeking",
22330
- selectable: true,
22331
- parentCode: "179-002-000-000-000-000-000",
22332
- childCodes: [],
22333
- definition: "Not working, available, and actively taking steps to find work. HTI extended detail (non-HMIS)."
22334
- },
22335
- {
22336
- code: "179-002-003-000-000-000-000",
22337
- key: "first_time_job_seeker",
22338
- title: "First-time job seeker",
22339
- selectable: true,
22340
- parentCode: "179-002-000-000-000-000-000",
22341
- childCodes: [],
22342
- definition: "Unemployed and seeking a first job (no prior work history or new entrant). HTI extended detail (non-HMIS)."
22343
- },
22344
- {
22345
- code: "179-002-004-000-000-000-000",
22346
- key: "recently_laid_off",
22347
- title: "Recently laid off",
22348
- selectable: true,
22349
- parentCode: "179-002-000-000-000-000-000",
22350
- childCodes: [],
22351
- definition: "Unemployed due to a recent layoff or job loss. HTI extended detail (non-HMIS)."
22352
- },
22353
- {
22354
- code: "179-002-005-000-000-000-000",
22355
- key: "long_term_unemployed",
22356
- title: "Long-term unemployed",
22357
- selectable: true,
22358
- parentCode: "179-002-000-000-000-000-000",
22359
- childCodes: [],
22360
- definition: "Unemployed and actively seeking work for an extended period (program-defined threshold, often 27+ weeks). HTI extended detail (non-HMIS)."
22361
- },
22362
- {
22363
- code: "179-003-000-000-000-000-000",
22364
- key: "not_in_labor_force",
22365
- title: "Not in the labor force (NILF)",
22366
- selectable: true,
22367
- parentCode: null,
22368
- childCodes: [
22369
- "179-003-001-000-000-000-000",
22370
- "179-003-002-000-000-000-000",
22371
- "179-003-003-000-000-000-000",
22372
- "179-003-004-000-000-000-000",
22373
- "179-003-005-000-000-000-000",
22374
- "179-003-006-000-000-000-000",
22375
- "179-003-007-000-000-000-000",
22376
- "179-003-008-000-000-000-000"
22377
- ],
22378
- definition: "Not working and not actively seeking work during the reference period (e.g., student, caregiver, retired). Federal BLS/Census NILF definition."
22379
- },
22380
- {
22381
- code: "179-003-001-000-000-000-000",
22382
- key: "not_looking_for_work",
22383
- title: "Not looking for work (HMIS)",
22384
- selectable: true,
22385
- parentCode: "179-003-000-000-000-000-000",
22386
- childCodes: [],
22387
- definition: "Employed=No and not looking for work. HMIS-authoritative reason captured when Employed=No."
22388
- },
22389
- {
22390
- code: "179-003-002-000-000-000-000",
22391
- key: "unable_to_work",
22392
- title: "Unable to work (HMIS)",
22393
- selectable: true,
22394
- parentCode: "179-003-000-000-000-000-000",
22395
- childCodes: [],
22396
- definition: "Employed=No due to being unable to work. HMIS-authoritative reason captured when Employed=No."
22397
- },
22398
- {
22399
- code: "179-003-003-000-000-000-000",
22400
- key: "student",
22401
- title: "Student",
22402
- selectable: true,
22403
- parentCode: "179-003-000-000-000-000-000",
22404
- childCodes: [],
22405
- definition: "Not working because enrolled in school or training and not actively seeking work. HTI extended detail (non-HMIS)."
22406
- },
22407
- {
22408
- code: "179-003-004-000-000-000-000",
22409
- key: "caregiver",
22410
- title: "Caregiver (child, family, dependent)",
22411
- selectable: true,
22412
- parentCode: "179-003-000-000-000-000-000",
22413
- childCodes: [],
22414
- definition: "Not working due to caregiving responsibilities for a child, family member, or other dependent. HTI extended detail (non-HMIS)."
22415
- },
22416
- {
22417
- code: "179-003-005-000-000-000-000",
22418
- key: "disabled",
22419
- title: "Disabled / unable to work",
22420
- selectable: true,
22421
- parentCode: "179-003-000-000-000-000-000",
22422
- childCodes: [],
22423
- 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."
22424
- },
22425
- {
22426
- code: "179-003-006-000-000-000-000",
22427
- key: "retired",
22428
- title: "Retired",
22429
- selectable: true,
22430
- parentCode: "179-003-000-000-000-000-000",
22431
- childCodes: [],
22432
- definition: "Not working because retired and not actively seeking work. HTI extended detail (non-HMIS)."
22433
- },
22434
- {
22435
- code: "179-003-007-000-000-000-000",
22436
- key: "discouraged_worker",
22437
- title: "Discouraged worker",
22438
- selectable: true,
22439
- parentCode: "179-003-000-000-000-000-000",
22440
- childCodes: [],
22441
- definition: "Not working and wants a job but is not currently seeking due to discouragement about job prospects. HTI extended detail (non-HMIS)."
22442
- },
22443
- {
22444
- code: "179-003-008-000-000-000-000",
22445
- key: "other_reason",
22446
- title: "Other reason",
22447
- selectable: true,
22448
- parentCode: "179-003-000-000-000-000-000",
22449
- childCodes: [],
22450
- definition: "Not working for another specified reason not captured above. HTI extended detail (non-HMIS)."
22451
- }
22452
- ]
22453
- };
22454
-
22455
- // src/cvcs/locationType.v1.0.0.json
22456
- var locationType_v1_0_0_default = {
22457
- domain: "location_type",
22458
- name: "Core Location Type",
22459
- version: "1.0.0",
22460
- _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.",
22461
- levels: {
22462
- "0": "Unknown or Missing",
22463
- "1": "Category"
22464
- },
22465
- entries: [
22466
- {
22467
- code: "191-000-000-000-000-000-000",
22468
- key: "missingness_root",
22469
- title: "Unknown, Redacted, or Missing",
22470
- selectable: false,
22471
- parentCode: null,
22472
- childCodes: [
22473
- "191-000-000-000-000-000-001",
22474
- "191-000-000-000-000-000-002",
22475
- "191-000-000-000-000-000-003"
23033
+ childCodes: [
23034
+ "126-007-003-001-000-000-000",
23035
+ "126-007-003-002-000-000-000"
22476
23036
  ],
22477
- definition: "Root group for values indicating absent, withheld, or uncollected data."
23037
+ definition: "Relationship where one person facilitates or intermediates commercial sex/exploitation activity affecting the other (e.g., arranging, advertising, booking)."
22478
23038
  },
22479
23039
  {
22480
- code: "191-000-000-000-000-000-001",
22481
- key: "unknown",
22482
- title: "Unknown",
23040
+ code: "126-007-003-001-000-000-000",
23041
+ key: "facilitator_of",
23042
+ title: "Facilitator",
22483
23043
  selectable: true,
22484
- parentCode: "191-000-000-000-000-000-000",
23044
+ parentCode: "126-007-003-000-000-000-000",
22485
23045
  childCodes: [],
22486
- definition: "Unknown or cannot be determined from the available information.",
22487
- tier: "sentinel",
22488
- anchors: [],
22489
- anchorDefault: null,
22490
- shareUnit: null,
22491
- safetyDefault: null
23046
+ definition: "Role: the related person facilitated/intermediated commercial sex/exploitation activity affecting the anchor person."
22492
23047
  },
22493
23048
  {
22494
- code: "191-000-000-000-000-000-002",
22495
- key: "anonymous",
22496
- title: "Anonymous",
23049
+ code: "126-007-003-002-000-000-000",
23050
+ key: "target_of_facilitator",
23051
+ title: "Target person (facilitator)",
22497
23052
  selectable: true,
22498
- parentCode: "191-000-000-000-000-000-000",
23053
+ parentCode: "126-007-003-000-000-000-000",
22499
23054
  childCodes: [],
22500
- definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted.",
22501
- tier: "sentinel",
22502
- anchors: [],
22503
- anchorDefault: null,
22504
- shareUnit: null,
22505
- safetyDefault: null
23055
+ definition: "Role: the related person was the target/person affected by facilitation from the anchor person."
22506
23056
  },
22507
23057
  {
22508
- code: "191-000-000-000-000-000-003",
22509
- key: "data_not_collected",
22510
- title: "Data not collected",
23058
+ code: "126-007-004-000-000-000-000",
23059
+ key: "recruiter_recruited_person",
23060
+ title: "Recruiter / Recruited person",
22511
23061
  selectable: true,
22512
- parentCode: "191-000-000-000-000-000-000",
22513
- childCodes: [],
22514
- definition: "No attempt was made to collect the information.",
22515
- tier: "sentinel",
22516
- anchors: [],
22517
- anchorDefault: null,
22518
- shareUnit: null,
22519
- safetyDefault: null
23062
+ parentCode: "126-007-000-000-000-000-000",
23063
+ childCodes: [
23064
+ "126-007-004-001-000-000-000",
23065
+ "126-007-004-002-000-000-000"
23066
+ ],
23067
+ definition: "Relationship where one person recruits/entices another into commercial sex or exploitation context."
22520
23068
  },
22521
23069
  {
22522
- code: "191-001-000-000-000-000-000",
22523
- key: "current_residence",
22524
- title: "Current residence",
23070
+ code: "126-007-004-001-000-000-000",
23071
+ key: "recruited_by",
23072
+ title: "Recruited person",
22525
23073
  selectable: true,
22526
- parentCode: null,
23074
+ parentCode: "126-007-004-000-000-000-000",
22527
23075
  childCodes: [],
22528
- definition: "Where the client/person currently resides (residential location).",
22529
- tier: "residence",
22530
- anchors: [
22531
- "person"
22532
- ],
22533
- anchorDefault: "person",
22534
- shareUnit: "addresses",
22535
- safetyDefault: "ask"
23076
+ definition: "Role: the related person was recruited/enticed by the anchor person."
22536
23077
  },
22537
23078
  {
22538
- code: "191-002-000-000-000-000-000",
22539
- key: "service_delivery_location",
22540
- title: "Service delivery location",
23079
+ code: "126-007-004-002-000-000-000",
23080
+ key: "recruiter_of",
23081
+ title: "Recruiter",
22541
23082
  selectable: true,
22542
- parentCode: null,
23083
+ parentCode: "126-007-004-000-000-000-000",
22543
23084
  childCodes: [],
22544
- definition: "The physical site where a service instance was delivered (office, outreach site, partner site, on-scene).",
22545
- tier: "service",
22546
- anchors: [
22547
- "service_instance",
22548
- "agency_program",
22549
- "person"
22550
- ],
22551
- anchorDefault: "service_instance",
22552
- shareUnit: "service_history",
22553
- safetyDefault: "ask"
23085
+ definition: "Role: the related person recruited/enticed the anchor person into commercial sex/exploitation context."
22554
23086
  },
22555
23087
  {
22556
- code: "191-003-000-000-000-000-000",
22557
- key: "current_client_location",
22558
- title: "Current client/victim location",
23088
+ code: "126-007-005-000-000-000-000",
23089
+ key: "trafficker_victim",
23090
+ title: "Trafficker / Victim",
22559
23091
  selectable: true,
22560
- parentCode: null,
22561
- childCodes: [],
22562
- definition: "Where the client/victim/caller is physically located at the time of contact or service (operational safety location).",
22563
- tier: "encounter",
22564
- anchors: [
22565
- "person"
23092
+ parentCode: "126-007-000-000-000-000-000",
23093
+ childCodes: [
23094
+ "126-007-005-001-000-000-000",
23095
+ "126-007-005-002-000-000-000"
22566
23096
  ],
22567
- anchorDefault: "person",
22568
- shareUnit: "addresses",
22569
- safetyDefault: "ask"
23097
+ definition: "Exploitation relationship where one person is believed to traffic/exploit the other in a commercial sex or related exploitation context."
22570
23098
  },
22571
23099
  {
22572
- code: "191-004-000-000-000-000-000",
22573
- key: "meet_contact_location",
22574
- title: "Meet / contact location",
23100
+ code: "126-007-005-001-000-000-000",
23101
+ key: "trafficker_of",
23102
+ title: "Trafficker",
22575
23103
  selectable: true,
22576
- parentCode: null,
23104
+ parentCode: "126-007-005-000-000-000-000",
22577
23105
  childCodes: [],
22578
- definition: "A location where an in-person meeting/contact/event occurred (e.g., meet location, arrest location, outreach contact site).",
22579
- tier: "encounter",
22580
- anchors: [
22581
- "session",
22582
- "event",
22583
- "person"
22584
- ],
22585
- anchorDefault: "session",
22586
- shareUnit: "encounter_location",
22587
- safetyDefault: "ask"
23106
+ definition: "Role: the related person is the trafficker/exploiter of the anchor person."
22588
23107
  },
22589
23108
  {
22590
- code: "191-005-000-000-000-000-000",
22591
- key: "prior_residence",
22592
- title: "Prior residence",
23109
+ code: "126-007-005-002-000-000-000",
23110
+ key: "victim_of_trafficker",
23111
+ title: "Victim",
22593
23112
  selectable: true,
22594
- parentCode: null,
23113
+ parentCode: "126-007-005-000-000-000-000",
22595
23114
  childCodes: [],
22596
- definition: "Where the client/person previously resided (historical residential location).",
22597
- tier: "residence",
22598
- anchors: [
22599
- "person"
22600
- ],
22601
- anchorDefault: "person",
22602
- shareUnit: "addresses",
22603
- safetyDefault: "ask"
23115
+ definition: "Role: the related person is the victim/target of trafficking/exploitation by the anchor person."
22604
23116
  },
22605
23117
  {
22606
- code: "191-006-000-000-000-000-000",
22607
- key: "jurisdiction_routing_location",
22608
- title: "Jurisdiction / routing location",
22609
- selectable: true,
23118
+ code: "126-008-000-000-000-000-000",
23119
+ key: "other_unspecified",
23120
+ title: "Other / Unspecified",
23121
+ selectable: false,
22610
23122
  parentCode: null,
22611
- childCodes: [],
22612
- definition: "A location used to determine jurisdiction, eligibility, or referral routing (e.g., county, city, CoC code, service area).",
22613
- tier: "encounter",
22614
- anchors: [
22615
- "person"
23123
+ childCodes: [
23124
+ "126-008-001-000-000-000-000",
23125
+ "126-008-002-000-000-000-000",
23126
+ "126-008-003-000-000-000-000",
23127
+ "126-008-004-000-000-000-000"
22616
23128
  ],
22617
- anchorDefault: "person",
22618
- shareUnit: "addresses",
22619
- safetyDefault: "ask"
23129
+ definition: "High-level topic for edge cases, unknown/low-information ties, and constrained exceptions that don't fit the primary relationship domains."
22620
23130
  },
22621
23131
  {
22622
- code: "191-007-000-000-000-000-000",
22623
- key: "ad_location_derived",
22624
- title: "Ad location (derived)",
23132
+ code: "126-008-001-000-000-000-000",
23133
+ key: "other_person_relationship",
23134
+ title: "Other person relationship",
22625
23135
  selectable: true,
22626
- parentCode: null,
23136
+ parentCode: "126-008-000-000-000-000-000",
22627
23137
  childCodes: [],
22628
- definition: "A location inferred from ads/postings (posting city/region/board) used for analytics such as base location, travel, and heat maps.",
22629
- tier: "derived",
22630
- anchors: [
22631
- "person"
22632
- ],
22633
- anchorDefault: "person",
22634
- shareUnit: "commercial_activity",
22635
- safetyDefault: null
23138
+ definition: "Person-to-person relationship exists, but none of the available structural relationship types fit. Should require detail text."
22636
23139
  },
22637
23140
  {
22638
- code: "191-008-000-000-000-000-000",
22639
- key: "travel_stop_visit",
22640
- title: "Travel stop / visit",
23141
+ code: "126-008-002-000-000-000-000",
23142
+ key: "person_pet",
23143
+ title: "Pet / Animal (person\u2194pet)",
22641
23144
  selectable: true,
22642
- parentCode: null,
22643
- childCodes: [],
22644
- definition: "A location representing a travel instance or visit (part of a travel log/itinerary), with time bounds.",
22645
- tier: "encounter",
22646
- anchors: [
22647
- "person",
22648
- "event"
23145
+ parentCode: "126-008-000-000-000-000-000",
23146
+ childCodes: [
23147
+ "126-008-002-001-000-000-000",
23148
+ "126-008-002-002-000-000-000",
23149
+ "126-008-002-003-000-000-000"
22649
23150
  ],
22650
- anchorDefault: "person",
22651
- shareUnit: "addresses",
22652
- safetyDefault: "ask"
23151
+ 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."
22653
23152
  },
22654
23153
  {
22655
- code: "191-009-000-000-000-000-000",
22656
- key: "work_school_business",
22657
- title: "Work / school / business",
23154
+ code: "126-008-002-001-000-000-000",
23155
+ key: "pet_caregiver_of",
23156
+ title: "Caregiver of (pet)",
22658
23157
  selectable: true,
22659
- parentCode: null,
23158
+ parentCode: "126-008-002-000-000-000-000",
22660
23159
  childCodes: [],
22661
- definition: "A location associated with work, school, or business activity (legal or illicit), including known venues tied to an entity.",
22662
- tier: "encounter",
22663
- anchors: [
22664
- "person"
22665
- ],
22666
- anchorDefault: "person",
22667
- shareUnit: "addresses",
22668
- safetyDefault: "ask"
23160
+ definition: "Person provides primary day-to-day care for the pet/animal, regardless of legal ownership."
22669
23161
  },
22670
23162
  {
22671
- code: "191-010-000-000-000-000-000",
22672
- key: "ip_derived_location",
22673
- title: "IP-derived location (derived)",
23163
+ code: "126-008-002-002-000-000-000",
23164
+ key: "pet_of",
23165
+ title: "Pet of",
22674
23166
  selectable: true,
22675
- parentCode: null,
23167
+ parentCode: "126-008-002-000-000-000-000",
22676
23168
  childCodes: [],
22677
- definition: "A location inferred from an IP address (geolocation-derived), used as a signal rather than a confirmed physical location.",
22678
- tier: "derived",
22679
- anchors: [
22680
- "person"
22681
- ],
22682
- anchorDefault: "person",
22683
- shareUnit: "commercial_activity",
22684
- safetyDefault: null
23169
+ definition: "Pet/animal is the pet of the person."
22685
23170
  },
22686
23171
  {
22687
- code: "191-011-000-000-000-000-000",
22688
- key: "program_project_location",
22689
- title: "Program / project location (reporting)",
23172
+ code: "126-008-002-003-000-000-000",
23173
+ key: "pet_owner_of",
23174
+ title: "Owner of (pet)",
22690
23175
  selectable: true,
22691
- parentCode: null,
23176
+ parentCode: "126-008-002-000-000-000-000",
22692
23177
  childCodes: [],
22693
- definition: "A location describing a program, shelter, project site, or provider location used for reporting (e.g., HMIS project descriptor).",
22694
- tier: "service",
22695
- anchors: [
22696
- "agency_program"
22697
- ],
22698
- anchorDefault: "agency_program",
22699
- shareUnit: null,
22700
- safetyDefault: "safe"
23178
+ definition: "Person has legal or practical ownership responsibility for the pet/animal."
22701
23179
  },
22702
23180
  {
22703
- code: "191-012-000-000-000-000-000",
22704
- key: "other",
22705
- title: "Other",
23181
+ code: "126-008-003-000-000-000-000",
23182
+ key: "relationship_unknown",
23183
+ title: "Relationship unknown",
22706
23184
  selectable: true,
22707
- parentCode: null,
23185
+ parentCode: "126-008-000-000-000-000-000",
22708
23186
  childCodes: [],
22709
- definition: "A catch-all value used when none of the defined location types apply or when the role/context is unclear.",
22710
- tier: "encounter",
22711
- anchors: [
22712
- "person",
22713
- "session",
22714
- "event"
22715
- ],
22716
- anchorDefault: "person",
22717
- shareUnit: "addresses",
22718
- safetyDefault: "ask"
23187
+ definition: "A relationship/link is asserted between two people, but the relationship type is unknown or not yet determined."
22719
23188
  },
22720
23189
  {
22721
- code: "191-013-000-000-000-000-000",
22722
- key: "incident",
22723
- title: "Incident",
23190
+ code: "126-008-004-000-000-000-000",
23191
+ key: "stranger",
23192
+ title: "Stranger",
22724
23193
  selectable: true,
22725
- parentCode: null,
23194
+ parentCode: "126-008-000-000-000-000-000",
22726
23195
  childCodes: [],
22727
- 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.",
22728
- tier: "encounter",
22729
- anchors: [
22730
- "session",
22731
- "event"
22732
- ],
22733
- anchorDefault: "event",
22734
- shareUnit: "encounter_location",
22735
- safetyDefault: "ask"
23196
+ definition: "No known prior relationship exists between the two people (i.e., they are strangers)."
22736
23197
  }
22737
23198
  ]
22738
23199
  };
22739
23200
 
22740
- // src/cvcs/referralEntityCategory.v1.1.0.json
22741
- var referralEntityCategory_v1_1_0_default = {
22742
- domain: "referral_entity_category",
22743
- name: "Core Referral Entity Category",
22744
- version: "1.1.0",
22745
- _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.",
22746
- _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)",
22747
- _supersedes: {
22748
- version: "1.0.0",
22749
- keyMap: {
22750
- missingness_root: "missingness_root",
22751
- unknown: "unknown",
22752
- anonymous: "anonymous",
22753
- data_not_collected: "data_not_collected",
22754
- self_referred: "self_referred",
22755
- family_guardian_friend: "family_guardian_friend",
22756
- peer: "peer",
22757
- other_individual: "other_individual",
22758
- housing_shelter_continuum: "housing_shelter_continuum",
22759
- outreach_project: "outreach_project",
22760
- temporary_shelter: "temporary_shelter",
22761
- residential_project: "residential_project",
22762
- hotlines: "hotlines",
22763
- national_hotline: "national_hotline",
22764
- local_other_hotline: "local_other_hotline",
22765
- justice_protective_systems: "justice_protective_systems",
22766
- child_welfare_cps: "child_welfare_cps",
22767
- juvenile_justice: "juvenile_justice",
22768
- law_enforcement: "law_enforcement",
22769
- local_law_enforcement: "local_law_enforcement",
22770
- state_law_enforcement: "state_law_enforcement",
22771
- federal_law_enforcement: "federal_law_enforcement",
22772
- tribal_law_enforcement: "tribal_law_enforcement",
22773
- other_law_enforcement: "other_law_enforcement",
22774
- courts_prosecution: "courts_prosecution",
22775
- correction_probation: "correction_probation",
22776
- health_behavioral_health: "health_behavioral_health",
22777
- inpatient_psychiatric_facility: "inpatient_psychiatric_facility",
22778
- healthcare_provider: "healthcare_provider",
22779
- education: "education",
22780
- victim_community_service_providers: "victim_community_service_providers",
22781
- child_advocacy_center: "child_advocacy_center",
22782
- victim_service_provider: "victim_service_provider",
22783
- community_based_service_provider: "community_based_service_provider",
22784
- coordination_governance: "coordination_governance",
22785
- mdt: "mdt",
22786
- coalition: "coalition",
22787
- internal: "internal",
22788
- own_agency_internal: "own_agency_internal",
22789
- other_entity: "other_entity",
22790
- employer: "employer",
22791
- benefits_public_assistance_office: "benefits_public_assistance_office",
22792
- other_organization: "other_organization"
22793
- },
22794
- retiredCodes: [],
22795
- notes: {
22796
- 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.",
22797
- law_enforcement: "v1.0.0 `law_enforcement` was a non-selectable heading. Canon makes Law enforcement / Police a selectable leaf with five optional children."
22798
- }
22799
- },
22800
- _notCarried: [
22801
- {
22802
- canonicalCode: "02-02-01-00",
22803
- name: "Hotline",
22804
- 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"
22805
- }
22806
- ],
23201
+ // src/cvcs/employmentStatus.v1.0.0.json
23202
+ var employmentStatus_v1_0_0_default = {
23203
+ domain: "employment_status",
23204
+ name: "Core Employment Status",
23205
+ version: "1.0.0",
22807
23206
  levels: {
22808
23207
  "0": "Unknown or Missing",
22809
- "1": "Category",
22810
- "2": "Entity",
22811
- "3": "Variant"
23208
+ "1": "Primary",
23209
+ "2": "Detail"
22812
23210
  },
22813
23211
  entries: [
22814
23212
  {
22815
- code: "048-000-000-000-000-000-000",
23213
+ code: "179-000-000-000-000-000-000",
22816
23214
  key: "missingness_root",
22817
23215
  title: "Unknown, Redacted, or Missing",
22818
23216
  selectable: false,
22819
23217
  parentCode: null,
22820
23218
  childCodes: [
22821
- "048-000-000-000-000-000-001",
22822
- "048-000-000-000-000-000-002",
22823
- "048-000-000-000-000-000-003"
23219
+ "179-000-000-000-000-000-001",
23220
+ "179-000-000-000-000-000-002",
23221
+ "179-000-000-000-000-000-003",
23222
+ "179-000-000-000-000-000-004",
23223
+ "179-000-000-000-000-000-005"
22824
23224
  ],
22825
- definition: "Root group for values indicating absent, withheld, or uncollected data."
23225
+ 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."
22826
23226
  },
22827
23227
  {
22828
- code: "048-000-000-000-000-000-001",
23228
+ code: "179-000-000-000-000-000-001",
22829
23229
  key: "unknown",
22830
23230
  title: "Unknown",
22831
23231
  selectable: true,
22832
- parentCode: "048-000-000-000-000-000-000",
23232
+ parentCode: "179-000-000-000-000-000-000",
22833
23233
  childCodes: [],
22834
- definition: "Referral entity category unknown.",
22835
- canonicalCode: "00-00-01-00"
23234
+ definition: "Value is unknown at time of entry or cannot be determined from available information."
22836
23235
  },
22837
23236
  {
22838
- code: "048-000-000-000-000-000-002",
23237
+ code: "179-000-000-000-000-000-002",
22839
23238
  key: "anonymous",
22840
23239
  title: "Anonymous",
22841
23240
  selectable: true,
22842
- parentCode: "048-000-000-000-000-000-000",
23241
+ parentCode: "179-000-000-000-000-000-000",
22843
23242
  childCodes: [],
22844
- definition: "Referral entity category withheld or redacted.",
22845
- canonicalCode: "00-00-02-00"
23243
+ definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted."
22846
23244
  },
22847
23245
  {
22848
- code: "048-000-000-000-000-000-003",
23246
+ code: "179-000-000-000-000-000-003",
22849
23247
  key: "data_not_collected",
22850
23248
  title: "Data not collected",
22851
23249
  selectable: true,
22852
- parentCode: "048-000-000-000-000-000-000",
23250
+ parentCode: "179-000-000-000-000-000-000",
22853
23251
  childCodes: [],
22854
- definition: "Referral entity category not collected or no signal captured.",
22855
- canonicalCode: "00-00-03-00"
23252
+ definition: "No attempt was made to collect the information."
22856
23253
  },
22857
23254
  {
22858
- code: "048-001-000-000-000-000-000",
22859
- key: "self_referred",
22860
- title: "Self-referred",
23255
+ code: "179-000-000-000-000-000-004",
23256
+ key: "client_doesnt_know",
23257
+ title: "Client doesn't know",
22861
23258
  selectable: true,
22862
- parentCode: null,
23259
+ parentCode: "179-000-000-000-000-000-000",
22863
23260
  childCodes: [],
22864
- definition: "Client initiated contact or presented for services without a third-party referrer.",
22865
- canonicalCode: "01-00-01-00"
23261
+ definition: "Client is unable to provide an answer (explicit 'doesn't know'). HMIS R6 nonresponse value."
22866
23262
  },
22867
23263
  {
22868
- code: "048-002-000-000-000-000-000",
22869
- key: "family_guardian_friend",
22870
- title: "Family/guardian/friend/foster parent",
23264
+ code: "179-000-000-000-000-000-005",
23265
+ key: "client_refused",
23266
+ title: "Client refused",
22871
23267
  selectable: true,
22872
- parentCode: null,
23268
+ parentCode: "179-000-000-000-000-000-000",
22873
23269
  childCodes: [],
22874
- definition: "A caregiver, family member, or close personal support person initiated the referral.",
22875
- canonicalCode: "01-00-02-00"
23270
+ definition: "The person was asked but chose not to provide an answer (client prefers not to answer). HMIS R6 nonresponse value."
22876
23271
  },
22877
23272
  {
22878
- code: "048-003-000-000-000-000-000",
22879
- key: "peer",
22880
- title: "Peer / another client",
23273
+ code: "179-001-000-000-000-000-000",
23274
+ key: "employed",
23275
+ title: "Employed",
22881
23276
  selectable: true,
22882
23277
  parentCode: null,
23278
+ childCodes: [
23279
+ "179-001-001-000-000-000-000",
23280
+ "179-001-002-000-000-000-000",
23281
+ "179-001-003-000-000-000-000",
23282
+ "179-001-004-000-000-000-000",
23283
+ "179-001-005-000-000-000-000",
23284
+ "179-001-006-000-000-000-000",
23285
+ "179-001-007-000-000-000-000"
23286
+ ],
23287
+ definition: "Has worked for pay or profit during the reference period (includes formal and informal work)."
23288
+ },
23289
+ {
23290
+ code: "179-001-001-000-000-000-000",
23291
+ key: "full_time",
23292
+ title: "Full-time",
23293
+ selectable: true,
23294
+ parentCode: "179-001-000-000-000-000-000",
22883
23295
  childCodes: [],
22884
- definition: "Another current or former client initiated or encouraged the referral.",
22885
- canonicalCode: "01-00-03-00"
23296
+ 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."
22886
23297
  },
22887
23298
  {
22888
- code: "048-004-000-000-000-000-000",
22889
- key: "other_individual",
22890
- title: "Other individual",
23299
+ code: "179-001-002-000-000-000-000",
23300
+ key: "part_time",
23301
+ title: "Part-time",
22891
23302
  selectable: true,
22892
- parentCode: null,
23303
+ parentCode: "179-001-000-000-000-000-000",
22893
23304
  childCodes: [],
22894
- definition: "A non-family individual initiated the referral (e.g., neighbor, community member, clergy).",
22895
- canonicalCode: "01-00-04-00"
23305
+ definition: "Working fewer than full-time hours during the reference period. HMIS-authoritative type of employment when Employed=Yes."
22896
23306
  },
22897
23307
  {
22898
- code: "048-005-000-000-000-000-000",
22899
- key: "housing_shelter_continuum",
22900
- title: "Housing / Shelter continuum",
22901
- selectable: false,
22902
- parentCode: null,
22903
- childCodes: [
22904
- "048-005-001-000-000-000-000",
22905
- "048-005-002-000-000-000-000",
22906
- "048-005-003-000-000-000-000"
22907
- ],
22908
- definition: "Primary function is outreach engagement, emergency shelter, or residential shelter/housing programs.",
22909
- canonicalCode: "02-01-00-00"
23308
+ code: "179-001-003-000-000-000-000",
23309
+ key: "seasonal_sporadic",
23310
+ title: "Seasonal / sporadic (including day labor)",
23311
+ selectable: true,
23312
+ parentCode: "179-001-000-000-000-000-000",
23313
+ childCodes: [],
23314
+ definition: "Work is seasonal, sporadic, day labor, or otherwise inconsistent/irregular during the reference period. HMIS-authoritative type of employment when Employed=Yes."
22910
23315
  },
22911
23316
  {
22912
- code: "048-005-001-000-000-000-000",
22913
- key: "outreach_project",
22914
- title: "Outreach Project",
23317
+ code: "179-001-004-000-000-000-000",
23318
+ key: "self_employed",
23319
+ title: "Self-employed",
22915
23320
  selectable: true,
22916
- parentCode: "048-005-000-000-000-000-000",
23321
+ parentCode: "179-001-000-000-000-000-000",
22917
23322
  childCodes: [],
22918
- definition: "Street/community outreach program that engaged the client prior to enrollment.",
22919
- canonicalCode: "02-01-01-00"
23323
+ definition: "Works for themself as a contractor, sole proprietor, or business owner. HTI extended detail (non-HMIS)."
22920
23324
  },
22921
23325
  {
22922
- code: "048-005-002-000-000-000-000",
22923
- key: "temporary_shelter",
22924
- title: "Temporary Shelter",
23326
+ code: "179-001-005-000-000-000-000",
23327
+ key: "informal_cash_gig",
23328
+ title: "Informal / cash-based / gig",
22925
23329
  selectable: true,
22926
- parentCode: "048-005-000-000-000-000-000",
23330
+ parentCode: "179-001-000-000-000-000-000",
22927
23331
  childCodes: [],
22928
- definition: "Emergency/crisis shelter or short-term temporary housing program.",
22929
- canonicalCode: "02-01-02-00"
23332
+ definition: "Earns income through informal, cash-based, gig, or off-the-books work. HTI extended detail (non-HMIS)."
22930
23333
  },
22931
23334
  {
22932
- code: "048-005-003-000-000-000-000",
22933
- key: "residential_project",
22934
- title: "Residential Project",
23335
+ code: "179-001-006-000-000-000-000",
23336
+ key: "multiple_jobs",
23337
+ title: "Multiple jobs",
22935
23338
  selectable: true,
22936
- parentCode: "048-005-000-000-000-000-000",
23339
+ parentCode: "179-001-000-000-000-000-000",
22937
23340
  childCodes: [],
22938
- definition: "Longer-term residential or transitional living program.",
22939
- canonicalCode: "02-01-03-00"
23341
+ definition: "Holds more than one job or income-generating role. HTI extended detail (non-HMIS)."
22940
23342
  },
22941
23343
  {
22942
- code: "048-006-000-000-000-000-000",
22943
- key: "hotlines",
22944
- title: "Hotlines",
22945
- selectable: false,
23344
+ code: "179-001-007-000-000-000-000",
23345
+ key: "unpaid_family_worker",
23346
+ title: "Unpaid family worker",
23347
+ selectable: true,
23348
+ parentCode: "179-001-000-000-000-000-000",
23349
+ childCodes: [],
23350
+ definition: "Works in a family business or farm without formal pay. HTI extended detail (non-HMIS)."
23351
+ },
23352
+ {
23353
+ code: "179-002-000-000-000-000-000",
23354
+ key: "unemployed",
23355
+ title: "Unemployed",
23356
+ selectable: true,
22946
23357
  parentCode: null,
22947
23358
  childCodes: [
22948
- "048-006-001-000-000-000-000",
22949
- "048-006-002-000-000-000-000"
23359
+ "179-002-001-000-000-000-000",
23360
+ "179-002-002-000-000-000-000",
23361
+ "179-002-003-000-000-000-000",
23362
+ "179-002-004-000-000-000-000",
23363
+ "179-002-005-000-000-000-000"
22950
23364
  ],
22951
- definition: "Crisis lines or call centers that connect a person to services.",
22952
- canonicalCode: "02-02-00-00"
23365
+ definition: "Not working, available, and actively seeking work (or on temporary layoff). Federal BLS/Census Unemployed definition."
22953
23366
  },
22954
23367
  {
22955
- code: "048-006-001-000-000-000-000",
22956
- key: "national_hotline",
22957
- title: "National hotline",
23368
+ code: "179-002-001-000-000-000-000",
23369
+ key: "looking_for_work",
23370
+ title: "Looking for work (HMIS)",
22958
23371
  selectable: true,
22959
- parentCode: "048-006-000-000-000-000-000",
23372
+ parentCode: "179-002-000-000-000-000-000",
22960
23373
  childCodes: [],
22961
- definition: "National-level hotline network.",
22962
- canonicalCode: "02-02-01-01"
23374
+ definition: "Employed=No and looking for work. HMIS-authoritative reason captured when Employed=No."
22963
23375
  },
22964
23376
  {
22965
- code: "048-006-002-000-000-000-000",
22966
- key: "local_other_hotline",
22967
- title: "Local/other hotline",
23377
+ code: "179-002-002-000-000-000-000",
23378
+ key: "actively_seeking",
23379
+ title: "Actively seeking",
22968
23380
  selectable: true,
22969
- parentCode: "048-006-000-000-000-000-000",
23381
+ parentCode: "179-002-000-000-000-000-000",
22970
23382
  childCodes: [],
22971
- definition: "Local/regional hotline or non-national hotline.",
22972
- canonicalCode: "02-02-01-02"
23383
+ definition: "Not working, available, and actively taking steps to find work. HTI extended detail (non-HMIS)."
22973
23384
  },
22974
23385
  {
22975
- code: "048-007-000-000-000-000-000",
22976
- key: "justice_protective_systems",
22977
- title: "Justice & Protective Systems",
22978
- selectable: false,
22979
- parentCode: null,
22980
- childCodes: [
22981
- "048-007-001-000-000-000-000",
22982
- "048-007-002-000-000-000-000",
22983
- "048-007-003-000-000-000-000",
22984
- "048-007-004-000-000-000-000",
22985
- "048-007-005-000-000-000-000",
22986
- "048-007-006-000-000-000-000"
22987
- ],
22988
- definition: null,
22989
- canonicalCode: "02-03-00-00"
23386
+ code: "179-002-003-000-000-000-000",
23387
+ key: "first_time_job_seeker",
23388
+ title: "First-time job seeker",
23389
+ selectable: true,
23390
+ parentCode: "179-002-000-000-000-000-000",
23391
+ childCodes: [],
23392
+ definition: "Unemployed and seeking a first job (no prior work history or new entrant). HTI extended detail (non-HMIS)."
22990
23393
  },
22991
23394
  {
22992
- code: "048-007-001-000-000-000-000",
22993
- key: "child_welfare_cps",
22994
- title: "Child Welfare / CPS",
23395
+ code: "179-002-004-000-000-000-000",
23396
+ key: "recently_laid_off",
23397
+ title: "Recently laid off",
22995
23398
  selectable: true,
22996
- parentCode: "048-007-000-000-000-000-000",
23399
+ parentCode: "179-002-000-000-000-000-000",
22997
23400
  childCodes: [],
22998
- definition: "Government child protection agency responsible for investigating child abuse/neglect and ensuring child safety.",
22999
- canonicalCode: "02-03-01-00"
23401
+ definition: "Unemployed due to a recent layoff or job loss. HTI extended detail (non-HMIS)."
23000
23402
  },
23001
23403
  {
23002
- code: "048-007-002-000-000-000-000",
23003
- key: "juvenile_justice",
23004
- title: "Juvenile Justice",
23404
+ code: "179-002-005-000-000-000-000",
23405
+ key: "long_term_unemployed",
23406
+ title: "Long-term unemployed",
23005
23407
  selectable: true,
23006
- parentCode: "048-007-000-000-000-000-000",
23408
+ parentCode: "179-002-000-000-000-000-000",
23007
23409
  childCodes: [],
23008
- definition: "Juvenile probation/detention/court-related juvenile justice system initiated the referral.",
23009
- canonicalCode: "02-03-02-00"
23410
+ definition: "Unemployed and actively seeking work for an extended period (program-defined threshold, often 27+ weeks). HTI extended detail (non-HMIS)."
23010
23411
  },
23011
23412
  {
23012
- code: "048-007-003-000-000-000-000",
23013
- key: "law_enforcement",
23014
- title: "Law enforcement / Police",
23413
+ code: "179-003-000-000-000-000-000",
23414
+ key: "not_in_labor_force",
23415
+ title: "Not in the labor force (NILF)",
23015
23416
  selectable: true,
23016
- parentCode: "048-007-000-000-000-000-000",
23417
+ parentCode: null,
23017
23418
  childCodes: [
23018
- "048-007-003-001-000-000-000",
23019
- "048-007-003-002-000-000-000",
23020
- "048-007-003-003-000-000-000",
23021
- "048-007-003-004-000-000-000",
23022
- "048-007-003-005-000-000-000"
23419
+ "179-003-001-000-000-000-000",
23420
+ "179-003-002-000-000-000-000",
23421
+ "179-003-003-000-000-000-000",
23422
+ "179-003-004-000-000-000-000",
23423
+ "179-003-005-000-000-000-000",
23424
+ "179-003-006-000-000-000-000",
23425
+ "179-003-007-000-000-000-000",
23426
+ "179-003-008-000-000-000-000"
23023
23427
  ],
23024
- definition: "Law enforcement agency initiated the referral (local/state/federal).",
23025
- canonicalCode: "02-03-03-00"
23428
+ definition: "Not working and not actively seeking work during the reference period (e.g., student, caregiver, retired). Federal BLS/Census NILF definition."
23026
23429
  },
23027
23430
  {
23028
- code: "048-007-003-001-000-000-000",
23029
- key: "local_law_enforcement",
23030
- title: "Local law enforcement",
23431
+ code: "179-003-001-000-000-000-000",
23432
+ key: "not_looking_for_work",
23433
+ title: "Not looking for work (HMIS)",
23031
23434
  selectable: true,
23032
- parentCode: "048-007-003-000-000-000-000",
23435
+ parentCode: "179-003-000-000-000-000-000",
23033
23436
  childCodes: [],
23034
- definition: "City/county police or sheriff.",
23035
- canonicalCode: "02-03-03-01"
23437
+ definition: "Employed=No and not looking for work. HMIS-authoritative reason captured when Employed=No."
23036
23438
  },
23037
23439
  {
23038
- code: "048-007-003-002-000-000-000",
23039
- key: "state_law_enforcement",
23040
- title: "State law enforcement",
23440
+ code: "179-003-002-000-000-000-000",
23441
+ key: "unable_to_work",
23442
+ title: "Unable to work (HMIS)",
23041
23443
  selectable: true,
23042
- parentCode: "048-007-003-000-000-000-000",
23444
+ parentCode: "179-003-000-000-000-000-000",
23043
23445
  childCodes: [],
23044
- definition: "State-level law enforcement agency (e.g., state police/highway patrol/state bureau of investigation) acting in an official capacity.",
23045
- canonicalCode: "02-03-03-02"
23446
+ definition: "Employed=No due to being unable to work. HMIS-authoritative reason captured when Employed=No."
23046
23447
  },
23047
23448
  {
23048
- code: "048-007-003-003-000-000-000",
23049
- key: "federal_law_enforcement",
23050
- title: "Federal law enforcement",
23449
+ code: "179-003-003-000-000-000-000",
23450
+ key: "student",
23451
+ title: "Student",
23051
23452
  selectable: true,
23052
- parentCode: "048-007-003-000-000-000-000",
23453
+ parentCode: "179-003-000-000-000-000-000",
23053
23454
  childCodes: [],
23054
- definition: "Federal law enforcement agency (e.g., FBI, DHS/ICE).",
23055
- canonicalCode: "02-03-03-03"
23455
+ definition: "Not working because enrolled in school or training and not actively seeking work. HTI extended detail (non-HMIS)."
23056
23456
  },
23057
23457
  {
23058
- code: "048-007-003-004-000-000-000",
23059
- key: "tribal_law_enforcement",
23060
- title: "Tribal law enforcement",
23458
+ code: "179-003-004-000-000-000-000",
23459
+ key: "caregiver",
23460
+ title: "Caregiver (child, family, dependent)",
23061
23461
  selectable: true,
23062
- parentCode: "048-007-003-000-000-000-000",
23462
+ parentCode: "179-003-000-000-000-000-000",
23063
23463
  childCodes: [],
23064
- definition: "Tribal police.",
23065
- canonicalCode: "02-03-03-04"
23464
+ definition: "Not working due to caregiving responsibilities for a child, family member, or other dependent. HTI extended detail (non-HMIS)."
23066
23465
  },
23067
23466
  {
23068
- code: "048-007-003-005-000-000-000",
23069
- key: "other_law_enforcement",
23070
- title: "Other/ unknown LE",
23467
+ code: "179-003-005-000-000-000-000",
23468
+ key: "disabled",
23469
+ title: "Disabled / unable to work",
23071
23470
  selectable: true,
23072
- parentCode: "048-007-003-000-000-000-000",
23471
+ parentCode: "179-003-000-000-000-000-000",
23073
23472
  childCodes: [],
23074
- definition: "Other law enforcement entity, or law enforcement type is unknown.",
23075
- canonicalCode: "02-03-03-05"
23473
+ 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."
23076
23474
  },
23077
23475
  {
23078
- code: "048-007-004-000-000-000-000",
23079
- key: "courts_prosecution",
23080
- title: "Courts or prosecution",
23476
+ code: "179-003-006-000-000-000-000",
23477
+ key: "retired",
23478
+ title: "Retired",
23081
23479
  selectable: true,
23082
- parentCode: "048-007-000-000-000-000-000",
23480
+ parentCode: "179-003-000-000-000-000-000",
23083
23481
  childCodes: [],
23084
- definition: "Court or prosecution entity (not law enforcement).",
23085
- canonicalCode: "02-03-04-00"
23482
+ definition: "Not working because retired and not actively seeking work. HTI extended detail (non-HMIS)."
23086
23483
  },
23087
23484
  {
23088
- code: "048-007-005-000-000-000-000",
23089
- key: "correction_probation",
23090
- title: "Correction / probation",
23485
+ code: "179-003-007-000-000-000-000",
23486
+ key: "discouraged_worker",
23487
+ title: "Discouraged worker",
23091
23488
  selectable: true,
23092
- parentCode: "048-007-000-000-000-000-000",
23489
+ parentCode: "179-003-000-000-000-000-000",
23093
23490
  childCodes: [],
23094
- definition: "Corrections, probation, parole, or community supervision entity (not law enforcement).",
23095
- canonicalCode: "02-03-05-00"
23491
+ definition: "Not working and wants a job but is not currently seeking due to discouragement about job prospects. HTI extended detail (non-HMIS)."
23096
23492
  },
23097
23493
  {
23098
- code: "048-007-006-000-000-000-000",
23099
- key: "adult_protective_services",
23100
- title: "Adult Protective Services (APS)",
23494
+ code: "179-003-008-000-000-000-000",
23495
+ key: "other_reason",
23496
+ title: "Other reason",
23101
23497
  selectable: true,
23102
- parentCode: "048-007-000-000-000-000-000",
23498
+ parentCode: "179-003-000-000-000-000-000",
23103
23499
  childCodes: [],
23104
- 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.",
23105
- canonicalCode: "02-03-06-00"
23106
- },
23500
+ definition: "Not working for another specified reason not captured above. HTI extended detail (non-HMIS)."
23501
+ }
23502
+ ]
23503
+ };
23504
+
23505
+ // src/cvcs/locationType.v1.0.0.json
23506
+ var locationType_v1_0_0_default = {
23507
+ domain: "location_type",
23508
+ name: "Core Location Type",
23509
+ version: "1.0.0",
23510
+ _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.",
23511
+ levels: {
23512
+ "0": "Unknown or Missing",
23513
+ "1": "Category"
23514
+ },
23515
+ entries: [
23107
23516
  {
23108
- code: "048-008-000-000-000-000-000",
23109
- key: "health_behavioral_health",
23110
- title: "Health / behavioral health",
23517
+ code: "191-000-000-000-000-000-000",
23518
+ key: "missingness_root",
23519
+ title: "Unknown, Redacted, or Missing",
23111
23520
  selectable: false,
23112
23521
  parentCode: null,
23113
23522
  childCodes: [
23114
- "048-008-001-000-000-000-000",
23115
- "048-008-002-000-000-000-000"
23523
+ "191-000-000-000-000-000-001",
23524
+ "191-000-000-000-000-000-002",
23525
+ "191-000-000-000-000-000-003"
23116
23526
  ],
23117
- definition: "Hospitals and healthcare providers (including mental health inpatient facilities).",
23118
- canonicalCode: "02-04-00-00"
23527
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
23119
23528
  },
23120
23529
  {
23121
- code: "048-008-001-000-000-000-000",
23122
- key: "inpatient_psychiatric_facility",
23123
- title: "Inpatient psychiatric facility",
23530
+ code: "191-000-000-000-000-000-001",
23531
+ key: "unknown",
23532
+ title: "Unknown",
23124
23533
  selectable: true,
23125
- parentCode: "048-008-000-000-000-000-000",
23534
+ parentCode: "191-000-000-000-000-000-000",
23126
23535
  childCodes: [],
23127
- definition: "Inpatient psychiatric hospital or psychiatric facility.",
23128
- canonicalCode: "02-04-01-00"
23536
+ definition: "Unknown or cannot be determined from the available information.",
23537
+ tier: "sentinel",
23538
+ anchors: [],
23539
+ anchorDefault: null,
23540
+ shareUnit: null,
23541
+ safetyDefault: null
23129
23542
  },
23130
23543
  {
23131
- code: "048-008-002-000-000-000-000",
23132
- key: "healthcare_provider",
23133
- title: "Healthcare provider (non-inpatient psychiatric)",
23544
+ code: "191-000-000-000-000-000-002",
23545
+ key: "anonymous",
23546
+ title: "Anonymous",
23134
23547
  selectable: true,
23135
- parentCode: "048-008-000-000-000-000-000",
23548
+ parentCode: "191-000-000-000-000-000-000",
23136
23549
  childCodes: [],
23137
- definition: "Any non-inpatient healthcare provider (clinic, hospital, outpatient provider, behavioral health clinic, SANE program, substance abuse clinic, etc.).",
23138
- canonicalCode: "02-04-02-00"
23139
- },
23140
- {
23141
- code: "048-009-000-000-000-000-000",
23142
- key: "education",
23143
- title: "Education",
23144
- selectable: false,
23145
- parentCode: null,
23146
- childCodes: [
23147
- "048-009-001-000-000-000-000"
23148
- ],
23149
- definition: "Parent category for education-related institutions.",
23150
- canonicalCode: "02-05-00-00"
23550
+ definition: "Information may be withheld by preference or due to redaction; identity is anonymous or redacted.",
23551
+ tier: "sentinel",
23552
+ anchors: [],
23553
+ anchorDefault: null,
23554
+ shareUnit: null,
23555
+ safetyDefault: null
23151
23556
  },
23152
23557
  {
23153
- code: "048-009-001-000-000-000-000",
23154
- key: "school_academic_institution",
23155
- title: "School / academic institution",
23558
+ code: "191-000-000-000-000-000-003",
23559
+ key: "data_not_collected",
23560
+ title: "Data not collected",
23156
23561
  selectable: true,
23157
- parentCode: "048-009-000-000-000-000-000",
23562
+ parentCode: "191-000-000-000-000-000-000",
23158
23563
  childCodes: [],
23159
- definition: "School system or educational institution.",
23160
- canonicalCode: "02-05-01-00"
23564
+ definition: "No attempt was made to collect the information.",
23565
+ tier: "sentinel",
23566
+ anchors: [],
23567
+ anchorDefault: null,
23568
+ shareUnit: null,
23569
+ safetyDefault: null
23161
23570
  },
23162
23571
  {
23163
- code: "048-010-000-000-000-000-000",
23164
- key: "victim_community_service_providers",
23165
- title: "Victim + Community service providers",
23166
- selectable: false,
23572
+ code: "191-001-000-000-000-000-000",
23573
+ key: "current_residence",
23574
+ title: "Current residence",
23575
+ selectable: true,
23167
23576
  parentCode: null,
23168
- childCodes: [
23169
- "048-010-001-000-000-000-000",
23170
- "048-010-002-000-000-000-000",
23171
- "048-010-003-000-000-000-000",
23172
- "048-010-004-000-000-000-000"
23577
+ childCodes: [],
23578
+ definition: "Where the client/person currently resides (residential location).",
23579
+ tier: "residence",
23580
+ anchors: [
23581
+ "person"
23173
23582
  ],
23174
- definition: "Parent category for victim service providers and community-based service providers.",
23175
- canonicalCode: "02-06-00-00"
23583
+ anchorDefault: "person",
23584
+ shareUnit: "addresses",
23585
+ safetyDefault: "ask"
23176
23586
  },
23177
23587
  {
23178
- code: "048-010-001-000-000-000-000",
23179
- key: "child_advocacy_center",
23180
- title: "Child Advocacy Center (CAC)",
23588
+ code: "191-002-000-000-000-000-000",
23589
+ key: "service_delivery_location",
23590
+ title: "Service delivery location",
23181
23591
  selectable: true,
23182
- parentCode: "048-010-000-000-000-000-000",
23592
+ parentCode: null,
23183
23593
  childCodes: [],
23184
- definition: "A child-centered multidisciplinary center coordinating investigation and services (forensic interview, coordination, referrals, sometimes medical or therapy) for child victims.",
23185
- canonicalCode: "02-06-01-00"
23594
+ definition: "The physical site where a service instance was delivered (office, outreach site, partner site, on-scene).",
23595
+ tier: "service",
23596
+ anchors: [
23597
+ "service_instance",
23598
+ "agency_program",
23599
+ "person"
23600
+ ],
23601
+ anchorDefault: "service_instance",
23602
+ shareUnit: "service_history",
23603
+ safetyDefault: "ask"
23186
23604
  },
23187
23605
  {
23188
- code: "048-010-002-000-000-000-000",
23189
- key: "victim_service_provider",
23190
- title: "Victim service provider / advocacy program",
23606
+ code: "191-003-000-000-000-000-000",
23607
+ key: "current_client_location",
23608
+ title: "Current client/victim location",
23191
23609
  selectable: true,
23192
- parentCode: "048-010-000-000-000-000-000",
23610
+ parentCode: null,
23193
23611
  childCodes: [],
23194
- 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.",
23195
- canonicalCode: "02-06-02-00"
23612
+ definition: "Where the client/victim/caller is physically located at the time of contact or service (operational safety location).",
23613
+ tier: "encounter",
23614
+ anchors: [
23615
+ "person"
23616
+ ],
23617
+ anchorDefault: "person",
23618
+ shareUnit: "addresses",
23619
+ safetyDefault: "ask"
23196
23620
  },
23197
23621
  {
23198
- code: "048-010-003-000-000-000-000",
23199
- key: "community_based_service_provider",
23200
- title: "Community-based service provider (general social services)",
23622
+ code: "191-004-000-000-000-000-000",
23623
+ key: "meet_contact_location",
23624
+ title: "Meet / contact location",
23201
23625
  selectable: true,
23202
- parentCode: "048-010-000-000-000-000-000",
23626
+ parentCode: null,
23203
23627
  childCodes: [],
23204
- 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.)",
23205
- canonicalCode: "02-06-03-00"
23628
+ definition: "A location where an in-person meeting/contact/event occurred (e.g., meet location, arrest location, outreach contact site).",
23629
+ tier: "encounter",
23630
+ anchors: [
23631
+ "session",
23632
+ "event",
23633
+ "person"
23634
+ ],
23635
+ anchorDefault: "session",
23636
+ shareUnit: "encounter_location",
23637
+ safetyDefault: "ask"
23206
23638
  },
23207
23639
  {
23208
- code: "048-010-004-000-000-000-000",
23209
- key: "legal_services_provider",
23210
- title: "Legal services provider",
23640
+ code: "191-005-000-000-000-000-000",
23641
+ key: "prior_residence",
23642
+ title: "Prior residence",
23211
23643
  selectable: true,
23212
- parentCode: "048-010-000-000-000-000-000",
23213
- childCodes: [],
23214
- 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.",
23215
- canonicalCode: "02-06-04-00"
23216
- },
23217
- {
23218
- code: "048-011-000-000-000-000-000",
23219
- key: "coordination_governance",
23220
- title: "Coordination & Governance",
23221
- selectable: false,
23222
23644
  parentCode: null,
23223
- childCodes: [
23224
- "048-011-001-000-000-000-000",
23225
- "048-011-002-000-000-000-000"
23645
+ childCodes: [],
23646
+ definition: "Where the client/person previously resided (historical residential location).",
23647
+ tier: "residence",
23648
+ anchors: [
23649
+ "person"
23226
23650
  ],
23227
- definition: "Parent category for coordination and governance bodies (e.g., MDTs, coalitions).",
23228
- canonicalCode: "02-07-00-00"
23651
+ anchorDefault: "person",
23652
+ shareUnit: "addresses",
23653
+ safetyDefault: "ask"
23229
23654
  },
23230
23655
  {
23231
- code: "048-011-001-000-000-000-000",
23232
- key: "mdt",
23233
- title: "Multidisciplinary team (MDT)",
23656
+ code: "191-006-000-000-000-000-000",
23657
+ key: "jurisdiction_routing_location",
23658
+ title: "Jurisdiction / routing location",
23234
23659
  selectable: true,
23235
- parentCode: "048-011-000-000-000-000-000",
23660
+ parentCode: null,
23236
23661
  childCodes: [],
23237
- 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.)",
23238
- canonicalCode: "02-07-01-00"
23662
+ definition: "A location used to determine jurisdiction, eligibility, or referral routing (e.g., county, city, CoC code, service area).",
23663
+ tier: "encounter",
23664
+ anchors: [
23665
+ "person"
23666
+ ],
23667
+ anchorDefault: "person",
23668
+ shareUnit: "addresses",
23669
+ safetyDefault: "ask"
23239
23670
  },
23240
23671
  {
23241
- code: "048-011-002-000-000-000-000",
23242
- key: "coalition",
23243
- title: "Coalition (state/regional coalition)",
23672
+ code: "191-007-000-000-000-000-000",
23673
+ key: "ad_location_derived",
23674
+ title: "Ad location (derived)",
23244
23675
  selectable: true,
23245
- parentCode: "048-011-000-000-000-000-000",
23676
+ parentCode: null,
23246
23677
  childCodes: [],
23247
- 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.",
23248
- canonicalCode: "02-07-02-00"
23678
+ definition: "A location inferred from ads/postings (posting city/region/board) used for analytics such as base location, travel, and heat maps.",
23679
+ tier: "derived",
23680
+ anchors: [
23681
+ "person"
23682
+ ],
23683
+ anchorDefault: "person",
23684
+ shareUnit: "commercial_activity",
23685
+ safetyDefault: null
23249
23686
  },
23250
23687
  {
23251
- code: "048-012-000-000-000-000-000",
23252
- key: "internal",
23253
- title: "Internal",
23254
- selectable: false,
23688
+ code: "191-008-000-000-000-000-000",
23689
+ key: "travel_stop_visit",
23690
+ title: "Travel stop / visit",
23691
+ selectable: true,
23255
23692
  parentCode: null,
23256
- childCodes: [
23257
- "048-012-001-000-000-000-000"
23693
+ childCodes: [],
23694
+ definition: "A location representing a travel instance or visit (part of a travel log/itinerary), with time bounds.",
23695
+ tier: "encounter",
23696
+ anchors: [
23697
+ "person",
23698
+ "event"
23258
23699
  ],
23259
- definition: "Parent category for internal referrals within the same umbrella agency.",
23260
- canonicalCode: "02-08-00-00"
23700
+ anchorDefault: "person",
23701
+ shareUnit: "addresses",
23702
+ safetyDefault: "ask"
23261
23703
  },
23262
23704
  {
23263
- code: "048-012-001-000-000-000-000",
23264
- key: "own_agency_internal",
23265
- title: "Own agency / internal referral",
23705
+ code: "191-009-000-000-000-000-000",
23706
+ key: "work_school_business",
23707
+ title: "Work / school / business",
23266
23708
  selectable: true,
23267
- parentCode: "048-012-000-000-000-000-000",
23709
+ parentCode: null,
23268
23710
  childCodes: [],
23269
- definition: "Client was referred from another program or unit within the same umbrella agency.",
23270
- canonicalCode: "02-08-01-00"
23711
+ definition: "A location associated with work, school, or business activity (legal or illicit), including known venues tied to an entity.",
23712
+ tier: "encounter",
23713
+ anchors: [
23714
+ "person"
23715
+ ],
23716
+ anchorDefault: "person",
23717
+ shareUnit: "addresses",
23718
+ safetyDefault: "ask"
23271
23719
  },
23272
23720
  {
23273
- code: "048-013-000-000-000-000-000",
23274
- key: "other_entity",
23275
- title: "Other",
23276
- selectable: false,
23721
+ code: "191-010-000-000-000-000-000",
23722
+ key: "ip_derived_location",
23723
+ title: "IP-derived location (derived)",
23724
+ selectable: true,
23277
23725
  parentCode: null,
23278
- childCodes: [
23279
- "048-013-001-000-000-000-000",
23280
- "048-013-002-000-000-000-000",
23281
- "048-013-003-000-000-000-000"
23726
+ childCodes: [],
23727
+ definition: "A location inferred from an IP address (geolocation-derived), used as a signal rather than a confirmed physical location.",
23728
+ tier: "derived",
23729
+ anchors: [
23730
+ "person"
23282
23731
  ],
23283
- definition: "Parent category for other organizations not captured by the primary sectors.",
23284
- canonicalCode: "02-09-00-00"
23732
+ anchorDefault: "person",
23733
+ shareUnit: "commercial_activity",
23734
+ safetyDefault: null
23285
23735
  },
23286
23736
  {
23287
- code: "048-013-001-000-000-000-000",
23288
- key: "employer",
23289
- title: "Employer",
23737
+ code: "191-011-000-000-000-000-000",
23738
+ key: "program_project_location",
23739
+ title: "Program / project location (reporting)",
23290
23740
  selectable: true,
23291
- parentCode: "048-013-000-000-000-000-000",
23741
+ parentCode: null,
23292
23742
  childCodes: [],
23293
- definition: "Employer, HR, or employee assistance program initiated the referral.",
23294
- canonicalCode: "02-09-01-00"
23743
+ definition: "A location describing a program, shelter, project site, or provider location used for reporting (e.g., HMIS project descriptor).",
23744
+ tier: "service",
23745
+ anchors: [
23746
+ "agency_program"
23747
+ ],
23748
+ anchorDefault: "agency_program",
23749
+ shareUnit: null,
23750
+ safetyDefault: "safe"
23295
23751
  },
23296
23752
  {
23297
- code: "048-013-002-000-000-000-000",
23298
- key: "benefits_public_assistance_office",
23299
- title: "Benefits/public assistance office",
23753
+ code: "191-012-000-000-000-000-000",
23754
+ key: "other",
23755
+ title: "Other",
23300
23756
  selectable: true,
23301
- parentCode: "048-013-000-000-000-000-000",
23757
+ parentCode: null,
23302
23758
  childCodes: [],
23303
- definition: "Government office administering public benefits or eligibility and enrollment (e.g., SNAP, TANF, Medicaid, SSA).",
23304
- canonicalCode: "02-09-02-00"
23759
+ definition: "A catch-all value used when none of the defined location types apply or when the role/context is unclear.",
23760
+ tier: "encounter",
23761
+ anchors: [
23762
+ "person",
23763
+ "session",
23764
+ "event"
23765
+ ],
23766
+ anchorDefault: "person",
23767
+ shareUnit: "addresses",
23768
+ safetyDefault: "ask"
23305
23769
  },
23306
23770
  {
23307
- code: "048-013-003-000-000-000-000",
23308
- key: "other_organization",
23309
- title: "Other Organization",
23771
+ code: "191-013-000-000-000-000-000",
23772
+ key: "incident",
23773
+ title: "Incident",
23310
23774
  selectable: true,
23311
- parentCode: "048-013-000-000-000-000-000",
23775
+ parentCode: null,
23312
23776
  childCodes: [],
23313
- definition: "Other organization not otherwise captured by the listed categories.",
23314
- canonicalCode: "02-09-03-00"
23777
+ 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.",
23778
+ tier: "encounter",
23779
+ anchors: [
23780
+ "session",
23781
+ "event"
23782
+ ],
23783
+ anchorDefault: "event",
23784
+ shareUnit: "encounter_location",
23785
+ safetyDefault: "ask"
23315
23786
  }
23316
23787
  ]
23317
23788
  };
@@ -56553,6 +57024,8 @@ export {
56553
57024
  ACCOMMODATION_OPTIONS,
56554
57025
  ACTIVE_CVC_136_CORE_INDICATOR_VALUES,
56555
57026
  ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES,
57027
+ AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS,
57028
+ AGENCY_TYPE_KEYS,
56556
57029
  AGE_BIN_REPORTING,
56557
57030
  AGE_BIN_REPORTING_IS_MINOR,
56558
57031
  AGE_BIN_REPORTING_LABELS,
@@ -56566,6 +57039,8 @@ export {
56566
57039
  AdminRoleKeys,
56567
57040
  AdministeringJurisdictionKeys,
56568
57041
  AgeBinReportingKeys,
57042
+ AgencyOrgTypeFieldsSchema,
57043
+ AgencyTypeKeySchema,
56569
57044
  AnnouncementAudienceScopeKeys,
56570
57045
  AnnouncementResponseTypeKeys,
56571
57046
  AssertionDomainKeys,
@@ -56786,6 +57261,7 @@ export {
56786
57261
  GoalPriorityKeys,
56787
57262
  GoalStatusKeys,
56788
57263
  GoalWithdrawalReasonKeys,
57264
+ HEALTHCARE_ORG_TYPE_KEYS,
56789
57265
  HairColorKeys,
56790
57266
  HasTattoosKeys,
56791
57267
  HighestEducationLevelCompletedKeys,
@@ -56867,6 +57343,9 @@ export {
56867
57343
  InvestigativeRequestTypeKeys,
56868
57344
  JuvenileJusticeEpisodeTypeKeys,
56869
57345
  JuvenileJusticeInvolvementStatusKeys,
57346
+ LAW_ENFORCEMENT_ORG_TYPE_KEYS,
57347
+ LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY,
57348
+ LEGAL_ORG_TYPE_KEYS,
56870
57349
  LanguagesKeys,
56871
57350
  LeReportStatusKeys,
56872
57351
  LegalActionTypeKeys,
@@ -56882,11 +57361,20 @@ export {
56882
57361
  MilitaryBranchKeys,
56883
57362
  MilitaryStatusKeys,
56884
57363
  MinorAdultStatusKeys,
57364
+ NO_SECTOR_ORG_TYPE_KEYS,
56885
57365
  NameTypeKeys,
56886
57366
  NeedsAssessmentChangeTypeKeys,
56887
57367
  NeedsResidentialAgainKeys,
57368
+ ORG_TYPE_FIELD_NAMES,
57369
+ ORG_TYPE_HEADING_KEYS,
57370
+ ORG_TYPE_KEYS,
57371
+ ORG_TYPE_NONPICKABLE_LEAF_KEYS,
57372
+ ORG_TYPE_PARENT_KEY,
57373
+ ORG_TYPE_SELECTABLE_KEYS,
56888
57374
  OffenderStatusFamilyKeys,
56889
57375
  OffenderStatusKeys,
57376
+ OrgTypeFieldsSchema,
57377
+ OrgTypeSelectableKeySchema,
56890
57378
  OrientationIdentityKeys,
56891
57379
  PARTICIPATION_ROLE_CATEGORIES,
56892
57380
  PERMISSION_STATE,
@@ -56928,6 +57416,7 @@ export {
56928
57416
  RELATIONSHIP_DYNAMICS,
56929
57417
  RELATIONSHIP_DYNAMICS_LABELS,
56930
57418
  RELATIONSHIP_DYNAMICS_VALUES,
57419
+ REPORT_AUTHORITY_ORG_TYPE_KEYS,
56931
57420
  ROLE_LEVEL,
56932
57421
  ROLE_LEVEL_LABELS,
56933
57422
  ROLE_LEVEL_VALUES,
@@ -56970,6 +57459,7 @@ export {
56970
57459
  SessionNoteVisibilityKeys,
56971
57460
  SessionStateKeys,
56972
57461
  SessionTemplateKeys,
57462
+ SetOrgTypeInputSchema,
56973
57463
  SeverityFollowUpKeys,
56974
57464
  SexProviderSubroleKeys,
56975
57465
  SharePurposeKeys,
@@ -57004,6 +57494,8 @@ export {
57004
57494
  UserRoleKeys,
57005
57495
  VALID_INTERACTION_TYPES,
57006
57496
  VALID_RECORD_STATES,
57497
+ VICTIM_SERVING_ORG_TYPE_KEYS,
57498
+ VSP_TWO_STEP_ISSUE,
57007
57499
  VerificationMethodKeys,
57008
57500
  VerificationStatusKeys,
57009
57501
  VictimAbuseTypesKeys,
@@ -57014,14 +57506,18 @@ export {
57014
57506
  actionStepCompletionStatus_v1_0_0_default as actionStepCompletionStatusSot,
57015
57507
  actionStepType_v1_0_0_default as actionStepTypeSot,
57016
57508
  activityType_v1_0_0_default as activityTypeSot,
57509
+ addAgencyOrgTypeFields,
57510
+ addOrgTypeFields,
57017
57511
  addTeamDirectoryFields,
57018
57512
  addressSchema,
57019
57513
  adminRoles_v1_0_0_default as adminRolesSot,
57020
57514
  administeringJurisdiction_v1_0_0_default as administeringJurisdictionSot,
57021
57515
  ageBinReporting_v1_0_0_default as ageBinReportingSot,
57516
+ agencyOrgTypeSchemaDefinition,
57022
57517
  announcementAudienceScope_v1_0_0_default as announcementAudienceScopeSot,
57023
57518
  announcementResponseType_v1_0_0_default as announcementResponseTypeSot,
57024
57519
  applyEntryOverrides,
57520
+ applyRunValidatorsIfUnset,
57025
57521
  assertionDomain_v1_1_0_default as assertionDomainSot,
57026
57522
  assertionStatus_v1_0_0_default as assertionStatusSot,
57027
57523
  basisQuickPicks_v1_0_0_default as basisQuickPicksSot,
@@ -57138,14 +57634,21 @@ export {
57138
57634
  incomeBenefitsSources_v1_1_0_default as incomeBenefitsSourcesSot,
57139
57635
  inferenceType_v1_0_0_default as inferenceTypeSot,
57140
57636
  investigativeRequestType_v1_0_0_default as investigativeRequestTypeSot,
57637
+ isAgencyTypeKey,
57141
57638
  isDeprecatedCoreIndicator,
57142
57639
  isDeprecatedIncidentParticipationRole,
57640
+ isHealthcareOrgType,
57143
57641
  isIC56Missingness,
57144
57642
  isIC56ValidChannel,
57643
+ isLawEnforcementOrgType,
57644
+ isLegalOrgType,
57145
57645
  isLgbtqOrientation,
57646
+ isOrgTypeKey,
57146
57647
  isProtectedRelationship,
57648
+ isReportAuthorityOrgType,
57147
57649
  isStructuredNameType,
57148
57650
  isTransgenderGenderIdentity,
57651
+ isVictimServingOrgType,
57149
57652
  juvenileJusticeEpisodeType_v1_0_0_default as juvenileJusticeEpisodeTypeSot,
57150
57653
  juvenileJusticeInvolvementStatus_v1_0_0_default as juvenileJusticeInvolvementStatusSot,
57151
57654
  languages_v1_0_0_default as languagesSot,
@@ -57162,11 +57665,23 @@ export {
57162
57665
  militaryBranch_v1_0_0_default as militaryBranchSot,
57163
57666
  militaryStatus_v1_0_0_default as militaryStatusSot,
57164
57667
  minorAdultStatus_v1_0_0_default as minorAdultStatusSot,
57668
+ mirrorOrgTypeFields,
57165
57669
  nameType_v1_0_0_default as nameTypeSot,
57166
57670
  needsAssessmentChangeType_v1_0_0_default as needsAssessmentChangeTypeSot,
57167
57671
  needsResidentialAgain_v1_0_0_default as needsResidentialAgainSot,
57168
57672
  offenderStatusFamily_v1_0_0_default as offenderStatusFamilySot,
57169
57673
  offenderStatus_v1_0_0_default as offenderStatusSot,
57674
+ orgTypeAncestry,
57675
+ orgTypeCanonicalCode,
57676
+ orgTypeDefaultSessionRole,
57677
+ orgTypeDefaultSessionRoleOrNull,
57678
+ orgTypeDefaultVsp,
57679
+ orgTypeEnumConstant,
57680
+ orgTypeFieldsDiffer,
57681
+ orgTypeFieldsShape,
57682
+ orgTypeLabel,
57683
+ orgTypeSchemaDefinition,
57684
+ orgTypeSector,
57170
57685
  orientationIdentity_v1_0_0_default as orientationIdentitySot,
57171
57686
  personNameSchema,
57172
57687
  personRelationships_v1_0_0_default as personRelationshipsSot,
@@ -57197,12 +57712,18 @@ export {
57197
57712
  radiusBucket_v1_0_0_default as radiusBucketSot,
57198
57713
  recencyBand_v1_0_0_default as recencyBandSot,
57199
57714
  referenceLinkType_v1_0_0_default as referenceLinkTypeSot,
57200
- referralEntityCategory_v1_1_0_default as referralEntityCategorySot,
57715
+ referralEntityCategory_v1_2_0_default as referralEntityCategorySot,
57201
57716
  referralOrigin_v1_0_0_default as referralOriginSot,
57202
57717
  relationshipConcern_v1_0_0_default as relationshipConcernSot,
57203
57718
  relationshipDynamics_v1_0_0_default as relationshipDynamicsSot,
57204
57719
  relationshipStatusCurrent_v1_0_0_default as relationshipStatusCurrentSot,
57205
57720
  relationshipTies_v1_0_0_default as relationshipTiesSot,
57721
+ resolveAgencyTypeKey,
57722
+ resolveEffectiveOrgType,
57723
+ resolveEffectiveOrgTypeFields,
57724
+ resolveOrgTypeKey,
57725
+ resolveOrgTypeKeyFromLegacyNumeric,
57726
+ resolveReferralEntityKeyFromLegacyNumeric,
57206
57727
  resolveRegistryWithInheritance,
57207
57728
  returnedToAbuserStatus_v1_0_0_default as returnedToAbuserStatusSot,
57208
57729
  riskCategory_v1_0_0_default as riskCategorySot,
@@ -57269,6 +57790,9 @@ export {
57269
57790
  victimStatusFamily_v1_0_0_default as victimStatusFamilySot,
57270
57791
  visaType_v1_0_0_default as visaTypeSot,
57271
57792
  visibilityRuleSchema,
57272
- whyNots_v1_0_0_default as whyNotsSot
57793
+ vspTwoStepHolds,
57794
+ vspTwoStepHoldsOnUpdate,
57795
+ whyNots_v1_0_0_default as whyNotsSot,
57796
+ withOrgTypeFields
57273
57797
  };
57274
57798
  //# sourceMappingURL=index.js.map